综合销售表标准品名列 客户名称列和产品可销库存、库存产品占比表ID列都改为可以手动填入宽度,并且适配报表宽度铺满窗口的要求
This commit is contained in:
@@ -847,10 +847,16 @@ const getTableData = async (isLoading = true) => {
|
|||||||
let item=tableOption.value.column[key]
|
let item=tableOption.value.column[key]
|
||||||
item.hide=hides.includes(item.prop)||hideColumns.value.includes(item.prop)
|
item.hide=hides.includes(item.prop)||hideColumns.value.includes(item.prop)
|
||||||
})
|
})
|
||||||
|
const liveWidthCol={
|
||||||
|
'InventoryRatio':['产品ID','货品ID'],
|
||||||
|
'PSI':['产品ID','货品ID'],
|
||||||
|
'ZHXSQK':['标准品名','客户名称']
|
||||||
|
}
|
||||||
Object.keys(tableOption.value.column).forEach(key=>{
|
Object.keys(tableOption.value.column).forEach(key=>{
|
||||||
const showCols=Object.values(tableOption.value.column).filter(item=>!item.hide)
|
const showCols=Object.values(tableOption.value.column).filter(item=>!item.hide)
|
||||||
|
|
||||||
let item=tableOption.value.column[key]
|
let item=tableOption.value.column[key]
|
||||||
item.children?'':(item.width=showCols.length<14?undefined:item.widthOld)
|
item.children?'':(item.width=showCols.length<14&&!liveWidthCol[props.reportCode].includes(item.label)?undefined:item.widthOld)
|
||||||
item.children?.forEach(child=>{
|
item.children?.forEach(child=>{
|
||||||
child.width=showCols.length<14?undefined:child.widthOld
|
child.width=showCols.length<14?undefined:child.widthOld
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user