入库修改

master
zhangdi 2 months ago
parent c67bc258f2
commit ba06792402
  1. 6
      src/views/firstOrder/components/outDialog.vue
  2. 22
      src/views/secondOrder/components/inDialog.vue
  3. 1
      src/views/secondOrder/components/outDialog.vue

@ -580,6 +580,7 @@ export default {
item.materialCode === stat.materialCode &&
item.materialName === stat.materialName
);
console.log(898989,detailList)
detail.theOutboundQuantity = detailList.reduce(
(acc, cur) => acc + cur.num,
0
@ -904,13 +905,16 @@ export default {
const deptId = row.department;
const dept = this.list.find((item) => item.departmentId === deptId);
const oneFormId = row.id;
let select = this.materials.find(
(item) => item.materialId === row.materialId
);
return {
...row,
department:
this.sizeForm.options == "1" ? arr.departmentId : deptId,
departmentName:
this.sizeForm.options == "1" ? arr.department : dept.department,
oneFormId: oneFormId,
oneFormId: select.id,
};
}
);

@ -18,14 +18,14 @@
>
<div class="form-title">基本信息</div>
<el-row>
<el-col :span="12">
<!-- <el-col :span="12" v-if="sizeForm.ldTwoPutStorage.warehouseName">
<el-form-item label="仓库名称">
<el-input
v-model="sizeForm.ldTwoPutStorage.warehouseName"
:disabled="true"
></el-input>
</el-form-item>
</el-col>
</el-col> -->
<el-col :span="12">
<el-form-item label="入库单号">
<el-input
@ -117,13 +117,13 @@ export default {
return {
inDialogVisible: false,
sizeForm: {
code: "", //
applyNmae: "", //
submitName: "", //
waNmae: "", //
argument: "", //
inTableData: [],
userInfoVO: {},
// code: "", //
// applyNmae: "", //
// submitName: "", //
// waNmae: "", //
// argument: "", //
// inTableData: [],
// userInfoVO: {},
},
};
},
@ -140,6 +140,7 @@ export default {
mounted() {
this.inDialogVisible = this.repairVisible;
this.sizeForm.userInfoVO = this.userInfo;
console.log(this.userInfo,'userInfo');
if (this.inDialogType == "add") {
this.addInit();
} else {
@ -151,6 +152,7 @@ export default {
inInit() {
getDetails({ twoPutStorageId: this.inDialogData.id }).then((res) => {
this.sizeForm = res.data.result;
this.sizeForm.userInfoVO = this.userInfo;
});
},
addInit() {
@ -175,7 +177,9 @@ export default {
sumbit() {
let query = {
...this.sizeForm,
userInfoVO:this.sizeForm.userInfoVO,
};
console.log("提交参数:", this.sizeForm);
submit(query).then((res) => {
this.$message({
type: "success",

@ -504,6 +504,7 @@ export default {
this.inInit();
}
this.sizeForm.userInfoVO = this.userInfo;
console.log(this.userInfo,'userInfo');
this.getDetailedItems();
this.getOutGroupName();
},

Loading…
Cancel
Save