From 853048a4736cce9bb0274517c330628b539eee02 Mon Sep 17 00:00:00 2001 From: shijing Date: Mon, 10 Feb 2025 17:17:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BA=A4=E6=8E=A5=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E6=89=AB=E7=A0=81=E5=90=8E=E6=89=B9=E6=AC=A1=E4=BA=A4=E6=8E=A5?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E5=88=97=E8=A1=A8=E5=85=A8=E9=83=A8=E5=B1=95?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_bx/handover_form.vue | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/views/wpm_bx/handover_form.vue b/src/views/wpm_bx/handover_form.vue index 5959c3b6..0ed3beaf 100644 --- a/src/views/wpm_bx/handover_form.vue +++ b/src/views/wpm_bx/handover_form.vue @@ -555,11 +555,10 @@ export default { //获取接收工段人员 getUserList2() { let that = this; - let deptID = ''; this.mgroupOptions.forEach(item => { if(item.id==that.form.recive_mgroup){ - deptID = item.belong_dept; - this.$API.system.user.list.req({ depts: deptID, page: 0 }).then((res) => { + let deptID = item.belong_dept; + this.$API.system.user.list.req({ belong_dept: deptID, page: 0 }).then((res) => { that.userList2 = res; }); } @@ -707,17 +706,14 @@ export default { } let that = this; if(data.indexOf('#')>-1){ - // let keys = data.split('#')[0]; let id = data.split('#')[1]; this.$API.cm.labelmat.item.req(id).then((res) => { let arr = that.form.handoverb.filter((item) => { return item.batch == res.batch&&item.state==res.state; }) - // console.log('arr',arr) if(arr.length>0){ that.$message.error("该批次已存在") }else{ - // console.log('materialOptions',that.materialOptions) that.materialOptions.forEach((item) => { if(item.batch == res.batch){ let params = {material: item.material,type: that.type}; @@ -730,9 +726,9 @@ export default { obj.count_cando = item.count; obj.count = item.count; obj.handoverbw = []; - that.$API.wpm.wpr.list.req({wm:item.id}).then((res) => { + that.$API.wpm.wpr.list.req({wm:item.id,page:0}).then((res) => { let handoverbw = []; - let list = res.results; + let list = res; list.forEach(item1=>{ let obj1 = {}; obj1.wpr = item1.id;