oak-pay-business/es/entities/Ship.js

110 lines
3.2 KiB
JavaScript

;
export const IActionDef = {
stm: {
ship: [['unshipped', 'unknown'], 'shipping'],
receive: [['shipping', 'unknown'], 'received'],
cancel: [['unshipped', 'unknown'], 'cancelled'],
reject: [['shipping', 'unknown'], 'rejected'],
unknow: [['unshipped', 'shipping'], 'unknown'],
startReceiving: [['shipping', 'unknown'], 'receiving'],
succeedReceiving: [['receiving', 'unknown'], 'received'],
},
is: 'unshipped',
};
export const entityDesc = {
indexes: [
{
name: 'index_phantom1',
attributes: [
{
name: 'phantom1',
}
]
},
{
name: 'index_phantom3',
attributes: [
{
name: 'phantom3',
}
]
}
],
locales: {
zh_CN: {
name: '物流公司系统连接',
attr: {
type: '物流类型',
shipService: '物流服务',
to: '收件地址',
from: '寄件地址',
iState: '状态',
entity: '关联对象',
entityId: '关联对象id',
phantom1: '索引项一',
phantom2: '索引项二',
phantom3: '索引项三',
phantom4: '索引项四',
phantom5: '结构化项',
extraShipId: '外部订单Id',
extraPaths: '外部轨迹信息',
receiveAt: '签收时间',
},
v: {
iState: {
unshipped: '待发货',
shipping: '运输中',
received: '已收货',
rejected: '已拒绝',
cancelled: '已取消',
unknown: '不明',
receiving: '确认收货流程中'
},
type: {
virtual: '虚拟',
pickup: '自提',
express: '快递',
}
},
action: {
ship: '发货',
receive: '收货',
cancel: '取消',
reject: '拒收',
unknow: '使未知',
syncState: '更新状态',
syncPaths: '更新路径',
syncAll: '更新信息',
print: '面单打印',
startReceiving: '开始确认收货流程',
succeedReceiving: '完成确认收货流程'
},
},
},
style: {
color: {
iState: {
unshipped: '#D2691E',
shipping: '#1E90FF',
received: '#90EE90',
rejected: '#FF0000',
cancelled: '#A9A9A9',
unknown: '#424242',
receiving: '#FFC107'
},
type: {
virtual: '#EB984E',
pickup: '#2ECC71',
express: '#5DADE2',
}
},
icon: {
ship: '',
receive: '',
cancel: '',
reject: '',
unknow: '',
},
},
};