|
@@ -338,9 +338,9 @@
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="item in categoryList"
|
|
|
- :key="item.name"
|
|
|
+ :key="item.id"
|
|
|
:label="item.name"
|
|
|
- :value="item.name"
|
|
|
+ :value="item.id"
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
@@ -682,7 +682,11 @@ export default {
|
|
|
// data.orders.forEach(item => {
|
|
|
// item.orderId = item.id;
|
|
|
// })
|
|
|
+ if (data.orders.length) {
|
|
|
+ this.screenForm.type = data.orders[0].categoryId
|
|
|
+ }
|
|
|
this.goodsList = data.orders
|
|
|
+
|
|
|
})
|
|
|
},
|
|
|
|
|
@@ -748,6 +752,7 @@ export default {
|
|
|
|
|
|
// 获取商品列表
|
|
|
getGoodsList() {
|
|
|
+ const categoryName = this.categoryList.find(k=>k.id == this.screenForm.type )?.name || ''
|
|
|
getEnginGoodsList({
|
|
|
pageNum: this.currentPage,
|
|
|
pageSize: 10,
|
|
@@ -758,7 +763,7 @@ export default {
|
|
|
startTime: this.screenForm.date ? this.screenForm.date[0] : '',
|
|
|
endTime: this.screenForm.date ? this.screenForm.date[1] : '',
|
|
|
correspondId: this.screenForm.warehouse,
|
|
|
- categoryName: this.screenForm.type
|
|
|
+ categoryName
|
|
|
}).then(res => {
|
|
|
let oldGoodsList = this.goodsList
|
|
|
let newGoodsList = res.data.records
|
|
@@ -931,8 +936,12 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
let correspondName = this.warehouseList[findElem(this.warehouseList, 'id', this.screenForm.warehouse)].name
|
|
|
+ this.goodsList.forEach(k=>{
|
|
|
+ k.categoryId = this.goodsList[0].categoryId
|
|
|
+ k.categoryName = this.goodsList[0].categoryName
|
|
|
+
|
|
|
+ })
|
|
|
let params = {
|
|
|
// orderTime: this.mainForm.orderDate + ' 00:00:00',
|
|
|
refEnginRecordNo: this.mainForm.loginNum,
|