From f126d3c90d3f146b6d578161154a1f4bef0f483d Mon Sep 17 00:00:00 2001 From: shijing Date: Mon, 21 Apr 2025 11:28:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=87=BA=E5=85=A5=E5=BA=93i=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E6=B7=BB=E5=8A=A0=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inm/mioitem.vue | 4 +- src/views/inm/mioitem_form.vue | 70 ++++++++++------------------------ 2 files changed, 21 insertions(+), 53 deletions(-) diff --git a/src/views/inm/mioitem.vue b/src/views/inm/mioitem.vue index 82f5dd2f..699d35e3 100644 --- a/src/views/inm/mioitem.vue +++ b/src/views/inm/mioitem.vue @@ -51,9 +51,6 @@ >{{ mioObj.customer_name }} -
@@ -213,6 +210,7 @@ v-if="dialog.save" ref="saveDialog" :mioId="mioId" + :mgroup="mioObj.mgroup" :belongDeptId="belongDeptId" :belongDeptName="mioObj.belong_dept_name" :mioObj="mioObj" diff --git a/src/views/inm/mioitem_form.vue b/src/views/inm/mioitem_form.vue index 14b818ea..1b6ee82b 100644 --- a/src/views/inm/mioitem_form.vue +++ b/src/views/inm/mioitem_form.vue @@ -13,7 +13,7 @@ label-width="120px" > - + - - + - + - + { - this.wbatchOptions = res; - }); + let that = this; + if (this.mgroup != null) { + this.$API.wpm.wmaterial.list.req({mgroup: this.mgroup,material: this.form.material,state:10,page: 0}).then((res) => { + this.wbatchOptions = res; + }); } }, getMaterialOptions() { @@ -435,7 +406,6 @@ export default { that.form.wm = item.id; } }) - }, selectMaterialChange() { var that = this; @@ -465,7 +435,7 @@ export default { selectBatchChange(item) { this.form.batch = item.batch; this.form.mb = item.id; - this.form.count = item.count; + this.form.count = 0; this.form.warehouse = item.warehouse; this.warehouseDisable = true; this.inputBatchDisable = true;