fix:日志新增输入物料表单,选择批次后,根据已选批次物料获取相应的工艺步骤

This commit is contained in:
shijing 2026-04-16 09:48:30 +08:00
parent 19f8accc8c
commit 685985561b
1 changed files with 12 additions and 9 deletions

View File

@ -337,16 +337,18 @@ export default {
this.cellsList = data.count_json_from;
}
},
getRoute() {
getRoute(material) {
let that = this;
that.$API.mtm.route.list
.req({ process: that.process, page: 0, routepack__state: 30 })
.then((res) => {
that.routeOptions = res;
if(res.length==1){
that.form.route = res[0].id;
}
});
let obj = { process:that.process,page: 0, routepack__state: 30};
if(material){
obj.material_in__in = material;
}
that.$API.mtm.route.list.req(obj).then((res) => {
that.routeOptions = res;
if(res.length==1){
that.form.route = res[0].id;
}
});
},
getMtask() {
let that = this;
@ -418,6 +420,7 @@ export default {
},
materialBatchChange(){
let that = this;
that.getRoute(that.selectObj.material);
that.form.batch = that.selectObj.batch;
that.form.count_use = that.selectObj.count_cando;
that.batch_count = that.selectObj.count;