From 7cd1e1f9b6cb817b5667c1dcb7ecaaa145f3b30f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E8=99=B9=E7=9D=BF?= <297504645@qq.com> Date: Thu, 30 May 2024 14:27:12 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90nev-=E6=8A=A5=E8=A1=A8=E3=80=91?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6=E5=BF=85=E5=A1=AB=E5=8F=8A?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=80=BC=E5=B0=81=E8=A3=85=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/reportPage/index.vue | 16 +++++++++-- .../src/components/reportPageHeader/index.vue | 28 +++++++++++++++++-- .../src/views/report/InventoryJournalERP.vue | 22 +++++++++++---- 3 files changed, 56 insertions(+), 10 deletions(-) diff --git a/fe/UI.DY.AgGridReport/src/components/reportPage/index.vue b/fe/UI.DY.AgGridReport/src/components/reportPage/index.vue index 9ad189ce7..085162d16 100644 --- a/fe/UI.DY.AgGridReport/src/components/reportPage/index.vue +++ b/fe/UI.DY.AgGridReport/src/components/reportPage/index.vue @@ -6,6 +6,7 @@ @columnFliterCallback="columnFliterCallback" :searchConfig="searchConfig" :searchForm="searchForm" + :searchRules="searchRules" :reportName="reportName" @headerSearchHandle="headerSearchHandle" :showReportTitle="showReportTitle" @@ -52,6 +53,11 @@ export default { type: Object, default: null }, + // 查询条件必填项 + searchRules:{ + type: Object, + default:null + }, // 底部汇总配置 BottomFixedItem:{ type: Array, @@ -111,8 +117,14 @@ export default { }) }, // 查询事件 - headerSearchHandle(data){ - this.getList() + headerSearchHandle(data,el){ + el.validate((valid) => { + if (valid) { + this.getList() + } else { + return false; + } + }); }, // 更新表格数据 updateTableData(data){ diff --git a/fe/UI.DY.AgGridReport/src/components/reportPageHeader/index.vue b/fe/UI.DY.AgGridReport/src/components/reportPageHeader/index.vue index c544980e2..1a291ab2f 100644 --- a/fe/UI.DY.AgGridReport/src/components/reportPageHeader/index.vue +++ b/fe/UI.DY.AgGridReport/src/components/reportPageHeader/index.vue @@ -7,6 +7,7 @@