-
棒交付数
+
管交付数
-
-
+
+ 导出
+
@@ -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 @@
-
-
+
+ 导出
+
@@ -68,7 +69,7 @@
-
+
@@ -92,8 +93,9 @@
-
-
+
+ 导出
+
@@ -107,7 +109,7 @@
-
+
@@ -189,11 +191,15 @@
that.currentMonth = month;
that.start_date =year+'-'+month+'-01';
that.end_date = year+'-'+month+'-'+new Date(year, month, 0).getDate();
- let month1=month;
+ console.log('that.start_date',that.start_date)
+ console.log('that.end_date',that.end_date)
+ let month1 = month;
if(month1<10){month1='0'+month1}
that.queryDate = year+'-'+month1;
- that.firstWeekNum = that.getWeekOfYear(new Date(that.firstWeekNum));
+ that.firstWeekNum = that.getWeekOfYear(new Date(that.start_date));
that.endWeekNum = that.getWeekOfYear(new Date(that.end_date));
+ console.log('that.firstWeekNum',that.firstWeekNum)
+ console.log('that.endWeekNum',that.endWeekNum)
let duration = that.endWeekNum - that.firstWeekNum + 1;
for(let i =1;i<=duration;i++ ){
that.xAxisOrigin.push('第'+i+'周');
@@ -359,9 +365,22 @@
this.getInmData();
this.getOutData();
},
+ handleExport(val) {
+ this.exportLoading = true;
+ let id = '#exportDiv' + val;
+ let name = val == '1' ? '采购统计' : '消耗统计';
+ this.$XLSX(id, name);
+ this.exportLoading = false;
+ },
},
}
-
diff --git a/src/views/statistics/pass_num.vue b/src/views/statistics/pass_num.vue
index 91cd0240..f1372a2a 100644
--- a/src/views/statistics/pass_num.vue
+++ b/src/views/statistics/pass_num.vue
@@ -20,13 +20,13 @@
-
-
+
-
-
+
+ 导出
+
@@ -55,13 +55,13 @@
-
-
+
-
-
+
+ 导出
+
@@ -90,13 +90,13 @@
-
-
+
-
-
+
+ 导出
+
@@ -125,13 +125,13 @@
-
-
+
-
-
+
+ 导出
+
@@ -483,8 +483,27 @@ export default {
this.getData10();
this.getDataDAVG();
},
+ handleExport(val) {
+ this.exportLoading = true;
+ let id = '#exportDiv' + val;
+ let name = val == 'AVG' ? val + '合格数统计' : val+'车间合格数统计';
+ this.$XLSX(id, name);
+ this.exportLoading = false;
+ },
},
}
-
+
diff --git a/src/views/statistics/ppass_num.vue b/src/views/statistics/ppass_num.vue
index 995f9df5..821386e5 100644
--- a/src/views/statistics/ppass_num.vue
+++ b/src/views/statistics/ppass_num.vue
@@ -23,8 +23,9 @@
-
-
+
+ 导出
+
@@ -172,8 +173,20 @@ export default {
}
this.getData6();
},
+ handleExport() {
+ this.exportLoading = true;
+ this.$XLSX('#exportDiv', '工序合格数');
+ this.exportLoading = false;
+ },
},
}
-
+
diff --git a/src/views/statistics/product_check.vue b/src/views/statistics/product_check.vue
index 7e42db8d..07686ff3 100644
--- a/src/views/statistics/product_check.vue
+++ b/src/views/statistics/product_check.vue
@@ -21,8 +21,9 @@
-
-
+
+ 导出
+
@@ -65,8 +66,9 @@
-
-
+
+ 导出
+
@@ -113,8 +115,9 @@
-
-
+
+ 导出
+
@@ -159,7 +162,6 @@
-
-
-
+
diff --git a/src/views/statistics/task_rate.vue b/src/views/statistics/task_rate.vue
index f4cdd158..d9b486e6 100644
--- a/src/views/statistics/task_rate.vue
+++ b/src/views/statistics/task_rate.vue
@@ -51,8 +51,9 @@
-
-
+
+ 导出
+
@@ -66,8 +67,9 @@
-
-
+
+ 导出
+
@@ -81,8 +83,9 @@
-
-
+
+ 导出
+
@@ -326,9 +329,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/user_statistics.vue b/src/views/statistics/user_statistics.vue
index c1968c03..68b1c491 100644
--- a/src/views/statistics/user_statistics.vue
+++ b/src/views/statistics/user_statistics.vue
@@ -12,16 +12,16 @@