Authored by lea guo

订单操作

@@ -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 }
@@ -85,11 +85,7 @@ export const orderActionsMap = { @@ -85,11 +85,7 @@ export const orderActionsMap = {
85 name: 'SHOW_EXPRESS', 85 name: 'SHOW_EXPRESS',
86 text: '查看物流', 86 text: '查看物流',
87 }, 87 },
88 - CONFIRM_DELIVERY: {  
89 - code: 'confirm_delivery',  
90 - name: 'CONFIRM_DELIVERY',  
91 - text: '确认收货',  
92 - }, 88 +
93 SOLD_AGAIN: { 89 SOLD_AGAIN: {
94 code: 'sold_again', 90 code: 'sold_again',
95 name: 'SOLD_AGAIN', 91 name: 'SOLD_AGAIN',
@@ -106,19 +102,32 @@ export const orderActionsMap = { @@ -106,19 +102,32 @@ export const orderActionsMap = {
106 name: 'PAY_EARNESTMONEY', 102 name: 'PAY_EARNESTMONEY',
107 text: '支付保证金', 103 text: '支付保证金',
108 }, 104 },
  105 +
  106 + CANCEL_ORDER: {
  107 + code: 'cancel_order',
  108 + name: 'CANCEL_ORDER',
  109 + text: '取消订单',
  110 + },
  111 +
109 NOT_ENTRY_CHANGE_PRICE: { 112 NOT_ENTRY_CHANGE_PRICE: {
110 code: 'not_entry_change_price', 113 code: 'not_entry_change_price',
111 name: 'NOT_ENTRY_CHANGE_PRICE', 114 name: 'NOT_ENTRY_CHANGE_PRICE',
112 text: '调价', 115 text: '调价',
113 }, 116 },
114 - CANCEL_ORDER: {  
115 - code: 'cancel_order',  
116 - name: 'CANCEL_ORDER',  
117 - text: '取消订单', 117 + STORAGE_MANAGE: {
  118 + code: 'storage_manage',
  119 + name: 'STORAGE_MANAGE',
  120 + text: '管理库存',
118 }, 121 },
  122 +
119 NOW_BUY: { 123 NOW_BUY: {
120 code: 'now_buy', 124 code: 'now_buy',
121 name: 'NOW_BUY', 125 name: 'NOW_BUY',
122 text: '立即支付', 126 text: '立即支付',
123 }, 127 },
  128 + CONFIRM_DELIVERY: {
  129 + code: 'confirm_delivery',
  130 + name: 'CONFIRM_DELIVERY',
  131 + text: '确认收货',
  132 + },
124 }; 133 };