Showing
3 changed files
with
30 additions
and
8 deletions
@@ -33,8 +33,15 @@ | @@ -33,8 +33,15 @@ | ||
33 | <td :rowspan="item.returnedGoodsListBoArray.length">退货</td> | 33 | <td :rowspan="item.returnedGoodsListBoArray.length">退货</td> |
34 | <td :rowspan="item.returnedGoodsListBoArray.length">{{ shopStatus[item.shopStatus] || '无' }}</td> | 34 | <td :rowspan="item.returnedGoodsListBoArray.length">{{ shopStatus[item.shopStatus] || '无' }}</td> |
35 | <td :rowspan="item.returnedGoodsListBoArray.length"> | 35 | <td :rowspan="item.returnedGoodsListBoArray.length"> |
36 | - <i-button type="default" size="small" @click="goToDetail(item.id, item.orderCode)">查看订单</i-button> | ||
37 | - <i-button type="primary" size="small" @click="goToHandle(item.id, item.orderCode)">处理</i-button> | 36 | + <i-button type="default" @click="goToDetail(item.id, item.orderCode, item.shopStatus)"> |
37 | + 查看订单 | ||
38 | + </i-button> | ||
39 | + <template v-if="item.shopStatus >= 24"> | ||
40 | + <i-button type="default" @click="goToHandle(item.id, item.orderCode)">查看售后详情</i-button> | ||
41 | + </template> | ||
42 | + <template v-else> | ||
43 | + <i-button type="primary" @click="goToHandle(item.id, item.orderCode)">处理</i-button> | ||
44 | + </template> | ||
38 | </td> | 45 | </td> |
39 | </template> | 46 | </template> |
40 | </tr> | 47 | </tr> |
@@ -66,13 +73,14 @@ export default { | @@ -66,13 +73,14 @@ export default { | ||
66 | }; | 73 | }; |
67 | }, | 74 | }, |
68 | methods: { | 75 | methods: { |
69 | - goToDetail(operateId, code) { | 76 | + goToDetail(operateId, code, status) { |
70 | this.$router.push({ | 77 | this.$router.push({ |
71 | name: 'order.returned.detail', | 78 | name: 'order.returned.detail', |
72 | params: {}, | 79 | params: {}, |
73 | query: { | 80 | query: { |
74 | id: operateId, | 81 | id: operateId, |
75 | orderCode: code, | 82 | orderCode: code, |
83 | + shopStatus: status, | ||
76 | }, | 84 | }, |
77 | }); | 85 | }); |
78 | }, | 86 | }, |
@@ -116,6 +124,10 @@ table.order-table { | @@ -116,6 +124,10 @@ table.order-table { | ||
116 | margin-left: 10px; | 124 | margin-left: 10px; |
117 | margin-right: 20px; | 125 | margin-right: 20px; |
118 | } | 126 | } |
127 | + button { | ||
128 | + margin: 2px; | ||
129 | + padding: 5px 0 5px 5px; | ||
130 | + } | ||
119 | } | 131 | } |
120 | td:last-child { | 132 | td:last-child { |
121 | border-right: 1px solid #cccccc; | 133 | border-right: 1px solid #cccccc; |
@@ -4,9 +4,16 @@ | @@ -4,9 +4,16 @@ | ||
4 | <div class="ivu-card-head"> | 4 | <div class="ivu-card-head"> |
5 | <p slot="title" style="height: 35px"> | 5 | <p slot="title" style="height: 35px"> |
6 | 当前订单状态:{{ orderStatus[orderInfo.orderStatus] }} | 6 | 当前订单状态:{{ orderStatus[orderInfo.orderStatus] }} |
7 | - <i-button size="large" type="success" style="margin-left: 50px;" @click="goToHandle(id, orderCode)"> | ||
8 | - 去处理 | ||
9 | - </i-button> | 7 | + <template v-if="shopStatus < 24"> |
8 | + <i-button size="large" type="primary" style="margin-left: 50px;" @click="goToHandle(id, orderCode)"> | ||
9 | + 去处理 | ||
10 | + </i-button> | ||
11 | + </template> | ||
12 | + <template v-else> | ||
13 | + <i-button size="large" type="default" style="margin-left: 50px;" @click="goToHandle(id, orderCode)"> | ||
14 | + 查看售后详情 | ||
15 | + </i-button> | ||
16 | + </template> | ||
10 | </p> | 17 | </p> |
11 | </div> | 18 | </div> |
12 | </div> | 19 | </div> |
@@ -42,6 +49,7 @@ export default { | @@ -42,6 +49,7 @@ export default { | ||
42 | return { | 49 | return { |
43 | orderCode: this.$route.query.orderCode, | 50 | orderCode: this.$route.query.orderCode, |
44 | id: this.$route.query.id, | 51 | id: this.$route.query.id, |
52 | + shopStatus: this.$route.query.shopStatus, | ||
45 | orderStatus: OrderConfig.orderStatus, | 53 | orderStatus: OrderConfig.orderStatus, |
46 | feeSharingType: OrderConfig.feeSharingType, | 54 | feeSharingType: OrderConfig.feeSharingType, |
47 | orderInfo: [], | 55 | orderInfo: [], |
@@ -11,7 +11,7 @@ | @@ -11,7 +11,7 @@ | ||
11 | <i-col span="4">退货状态:{{ returnedGoodsShopStatus[returnedInfo.shopStatus] }}</i-col> | 11 | <i-col span="4">退货状态:{{ returnedGoodsShopStatus[returnedInfo.shopStatus] }}</i-col> |
12 | </Row> | 12 | </Row> |
13 | <Row> | 13 | <Row> |
14 | - <i-col span="4">退款总金额:{{ returnedInfo.realReturnedAmount }}</i-col> | 14 | + <i-col span="4">退款总金额:{{ returnTotalAmount }}</i-col> |
15 | <i-col span="4"> | 15 | <i-col span="4"> |
16 | 退款成功时间:<span v-if="returnedInfo.refundTime">{{ returnedInfo.refundTime | timeFormat }}</span> | 16 | 退款成功时间:<span v-if="returnedInfo.refundTime">{{ returnedInfo.refundTime | timeFormat }}</span> |
17 | </i-col> | 17 | </i-col> |
@@ -24,7 +24,7 @@ | @@ -24,7 +24,7 @@ | ||
24 | <returned-goods-info | 24 | <returned-goods-info |
25 | :table-data="returnGoods" | 25 | :table-data="returnGoods" |
26 | :returned-reason="returnedReasonArr" | 26 | :returned-reason="returnedReasonArr" |
27 | - :returned-amount="returnedInfo.realReturnedAmount" | 27 | + :returned-amount="returnTotalAmount" |
28 | > | 28 | > |
29 | </returned-goods-info> | 29 | </returned-goods-info> |
30 | <div class="ivu-card"> | 30 | <div class="ivu-card"> |
@@ -93,6 +93,7 @@ export default { | @@ -93,6 +93,7 @@ export default { | ||
93 | expressName: '', | 93 | expressName: '', |
94 | expressId: 0, | 94 | expressId: 0, |
95 | returnedGoodsShopStatus: OrderConfig.returnedGoodsShopStatus, | 95 | returnedGoodsShopStatus: OrderConfig.returnedGoodsShopStatus, |
96 | + returnTotalAmount: 0, | ||
96 | }; | 97 | }; |
97 | }, | 98 | }, |
98 | created() { | 99 | created() { |
@@ -110,6 +111,7 @@ export default { | @@ -110,6 +111,7 @@ export default { | ||
110 | getReturnedInfo() { | 111 | getReturnedInfo() { |
111 | this.returnedService.getReturnedInfo({ id: +this.id }).then(ret => { | 112 | this.returnedService.getReturnedInfo({ id: +this.id }).then(ret => { |
112 | this.returnedInfo = _.get(ret, 'data', []); | 113 | this.returnedInfo = _.get(ret, 'data', []); |
114 | + this.returnTotalAmount = this.returnedInfo.realReturnedAmount + this.returnedInfo.returnShippingCost; | ||
113 | }); | 115 | }); |
114 | }, | 116 | }, |
115 | //获取订单详情 | 117 | //获取订单详情 |
-
Please register or login to post a comment