|
|
|
@ -40,7 +40,6 @@
|
|
|
|
|
:value="item.dictKey">{{item.dictValue}}  |
|
|
|
|
</el-radio> |
|
|
|
|
</el-radio-group> |
|
|
|
|
<!-- :label="item.dictValue"--> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
|
|
|
|
@ -83,16 +82,9 @@
|
|
|
|
|
</el-radio-group> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-row> |
|
|
|
|
|
|
|
|
|
<el-row> |
|
|
|
|
<!-- <el-col :span="10">--> |
|
|
|
|
<!-- <el-form-item label="到付运费:" prop="collectFee" label-width="100px">--> |
|
|
|
|
<!-- <el-input type="number" v-model="form.collectFee" :disabled="true"/>--> |
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
<!-- </el-col>--> |
|
|
|
|
<el-col :span="10"> |
|
|
|
|
<el-form-item label="待收货款:" prop="collectionFee" label-width="100px"> |
|
|
|
|
<el-input type="number" v-model="form.collectionFee"/> |
|
|
|
@ -599,6 +591,8 @@
|
|
|
|
|
// ], |
|
|
|
|
}, |
|
|
|
|
obj:{}, |
|
|
|
|
// 商场名称, 订单或库存品新增在同一商场下 |
|
|
|
|
marketName: '' |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
created() { |
|
|
|
@ -826,11 +820,12 @@
|
|
|
|
|
} else { |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
return false; |
|
|
|
|
}, |
|
|
|
|
handleAddInventory() { |
|
|
|
|
let page = this.page; |
|
|
|
|
let params = {}; |
|
|
|
|
// params.marketName = this. |
|
|
|
|
if(this.marketName) params.marketName = this.marketName |
|
|
|
|
this.query.serviceType = '2'; |
|
|
|
|
getInventoryList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { |
|
|
|
|
const inventoryList = res.data.data; |
|
|
|
@ -1389,6 +1384,7 @@
|
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
this.query.orderIds = a.join(','); |
|
|
|
|
if(this.marketName) params.mallName = this.marketName |
|
|
|
|
console.log('-------------->', this.query); |
|
|
|
|
selectStockArticleInfoList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { |
|
|
|
|
console.log('res------------>', res); |
|
|
|
@ -1427,25 +1423,13 @@
|
|
|
|
|
getStockArticleList(this.orderIds).then(res => { |
|
|
|
|
console.log(res.data.data); |
|
|
|
|
const data = res.data.data; |
|
|
|
|
let name = ''; |
|
|
|
|
let phone = ''; |
|
|
|
|
let address = ''; |
|
|
|
|
let typeService = ''; |
|
|
|
|
console.log('>>>>>>>>>>>>>', data); |
|
|
|
|
for (let i = 0; i < data.length; i++) { |
|
|
|
|
if (i === 0) { |
|
|
|
|
name = data[0].customerName; |
|
|
|
|
phone = data[0].customerTelephone; |
|
|
|
|
address = data[0].customerAddress; |
|
|
|
|
typeService = data[0].typeService.toString(); |
|
|
|
|
// typeName = data[0].typeName; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
this.form.consignee = name; |
|
|
|
|
this.form.deliveryPhone = phone; |
|
|
|
|
this.form.deliveryType = typeService; |
|
|
|
|
this.form.deliveryAddress = address; |
|
|
|
|
if (data.length === 0) return |
|
|
|
|
this.form.consignee = data[0].customerName || ''; |
|
|
|
|
this.form.deliveryPhone = data[0].customerTelephone || ''; |
|
|
|
|
this.form.deliveryType = data[0].typeService.toString() || ''; |
|
|
|
|
this.form.deliveryAddress = data[0].customerAddress || ''; |
|
|
|
|
this.orderData = data; |
|
|
|
|
if (!this.marketName) this.marketName = data[0].mallName |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
if (this.reservationId) { |
|
|
|
@ -1455,7 +1439,7 @@
|
|
|
|
|
// stockArticleListInfo.forEach(item=>{ |
|
|
|
|
// |
|
|
|
|
// }) |
|
|
|
|
console.log('>>>>>>>>', reservation); |
|
|
|
|
console.log('reservation >>>>>>>>', reservation); |
|
|
|
|
this.orderData = reservation.stockArticleList; |
|
|
|
|
this.inventoryData = reservation.inventoryList; |
|
|
|
|
this.inventoryData.forEach(item => { |
|
|
|
|