Authored by lea guo

订单操作

... ... @@ -38,6 +38,7 @@ export default {
const { productId, storageId } = this.order.goodsInfo;
switch (action.name) {
// 删除订单
case orderActionsMap.DEL_ORDER.name:
this.$createDialog({
type: "confirm",
... ... @@ -52,24 +53,46 @@ export default {
}
}).show();
break;
// 再次购买
case orderActionsMap.BUY_AGAIN.name:
this.$router.push({
path: `/xianyu/product/${productId}.html`
});
break;
// 查看详情
case orderActionsMap.SHOW_DETAIL.name:
this.$router.push({
path: `/xianyu/${owner}/order/detail/${orderCode}`
});
break;
// 再次出售
case orderActionsMap.SOLD_AGAIN.name:
this.$router.push({
path: "/xianyu/order/sellconfirm.html",
query: { productId, storageId }
});
break;
// 查看物流
case orderActionsMap.SHOW_EXPRESS.name:
this.$router.push({
path: `/xianyu/${owner}/order/logistics/${orderCode}`
});
break;
// 调价
// 非入住商家
case orderActionsMap.NOT_ENTRY_CHANGE_PRICE.name:
this.$router.push({
path: `/xianyu/order/priceChangeNoEntry/${orderCode}.html`
});
break;
// 入住商家
case orderActionsMap.STORAGE_MANAGE:
this.$router.push({
path: `/xianyu/order/priceChangeEntry/${productId}.html`
});
break;
// 取消订单 | 不卖了
case orderActionsMap.NOT_SOLD.name:
case orderActionsMap.CANCEL_ORDER.name:
const confirmInfo = await this.cancelTradeConfirmInfo({
... ... @@ -110,6 +133,7 @@ export default {
}
).show();
break;
default:
return;
}
... ...
... ... @@ -85,11 +85,7 @@ export const orderActionsMap = {
name: 'SHOW_EXPRESS',
text: '查看物流',
},
CONFIRM_DELIVERY: {
code: 'confirm_delivery',
name: 'CONFIRM_DELIVERY',
text: '确认收货',
},
SOLD_AGAIN: {
code: 'sold_again',
name: 'SOLD_AGAIN',
... ... @@ -106,19 +102,32 @@ export const orderActionsMap = {
name: 'PAY_EARNESTMONEY',
text: '支付保证金',
},
CANCEL_ORDER: {
code: 'cancel_order',
name: 'CANCEL_ORDER',
text: '取消订单',
},
NOT_ENTRY_CHANGE_PRICE: {
code: 'not_entry_change_price',
name: 'NOT_ENTRY_CHANGE_PRICE',
text: '调价',
},
CANCEL_ORDER: {
code: 'cancel_order',
name: 'CANCEL_ORDER',
text: '取消订单',
STORAGE_MANAGE: {
code: 'storage_manage',
name: 'STORAGE_MANAGE',
text: '管理库存',
},
NOW_BUY: {
code: 'now_buy',
name: 'NOW_BUY',
text: '立即支付',
},
CONFIRM_DELIVERY: {
code: 'confirm_delivery',
name: 'CONFIRM_DELIVERY',
text: '确认收货',
},
};
... ...