|
@@ -38,6 +38,7 @@ export default { |
|
@@ -38,6 +38,7 @@ export default { |
38
|
const { productId, storageId } = this.order.goodsInfo;
|
38
|
const { productId, storageId } = this.order.goodsInfo;
|
39
|
|
39
|
|
40
|
switch (action.name) {
|
40
|
switch (action.name) {
|
|
|
41
|
+ // 删除订单
|
41
|
case orderActionsMap.DEL_ORDER.name:
|
42
|
case orderActionsMap.DEL_ORDER.name:
|
42
|
this.$createDialog({
|
43
|
this.$createDialog({
|
43
|
type: "confirm",
|
44
|
type: "confirm",
|
|
@@ -52,24 +53,46 @@ export default { |
|
@@ -52,24 +53,46 @@ export default { |
52
|
}
|
53
|
}
|
53
|
}).show();
|
54
|
}).show();
|
54
|
break;
|
55
|
break;
|
|
|
56
|
+ // 再次购买
|
55
|
case orderActionsMap.BUY_AGAIN.name:
|
57
|
case orderActionsMap.BUY_AGAIN.name:
|
56
|
this.$router.push({
|
58
|
this.$router.push({
|
57
|
path: `/xianyu/product/${productId}.html`
|
59
|
path: `/xianyu/product/${productId}.html`
|
58
|
});
|
60
|
});
|
59
|
break;
|
61
|
break;
|
60
|
-
|
62
|
+ // 查看详情
|
61
|
case orderActionsMap.SHOW_DETAIL.name:
|
63
|
case orderActionsMap.SHOW_DETAIL.name:
|
62
|
this.$router.push({
|
64
|
this.$router.push({
|
63
|
path: `/xianyu/${owner}/order/detail/${orderCode}`
|
65
|
path: `/xianyu/${owner}/order/detail/${orderCode}`
|
64
|
});
|
66
|
});
|
65
|
break;
|
67
|
break;
|
66
|
-
|
68
|
+ // 再次出售
|
67
|
case orderActionsMap.SOLD_AGAIN.name:
|
69
|
case orderActionsMap.SOLD_AGAIN.name:
|
68
|
this.$router.push({
|
70
|
this.$router.push({
|
69
|
path: "/xianyu/order/sellconfirm.html",
|
71
|
path: "/xianyu/order/sellconfirm.html",
|
70
|
query: { productId, storageId }
|
72
|
query: { productId, storageId }
|
71
|
});
|
73
|
});
|
72
|
break;
|
74
|
break;
|
|
|
75
|
+ // 查看物流
|
|
|
76
|
+ case orderActionsMap.SHOW_EXPRESS.name:
|
|
|
77
|
+ this.$router.push({
|
|
|
78
|
+ path: `/xianyu/${owner}/order/logistics/${orderCode}`
|
|
|
79
|
+ });
|
|
|
80
|
+ break;
|
|
|
81
|
+ // 调价
|
|
|
82
|
+ // 非入住商家
|
|
|
83
|
+ case orderActionsMap.NOT_ENTRY_CHANGE_PRICE.name:
|
|
|
84
|
+ this.$router.push({
|
|
|
85
|
+ path: `/xianyu/order/priceChangeNoEntry/${orderCode}.html`
|
|
|
86
|
+ });
|
|
|
87
|
+ break;
|
|
|
88
|
+ // 入住商家
|
|
|
89
|
+ case orderActionsMap.STORAGE_MANAGE:
|
|
|
90
|
+ this.$router.push({
|
|
|
91
|
+ path: `/xianyu/order/priceChangeEntry/${productId}.html`
|
|
|
92
|
+ });
|
|
|
93
|
+ break;
|
|
|
94
|
+
|
|
|
95
|
+ // 取消订单 | 不卖了
|
73
|
case orderActionsMap.NOT_SOLD.name:
|
96
|
case orderActionsMap.NOT_SOLD.name:
|
74
|
case orderActionsMap.CANCEL_ORDER.name:
|
97
|
case orderActionsMap.CANCEL_ORDER.name:
|
75
|
const confirmInfo = await this.cancelTradeConfirmInfo({
|
98
|
const confirmInfo = await this.cancelTradeConfirmInfo({
|
|
@@ -110,6 +133,7 @@ export default { |
|
@@ -110,6 +133,7 @@ export default { |
110
|
}
|
133
|
}
|
111
|
).show();
|
134
|
).show();
|
112
|
break;
|
135
|
break;
|
|
|
136
|
+
|
113
|
default:
|
137
|
default:
|
114
|
return;
|
138
|
return;
|
115
|
}
|
139
|
}
|