From e2a3cd3285820f6ac700048068ee74a790aa3026 Mon Sep 17 00:00:00 2001 From: kun <1422840143@qq.com> Date: Tue, 19 Mar 2024 17:48:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20BUG=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/transformInfo1.vue | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/src/views/goverment/huizhou/progressManagement/planFinishSituation/components/transformInfo1.vue b/src/views/goverment/huizhou/progressManagement/planFinishSituation/components/transformInfo1.vue index 3a9229e..6b3a562 100644 --- a/src/views/goverment/huizhou/progressManagement/planFinishSituation/components/transformInfo1.vue +++ b/src/views/goverment/huizhou/progressManagement/planFinishSituation/components/transformInfo1.vue @@ -588,7 +588,7 @@ const getSubItemList = async () => { recordData.value = []; return; } - let sumRowData = { + let sumRowData: any = { // 自定义表格合计行 reportContent: "合计:", totalAmount: 0, @@ -608,7 +608,7 @@ const getSubItemList = async () => { symbolSum: true }, { - reportContent: "按合同约定进度款按每月实际完成工程造价的80%支付=(11)*80%", + reportContent: "按合同约定进度款按每月实际完成工程造价的80%支付=(9)*80%", amount: res2.result ? +res2.result.payment : 0, key: "payment", symbolSum: true @@ -636,24 +636,29 @@ const getSubItemList = async () => { responseArr = res.result; responseArr.map(item => { if (item.totalAmount) { - sumRowData.totalAmount += item.totalAmount; + sumRowData.totalAmount += item.totalAmount * 100; } if (item.completeAmount) { - sumRowData.completeAmount += +item.completeAmount; + sumRowData.completeAmount += +item.completeAmount * 100; } if (item.lastEndAmount) { - sumRowData.lastEndAmount += +item.lastEndAmount; + sumRowData.lastEndAmount += +item.lastEndAmount * 100; } if (item.nowEndAmount) { - sumRowData.nowEndAmount += +item.nowEndAmount; + sumRowData.nowEndAmount += +item.nowEndAmount * 100; } if (item.scheduleRatio) { - sumRowData.scheduleRatio += +item.scheduleRatio; + sumRowData.scheduleRatio += +item.scheduleRatio * 100; } if (item.completeScheduleRatio) { - sumRowData.completeScheduleRatio += +item.completeScheduleRatio; + sumRowData.completeScheduleRatio += +item.completeScheduleRatio * 100; } }); + for (let i in sumRowData) { + if (i != "reportContent") { + sumRowData[i] = sumRowData[i] / 100; + } + } responseArr.push(sumRowData); responseArr2.map(item => { responseArr.push(item);