|
@@ -2,10 +2,10 @@ |
|
@@ -2,10 +2,10 @@ |
2
|
<LayoutApp :title="title">
|
2
|
<LayoutApp :title="title">
|
3
|
<div class="order-page">
|
3
|
<div class="order-page">
|
4
|
<div class="product">
|
4
|
<div class="product">
|
5
|
- <ImgSize class="pro-img" :src="noEntryOrderInfo.goodsInfo.goodImg || ''" :width="200" :height="200"></ImgSize>
|
5
|
+ <ImgSize class="pro-img" :src="goodsInfo.goodImg || ''" :width="200" :height="200"></ImgSize>
|
6
|
<div class="pro-info">
|
6
|
<div class="pro-info">
|
7
|
- <p class="pro-name">{{noEntryOrderInfo.goodsInfo.colorName}}, {{noEntryOrderInfo.goodsInfo.sizeName}}码</p>
|
|
|
8
|
- <p class="stock-info ufo-font">最低售价: ¥{{noEntryOrderInfo.goodsInfo.leastPrice || noEntryOrderInfo.goodsInfo.price}}</p>
|
7
|
+ <p class="pro-name">{{goodsInfo.colorName}}, {{goodsInfo.sizeName}}码</p>
|
|
|
8
|
+ <p class="stock-info ufo-font">最低售价: ¥{{goodsInfo.leastPrice || '-'}}</p>
|
9
|
</div>
|
9
|
</div>
|
10
|
</div>
|
10
|
</div>
|
11
|
<div class="input-container">
|
11
|
<div class="input-container">
|
|
@@ -37,12 +37,12 @@ |
|
@@ -37,12 +37,12 @@ |
37
|
<i class="iconfont iconaddress"></i>
|
37
|
<i class="iconfont iconaddress"></i>
|
38
|
</div>
|
38
|
</div>
|
39
|
<div class="address-info">
|
39
|
<div class="address-info">
|
40
|
- <p class="user-name">{{noEntryOrderInfo.userAddress.consignee}}</p>
|
40
|
+ <p class="user-name">{{userAddress.consignee}}</p>
|
41
|
<p class="user-address">
|
41
|
<p class="user-address">
|
42
|
- {{noEntryOrderInfo.userAddress.area}} {{noEntryOrderInfo.userAddress.address}}
|
42
|
+ {{userAddress.area}} {{userAddress.address}}
|
43
|
</p>
|
43
|
</p>
|
44
|
<p class="user-phone">
|
44
|
<p class="user-phone">
|
45
|
- {{noEntryOrderInfo.userAddress.mobile}}
|
45
|
+ {{userAddress.mobile}}
|
46
|
</p>
|
46
|
</p>
|
47
|
</div>
|
47
|
</div>
|
48
|
</div>
|
48
|
</div>
|
|
@@ -95,7 +95,7 @@ import Modal from './components/modal'; |
|
@@ -95,7 +95,7 @@ import Modal from './components/modal'; |
95
|
import OrderCheck from '../components/confirm/agree';
|
95
|
import OrderCheck from '../components/confirm/agree';
|
96
|
|
96
|
|
97
|
const {mapState, mapActions} = createNamespacedHelpers('order/priceChange');
|
97
|
const {mapState, mapActions} = createNamespacedHelpers('order/priceChange');
|
98
|
-
|
98
|
+// orderCode = 1233499619151
|
99
|
export default {
|
99
|
export default {
|
100
|
name: 'noEntryDetail',
|
100
|
name: 'noEntryDetail',
|
101
|
components: {OrderCheck, Modal, InputUfo, ScrollView, LayoutApp, ImgSize, Checkbox},
|
101
|
components: {OrderCheck, Modal, InputUfo, ScrollView, LayoutApp, ImgSize, Checkbox},
|
|
@@ -132,7 +132,13 @@ export default { |
|
@@ -132,7 +132,13 @@ export default { |
132
|
// this.inputChange = debounce(this.onChange.bind(this), 500);
|
132
|
// this.inputChange = debounce(this.onChange.bind(this), 500);
|
133
|
},
|
133
|
},
|
134
|
computed: {
|
134
|
computed: {
|
135
|
- ...mapState(['noEntryOrderInfo'])
|
135
|
+ ...mapState(['noEntryOrderInfo']),
|
|
|
136
|
+ goodsInfo() {
|
|
|
137
|
+ return this.noEntryOrderInfo.goodsInfo || {};
|
|
|
138
|
+ },
|
|
|
139
|
+ userAddress() {
|
|
|
140
|
+ return this.noEntryOrderInfo.userAddress || {};
|
|
|
141
|
+ }
|
136
|
},
|
142
|
},
|
137
|
watch: {
|
143
|
watch: {
|
138
|
chgPrice() {
|
144
|
chgPrice() {
|
|
@@ -188,7 +194,7 @@ export default { |
|
@@ -188,7 +194,7 @@ export default { |
188
|
onCancel: () => {
|
194
|
onCancel: () => {
|
189
|
this.onPriceChangeConfirm({
|
195
|
this.onPriceChangeConfirm({
|
190
|
price: this.chgPrice,
|
196
|
price: this.chgPrice,
|
191
|
- skup: this.noEntryOrderInfo.goodsInfo.skup
|
197
|
+ skup: this.goodsInfo.skup
|
192
|
});
|
198
|
});
|
193
|
}
|
199
|
}
|
194
|
|
200
|
|
|
@@ -198,7 +204,7 @@ export default { |
|
@@ -198,7 +204,7 @@ export default { |
198
|
async calcPrice(price) {
|
204
|
async calcPrice(price) {
|
199
|
const result = await this.postNoEntryCalcPrice({
|
205
|
const result = await this.postNoEntryCalcPrice({
|
200
|
price: price,
|
206
|
price: price,
|
201
|
- skup: this.noEntryOrderInfo.goodsInfo.skup
|
207
|
+ skup: this.goodsInfo.skup
|
202
|
});
|
208
|
});
|
203
|
|
209
|
|
204
|
console.log(result);
|
210
|
console.log(result);
|
|
@@ -259,6 +265,18 @@ export default { |
|
@@ -259,6 +265,18 @@ export default { |
259
|
orderCode: result.data.orderCode,
|
265
|
orderCode: result.data.orderCode,
|
260
|
price: price,
|
266
|
price: price,
|
261
|
desc: '保证金',
|
267
|
desc: '保证金',
|
|
|
268
|
+ extra: JSON.stringify({
|
|
|
269
|
+ type: 'sell',
|
|
|
270
|
+ back: {
|
|
|
271
|
+ name: 'InSaleOrderList'
|
|
|
272
|
+ },
|
|
|
273
|
+ forward: {
|
|
|
274
|
+ name: 'SellPayOk',
|
|
|
275
|
+ query: {
|
|
|
276
|
+ orderCode: result.data.orderCode
|
|
|
277
|
+ }
|
|
|
278
|
+ }
|
|
|
279
|
+ }),
|
262
|
onCloseAction() {
|
280
|
onCloseAction() {
|
263
|
that.clearData();
|
281
|
that.clearData();
|
264
|
that.$router.replace({
|
282
|
that.$router.replace({
|
|
@@ -279,6 +297,7 @@ export default { |
|
@@ -279,6 +297,7 @@ export default { |
279
|
// console.log(result);
|
297
|
// console.log(result);
|
280
|
},
|
298
|
},
|
281
|
clearData() { // 清空数据状态
|
299
|
clearData() { // 清空数据状态
|
|
|
300
|
+ console.log(this.$router);
|
282
|
this.platformFeeModalVisible = false;
|
301
|
this.platformFeeModalVisible = false;
|
283
|
this.platformFee = {
|
302
|
this.platformFee = {
|
284
|
amount: '-¥0',
|
303
|
amount: '-¥0',
|