From 079a7ba0915038f265c54c6c4dc964a7c3f98250 Mon Sep 17 00:00:00 2001 From: "qianhao.xu" Date: Sun, 18 Feb 2024 13:46:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A8=E9=87=8F=E7=BB=9F=E8=AE=A1=E7=AC=AC?= =?UTF-8?q?=E4=B8=80=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/productManagement/workorder2.vue | 8 +- .../FQC/qualityStatistics.vue | 51 ++++++-- .../FQC/qualityStatistics2.vue | 112 ++++++++++++++++++ 3 files changed, 156 insertions(+), 15 deletions(-) create mode 100644 src/views/qualityManagement/FQC/qualityStatistics2.vue diff --git a/src/views/productManagement/workorder2.vue b/src/views/productManagement/workorder2.vue index f2535a2..4f4cc4c 100644 --- a/src/views/productManagement/workorder2.vue +++ b/src/views/productManagement/workorder2.vue @@ -5,11 +5,11 @@ - - + + - - + + diff --git a/src/views/qualityManagement/FQC/qualityStatistics.vue b/src/views/qualityManagement/FQC/qualityStatistics.vue index e36b1f5..b3db309 100644 --- a/src/views/qualityManagement/FQC/qualityStatistics.vue +++ b/src/views/qualityManagement/FQC/qualityStatistics.vue @@ -3,19 +3,25 @@
- - + + + - - + + + - - + + + + + 搜索 + EXCEL导出
@@ -28,7 +34,7 @@ :row-config="{ useKey: true }" > - + @@ -122,11 +128,34 @@ export default { name: 'qualityStatistics', data() { return { + pickerOptions: { + shortcuts: [{ + text: '今天', + onClick(picker) { + picker.$emit('pick', new Date()); + } + }, { + text: '昨天', + onClick(picker) { + const date = new Date(); + date.setTime(date.getTime() - 3600 * 1000 * 24); + picker.$emit('pick', date); + } + }, { + text: '一周前', + onClick(picker) { + const date = new Date(); + date.setTime(date.getTime() - 3600 * 1000 * 24 * 7); + picker.$emit('pick', date); + } + }] + }, search: { - year: 2023, - week: null, - date: null, - workorderid: '', + starttime:null, + endtime:null, + team:null, + workorderid:null, + partnumber:null }, pagination: { total: 0, diff --git a/src/views/qualityManagement/FQC/qualityStatistics2.vue b/src/views/qualityManagement/FQC/qualityStatistics2.vue new file mode 100644 index 0000000..b3c26d5 --- /dev/null +++ b/src/views/qualityManagement/FQC/qualityStatistics2.vue @@ -0,0 +1,112 @@ + + + + +