|
|
@@ -786,7 +786,8 @@
|
|
|
return {
|
|
|
...item,
|
|
|
packingCountBase:
|
|
|
- dimension == 4 || dimension == 3 ? 1 : item.packingCountBase
|
|
|
+ dimension == 4 || dimension == 3 ? 1 : item.packingCountBase,
|
|
|
+ weight: 0
|
|
|
};
|
|
|
});
|
|
|
//物料维度数据
|
|
|
@@ -808,6 +809,7 @@
|
|
|
this.wlParams.realTimeInventoryNewPOList.forEach((item) => {
|
|
|
item.inventoryDetailsNewPOList = item.inventoryDetailsVOList;
|
|
|
item.inventoryDetailsNewPOList.forEach((ite) => {
|
|
|
+ ite.weight = 0;
|
|
|
ite.outInMaterialDetailsAddPOList = ite.materialDetailsVOList;
|
|
|
});
|
|
|
});
|
|
|
@@ -830,7 +832,8 @@
|
|
|
this.batchDetailsVOList = packArr.map((item) => {
|
|
|
return {
|
|
|
...item,
|
|
|
- packingCountBase: dimension == 3 ? 1 : item.packingCountBase
|
|
|
+ packingCountBase: dimension == 3 ? 1 : item.packingCountBase,
|
|
|
+ weight: 0
|
|
|
};
|
|
|
});
|
|
|
//物料维度数据
|
|
|
@@ -852,6 +855,7 @@
|
|
|
this.wlParams.realTimeInventoryNewPOList.forEach((item) => {
|
|
|
item.inventoryDetailsNewPOList = item.inventoryDetailsVOList;
|
|
|
item.inventoryDetailsNewPOList.forEach((ite) => {
|
|
|
+ ite.weight = 0;
|
|
|
ite.outInMaterialDetailsAddPOList = ite.materialDetailsVOList;
|
|
|
});
|
|
|
});
|
|
|
@@ -877,15 +881,15 @@
|
|
|
console.log('2222', obj);
|
|
|
|
|
|
try {
|
|
|
- // const res = await outin.saveNew(obj);
|
|
|
- // if (res.code == 0) {
|
|
|
- // this.$message.success('保存成功!');
|
|
|
- // }
|
|
|
- // this.$router.push('/warehouseManagement/outgoingManagement');
|
|
|
- // if (res?.success) {
|
|
|
- // this.$message.success('保存成功!');
|
|
|
- // this.$router.go(-1);
|
|
|
- // }
|
|
|
+ const res = await outin.saveNew(obj);
|
|
|
+ if (res.code == 0) {
|
|
|
+ this.$message.success('保存成功!');
|
|
|
+ }
|
|
|
+ this.$router.push('/warehouseManagement/outgoingManagement');
|
|
|
+ if (res?.success) {
|
|
|
+ this.$message.success('保存成功!');
|
|
|
+ this.$router.go(-1);
|
|
|
+ }
|
|
|
this.saveLoading = false;
|
|
|
} catch (error) {
|
|
|
this.saveLoading = false;
|