From 51befc8bba5d721ff813ae13258dfd97386ff704 Mon Sep 17 00:00:00 2001 From: mll Date: Fri, 17 Apr 2026 18:01:55 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=BC=E5=90=88=E9=94=80=E5=94=AE=E8=A1=A8?= =?UTF-8?q?=E4=B8=8B=E9=92=BB=E8=AF=A6=E6=83=85=E9=A1=B5=E9=9D=A2=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=AD=97=E6=AE=B5=E4=B8=BAnull=E5=88=99=E9=9A=90?= =?UTF-8?q?=E8=97=8F=E5=AF=B9=E5=BA=94=E5=88=97=EF=BC=8C=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E8=A1=A8=E5=8D=95=E5=9C=A8initOption=E5=86=85?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E7=9A=84=E9=BB=98=E8=AE=A4=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=EF=BC=8C=E6=96=B0=E5=A2=9E=E6=88=96=E8=80=85=E9=87=8D=E7=BD=AE?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E5=90=8E=E4=B9=9F=E8=A6=81=E4=BF=9D=E7=95=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/LowDesign/src/LowReport/index.vue | 3 +-- src/components/LowDesign/src/LowTable/index.vue | 6 ++++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/LowDesign/src/LowReport/index.vue b/src/components/LowDesign/src/LowReport/index.vue index faa153b..f2fb1df 100644 --- a/src/components/LowDesign/src/LowReport/index.vue +++ b/src/components/LowDesign/src/LowReport/index.vue @@ -301,14 +301,13 @@ const getSaleInfo=async ()=>{ }) tableSaleOption.value.height='calc(100vh - 160px)' fieldList.value.forEach(item=>{ - if(Object.keys(res.records[0]).includes(item.fieldCode)){ + if(res.records[0]&&(res.records[0][item.fieldCode]||res.records[0][item.fieldCode]==0)){ let config={ prop:item.fieldCode, label:item.fieldName, width:item.width?item.width+'px':item.fieldName=='产品名称'?'200px':undefined, align:'center', } - tableSaleOption.value.column[item.fieldCode]=config } }) diff --git a/src/components/LowDesign/src/LowTable/index.vue b/src/components/LowDesign/src/LowTable/index.vue index ebf64e4..33d856d 100644 --- a/src/components/LowDesign/src/LowTable/index.vue +++ b/src/components/LowDesign/src/LowTable/index.vue @@ -471,7 +471,7 @@ const subTabsValue = ref({}) const subFormRef = ref({}) const subTableRef = ref({}) const subTabsRef = ref() - +const searchDefaultValue = ref({}) const erpTabsOption = ref({}) const menuLeftShow = ref(true) const erpTableRef = ref({}) @@ -710,6 +710,8 @@ const initTable = async () => { } try { if (jsEnhanceObj.value.initOption) jsEnhanceObj.value.initOption() + searchDefaultValue.value =JSON.parse(JSON.stringify(tableSearch.value)) + } catch (error) { enhanceErrorTip('js增强【initOption】方法执行异常,请检查', error) } @@ -1466,7 +1468,7 @@ const searchChange = (params, done) => { } const resetChange = () => { return new Promise(async (resolve) => { - tableSearch.value = {} + tableSearch.value = {...searchDefaultValue.value} if (tableInfo.value.tableType == 'treeAround' && tableCurrType.value != 'add') { treeRef.value.setCurrentKey(null) treeAroundRow.value = {}