96 lines
2.9 KiB
JavaScript
96 lines
2.9 KiB
JavaScript
;
|
|
export const IActionDef = {
|
|
stm: {
|
|
startPaying: ['unPaid', 'paying'],
|
|
payAll: [['unPaid', 'paying', 'partiallyPaid'], 'paid'],
|
|
payPartially: [['unPaid', 'paying'], 'partiallyPaid'],
|
|
payNone: ['paying', 'unPaid'],
|
|
timeout: ['unPaid', 'timeout'],
|
|
cancel: ['unPaid', 'cancelled'],
|
|
startRefunding: [['paid', 'partiallyPaid'], 'refunding'],
|
|
refundAll: [['paid', 'refunding', 'partiallyPaid', 'partiallyRefunded'], 'refunded'],
|
|
refundPartially: [['paid', 'refunding', 'partiallyPaid', 'partiallyRefunded'], 'partiallyRefunded'],
|
|
refundNone: ['refunding', 'paid'],
|
|
},
|
|
is: 'unPaid',
|
|
};
|
|
export const entityDesc = {
|
|
indexes: [
|
|
//索引
|
|
{
|
|
name: 'index_iState',
|
|
attributes: [
|
|
{
|
|
name: 'iState',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
locales: {
|
|
zh_CN: {
|
|
name: '订单',
|
|
attr: {
|
|
price: '订单金额',
|
|
paid: '已支付金额',
|
|
refunded: '已退款金额',
|
|
iState: '订单状态',
|
|
title: '订单标题',
|
|
desc: "订单描述",
|
|
timeoutAt: '过期时间'
|
|
},
|
|
action: {
|
|
startPaying: '开始支付',
|
|
payAll: '全部支付',
|
|
payPartially: '部分支付',
|
|
payNone: '支付失败',
|
|
timeout: '过期',
|
|
cancel: '放弃',
|
|
startRefunding: '开始退款',
|
|
refundAll: '完全退款',
|
|
refundNone: '退款失败',
|
|
refundPartially: '部分退款',
|
|
},
|
|
v: {
|
|
iState: {
|
|
paid: '已付款',
|
|
partiallyPaid: '部分支付',
|
|
paying: '支付中',
|
|
unPaid: '待付款',
|
|
timeout: '已超时',
|
|
cancelled: '已取消',
|
|
refunded: '已退款',
|
|
partiallyRefunded: '已部分退款',
|
|
refunding: '退款中',
|
|
},
|
|
}
|
|
},
|
|
},
|
|
style: {
|
|
icon: {
|
|
startPaying: '',
|
|
payAll: '',
|
|
payPartially: '',
|
|
payNone: '',
|
|
timeout: '',
|
|
cancel: '',
|
|
startRefunding: '',
|
|
refundAll: '',
|
|
refundNone: '',
|
|
refundPartially: '',
|
|
},
|
|
color: {
|
|
iState: {
|
|
unPaid: '#52BE80',
|
|
partiallyPaid: '#5DADE2',
|
|
cancelled: '#D6DBDF',
|
|
paid: '#2E86C1',
|
|
paying: '#D2B4DE',
|
|
timeout: '#2C3E50',
|
|
refunded: '#BA4A00',
|
|
partiallyRefunded: '#EDBB99',
|
|
refunding: '#FBEEE6'
|
|
},
|
|
}
|
|
}
|
|
};
|