From 97f19da2f1d6682c0edc4eb1616551d5d621e5af 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, 2 Nov 2023 17:23:19 +0800
Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=8A=A5=E8=A1=A8=E3=80=91=E5=8D=83?=
=?UTF-8?q?=E4=BD=8D=E7=AC=A6+=E5=AF=BC=E5=87=BA=E5=8D=83=E4=BD=8D?=
=?UTF-8?q?=E7=AC=A6=E8=BD=AC=E6=8D=A2+=E9=A1=B5=E9=9D=A2title=E6=9B=B4?=
=?UTF-8?q?=E6=94=B9+=E5=B9=B3=E5=9D=87=E5=80=BC+=E5=AF=BC=E5=87=BAbug?=
=?UTF-8?q?=E5=A4=84=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/components/AgTable/index.vue | 20 +++--
.../src/components/exportExcel/index.vue | 63 ++++++++++++---
.../src/components/reportPage/index.vue | 6 ++
.../src/components/reportPageHeader/index.vue | 1 +
.../src/router/index.js | 77 +++++++++++--------
.../src/utils/util.js | 36 ++++++++-
.../src/views/Home.vue | 2 +-
.../src/views/report/inventoryAndAge.vue | 19 ++---
.../src/views/report/inventoryERPWMS.vue | 11 +--
.../src/views/report/inventoryTrans.vue | 9 +--
.../src/views/report/procureHasPOReport.vue | 12 ++-
.../src/views/report/procureNoPOReport.vue | 50 ++++++++++++
12 files changed, 225 insertions(+), 81 deletions(-)
create mode 100644 PC/UI.WinIn.FasterZ.AgGridReport/src/views/report/procureNoPOReport.vue
diff --git a/PC/UI.WinIn.FasterZ.AgGridReport/src/components/AgTable/index.vue b/PC/UI.WinIn.FasterZ.AgGridReport/src/components/AgTable/index.vue
index 2fcc553..0cd917a 100644
--- a/PC/UI.WinIn.FasterZ.AgGridReport/src/components/AgTable/index.vue
+++ b/PC/UI.WinIn.FasterZ.AgGridReport/src/components/AgTable/index.vue
@@ -47,6 +47,11 @@ export default {
type:Array,
default:[]
},
+ // 底部汇总配置-平均值
+ averageFixedItem:{
+ type: Array,
+ default: null
+ },
},
data () {
return {
@@ -62,7 +67,7 @@ export default {
autoHeight:true
},
tableHeight:null,
- pageSizes:[10, 100, 300, 500, 1000, 3000, 5000, 10000],
+ pageSizes:[10, 20,100, 300, 500, 1000, 3000, 5000, 10000],
pageTotal:null,
currentPage:1,
currentPageSize:100,
@@ -116,15 +121,19 @@ export default {
let _pageData = this.getCurrentPageData(gridApi)
_pageData.forEach((item,key) => {
for(let o in item){
- // if(o == '合格率'){
- // // 百分比的特殊处理
- // }
if(this.BottomFixedItem.indexOf(o) >= 0){
result[0][o] += item[o]
}
}
});
- console.log(127,result)
+ // 平均值的特殊处理
+ if(this.averageFixedItem){
+ for(let i in result[0]){
+ if(this.averageFixedItem.indexOf(i) >= 0){
+ result[0][i] = result[0][i]/_pageData.length
+ }
+ }
+ }
this.pageTotal = this.allPageData.length
this.gridApi.setPinnedBottomRowData(result);
},
@@ -132,6 +141,7 @@ export default {
setTableHeight(){
let _headerH = document.getElementsByClassName('reportPageHeader')[0].clientHeight
let _footH = 50;
+
let _outH = _headerH + _footH
this.tableHeight = `calc(100vh - ${_outH}px)`
},
diff --git a/PC/UI.WinIn.FasterZ.AgGridReport/src/components/exportExcel/index.vue b/PC/UI.WinIn.FasterZ.AgGridReport/src/components/exportExcel/index.vue
index 37f2d0a..ab9f355 100644
--- a/PC/UI.WinIn.FasterZ.AgGridReport/src/components/exportExcel/index.vue
+++ b/PC/UI.WinIn.FasterZ.AgGridReport/src/components/exportExcel/index.vue
@@ -1,10 +1,17 @@
- 导出数据
+
+ 导出数据
+
\ No newline at end of file