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