|
|
@@ -777,35 +777,34 @@
|
|
|
|
|
|
this.saveLoading = true;
|
|
|
|
|
|
- console.log('明细', this.warehousingMaterialList);
|
|
|
- const categoryLevelId = this.$refs.assetsDialogRef.materialType;
|
|
|
- let newObj = {
|
|
|
- inOutAddPO: {
|
|
|
- ...this.formData,
|
|
|
- ...this.formData.extInfo,
|
|
|
- bizStatus: 2
|
|
|
- },
|
|
|
- warehouseLedgerInfos: this.handelArr(
|
|
|
- this.warehousingMaterialList,
|
|
|
- categoryLevelId
|
|
|
- )
|
|
|
- };
|
|
|
- delete newObj.inOutAddPO.extInfo;
|
|
|
- console.log('wqwq===');
|
|
|
- console.log('2222', newObj);
|
|
|
-
|
|
|
- const res = await outin.addInOut(newObj);
|
|
|
- if (res.code == 0) {
|
|
|
- this.$message.success('保存成功!');
|
|
|
- }
|
|
|
+ // console.log('明细', this.warehousingMaterialList);
|
|
|
+ // const categoryLevelId = this.$refs.assetsDialogRef.materialType;
|
|
|
+ // let newObj = {
|
|
|
+ // inOutAddPO: {
|
|
|
+ // ...this.formData,
|
|
|
+ // ...this.formData.extInfo,
|
|
|
+ // bizStatus: 2
|
|
|
+ // },
|
|
|
+ // warehouseLedgerInfos: this.handelArr(
|
|
|
+ // this.warehousingMaterialList,
|
|
|
+ // categoryLevelId
|
|
|
+ // )
|
|
|
+ // };
|
|
|
+ // delete newObj.inOutAddPO.extInfo;
|
|
|
+ console.log('2222', obj);
|
|
|
+
|
|
|
+ // const res = await outin.addInOut(newObj);
|
|
|
+ // if (res.code == 0) {
|
|
|
+ // this.$message.success('保存成功!');
|
|
|
+ // }
|
|
|
|
|
|
this.saveLoading = false;
|
|
|
- this.$router.push('/warehouseManagement/outgoingManagement');
|
|
|
+ // this.$router.push('/warehouseManagement/outgoingManagement');
|
|
|
|
|
|
- if (res?.success) {
|
|
|
- this.$message.success('保存成功!');
|
|
|
- this.$router.go(-1);
|
|
|
- }
|
|
|
+ // if (res?.success) {
|
|
|
+ // this.$message.success('保存成功!');
|
|
|
+ // this.$router.go(-1);
|
|
|
+ // }
|
|
|
}
|
|
|
});
|
|
|
},
|