|
|
@@ -982,6 +982,8 @@
|
|
|
size: limit
|
|
|
});
|
|
|
console.log('data------', data);
|
|
|
+ data = data || {};
|
|
|
+ data.list = Array.isArray(data.list) ? data.list : [];
|
|
|
data.list = data.list.map(item => {
|
|
|
// 入库计量数量不会随出库变化,可用数量使用当前批次库存余额计算
|
|
|
const inventoryBalance = Number(item.availableCountBase) || 0;
|
|
|
@@ -1309,12 +1311,10 @@
|
|
|
queryReset() {
|
|
|
this.query = {};
|
|
|
this.page = 1;
|
|
|
- this.getProductList();
|
|
|
this.reload();
|
|
|
},
|
|
|
querySearch() {
|
|
|
this.page = 1;
|
|
|
- this.getProductList();
|
|
|
this.reload();
|
|
|
},
|
|
|
//获取工厂列表
|
|
|
@@ -1376,7 +1376,6 @@
|
|
|
this.inFreightList = []; // 调入货位列表
|
|
|
}
|
|
|
console.log('this.params------~~~', this.params);
|
|
|
- await this.getProductList();
|
|
|
await this.reload();
|
|
|
},
|
|
|
outCargoAreaChange(val) {
|
|
|
@@ -1392,7 +1391,6 @@
|
|
|
this.params.outFreightId = ''; // 调出货位
|
|
|
this.params.outFreightName = '';
|
|
|
this.outFreightList = []; // 调出货位列表
|
|
|
- this.getProductList();
|
|
|
this.reload();
|
|
|
},
|
|
|
outShelvesChange(val) {
|
|
|
@@ -1405,14 +1403,12 @@
|
|
|
this.productList = [];
|
|
|
this.params.outFreightId = ''; // 调出货位
|
|
|
this.params.outFreightName = '';
|
|
|
- this.getProductList();
|
|
|
this.reload();
|
|
|
},
|
|
|
outFreightIdChange(val) {
|
|
|
this.params.outFreightName = this.outFreightList.filter(
|
|
|
(item) => item.id == val
|
|
|
)[0].name;
|
|
|
- this.getProductList();
|
|
|
this.reload();
|
|
|
},
|
|
|
inWarehouseChange(val) {
|
|
|
@@ -1487,7 +1483,6 @@
|
|
|
console.log(this.$refs.outTree.getNodeByValue(val));
|
|
|
let obj = this.$refs.outTree.getNodeByValue(val);
|
|
|
this.currentObj = obj;
|
|
|
- this.getProductList();
|
|
|
this.reload();
|
|
|
},
|
|
|
// 调入区域改变
|
|
|
@@ -1495,7 +1490,6 @@
|
|
|
let obj = this.$refs.outTree.getNodeByValue(val);
|
|
|
},
|
|
|
handledime() {
|
|
|
- this.getProductList();
|
|
|
this.reload();
|
|
|
this.selection=[]
|
|
|
this.selectionIds = []
|