From 664de0b1f5dc39f1b98e0775e82fac8abec14842 Mon Sep 17 00:00:00 2001 From: shijing Date: Thu, 10 Apr 2025 15:12:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=B7=A5=E8=89=BA=E8=B7=AF=E7=BA=BF?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E6=97=B6=E4=BA=A7=E5=93=81=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mtm/routepack_form.vue | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/views/mtm/routepack_form.vue b/src/views/mtm/routepack_form.vue index bf566638..c100314f 100644 --- a/src/views/mtm/routepack_form.vue +++ b/src/views/mtm/routepack_form.vue @@ -302,20 +302,20 @@ export default { form.name = that.form.name; form.material = that.form.material; 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; - that.apiObj = that.$API.mtm.route.list; - that.active = 1; - that.getDEGdatas(); - }); + that.$API.mtm.routepack.update.req(that.form.id, that.form).then((res) => { + that.routepack = res.id; + that.query.routepack = res.id; + that.form.material_name = res.material_name; + that.apiObj = that.$API.mtm.route.list; + that.active = 1; + that.getDEGdatas(); + }); } else { that.$API.mtm.routepack.create.req(form).then((res) => { this.active = 1; that.form.id = res.id; that.routepack = res.id; + that.form.material_name = res.material_name; }); } that.materials.forEach((item) => {