From 8e04078d54a51996263640ee2c56f57394e5b485 Mon Sep 17 00:00:00 2001 From: shijing Date: Mon, 19 May 2025 13:51:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E4=BA=A4=E6=8E=A5?= =?UTF-8?q?=E6=97=B6=E6=95=B0=E9=87=8F=E6=B2=A1=E6=9C=89=E7=B4=AF=E5=8A=A0?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_gx/handover_form.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/wpm_gx/handover_form.vue b/src/views/wpm_gx/handover_form.vue index ee54e0cb..b8ee7a0d 100644 --- a/src/views/wpm_gx/handover_form.vue +++ b/src/views/wpm_gx/handover_form.vue @@ -511,7 +511,7 @@ export default { }else{ this.form.handoverb = data; data.forEach(item=>{ - this.totalCount += item.count_cando; + this.totalCount += Number(item.count_cando); }) } } @@ -530,7 +530,7 @@ export default { data.forEach(item=>{ item.wm = item.id; item.count = item.count_cando; - totalCount += item.count_cando; + totalCount += Number(item.count_cando); }) that.totalCount = totalCount; that.form.handoverb = data; @@ -541,7 +541,7 @@ export default { let totalCount = 0; if(this.form.handoverb.length>0){ this.form.handoverb.forEach(item=>{ - totalCount += item.count; + totalCount += Number(item.count); }) that.totalCount = totalCount; }