From a2b9695824cdedd38820a20c39182c92a9c11adb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E8=99=B9=E7=9D=BF?= <297504645@qq.com> Date: Tue, 24 Dec 2024 15:18:22 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=B8=9C=E9=98=B3-=E6=8A=A5=E8=A1=A8?= =?UTF-8?q?=E3=80=91=E5=BC=80=E8=B4=A6=E4=BF=A1=E6=81=AF=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E8=A1=A8=E6=8A=A5=E7=89=B9=E6=AE=8A=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fe/UI.DY.AgGridReport/public/config.js | 3 +- .../src/components/AgTable/index.vue | 1 + .../src/components/reportPage/index.vue | 7 ++- fe/UI.DY.AgGridReport/src/router/index.js | 11 ++++ .../src/views/report/openingBalance.vue | 63 +++++++++++++++++++ 5 files changed, 83 insertions(+), 2 deletions(-) create mode 100644 fe/UI.DY.AgGridReport/src/views/report/openingBalance.vue diff --git a/fe/UI.DY.AgGridReport/public/config.js b/fe/UI.DY.AgGridReport/public/config.js index 98a5fcb7d..d2bd96c97 100644 --- a/fe/UI.DY.AgGridReport/public/config.js +++ b/fe/UI.DY.AgGridReport/public/config.js @@ -1 +1,2 @@ -window.SITE_CONFIG['apiURL'] = 'http://dev.ccwin-in.com:60078' \ No newline at end of file +window.SITE_CONFIG['apiURL'] = 'http://192.168.1.75:60029' +// window.SITE_CONFIG['apiURL'] = 'http://dev.ccwin-in.com:60078' \ No newline at end of file diff --git a/fe/UI.DY.AgGridReport/src/components/AgTable/index.vue b/fe/UI.DY.AgGridReport/src/components/AgTable/index.vue index 202480401..868bb6872 100644 --- a/fe/UI.DY.AgGridReport/src/components/AgTable/index.vue +++ b/fe/UI.DY.AgGridReport/src/components/AgTable/index.vue @@ -156,6 +156,7 @@ export default { this.gridApi.setRowData(data) this.setTableTotal(this.gridApi) this.gridApi.resetRowHeights(); + this.$emit('getPageCallBack',data) }, // 加载agGrid onGridReady(params) { diff --git a/fe/UI.DY.AgGridReport/src/components/reportPage/index.vue b/fe/UI.DY.AgGridReport/src/components/reportPage/index.vue index 085162d16..954496f66 100644 --- a/fe/UI.DY.AgGridReport/src/components/reportPage/index.vue +++ b/fe/UI.DY.AgGridReport/src/components/reportPage/index.vue @@ -16,6 +16,7 @@ :columnDefs="columnList" :BottomFixedItem="BottomFixedItem" :averageFixedItem="averageFixedItem" + @getPageCallBack="getPageCallBack" > @@ -133,7 +134,11 @@ export default { // 更新导出数据 updateDownloadData(data){ this.tableData = data - } + }, + // 获取数据后回调 + getPageCallBack(data){ + this.$emit('getPageCallBack',data) + }, }, }; \ No newline at end of file diff --git a/fe/UI.DY.AgGridReport/src/router/index.js b/fe/UI.DY.AgGridReport/src/router/index.js index f2ba52c7e..e16dc38e8 100644 --- a/fe/UI.DY.AgGridReport/src/router/index.js +++ b/fe/UI.DY.AgGridReport/src/router/index.js @@ -25,6 +25,8 @@ import ProductionReturnSummary from '../views/report/ProductionReturnSummary.vue import ProductReceiptSummary from '../views/report/ProductReceiptSummary.vue' import SupplierAndOrderSummary from '../views/report/SupplierAndOrderSummary.vue' import rawScrapList from '../views/report/rawScrapList.vue' +import openingBalance from '../views/report/openingBalance.vue' + import InventoryBookDetail from '../views/report/InventoryBookDetail.vue' Vue.use(VueRouter) @@ -229,6 +231,15 @@ const routes = [ title:"原物料过期报表", } }, + { + path: '/openingBalance', + name: 'openingBalance', + component: openingBalance, + meta:{ + title:"开账信息查询报表", + } + }, + // { // path: '/InventoryBookDetail', // name: 'InventoryBookDetail', diff --git a/fe/UI.DY.AgGridReport/src/views/report/openingBalance.vue b/fe/UI.DY.AgGridReport/src/views/report/openingBalance.vue new file mode 100644 index 000000000..2717ae1fd --- /dev/null +++ b/fe/UI.DY.AgGridReport/src/views/report/openingBalance.vue @@ -0,0 +1,63 @@ + + + + \ No newline at end of file