From 9175f5b2f589ee065b993fb27d9e7c434a0325f0 Mon Sep 17 00:00:00 2001 From: mll Date: Thu, 9 Apr 2026 14:59:29 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=BC=E5=90=88=E9=94=80=E5=94=AE=E8=A1=A8?= =?UTF-8?q?=E6=A0=87=E5=87=86=E5=93=81=E5=90=8D=E5=88=97=20=E5=AE=A2?= =?UTF-8?q?=E6=88=B7=E5=90=8D=E7=A7=B0=E5=88=97=E5=92=8C=E4=BA=A7=E5=93=81?= =?UTF-8?q?=E5=8F=AF=E9=94=80=E5=BA=93=E5=AD=98=E3=80=81=E5=BA=93=E5=AD=98?= =?UTF-8?q?=E4=BA=A7=E5=93=81=E5=8D=A0=E6=AF=94=E8=A1=A8ID=E5=88=97?= =?UTF-8?q?=E9=83=BD=E6=94=B9=E4=B8=BA=E5=8F=AF=E4=BB=A5=E6=89=8B=E5=8A=A8?= =?UTF-8?q?=E5=A1=AB=E5=85=A5=E5=AE=BD=E5=BA=A6=EF=BC=8C=E5=B9=B6=E4=B8=94?= =?UTF-8?q?=E9=80=82=E9=85=8D=E6=8A=A5=E8=A1=A8=E5=AE=BD=E5=BA=A6=E9=93=BA?= =?UTF-8?q?=E6=BB=A1=E7=AA=97=E5=8F=A3=E7=9A=84=E8=A6=81=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/LowDesign/src/LowReport/index.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/LowDesign/src/LowReport/index.vue b/src/components/LowDesign/src/LowReport/index.vue index 9637b95..4990256 100644 --- a/src/components/LowDesign/src/LowReport/index.vue +++ b/src/components/LowDesign/src/LowReport/index.vue @@ -847,10 +847,16 @@ const getTableData = async (isLoading = true) => { let item=tableOption.value.column[key] 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=>{ const showCols=Object.values(tableOption.value.column).filter(item=>!item.hide) + 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=>{ child.width=showCols.length<14?undefined:child.widthOld })