From dd529e178e1b19dc62227c8e217aac7d794cab02 Mon Sep 17 00:00:00 2001 From: shijing Date: Thu, 27 Feb 2025 10:51:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=B7=BB=E5=8A=A0=E5=B7=A5=E8=89=BA?= =?UTF-8?q?=E8=B7=AF=E7=BA=BF=E6=97=B6=E5=B7=A5=E8=89=BA=E6=AD=A5=E9=AA=A4?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E4=BA=A7=E5=93=81=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mtm/routepack_form.vue | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/src/views/mtm/routepack_form.vue b/src/views/mtm/routepack_form.vue index 7e785bf0..6fb13f5a 100644 --- a/src/views/mtm/routepack_form.vue +++ b/src/views/mtm/routepack_form.vue @@ -23,6 +23,7 @@ > +
{{ productName }}
@@ -224,7 +225,8 @@ export default { name: [{ required: true, message: "请输入" }], }, routepack: "", - project_code:'' + project_code:'', + productName:'', }; }, mounted() { @@ -261,6 +263,9 @@ export default { that.materials = res; }); }, + handleMaterialChange(val){ + console.log("val",val); + }, handleStep(val) { //点击步骤条 if (this.stepSuc.includes(val) === true) { @@ -277,14 +282,12 @@ export default { let form = {}; form.name = that.form.name; form.material = that.form.material; - // console.log("that.form",that.form) if (that.form.id) { that.$API.mtm.routepack.update .req(that.form.id, that.form) .then((res) => { that.routepack = res.id; that.query.routepack = res.id; - // console.log("that.query", that.query); that.apiObj = that.$API.mtm.route.list; that.active = 1; // that.$refs.tables.refresh(); @@ -294,9 +297,13 @@ export default { this.active = 1; that.form.id = res.id; that.routepack = res.id; - // console.log("that.form",that.form) }); } + that.materials.forEach((item) => { + if (item.id == that.form.material) { + that.productName = item.full_name; + } + }) }, table_add() { this.dialog.save = true; @@ -377,3 +384,12 @@ export default { }, }; + \ No newline at end of file