...
|
...
|
@@ -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;
|
|
|
}
|
...
|
...
|
|