From 055bb2df7ecaa29db6e71a604a67b641b04dea55 Mon Sep 17 00:00:00 2001
From: buaixuexideshitongxue <2936013465@qq.com>
Date: Wed, 25 Mar 2026 11:07:11 +0800
Subject: [PATCH] =?UTF-8?q?fix--=E9=A1=B9=E7=9B=AE=E6=BB=A1=E6=84=8F?=
=?UTF-8?q?=E7=8E=87=E6=95=B0=E6=8D=AE=E6=9C=89=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/datav/Jwpy.vue | 27 ++++++++++++++++++++++-----
1 file changed, 22 insertions(+), 5 deletions(-)
diff --git a/src/views/datav/Jwpy.vue b/src/views/datav/Jwpy.vue
index 2a0605f..8763b06 100644
--- a/src/views/datav/Jwpy.vue
+++ b/src/views/datav/Jwpy.vue
@@ -185,18 +185,15 @@
:highlight-hover-row='false'
:data="tableData"
height="350"
- :summary-cell-style="summaryCellStyle"
- :summary-method="getSummaries"
:style="{ width: '100%', marginTop: '20px', fontSize: fontSize + 'px' }"
:header-cell-style="headerCellStyle"
:row-style="tableRowStyle"
- :show-summary='true'
>
-
+
-
+
{{ scope.row.smyltb }}
@@ -838,7 +835,27 @@ async function getData() {
// 业务满意率
GetZRSJXF(selectYear.value, selectMonth.value, selectOrg.value, task.value).then((res) => {
let temp = res.lstShen
+ temp = temp.map(item => {
+ const state3 = Number(item.State3) || 0;
+ const satisfiedNum = Number(item.SatisfiedNum) || 0;
+ const basicallySatisfiedNum = Number(item.BasicallySatisfiedNum) || 0;
+ const myl = state3 === 0
+ ? '0.00'
+ : (((satisfiedNum + basicallySatisfiedNum * 0.75) / state3) * 100).toFixed(2);
+
+ return {
+ ...item,
+ myl
+ };
+ });
+ const totalItem = temp.find(item => item.Name === null);
temp = temp.filter(item => item.Name !== null);
+ if (totalItem) {
+ temp.push({
+ ...totalItem,
+ Name: '总计'
+ });
+ }
tableData.value = temp
});
console.log('selectOrg', selectOrg.value)