From 0564c5f6dabe1bcb07e51600a702560a7224fab3 Mon Sep 17 00:00:00 2001 From: shijing Date: Fri, 14 Mar 2025 09:45:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=8E=BB=E7=BA=A4=E9=87=87=E8=B4=AD?= =?UTF-8?q?=E5=85=A5=E5=BA=93=E7=BC=96=E5=8F=B7=E8=87=AA=E5=8A=A8=E7=94=9F?= =?UTF-8?q?=E6=88=90?= 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, 22 insertions(+), 14 deletions(-) diff --git a/src/views/inm/mioitem_form.vue b/src/views/inm/mioitem_form.vue index fecafac9..f308d217 100644 --- a/src/views/inm/mioitem_form.vue +++ b/src/views/inm/mioitem_form.vue @@ -141,11 +141,11 @@ - + - - + + @@ -282,8 +282,16 @@ export default { this.getWarehouseOptions(); }, getWarehouseOptions() { + let that = this; this.$API.inm.warehouse.list.req({ page: 0 }).then((res) => { this.warehouseOptions = res; + if(that.form.type=='pur_in'){ + res.forEach((item) => { + if (item.name == "原料库") { + that.form.warehouse = item.id; + } + }) + } }); }, //获取车间物料批次号 @@ -458,22 +466,19 @@ export default { let that = this; if(that.project_code=='bxerp'){ if(that.form.type == "pur_in"){ - let numbers = that.mioitems[0]; that.mioitems = [];that.mioitemw = []; for(let i=0;i