From 0131173d97fe4c60509490b44dddfa44ce1ca8c0 Mon Sep 17 00:00:00 2001 From: shijing Date: Fri, 25 Jul 2025 13:39:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=BE=85=E6=96=99=E5=BA=93=E7=9A=84?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E6=94=B9=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inm/helpso_mioitem.vue | 25 +++- src/views/inm/materials.vue | 2 +- src/views/inm/mioitem_form.vue | 17 ++- src/views/inm/mioitemlist.vue | 211 +++++++++++++++++++++++++--- src/views/mtm/materials_form_gx.vue | 50 +++++-- 5 files changed, 263 insertions(+), 42 deletions(-) diff --git a/src/views/inm/helpso_mioitem.vue b/src/views/inm/helpso_mioitem.vue index 7d8ccd87..0d6ea67a 100644 --- a/src/views/inm/helpso_mioitem.vue +++ b/src/views/inm/helpso_mioitem.vue @@ -11,11 +11,11 @@ - + - + - + 新增
+ + + + + + { that.mioObj = res1; @@ -329,7 +341,8 @@ export default { let that = this; this.dialog.save = true; this.$nextTick(() => { - this.$refs.saveDialog.open("add", that.form.type); + console.log('that.form', that.form); + this.$refs.saveDialog.open("add", that.form.type,40); }); }, //编辑 diff --git a/src/views/inm/materials.vue b/src/views/inm/materials.vue index 73eaf947..6a272aec 100644 --- a/src/views/inm/materials.vue +++ b/src/views/inm/materials.vue @@ -61,7 +61,7 @@ - + diff --git a/src/views/inm/mioitem_form.vue b/src/views/inm/mioitem_form.vue index 9faf5db2..de47f6b5 100644 --- a/src/views/inm/mioitem_form.vue +++ b/src/views/inm/mioitem_form.vue @@ -140,6 +140,16 @@ />
+ + + + + + + + + +
@@ -230,7 +240,7 @@ export default { other_in: "其他入库", other_out: "其他出库", }, - form: {count: 1,}, + form: {count: 1,note: ''}, rules: { batch:[ { @@ -271,6 +281,7 @@ export default { mioitems:[''], mioitemw:[], project_code:'', + mtype:null, mTracking:10, apiObj:this.$API.mtm.material.list, }; @@ -421,6 +432,7 @@ export default { var that = this; var type = this.form.type; that.form.material = that.selectObj.id; + that.form.unit = that.selectObj.unit; that.form.unit_price = that.selectObj.unit_price; that.form.batch = that.cate=='helpso'?that.selectObj.bin_number_main:that.selectObj.batch; that.mTracking = that.selectObj.tracking; @@ -462,8 +474,9 @@ export default { this.inputBatchDisable = false; }, //显示 - open(mode = "add", type = "") { + open(mode = "add", type = "",mtype) { this.mode = mode; + this.mtype = mtype?mtype:null; this.form.type = this.type = type; if (mode == "add") { this.init(); diff --git a/src/views/inm/mioitemlist.vue b/src/views/inm/mioitemlist.vue index de094bd2..6d3b28d4 100644 --- a/src/views/inm/mioitemlist.vue +++ b/src/views/inm/mioitemlist.vue @@ -32,74 +32,114 @@ - - + - + - + - + - + - + - + - + - + - + - + - + - + - + + + + diff --git a/src/views/mtm/materials_form_gx.vue b/src/views/mtm/materials_form_gx.vue index a519a763..55d75691 100644 --- a/src/views/mtm/materials_form_gx.vue +++ b/src/views/mtm/materials_form_gx.vue @@ -49,6 +49,23 @@ /> + + + + + + + - + - + @@ -139,23 +154,26 @@ - - - - - + + + + + + + + + + - 保存 + 保存 取消 @@ -189,6 +207,13 @@ export default { trigger: "blur", }, ], + cate: [ + { + required: true, + message: "请选择辅料类别", + trigger: "blur", + }, + ], number: [ { required: true, @@ -220,6 +245,7 @@ export default { { id: 30, name: "主要原料" }, // { id: 40, name: "辅助材料" }, ], + cateOptions: ['主要辅材','办公辅料','设备维护辅料','包装辅材','标识辅材','防护辅材','其他辅材'], handle_user: [], selectionFilters: [], materialOptions: [],