...
|
...
|
@@ -17,7 +17,7 @@ export default { |
|
|
// 订单列表
|
|
|
async onAction({ action, order }) {
|
|
|
const { owner = ownType.SELL } = this.$route.params;
|
|
|
const { orderCode, realPrice = '' } = order;
|
|
|
const { orderCode, realPrice = '', bidDepositInfo = {} } = order;
|
|
|
|
|
|
switch (action.name) {
|
|
|
case orderActionsMap.DEL_ORDER.name:
|
...
|
...
|
@@ -95,6 +95,23 @@ export default { |
|
|
break;
|
|
|
}
|
|
|
|
|
|
case orderActionsMap.PAY_DEPOSIT.name: {
|
|
|
this.$createOrderPayType({
|
|
|
orderCode,
|
|
|
price: parseFloat(bidDepositInfo.depositAmount),
|
|
|
desc: '保证金',
|
|
|
extra: JSON.stringify({
|
|
|
forward: {
|
|
|
name: 'OrderList',
|
|
|
params: {
|
|
|
owner: 'buy',
|
|
|
},
|
|
|
},
|
|
|
}),
|
|
|
}).show();
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
case orderActionsMap.CONFIRM_DELIVERY.name: {
|
|
|
this.$createConfirmDialog({
|
|
|
onConfirm: async () => {
|
...
|
...
|
@@ -114,6 +131,42 @@ export default { |
|
|
});
|
|
|
break;
|
|
|
}
|
|
|
case orderActionsMap.NOT_SOLD.name: {
|
|
|
const confirmInfo = await this.cancelTradeConfirmInfo({
|
|
|
orderCode,
|
|
|
owner,
|
|
|
});
|
|
|
|
|
|
this.$createConfirmDialog(
|
|
|
{
|
|
|
confirmBtn: { text: '不卖了', style: { color: '#D0021B' } },
|
|
|
cancelBtn: { text: '继续出售', active: true },
|
|
|
onConfirm: async () => {
|
|
|
const isOk = await this.cancelTrade({
|
|
|
orderCode,
|
|
|
owner,
|
|
|
});
|
|
|
|
|
|
if (isOk) {
|
|
|
this.resetData();
|
|
|
this.fetchData(this.$route.params);
|
|
|
}
|
|
|
|
|
|
// const txt = isOk ? "取消成功" : "取消失败";
|
|
|
// this.$createToast({ txt, type: "txt" }).show();
|
|
|
},
|
|
|
},
|
|
|
createElement => {
|
|
|
return [
|
|
|
createElement(DialogConfirmInfo, {
|
|
|
props: { info: confirmInfo },
|
|
|
slot: 'content',
|
|
|
}),
|
|
|
];
|
|
|
},
|
|
|
).show();
|
|
|
break;
|
|
|
}
|
|
|
default:
|
|
|
return;
|
|
|
}
|
...
|
...
|
|