This commit is contained in:
shilixia 2021-11-18 08:27:33 +08:00
parent eaea0cdb7c
commit fde8a60539
2 changed files with 28 additions and 14 deletions

View File

@ -167,9 +167,7 @@
label-position="right"
:rules="rule1"
>
<el-form-item label="生产计划编号" prop="number">
<el-input v-model="orderplan.number" placeholder="生产计划编号" />
</el-form-item>
<el-form-item label="排产数量" prop="count">
<el-input-number v-model="orderplan.count" :min="0"></el-input-number>
</el-form-item>

View File

@ -227,8 +227,8 @@
>
</div>
<template>
<el-table :data="havewl" style="width: 100%" ref="multipleTable">
<el-table-column type="selection" width="55"> </el-table-column>
<el-table :data="havewl" style="width: 100%" >
<el-table-column prop="batch" label="物料批次"> </el-table-column>
<el-table-column prop="material_.name" label="物料名称">
</el-table-column>
@ -627,7 +627,7 @@ export default {
from: [],
workdata: {},
wproductdata: {},
iproducts: []
};
},
process: "",
@ -746,22 +746,37 @@ export default {
handlewproduct(scope){
this.dialogTableVisible = true;
this.pcId=scope.row.id;
getiproductList({page:0,material:scope.row.material,warehouse:scope.row.warehouse,batch:scope.row.batch}).then((response) => {
if (response.data) {
this.iproductData= response.data;
}
this.listLoading = false;
});
},
//勾选半成品
handleSelectionChanges(val){
let _this = this;
_this.wpID = [];
this.iproducts= [];
val.forEach((item) => {
_this.wpID.push(item.id);
this.iproducts.push(item.id);
});
},
//提交半成品
iproductsSubmit(){
this.dialogTableVisible = false;
this.havewl.forEach((item) => {
if(item.id== this.pcId)
{
item.iproducts=this.iproducts;
}
});
},
//领料
handleNeed(scope) {
this.need = Object.assign({}, defaulteneed);
@ -778,17 +793,18 @@ export default {
//确认领料
handlePick() {
this.pickData.subproduction_plan = this.id;
this.pickData.picks = this.havewl;
// console.log(this.pickData);
this.pickData.picks = this.havewl;
createPick(this.pickData).then((res) => {
if (res.code >= 200) {
this.dialogVisiblenw = false;
this.$message.success("领料成功!");
this.$message.success("领料成功!");
}
});
});
},
prev() {
--this.values;