xial
This commit is contained in:
parent
eaea0cdb7c
commit
fde8a60539
|
@ -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>
|
||||
|
|
|
@ -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,6 +746,7 @@ 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;
|
||||
|
@ -753,15 +754,29 @@ export default {
|
|||
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,9 +793,10 @@ export default {
|
|||
//确认领料
|
||||
handlePick() {
|
||||
this.pickData.subproduction_plan = this.id;
|
||||
|
||||
|
||||
this.pickData.picks = this.havewl;
|
||||
|
||||
// console.log(this.pickData);
|
||||
|
||||
createPick(this.pickData).then((res) => {
|
||||
if (res.code >= 200) {
|
||||
|
|
Loading…
Reference in New Issue