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)