From 1f52ccc540e2f4f19d621b0b7c0153f62612436e Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 29 Jul 2025 13:42:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=BE=85=E6=96=99=E5=BA=93=E5=80=9F?= =?UTF-8?q?=E7=94=A8=E3=80=81=E5=BD=92=E8=BF=98=E3=80=81=E9=80=80=E8=B4=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inm/helpso_mio.vue | 35 ++++++++++++++++++++++++---------- src/views/inm/mio_form.vue | 13 ++++++++----- src/views/inm/mioitem_form.vue | 30 +++++++++++++++++++++++------ 3 files changed, 57 insertions(+), 21 deletions(-) diff --git a/src/views/inm/helpso_mio.vue b/src/views/inm/helpso_mio.vue index e0cb812e..63665de8 100644 --- a/src/views/inm/helpso_mio.vue +++ b/src/views/inm/helpso_mio.vue @@ -6,20 +6,27 @@ type="primary" @click="add('do_out')" v-auth="'mio.do'" - >生产领料 + >生产领料 采购入库 + >采购入库 退货 + >领用出库 + 退还入库 + 退货 - + { - this.wbatchOptions = res; - }); + params.mgroup= this.mgroup; + if(that.type=='do_in'){ + params.state = 10; + } + }else if (this.mioObj.belong_dept != null){ + params.belong_dept = this.mioObj.belong_dept; } + this.$API.wpm.wmaterial.list.req(params).then((res) => { + this.wbatchOptions = res; + }); }, getMaterialOptions() { var type = this.form.type; @@ -376,9 +383,20 @@ export default { this.inputBatchDisable = true; } else if (type == "other_out") { this.inputBatchDisable = true; - } else { + } else if (type == "pur_out"||type == "borrow_out"||type == "return_in") { + query = { + page: 0, + type__in: 40, + is_hidden: false, + orderitem_material__order: this.mioObj.order?this.mioObj.order:null, + }; + this.inputBatchDisable = true; + }else { query = { page: 0 ,is_hidden:false}; } + if(type == "return_in"){ + this.inputBatchDisable = false; + } this.query = query; this.apiObj=this.$API.mtm.material.list; // this.$API.mtm.material.list.req(query).then((res) => { @@ -436,7 +454,7 @@ export default { 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.form.batch = that.cate=='helpso'?that.selectObj.bin_number_main:''; that.mTracking = that.selectObj.tracking; if (type == "do_in") { if (that.selectObj.is_assemb) {