Showing
5 changed files
with
16 additions
and
17 deletions
@@ -43,7 +43,6 @@ export default { | @@ -43,7 +43,6 @@ export default { | ||
43 | const isOk = await this.deleteOrder({ | 43 | const isOk = await this.deleteOrder({ |
44 | orderCode, | 44 | orderCode, |
45 | owner, | 45 | owner, |
46 | - status | ||
47 | }); | 46 | }); |
48 | 47 | ||
49 | if (isOk) { | 48 | if (isOk) { |
@@ -53,7 +52,7 @@ export default { | @@ -53,7 +52,7 @@ export default { | ||
53 | this.filterOrderList({ | 52 | this.filterOrderList({ |
54 | orderCode, | 53 | orderCode, |
55 | owner, | 54 | owner, |
56 | - status | 55 | + status, |
57 | }); | 56 | }); |
58 | } | 57 | } |
59 | } | 58 | } |
@@ -124,8 +123,8 @@ export default { | @@ -124,8 +123,8 @@ export default { | ||
124 | } | 123 | } |
125 | this.$createOrderPayType({ | 124 | this.$createOrderPayType({ |
126 | orderCode, | 125 | orderCode, |
127 | - price: parseFloat(price || ''), | ||
128 | - desc: '', | 126 | + price: parseFloat(price || '').toFixed(2), |
127 | + desc: '金额', | ||
129 | extra: JSON.stringify({ | 128 | extra: JSON.stringify({ |
130 | back: { | 129 | back: { |
131 | name: pageBackName, | 130 | name: pageBackName, |
@@ -142,7 +141,7 @@ export default { | @@ -142,7 +141,7 @@ export default { | ||
142 | case orderActionsMap.PAY_DEPOSIT.name: { | 141 | case orderActionsMap.PAY_DEPOSIT.name: { |
143 | this.$createOrderPayType({ | 142 | this.$createOrderPayType({ |
144 | orderCode, | 143 | orderCode, |
145 | - price: parseFloat(bidDepositInfo.depositAmount), | 144 | + price: parseFloat(bidDepositInfo.depositAmount).toFixed(2), |
146 | desc: '支付定金', | 145 | desc: '支付定金', |
147 | extra: JSON.stringify({ | 146 | extra: JSON.stringify({ |
148 | forward: { | 147 | forward: { |
@@ -63,7 +63,7 @@ export default { | @@ -63,7 +63,7 @@ export default { | ||
63 | 63 | ||
64 | this.$createOrderPayType({ | 64 | this.$createOrderPayType({ |
65 | orderCode, | 65 | orderCode, |
66 | - price: earnestMoney, | 66 | + price: parseFloat(`${earnestMoney}`).toFixed(2), |
67 | desc: '保证金', | 67 | desc: '保证金', |
68 | 68 | ||
69 | // 支付成功会跳route | 69 | // 支付成功会跳route |
@@ -84,7 +84,7 @@ export default function() { | @@ -84,7 +84,7 @@ export default function() { | ||
84 | actions: { | 84 | actions: { |
85 | async fetchEntryOrderList({ dispatch, commit, state: { entryOrder } }) { | 85 | async fetchEntryOrderList({ dispatch, commit, state: { entryOrder } }) { |
86 | const { page } = entryOrder; | 86 | const { page } = entryOrder; |
87 | - const res = await this.$api.get('/api/ufo/seller/entryPrdList', { | 87 | + const res = await this.$api.post('/api/ufo/seller/entryPrdList', { |
88 | page, | 88 | page, |
89 | 89 | ||
90 | // TODO 注释type含义 | 90 | // TODO 注释type含义 |
@@ -104,7 +104,7 @@ export default function() { | @@ -104,7 +104,7 @@ export default function() { | ||
104 | }, | 104 | }, |
105 | async fetchNotEntryOrderList({ commit, state: { notEntryOrder } }) { | 105 | async fetchNotEntryOrderList({ commit, state: { notEntryOrder } }) { |
106 | const { page } = notEntryOrder; | 106 | const { page } = notEntryOrder; |
107 | - const res = await this.$api.get('/api/ufo/seller/notEntryPrdList', { | 107 | + const res = await this.$api.post('/api/ufo/seller/notEntryPrdList', { |
108 | page, | 108 | page, |
109 | type: 1, | 109 | type: 1, |
110 | }); | 110 | }); |
@@ -30,7 +30,7 @@ export default function() { | @@ -30,7 +30,7 @@ export default function() { | ||
30 | * } | 30 | * } |
31 | */ | 31 | */ |
32 | async fetchOrderDetail({ commit }, { owner, code } = {}) { | 32 | async fetchOrderDetail({ commit }, { owner, code } = {}) { |
33 | - const res = await this.$api.get('/api/order/detail', { | 33 | + const res = await this.$api.post('/api/order/detail', { |
34 | tabType: owner, | 34 | tabType: owner, |
35 | orderCode: +code, | 35 | orderCode: +code, |
36 | }); | 36 | }); |
@@ -18,7 +18,7 @@ export default function() { | @@ -18,7 +18,7 @@ export default function() { | ||
18 | * @returns ts ILogisticsInfo | 18 | * @returns ts ILogisticsInfo |
19 | */ | 19 | */ |
20 | async fetchLogisticInfo({ commit }, { owner, code } = {}) { | 20 | async fetchLogisticInfo({ commit }, { owner, code } = {}) { |
21 | - const res = await this.$api.get('/api/order/express', { | 21 | + const res = await this.$api.post('/api/order/express', { |
22 | tabType: owner, | 22 | tabType: owner, |
23 | orderCode: +code, | 23 | orderCode: +code, |
24 | }); | 24 | }); |
@@ -27,17 +27,17 @@ export default function() { | @@ -27,17 +27,17 @@ export default function() { | ||
27 | commit('initData', res.data); | 27 | commit('initData', res.data); |
28 | } | 28 | } |
29 | }, | 29 | }, |
30 | - async flawReject({commit}, {orderCode} = {}) { | 30 | + async flawReject(_, { orderCode } = {}) { |
31 | return this.$api.get('/api/order/flawreject', { | 31 | return this.$api.get('/api/order/flawreject', { |
32 | - orderCode | ||
33 | - }) | 32 | + orderCode, |
33 | + }); | ||
34 | }, | 34 | }, |
35 | 35 | ||
36 | - async flawAccept({commit}, {orderCode} = {}) { | 36 | + async flawAccept(_, { orderCode } = {}) { |
37 | return this.$api.get('/api/order/flawaccept', { | 37 | return this.$api.get('/api/order/flawaccept', { |
38 | - orderCode | ||
39 | - }) | ||
40 | - } | 38 | + orderCode, |
39 | + }); | ||
40 | + }, | ||
41 | }, | 41 | }, |
42 | }; | 42 | }; |
43 | } | 43 | } |
-
Please register or login to post a comment