重点客户收入与占比情况 最后一列合计放到真正的合计行 客户名称字段改为可以自定义width
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user