From 31febf6659f925b4326936c3d0ce13badb87af8b Mon Sep 17 00:00:00 2001 From: mll Date: Thu, 23 Apr 2026 14:16:42 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E7=82=B9=E5=AE=A2=E6=88=B7=E6=94=B6?= =?UTF-8?q?=E5=85=A5=E4=B8=8E=E5=8D=A0=E6=AF=94=E6=83=85=E5=86=B5=20?= =?UTF-8?q?=E6=9C=80=E5=90=8E=E4=B8=80=E5=88=97=E5=90=88=E8=AE=A1=E6=94=BE?= =?UTF-8?q?=E5=88=B0=E7=9C=9F=E6=AD=A3=E7=9A=84=E5=90=88=E8=AE=A1=E8=A1=8C?= =?UTF-8?q?=20=E5=AE=A2=E6=88=B7=E5=90=8D=E7=A7=B0=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E5=8F=AF=E4=BB=A5=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?width?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/LowDesign/src/LowReport/index.vue | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/components/LowDesign/src/LowReport/index.vue b/src/components/LowDesign/src/LowReport/index.vue index b89b313..5c189d8 100644 --- a/src/components/LowDesign/src/LowReport/index.vue +++ b/src/components/LowDesign/src/LowReport/index.vue @@ -965,7 +965,15 @@ const getTableData = async (isLoading = true) => { if(tableInfo.value.reportCode==='ZHXSQK'){ value=(await ReportApi.getAggMonthTotalDetail(searchObj))[0] // searchObj['usemonth']?'':value.thisMonthSaMoney_s=value.thissamoney_s - + } + const tData=JSON.parse(JSON.stringify(tableData.value)) + if(props.reportCode==='zd_customer'&&tableData.value.filter(item=>item.customname=='合计').length){ + value=tData.filter(item=>item.customname=='合计')[0] + value.customname='' + Object.keys(value).forEach(key=>{ + value[key+'_s']=value[key] + }) + tableData.value=tableData.value.filter(item=>item.customname!=='合计') } keys.forEach(item=>{ let key=amountFieds.value[item].prop @@ -993,7 +1001,8 @@ const getTableData = async (isLoading = true) => { 'InventoryRatio':['产品ID','货品ID','产品名称','产品规格',], 'PSI':['产品ID','货品ID','产品名称','产品规格','单位','每件数量'], 'ZHXSQK':['标准品名','客户名称'], - 'kcqmltj':['产品名称','规格','商品名','通用名'] + 'kcqmltj':['产品名称','规格','商品名','通用名'], + 'zd_customer':['客户名称'] } Object.keys(tableOption.value.column).forEach(key=>{ const showCols=Object.values(tableOption.value.column).filter(item=>!item.hide)