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); }) }, //表单注入数据