From f2fe0ab84f41b640b1f519d6315f084295271128 Mon Sep 17 00:00:00 2001 From: jishenghua <752718920@qq.com> Date: Wed, 10 Apr 2024 00:35:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=8A=A5=E8=A1=A8=E7=9A=84?= =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E5=A2=9E=E5=8A=A0=E5=90=88=E8=AE=A1=E8=A1=8C?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E5=80=99=E5=8C=B9=E9=85=8D=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jshERP-web/src/mixins/JeecgListMixin.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jshERP-web/src/mixins/JeecgListMixin.js b/jshERP-web/src/mixins/JeecgListMixin.js index 1c9ba09f..23911200 100644 --- a/jshERP-web/src/mixins/JeecgListMixin.js +++ b/jshERP-web/src/mixins/JeecgListMixin.js @@ -479,17 +479,17 @@ export const JeecgListMixin = { //分页条数为11、21、31等的时候增加合计行 let numKey = 'rowIndex' let totalRow = { [numKey]: '合计' } - //需要合计的列 + //需要合计的列,记住最后的逗号不要删除 let parseCols = 'initialStock,currentStock,currentStockPrice,currentWeight,initialAmount,thisMonthAmount,currentAmount,inSum,inSumPrice,' + 'inOutSumPrice,outSum,outSumPrice,outInSumPrice,operNumber,allPrice,numSum,priceSum,prevSum,thisSum,thisAllPrice,changeAmount,' + 'allPrice,taxMoney,currentNumber,lowCritical,highCritical,preNeed,debtMoney,backMoney,allNeed,' + - 'needDebt,realNeedDebt,finishDebt,debt' + 'needDebt,realNeedDebt,finishDebt,debt,' columns.forEach(column => { let { key, dataIndex } = column if (![key, dataIndex].includes(numKey)) { let total = 0 dataSource.forEach(data => { - if(parseCols.indexOf(dataIndex)>-1) { + if(parseCols.indexOf(dataIndex+',')>-1) { if(data[dataIndex]) { total += Number.parseFloat(data[dataIndex]) } else {