From 510c9bed11cefd7c7924b691c790b0803feeff10 Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 12 Mar 2025 13:48:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=8E=BB=E7=BA=A4=E4=BA=A4=E6=8E=A5?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=90=88=E6=89=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_bx/handover_form.vue | 157 ++++++++++++++--------------- src/views/wpm_bx/inm.vue | 50 +++++++-- 2 files changed, 116 insertions(+), 91 deletions(-) diff --git a/src/views/wpm_bx/handover_form.vue b/src/views/wpm_bx/handover_form.vue index dee9c717..5052e25c 100644 --- a/src/views/wpm_bx/handover_form.vue +++ b/src/views/wpm_bx/handover_form.vue @@ -13,73 +13,14 @@ :rules="rules" label-width="80px" > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + 手动添加 + + {{ totalCount }} + @@ -167,28 +108,37 @@ -
总计:{{ totalCount }}
-
- - - - + + + + + + + + /> - + - + + + + + + + + + + + + + + + + + + + + + + + + + @@ -361,11 +341,7 @@ export default { that.form.type = that.type; let materialObj = that.$TOOL.data.get("MATERIAL_OBJECT"); that.materialObj = materialObj; - let date = new Date(); - let year = date.getFullYear(); - let month = date.getMonth() + 1; - let day = date.getDate(); - that.form.handle_date = year + "-" + month + "-" + day; + that.form.handle_date =that.form.send_date =this.$TOOL.dateFormat2(new Date()); that.form.send_mgroup = that.mgroupId; if(that.type==20||that.type==50){ that.form.recive_mgroup = that.mgroupId; @@ -480,8 +456,21 @@ export default { //获取交送工段人员 getUserList() { let that = this; + let userInfo = that.$TOOL.data.get("USER_INFO"); this.$API.system.user.list.req({ depts: that.deptID, page: 0 }).then((res) => { that.userList = res; + let arr = res.filter(item=>{ + return item.id==userInfo.id; + }) + if(arr.length>0){ + that.form.send_user = userInfo.id; + }else{ + let obj = {}; + obj.id = userInfo.id; + obj.name = userInfo.name; + that.userList.push(obj) + that.form.send_user = userInfo.id; + } }); }, //获取仓库人员 @@ -532,8 +521,10 @@ export default { this.countChange(); }, //显示 - open(mode = "add") { + open(mode = "add",data,mtype) { this.mode = mode; + this.mtype = mtype; + this.form.handoverb = data; this.visible = true; return this; }, diff --git a/src/views/wpm_bx/inm.vue b/src/views/wpm_bx/inm.vue index cb0ac624..09aaaf46 100644 --- a/src/views/wpm_bx/inm.vue +++ b/src/views/wpm_bx/inm.vue @@ -4,6 +4,7 @@
领料 报废 + 合批 入库
@@ -41,11 +42,13 @@ row-key="id" :params="params" :query="query" + @selection-change="selectionChange" > - -