From 5ea16bde8ada44508349f91ede6086801c41eb0b Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 19 Mar 2024 17:13:03 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E5=88=86=E6=9E=90=E5=AF=BC?= =?UTF-8?q?=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/route.js | 40 +++++++-------- src/views/statistics/good_check.vue | 30 ++++++++--- src/views/statistics/inm_check.vue | 46 ++++++++--------- src/views/statistics/inm_statistics.vue | 31 +++++++++--- src/views/statistics/material_statistics.vue | 37 ++++++++++---- src/views/statistics/pass_num.vue | 53 +++++++++++++------- src/views/statistics/ppass_num.vue | 19 +++++-- src/views/statistics/product_check.vue | 33 ++++++++---- src/views/statistics/task_rate.vue | 30 ++++++++--- src/views/statistics/user_statistics.vue | 16 ++++-- 10 files changed, 227 insertions(+), 108 deletions(-) diff --git a/src/config/route.js b/src/config/route.js index 5e791df6..e83671c2 100644 --- a/src/config/route.js +++ b/src/config/route.js @@ -2379,26 +2379,26 @@ const routes = [ }, "component": "statistics/good_check.vue" }, - { - "name": "behavior_check", - "path": "/statistic/behavior_check", - "meta": { - "title": "性能检验", - "icon": "el-icon-cellphone", - "perms": ["statistic_qm"] - }, - "component": "statistics/behavior_check.vue" - }, - { - "name": "enter_check", - "path": "/statistic/enter_check", - "meta": { - "title": "入厂检验", - "icon": "el-icon-cellphone", - "perms": ["statistic_qm"] - }, - "component": "statistics/enter_check.vue" - }, + // { + // "name": "behavior_check", + // "path": "/statistic/behavior_check", + // "meta": { + // "title": "性能检验", + // "icon": "el-icon-cellphone", + // "perms": ["statistic_qm"] + // }, + // "component": "statistics/behavior_check.vue" + // }, + // { + // "name": "enter_check", + // "path": "/statistic/enter_check", + // "meta": { + // "title": "入厂检验", + // "icon": "el-icon-cellphone", + // "perms": ["statistic_qm"] + // }, + // "component": "statistics/enter_check.vue" + // }, ] }, //物料统计 diff --git a/src/views/statistics/good_check.vue b/src/views/statistics/good_check.vue index 45bc925a..528b43bd 100644 --- a/src/views/statistics/good_check.vue +++ b/src/views/statistics/good_check.vue @@ -40,8 +40,9 @@ - - + + 导出 + @@ -66,8 +67,9 @@ - - + + 导出 + @@ -92,8 +94,9 @@ - - + + 导出 + @@ -285,9 +288,22 @@ this.getData7(); this.getData10(); }, + handleExport(val) { + this.exportLoading = true; + let id = '#exportDiv' + val; + let name = val+'成品检验统计'; + this.$XLSX(id, name); + this.exportLoading = false; + }, }, } - diff --git a/src/views/statistics/inm_check.vue b/src/views/statistics/inm_check.vue index 68818b64..156109a9 100644 --- a/src/views/statistics/inm_check.vue +++ b/src/views/statistics/inm_check.vue @@ -40,8 +40,9 @@ - - + + 导出 + @@ -74,12 +75,13 @@ - + - - + + 导出 + @@ -194,7 +196,6 @@ this.start_date =year+'-'+month+'-01'; this.end_date = year+'-'+month+'-'+new Date(year, month, 0).getDate(); this.queryDate = year+'-'+month; - this.getData6(); this.getData7(); this.getData10(); }, @@ -209,20 +210,8 @@ } this.option.xAxis.data = this.xAxisData; this.option2.xAxis.data = this.xAxisData; - this.option3.xAxis.data = this.xAxisData; - this.option4.xAxis.data = this.xAxisData; - }, - getData6(){ - let that = this; - let exec = that.queryType=='月'?'lineWeek':'lineMonth'; - let obj = { - query: { start_date: this.start_date, end_date: this.end_date, dept_name: "6车间" }, - }; - that.$API.bi.dataset.exec.req(exec, obj).then((doInRes) => { - console.log('6生产车间统计:',doInRes); - debugger; - }); }, + //预制棒检验统计 getData7(){ let that = this; let obj = { @@ -234,6 +223,7 @@ debugger; }); }, + //预制管检验统计 getData10(){ let that = this; let obj = { @@ -265,15 +255,25 @@ this.end_date = this.currentYear+'-12-31'; } } - debugger; - console.log(this.query) - this.getData6(); this.getData7(); this.getData10(); }, + handleExport(val) { + this.exportLoading = true; + let id = '#exportDiv' + val; + let name = val == 'ZJ' ? '预制棒检验统计' : '预制管检验统计'; + this.$XLSX(id, name); + this.exportLoading = false; + }, }, } - diff --git a/src/views/statistics/inm_statistics.vue b/src/views/statistics/inm_statistics.vue index 31a1a23f..2864b75e 100644 --- a/src/views/statistics/inm_statistics.vue +++ b/src/views/statistics/inm_statistics.vue @@ -53,8 +53,9 @@
- - + + 导出 + @@ -63,7 +64,7 @@ - +
@@ -71,7 +72,7 @@
-

棒交付数

+

管交付数

- - + + 导出 + @@ -97,7 +99,7 @@ - + @@ -347,9 +349,22 @@ } this.getTableData(); }, + handleExport(val) { + this.exportLoading = true; + let id = '#exportDiv' + val; + let name = val == 'ZJ' ? '棒交付统计' : '管交付统计'; + this.$XLSX(id, name); + this.exportLoading = false; + }, }, } - diff --git a/src/views/statistics/material_statistics.vue b/src/views/statistics/material_statistics.vue index d6343ed4..c675c2ea 100644 --- a/src/views/statistics/material_statistics.vue +++ b/src/views/statistics/material_statistics.vue @@ -53,8 +53,9 @@
- - + + 导出 +