From c0f0038ccb1f0e73ccfe0750aaa3bd48c9eb8d8d Mon Sep 17 00:00:00 2001 From: shijing Date: Thu, 3 Jul 2025 13:51:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=85=89=E8=8A=AF=E6=97=A5=E5=BF=97mlogb?= =?UTF-8?q?=5Fform=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_gx/f_mlogs_form.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/wpm_gx/f_mlogs_form.vue b/src/views/wpm_gx/f_mlogs_form.vue index 81d9263d..c92137da 100644 --- a/src/views/wpm_gx/f_mlogs_form.vue +++ b/src/views/wpm_gx/f_mlogs_form.vue @@ -593,11 +593,11 @@ export default { that.$API.mtm.route.item.req(that.route).then(res=>{ that.material_in = res.material_in; that.material_out = that.form.material_out = res.material_out; + if(that.mlogId){ + that.getMlogObj(); + } }); } - if(that.mlogId){ - that.getMlogObj(); - } }else{ that.$API.mtm.route.list.req({ process: that.process, page: 0, routepack__state: 30 }).then((res) => { that.routeOptions = res; @@ -667,7 +667,7 @@ export default { that.materialCount = that.form.count_use = that.form.count_real = that.form.count_ok = item.count; that.form.count_real = item.count-that.form.count_pn_jgqbl; - that.getdefects(); + that.getdefects(that.route,that.material_in,that.material_out); } }) }, @@ -696,7 +696,7 @@ export default { console.log("this.$API.wpm.mlog.item", res); that.mlogindefect = res.mlogindefect; that.mlogdefect = res.mlogdefect; - that.getdefects(); + that.getdefects(that.route,that.material_in,that.material_out); }) }, //表单注入数据