From caa1d0881fa24bc1a5dee0bd47a660f94cf0eef6 Mon Sep 17 00:00:00 2001 From: zhouzy062 Date: Tue, 26 Mar 2024 13:19:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4=E5=AE=A1?= =?UTF-8?q?=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sgzb-ui/src/views/cost/csotSettlement/costApplyAdd.vue | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/sgzb-ui/src/views/cost/csotSettlement/costApplyAdd.vue b/sgzb-ui/src/views/cost/csotSettlement/costApplyAdd.vue index 8518798f..ea815005 100644 --- a/sgzb-ui/src/views/cost/csotSettlement/costApplyAdd.vue +++ b/sgzb-ui/src/views/cost/csotSettlement/costApplyAdd.vue @@ -302,16 +302,10 @@ let arrCost = 0; list.forEach(item=>{ console.log(item) - if(item.partType==0){ - arrCost = arrCost - }else if(item.scrapType==0){ - arrCost = arrCost - }else{ + if(item.partType!=0&&item.scrapType!=0){ arrCost = arrCost + Number(item.costs) } - // console.log(arrCost) }) - // console.log(arrCost) return arrCost.toFixed(2) }, //提交按钮