From d0297f802ff7f64d5ce45090d1b27fd5363779e2 Mon Sep 17 00:00:00 2001
From: xiaofajia <1665375861@qq.com>
Date: Tue, 3 Dec 2024 12:28:41 +0800
Subject: [PATCH] =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E5=AF=BC=E5=87=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/base/carmain/index.js | 30 +++++++++++++++++++
src/views/base/carmain/inspection.vue | 19 ++++++++++++
src/views/base/carmain/insurance.vue | 15 ++++++++++
src/views/base/carmain/maintenance.vue | 19 ++++++++++++
.../customer/components/PrivateCustomer.vue | 2 +-
src/views/member/active/index.vue | 2 +-
src/views/member/coupon/index.vue | 2 +-
src/views/member/level/index.vue | 2 +-
src/views/repair/other/index.vue | 2 +-
src/views/repair/repairworker/index.vue | 2 +-
src/views/repair/supplier/index.vue | 2 +-
src/views/repair/wares/index.vue | 4 +--
12 files changed, 92 insertions(+), 9 deletions(-)
diff --git a/src/api/base/carmain/index.js b/src/api/base/carmain/index.js
index 7ee64df..f50f094 100644
--- a/src/api/base/carmain/index.js
+++ b/src/api/base/carmain/index.js
@@ -96,4 +96,34 @@ export function getByLicenseNumber(data){
})
}
+// 导出数据 年检临期
+export function exportInspection(params){
+ return request({
+ url: '/base/carMain/export-inspection',
+ method: 'get',
+ params,
+ responseType: 'blob'
+ })
+}
+
+// 导出数据 保养临期
+export function exportMaintenance(params){
+ return request({
+ url: '/base/carMain/export-maintenance',
+ method: 'get',
+ params,
+ responseType: 'blob'
+ })
+}
+
+// 导出数据 保险临期
+export function exportInsurance(params){
+ return request({
+ url: '/base/carMain/export-insurance',
+ method: 'get',
+ params,
+ responseType: 'blob'
+ })
+}
+
diff --git a/src/views/base/carmain/inspection.vue b/src/views/base/carmain/inspection.vue
index 7ee06fc..b3660c3 100644
--- a/src/views/base/carmain/inspection.vue
+++ b/src/views/base/carmain/inspection.vue
@@ -21,6 +21,10 @@
一键提醒
+
+ 导出
+
@@ -133,6 +137,21 @@ export default {
this.resetForm("queryForm");
this.handleQuery();
},
+ /** 导出按钮操作 */
+ handleExport() {
+ this.$modal.confirm('是否确认导出当前查询条件所有数据项?').then(() => {
+ // 处理查询参数
+ let params = {...this.queryParams};
+ params.pageNo = undefined;
+ params.pageSize = undefined;
+ this.exportLoading = true;
+ return CarMainApi.exportInspection(params)
+ }).then(response => {
+ this.$download.excel(response, '年检临期提醒数据.xls');
+ }).finally(() => {
+ this.exportLoading = false;
+ });
+ },
}
};
diff --git a/src/views/base/carmain/insurance.vue b/src/views/base/carmain/insurance.vue
index 64e72ca..657cda4 100644
--- a/src/views/base/carmain/insurance.vue
+++ b/src/views/base/carmain/insurance.vue
@@ -143,6 +143,21 @@ export default {
this.resetForm("queryForm");
this.handleQuery();
},
+ /** 导出按钮操作 */
+ handleExport() {
+ this.$modal.confirm('是否确认导出当前查询条件所有数据项?').then(() => {
+ // 处理查询参数
+ let params = {...this.queryParams};
+ params.pageNo = undefined;
+ params.pageSize = undefined;
+ this.exportLoading = true;
+ return CarMainApi.exportInsurance(params);
+ }).then(response => {
+ this.$download.excel(response, '保险临期提醒数据.xls');
+ }).finally(() => {
+ this.exportLoading = false;
+ });
+ },
}
};
diff --git a/src/views/base/carmain/maintenance.vue b/src/views/base/carmain/maintenance.vue
index 36f453c..fb8301b 100644
--- a/src/views/base/carmain/maintenance.vue
+++ b/src/views/base/carmain/maintenance.vue
@@ -21,6 +21,10 @@
一键提醒
+
+ 导出
+
@@ -138,6 +142,21 @@ export default {
this.resetForm("queryForm");
this.handleQuery();
},
+ /** 导出按钮操作 */
+ handleExport() {
+ this.$modal.confirm('是否确认导出当前查询条件所有数据项?').then(() => {
+ // 处理查询参数
+ let params = {...this.queryParams};
+ params.pageNo = undefined;
+ params.pageSize = undefined;
+ this.exportLoading = true;
+ return CarMainApi.exportMaintenance(params);
+ }).then(response => {
+ this.$download.excel(response, '保养临期提醒数据.xls');
+ }).finally(() => {
+ this.exportLoading = false;
+ });
+ },
}
};
diff --git a/src/views/base/customer/components/PrivateCustomer.vue b/src/views/base/customer/components/PrivateCustomer.vue
index 12c0caa..aa17738 100644
--- a/src/views/base/customer/components/PrivateCustomer.vue
+++ b/src/views/base/customer/components/PrivateCustomer.vue
@@ -26,7 +26,7 @@
- 导出
diff --git a/src/views/member/active/index.vue b/src/views/member/active/index.vue
index ea55cf0..efd030f 100644
--- a/src/views/member/active/index.vue
+++ b/src/views/member/active/index.vue
@@ -25,7 +25,7 @@
- 导出
diff --git a/src/views/member/coupon/index.vue b/src/views/member/coupon/index.vue
index 04fbd0e..5499cbf 100644
--- a/src/views/member/coupon/index.vue
+++ b/src/views/member/coupon/index.vue
@@ -32,7 +32,7 @@
- 导出
diff --git a/src/views/member/level/index.vue b/src/views/member/level/index.vue
index 3b2f60c..6fdd726 100644
--- a/src/views/member/level/index.vue
+++ b/src/views/member/level/index.vue
@@ -18,7 +18,7 @@
- 导出
diff --git a/src/views/repair/other/index.vue b/src/views/repair/other/index.vue
index 3d96fa7..fcbe1ef 100644
--- a/src/views/repair/other/index.vue
+++ b/src/views/repair/other/index.vue
@@ -18,7 +18,7 @@
- 导出
diff --git a/src/views/repair/repairworker/index.vue b/src/views/repair/repairworker/index.vue
index 5e2d691..f12343e 100644
--- a/src/views/repair/repairworker/index.vue
+++ b/src/views/repair/repairworker/index.vue
@@ -26,7 +26,7 @@
- 导出
diff --git a/src/views/repair/supplier/index.vue b/src/views/repair/supplier/index.vue
index 09da929..bd90417 100644
--- a/src/views/repair/supplier/index.vue
+++ b/src/views/repair/supplier/index.vue
@@ -19,7 +19,7 @@
- 导出
diff --git a/src/views/repair/wares/index.vue b/src/views/repair/wares/index.vue
index 747b123..f6deb43 100644
--- a/src/views/repair/wares/index.vue
+++ b/src/views/repair/wares/index.vue
@@ -28,12 +28,12 @@
- 导入
- 导出