103 lines
2.6 KiB
JavaScript
103 lines
2.6 KiB
JavaScript
;
|
|
export const IActionDef = {
|
|
stm: {
|
|
ship: ['unshipped', 'shipping'],
|
|
receive: ['shipping', 'received'],
|
|
giveUp: [['unshipped', 'shipping'], 'givenUp'],
|
|
reject: ['shipping', 'rejected'],
|
|
},
|
|
is: 'unshipped',
|
|
};
|
|
export const entityDesc = {
|
|
indexes: [
|
|
{
|
|
name: 'index_serial',
|
|
attributes: [
|
|
{
|
|
name: 'serial',
|
|
}
|
|
],
|
|
config: {
|
|
unique: true,
|
|
}
|
|
},
|
|
{
|
|
name: 'index_phantom1',
|
|
attributes: [
|
|
{
|
|
name: 'phantom1',
|
|
}
|
|
]
|
|
},
|
|
{
|
|
name: 'index_phantom3',
|
|
attributes: [
|
|
{
|
|
name: 'phantom3',
|
|
}
|
|
]
|
|
}
|
|
],
|
|
locales: {
|
|
zh_CN: {
|
|
name: '物流公司系统连接',
|
|
attr: {
|
|
type: '物流类型',
|
|
shipCompany: '物流公司',
|
|
serial: '物流编号',
|
|
to: '收件地址',
|
|
from: '寄件地址',
|
|
iState: '状态',
|
|
entity: '关联对象',
|
|
entityId: '关联对象id',
|
|
phantom1: '索引项一',
|
|
phantom2: '索引项二',
|
|
phantom3: '索引项三',
|
|
phantom4: '索引项四',
|
|
},
|
|
v: {
|
|
iState: {
|
|
unshipped: '未发货',
|
|
shipping: '发货中',
|
|
received: '已收货',
|
|
rejected: '已拒绝',
|
|
givenUp: '已放弃',
|
|
},
|
|
type: {
|
|
virtual: '虚拟',
|
|
pickup: '自提',
|
|
express: '快递',
|
|
}
|
|
},
|
|
action: {
|
|
ship: '发货',
|
|
receive: '收货',
|
|
giveUp: '放弃',
|
|
reject: '拒收',
|
|
},
|
|
},
|
|
},
|
|
style: {
|
|
color: {
|
|
iState: {
|
|
unshipped: '#D2691E',
|
|
shipping: '#1E90FF',
|
|
received: '#90EE90',
|
|
rejected: '#FF0000',
|
|
givenUp: '#A9A9A9'
|
|
},
|
|
type: {
|
|
virtual: '#EB984E',
|
|
pickup: '#2ECC71',
|
|
express: '#5DADE2',
|
|
}
|
|
},
|
|
icon: {
|
|
ship: '',
|
|
receive: '',
|
|
giveUp: '',
|
|
reject: '',
|
|
},
|
|
},
|
|
};
|