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