From 392f979ff5834748d843e02746687266e00ead69 Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 13 Jan 2026 10:26:16 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E7=A6=85=E9=81=93282?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_bx/mlog_form2.vue | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/views/wpm_bx/mlog_form2.vue b/src/views/wpm_bx/mlog_form2.vue index bcde9554..9c08a301 100644 --- a/src/views/wpm_bx/mlog_form2.vue +++ b/src/views/wpm_bx/mlog_form2.vue @@ -170,6 +170,15 @@ + + + + + @@ -251,10 +260,13 @@ export default { }, wm_in: "", route_code:"", + imageUrl:'', + test_file:'', visible: false, isSaveing: false, batchCountCando:0, materialTracking:10, + fileList:[], testitems:[], options: [], mtaskOptions:[], @@ -403,6 +415,7 @@ export default { }) if(that.routeOptions.length==1){ that.form.route = that.routeOptions[0].id; + that.routeChange(); } } }else{ @@ -435,6 +448,7 @@ export default { }) if(that.routeOptions.length==1){ that.form.route = that.routeOptions[0].id; + that.routeChange(); } } let arr = that.materialOptions.filter((item) => { @@ -472,6 +486,18 @@ export default { }) } }, + routeChange(){ + let that = this; + if(that.route_code=='paiyicibang'){ + that.$API.mtm.route.item.req(that.form.route).then((res) => { + let json = res.params_json; + if(json.fileurl){ + let fileurl = JSON.parse(json.fileurl); + that.imageUrl = fileurl[0].path; + } + }) + } + }, //表单提交方法 submit() { let that = this;