From 97c71723067c3a076dda33897374a9ab1f698710 Mon Sep 17 00:00:00 2001 From: shijing Date: Mon, 1 Dec 2025 14:33:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=8E=BB=E7=BA=A4=E5=8B=BE=E9=80=89?= =?UTF-8?q?=E5=90=8E=E7=82=B9=E5=87=BB=E2=80=9C=E5=90=88=E6=89=B9=E2=80=9D?= =?UTF-8?q?=E5=90=8E=E8=8E=B7=E5=8F=96wpr=E5=88=97=E8=A1=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 | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/src/views/wpm_bx/handover_form.vue b/src/views/wpm_bx/handover_form.vue index 709cfb1a..a39a5a1b 100644 --- a/src/views/wpm_bx/handover_form.vue +++ b/src/views/wpm_bx/handover_form.vue @@ -434,8 +434,14 @@ export default { that.totalCount = totalCount; }, showbw(index){ - this.bwIndex = index; - this.bwVisible = true; + let that = this; + that.bwIndex = index; + if(that.form.handoverb[index].handoverbw&&that.form.handoverb[index].handoverbw.length>0){ + that.bwVisible = true; + }else{ + that.$message.warning("正在加载,请稍后..."); + that.bwVisible = true; + } }, bwVisibleClose(){ this.bwVisible = false; @@ -600,13 +606,21 @@ export default { }, //显示 open(mode = "add",data,mtype) { - this.mode = mode; - this.mtype = mtype; + let that = this; + that.mode = mode; + that.mtype = mtype; if(mtype==30){ - this.change_batch = true; + that.change_batch = true; } - this.form.handoverb = data?data:[]; - this.visible = true; + that.form.handoverb = data?data:[]; + if(data.length>0){ + that.totalCount = 0; + data.forEach((item,index)=>{ + that.totalCount += Number(item.count); + that.getWprList(item.wm,index); + }) + } + that.visible = true; return this; }, clearSelect(){ @@ -657,7 +671,7 @@ export default { getWprList(id,index){ let that = this; let handoverbw = []; - that.$API.wpm.wpr.list.req({wm:id,page:0,can_use:'yes'}).then((res) => { + that.$API.wpm.wpr.list.req({wm:id,page:0,can_use:'yes',query:'{id,number}'}).then((res) => { res.forEach(wpritem=>{ let obj = {}; obj.wpr = wpritem.id;