From e6c0069e7467b00770548f1e79f90b37377646cf Mon Sep 17 00:00:00 2001 From: shijing Date: Thu, 3 Apr 2025 15:48:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=87=BA=E5=85=A5=E5=BA=93=E6=97=B6?= =?UTF-8?q?=E7=89=A9=E6=96=99=E9=80=89=E6=8B=A9=E6=9B=B4=E6=8D=A2=E7=BB=84?= =?UTF-8?q?=E4=BB=B6xselect?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inm/mioitem_form.vue | 36 +++++++++++++++++++++++----------- 1 file changed, 25 insertions(+), 11 deletions(-) diff --git a/src/views/inm/mioitem_form.vue b/src/views/inm/mioitem_form.vue index ed23f5fa..14b818ea 100644 --- a/src/views/inm/mioitem_form.vue +++ b/src/views/inm/mioitem_form.vue @@ -15,7 +15,18 @@ - + + + @@ -254,6 +265,7 @@ export default { }, ], }, + selectObj:{}, visible: false, isSaveing: false, materialOptions: [], @@ -271,6 +283,7 @@ export default { mioitemw:[], project_code:'', mTracking:10, + apiObj:this.$API.mtm.material.list, }; }, mounted() { @@ -372,9 +385,11 @@ export default { } else { query = { page: 0 ,is_hidden:false}; } - this.$API.mtm.material.list.req(query).then((res) => { - this.materialOptions = res; - }); + this.query = query; + this.apiObj=this.$API.mtm.material.list; + // this.$API.mtm.material.list.req(query).then((res) => { + // this.materialOptions = res; + // }); }, async initAssemb(item) { this.selectBatchDisable = true; @@ -422,15 +437,14 @@ export default { }) }, - selectMaterialChange(item) { + selectMaterialChange() { var that = this; var type = this.form.type; - var material = item.id; - that.form.material = material; - that.mTracking = item.tracking; + that.form.material = that.selectObj.id; + that.mTracking = that.selectObj.tracking; if (type == "do_in") { - if (item.is_assemb) { - this.initAssemb(item); + if (that.selectObj.is_assemb) { + this.initAssemb(that.selectObj); } else { this.selectBatchDisable = false; this.components = [];