xial
This commit is contained in:
parent
eaea0cdb7c
commit
fde8a60539
|
@ -167,9 +167,7 @@
|
||||||
label-position="right"
|
label-position="right"
|
||||||
:rules="rule1"
|
: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-form-item label="排产数量" prop="count">
|
||||||
<el-input-number v-model="orderplan.count" :min="0"></el-input-number>
|
<el-input-number v-model="orderplan.count" :min="0"></el-input-number>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
|
@ -227,8 +227,8 @@
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<template>
|
<template>
|
||||||
<el-table :data="havewl" style="width: 100%" ref="multipleTable">
|
<el-table :data="havewl" style="width: 100%" >
|
||||||
<el-table-column type="selection" width="55"> </el-table-column>
|
|
||||||
<el-table-column prop="batch" label="物料批次"> </el-table-column>
|
<el-table-column prop="batch" label="物料批次"> </el-table-column>
|
||||||
<el-table-column prop="material_.name" label="物料名称">
|
<el-table-column prop="material_.name" label="物料名称">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
@ -627,7 +627,7 @@ export default {
|
||||||
from: [],
|
from: [],
|
||||||
workdata: {},
|
workdata: {},
|
||||||
wproductdata: {},
|
wproductdata: {},
|
||||||
iproducts: []
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
process: "",
|
process: "",
|
||||||
|
@ -746,22 +746,37 @@ export default {
|
||||||
handlewproduct(scope){
|
handlewproduct(scope){
|
||||||
|
|
||||||
this.dialogTableVisible = true;
|
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) => {
|
getiproductList({page:0,material:scope.row.material,warehouse:scope.row.warehouse,batch:scope.row.batch}).then((response) => {
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
this.iproductData= response.data;
|
this.iproductData= response.data;
|
||||||
}
|
}
|
||||||
this.listLoading = false;
|
this.listLoading = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
//勾选半成品
|
//勾选半成品
|
||||||
handleSelectionChanges(val){
|
handleSelectionChanges(val){
|
||||||
let _this = this;
|
this.iproducts= [];
|
||||||
_this.wpID = [];
|
|
||||||
val.forEach((item) => {
|
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) {
|
handleNeed(scope) {
|
||||||
this.need = Object.assign({}, defaulteneed);
|
this.need = Object.assign({}, defaulteneed);
|
||||||
|
@ -778,17 +793,18 @@ export default {
|
||||||
//确认领料
|
//确认领料
|
||||||
handlePick() {
|
handlePick() {
|
||||||
this.pickData.subproduction_plan = this.id;
|
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) => {
|
createPick(this.pickData).then((res) => {
|
||||||
if (res.code >= 200) {
|
if (res.code >= 200) {
|
||||||
this.dialogVisiblenw = false;
|
this.dialogVisiblenw = false;
|
||||||
|
|
||||||
this.$message.success("领料成功!");
|
this.$message.success("领料成功!");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
prev() {
|
prev() {
|
||||||
--this.values;
|
--this.values;
|
||||||
|
|
Loading…
Reference in New Issue