|
@@ -1217,14 +1217,14 @@
|
|
|
this.$set(this.productList[index], 'warehouseId', res[0].id);
|
|
this.$set(this.productList[index], 'warehouseId', res[0].id);
|
|
|
this.$set(this.productList[index], 'warehouseName', name);
|
|
this.$set(this.productList[index], 'warehouseName', name);
|
|
|
|
|
|
|
|
- let aaa = [];
|
|
|
|
|
- aaa.push({
|
|
|
|
|
|
|
+ let table1 = [];
|
|
|
|
|
+ table1.push({
|
|
|
packingQuantity: row.packingQuantity,
|
|
packingQuantity: row.packingQuantity,
|
|
|
warehouseName: name,
|
|
warehouseName: name,
|
|
|
warehouseId: res[0].id
|
|
warehouseId: res[0].id
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- this.AAAAAA(aaa, index);
|
|
|
|
|
|
|
+ this.wareHouseSelection(table1, index);
|
|
|
} else {
|
|
} else {
|
|
|
this.$set(this.productList[index], 'warehouseId', '');
|
|
this.$set(this.productList[index], 'warehouseId', '');
|
|
|
this.$set(this.productList[index], 'warehouseName', '');
|
|
this.$set(this.productList[index], 'warehouseName', '');
|
|
@@ -1261,53 +1261,6 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- AAAAAA(argum, idx) {
|
|
|
|
|
- let warehouseIds = [];
|
|
|
|
|
- let warehouseNames = [];
|
|
|
|
|
- argum.forEach((item) => {
|
|
|
|
|
- for (let index = 0; index < item.packingQuantity; index++) {
|
|
|
|
|
- warehouseIds.push(item.warehouseId);
|
|
|
|
|
- warehouseNames.push(item.warehouseName);
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- console.log(warehouseIds);
|
|
|
|
|
- console.log(warehouseNames);
|
|
|
|
|
- console.log(argum, 'argumargumargumargumargumargum');
|
|
|
|
|
- console.log(idx, 'idxidxidxidxidxidx');
|
|
|
|
|
- if (idx > -1) {
|
|
|
|
|
- this.$set(
|
|
|
|
|
- this.productList[idx],
|
|
|
|
|
- 'warehouseId',
|
|
|
|
|
- argum.map((item) => item.warehouseId).join(',')
|
|
|
|
|
- );
|
|
|
|
|
- this.$set(
|
|
|
|
|
- this.productList[idx],
|
|
|
|
|
- 'warehouseName',
|
|
|
|
|
- argum.map((item) => item.warehouseName).join(',')
|
|
|
|
|
- );
|
|
|
|
|
- this.$set(this.productList[idx], 'warehouseIds', warehouseIds);
|
|
|
|
|
- this.$set(this.productList[idx], 'warehouseNames', warehouseNames);
|
|
|
|
|
- } else {
|
|
|
|
|
- this.productList.map((item, index) => {
|
|
|
|
|
- this.$set(
|
|
|
|
|
- this.productList[index],
|
|
|
|
|
- 'warehouseId',
|
|
|
|
|
- argum.map((item) => item.warehouseId).join(',')
|
|
|
|
|
- );
|
|
|
|
|
- this.$set(
|
|
|
|
|
- this.productList[index],
|
|
|
|
|
- 'warehouseName',
|
|
|
|
|
- argum.map((item) => item.warehouseName).join(',')
|
|
|
|
|
- );
|
|
|
|
|
- this.$set(this.productList[index], 'warehouseIds', warehouseIds);
|
|
|
|
|
- this.$set(
|
|
|
|
|
- this.productList[index],
|
|
|
|
|
- 'warehouseNames',
|
|
|
|
|
- warehouseNames
|
|
|
|
|
- );
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
async outboundRequisitionSelection(data, dimension, query) {
|
|
async outboundRequisitionSelection(data, dimension, query) {
|
|
|
console.log('data-----------', data);
|
|
console.log('data-----------', data);
|
|
|
console.log('query-----------', query);
|
|
console.log('query-----------', query);
|
|
@@ -2642,8 +2595,6 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
wareHouseSelection(argum, idx) {
|
|
wareHouseSelection(argum, idx) {
|
|
|
- console.log(argum);
|
|
|
|
|
- console.log(idx);
|
|
|
|
|
// 方便包装遍历获取仓库id和名称
|
|
// 方便包装遍历获取仓库id和名称
|
|
|
let warehouseIds = [];
|
|
let warehouseIds = [];
|
|
|
let warehouseNames = [];
|
|
let warehouseNames = [];
|
|
@@ -2653,8 +2604,6 @@
|
|
|
warehouseNames.push(item.warehouseName);
|
|
warehouseNames.push(item.warehouseName);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
- console.log(warehouseIds);
|
|
|
|
|
- console.log(warehouseNames);
|
|
|
|
|
console.log(argum, 'argumargumargumargumargumargum');
|
|
console.log(argum, 'argumargumargumargumargumargum');
|
|
|
if (idx > -1) {
|
|
if (idx > -1) {
|
|
|
this.$set(
|
|
this.$set(
|