From 685985561ba8d24571dce817b56f3bf5cb7d66bc Mon Sep 17 00:00:00 2001 From: shijing Date: Thu, 16 Apr 2026 09:48:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=97=A5=E5=BF=97=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E7=89=A9=E6=96=99=E8=A1=A8=E5=8D=95=EF=BC=8C?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E6=89=B9=E6=AC=A1=E5=90=8E=EF=BC=8C=E6=A0=B9?= =?UTF-8?q?=E6=8D=AE=E5=B7=B2=E9=80=89=E6=89=B9=E6=AC=A1=E7=89=A9=E6=96=99?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E7=9B=B8=E5=BA=94=E7=9A=84=E5=B7=A5=E8=89=BA?= =?UTF-8?q?=E6=AD=A5=E9=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_gx/mlogb_form.vue | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/src/views/wpm_gx/mlogb_form.vue b/src/views/wpm_gx/mlogb_form.vue index ae02faea..62fb3959 100644 --- a/src/views/wpm_gx/mlogb_form.vue +++ b/src/views/wpm_gx/mlogb_form.vue @@ -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;