Merge branch 'develop' of https://e.coding.net/ctcdevteam/hberp/hberp into develop
This commit is contained in:
commit
50233f56bf
|
@ -391,6 +391,7 @@ export default {
|
||||||
this.wproduct=scope.row.id;//半成品ID
|
this.wproduct=scope.row.id;//半成品ID
|
||||||
this.listQueryrecordform.material = scope.row.material;//
|
this.listQueryrecordform.material = scope.row.material;//
|
||||||
this.listQueryrecordform.type = 2;
|
this.listQueryrecordform.type = 2;
|
||||||
|
this.recordform="";
|
||||||
getrecordformList(this.listQueryrecordform).then((response) => {
|
getrecordformList(this.listQueryrecordform).then((response) => {
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
this.recordformList = response.data;
|
this.recordformList = response.data;
|
||||||
|
|
|
@ -259,7 +259,7 @@
|
||||||
<el-button
|
<el-button
|
||||||
style="float: right; padding: 3px 0"
|
style="float: right; padding: 3px 0"
|
||||||
type="text"
|
type="text"
|
||||||
@click="dialogTablepick = true"
|
@click="cjllclick()"
|
||||||
>从车间领料</el-button
|
>从车间领料</el-button
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
@ -474,6 +474,7 @@ import Pagination from "@/components/Pagination"; // secondary package based on
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: { Pagination },
|
components: { Pagination },
|
||||||
|
inject:['reload'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
operationList: {
|
operationList: {
|
||||||
|
@ -577,6 +578,13 @@ export default {
|
||||||
output: {},
|
output: {},
|
||||||
record_data: [],
|
record_data: [],
|
||||||
record: {},
|
record: {},
|
||||||
|
inputData:[],
|
||||||
|
operationwpData:[],
|
||||||
|
equData:[],
|
||||||
|
recordData:[],
|
||||||
|
wmaterialData:[],
|
||||||
|
outputData:[],
|
||||||
|
tprogressData:[],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
|
@ -600,7 +608,7 @@ export default {
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
this.operationData = response.data;
|
this.operationData = response.data;
|
||||||
}
|
}
|
||||||
this.listLoading = false;
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//如果使用边角料提交
|
//如果使用边角料提交
|
||||||
|
@ -621,7 +629,7 @@ export default {
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
this.operationwpData = response.data;
|
this.operationwpData = response.data;
|
||||||
}
|
}
|
||||||
this.listLoading = false;
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
@ -648,7 +656,7 @@ export default {
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
this.equData = response.data;
|
this.equData = response.data;
|
||||||
}
|
}
|
||||||
this.listLoading = false;
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//操作删除设备
|
//操作删除设备
|
||||||
|
@ -676,7 +684,7 @@ export default {
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
this.recordData = response.data;
|
this.recordData = response.data;
|
||||||
}
|
}
|
||||||
this.listLoading = false;
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//调出表单内容
|
//调出表单内容
|
||||||
|
@ -717,11 +725,16 @@ export default {
|
||||||
getinputLists() {
|
getinputLists() {
|
||||||
getinputList({ operation: this.id, page: 0 }).then((response) => {
|
getinputList({ operation: this.id, page: 0 }).then((response) => {
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
|
debugger;
|
||||||
this.inputData = response.data;
|
this.inputData = response.data;
|
||||||
}
|
}
|
||||||
this.listLoading = false;
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
cjllclick(){
|
||||||
|
|
||||||
|
this.dialogTablepick = true;
|
||||||
|
},
|
||||||
|
|
||||||
//从车间领料
|
//从车间领料
|
||||||
getwmaterialList() {
|
getwmaterialList() {
|
||||||
|
@ -736,10 +749,11 @@ export default {
|
||||||
this.picks.operation = this.id;
|
this.picks.operation = this.id;
|
||||||
this.picks.wmaterial = scope.row.id;
|
this.picks.wmaterial = scope.row.id;
|
||||||
this.picks.count = scope.row.pick_count;
|
this.picks.count = scope.row.pick_count;
|
||||||
|
let _this = this;
|
||||||
createInput(this.picks).then((res) => {
|
createInput(this.picks).then((res) => {
|
||||||
if (res.code >= 200) {
|
if (res.code >= 200) {
|
||||||
this.$message.success("创建成功!");
|
this.$message.success("创建成功!");
|
||||||
this.getinputLists();
|
_this.getinputLists();
|
||||||
this.dialogTablepick = false;
|
this.dialogTablepick = false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -750,7 +764,7 @@ export default {
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
this.outputData = response.data;
|
this.outputData = response.data;
|
||||||
}
|
}
|
||||||
this.listLoading = false;
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//产出物料选择
|
//产出物料选择
|
||||||
|
@ -760,7 +774,7 @@ export default {
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
this.tprogressData = response.data;
|
this.tprogressData = response.data;
|
||||||
}
|
}
|
||||||
this.listLoading = false;
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
|
@ -754,27 +754,37 @@ export default {
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
this.subproductionplanList = response.data;
|
this.subproductionplanList = response.data;
|
||||||
}
|
}
|
||||||
this.listLoading = false;
|
|
||||||
});
|
|
||||||
getwmaterialList({
|
|
||||||
subproduction_plan__process: this.process,
|
|
||||||
page: 0,
|
|
||||||
}).then((response) => {
|
|
||||||
if (response.data) {
|
|
||||||
this.wmaterialList = response.data;
|
|
||||||
}
|
|
||||||
this.listLoading = false;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
//子工序列表
|
//子工序列表
|
||||||
|
|
||||||
getStepLists(tab.name).then((response) => {
|
getStepLists(tab.name).then((response) => {
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
this.steps = response.data;
|
this.steps = response.data;
|
||||||
}
|
}
|
||||||
this.listLoading = false;
|
|
||||||
});
|
});
|
||||||
|
//车间物料表
|
||||||
|
this.getwmaterialLists();
|
||||||
|
// 半成品表
|
||||||
this.getwproductLists();
|
this.getwproductLists();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
//车间物料
|
||||||
|
getwmaterialLists()
|
||||||
|
{
|
||||||
|
getwmaterialList({
|
||||||
|
subproduction_plan__process: this.process,
|
||||||
|
page: 0,
|
||||||
|
}).then((response) => {
|
||||||
|
if (response.data) {
|
||||||
|
this.wmaterialList = response.data;
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
//工序对应的子计划,弹出对应的车间物料
|
//工序对应的子计划,弹出对应的车间物料
|
||||||
handleCurrentChange(row) {
|
handleCurrentChange(row) {
|
||||||
// this.steps = row.steps; //调出子工序
|
// this.steps = row.steps; //调出子工序
|
||||||
|
@ -789,17 +799,17 @@ export default {
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
this.wmaterialList = response.data;
|
this.wmaterialList = response.data;
|
||||||
}
|
}
|
||||||
this.listLoading = false;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
//工序渲染
|
//大工序工序渲染
|
||||||
getProcessList() {
|
getProcessList() {
|
||||||
getProcessList({ page: 0 }).then((response) => {
|
getProcessList({ page: 0 }).then((response) => {
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
this.processOption = response.data;
|
this.processOption = response.data;
|
||||||
}
|
}
|
||||||
this.listLoading = false;
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -812,25 +822,12 @@ export default {
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
this.subproductionplanList = response.data;
|
this.subproductionplanList = response.data;
|
||||||
}
|
}
|
||||||
this.listLoading = false;
|
|
||||||
});
|
});
|
||||||
//车间物料表
|
//车间物料表
|
||||||
getwmaterialList({
|
this.getwmaterialLists();
|
||||||
subproduction_plan__process: this.process,
|
// 半成品表
|
||||||
page: 0,
|
this.getwproductLists();
|
||||||
}).then((response) => {
|
|
||||||
if (response.data) {
|
|
||||||
this.wmaterialList = response.data;
|
|
||||||
}
|
|
||||||
this.listLoading = false;
|
|
||||||
});
|
|
||||||
//半成品
|
|
||||||
getwproductList({page:0,step__process:this.process}).then((response) => {
|
|
||||||
if (response.data) {
|
|
||||||
this.wproductData = response.data;
|
|
||||||
console.log( this.wproductData)
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
@ -857,7 +854,7 @@ export default {
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
this.iproductData= response.data;
|
this.iproductData= response.data;
|
||||||
}
|
}
|
||||||
this.listLoading = false;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
@ -910,8 +907,20 @@ export default {
|
||||||
this.dialogVisiblenw = false;
|
this.dialogVisiblenw = false;
|
||||||
|
|
||||||
this.$message.success("领料成功!");
|
this.$message.success("领料成功!");
|
||||||
|
//车间物料表
|
||||||
|
this.getwmaterialLists();
|
||||||
|
// 半成品表
|
||||||
|
this.getwproductLists();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
//半成品
|
||||||
|
getwproductList({page:0,step__process:this.process}).then((response) => {
|
||||||
|
if (response.data) {
|
||||||
|
this.wproductData = response.data;
|
||||||
|
console.log( this.wproductData)
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
//领半成品
|
//领半成品
|
||||||
|
@ -975,6 +984,10 @@ wproductSubmit()
|
||||||
if (res.code >= 200) {
|
if (res.code >= 200) {
|
||||||
this.$message.success("半成品领料成功!");
|
this.$message.success("半成品领料成功!");
|
||||||
this.dialogTableVisiblepick=false;
|
this.dialogTableVisiblepick=false;
|
||||||
|
//车间物料表
|
||||||
|
this.getwproductLists();
|
||||||
|
// 半成品表
|
||||||
|
this.getwproductLists();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue