From 9677940b89046b449f86622992a2d31987375240 Mon Sep 17 00:00:00 2001 From: qb <1191961160@qq.com> Date: Wed, 15 Jan 2025 17:27:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=83=A8=E5=88=86=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=EF=BC=8C=E6=96=B0=E5=A2=9E=E9=83=A8=E5=88=86=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/option/reportforms/PackageStartTimePageReport.js | 2 +- src/option/reportforms/PackageTransferTimePageReport.js | 2 +- src/utils/exportData.js | 2 +- src/views/basicdata/brand/ThreePartyMallManagement.vue | 9 ++++++++- src/views/basicdata/brand/basicClient.vue | 6 ++++++ src/views/distribution/artery/TripartiteTransfer.vue | 7 +++++++ 6 files changed, 24 insertions(+), 4 deletions(-) diff --git a/src/option/reportforms/PackageStartTimePageReport.js b/src/option/reportforms/PackageStartTimePageReport.js index d6ae17c6..f9d5ff71 100644 --- a/src/option/reportforms/PackageStartTimePageReport.js +++ b/src/option/reportforms/PackageStartTimePageReport.js @@ -119,7 +119,7 @@ export const columnList = [ }, { prop: 'avgTime', - label: '平均发运时效', + label: '平均发运时效(小时)', type: 1, values: '', width: '150', diff --git a/src/option/reportforms/PackageTransferTimePageReport.js b/src/option/reportforms/PackageTransferTimePageReport.js index ba7f4a09..4eb82c03 100644 --- a/src/option/reportforms/PackageTransferTimePageReport.js +++ b/src/option/reportforms/PackageTransferTimePageReport.js @@ -142,7 +142,7 @@ export const columnList = [ }, { prop: 'avgTime', - label: '平均中转时效', + label: '平均中转时效(小时)', type: 1, values: '', width: '150', diff --git a/src/utils/exportData.js b/src/utils/exportData.js index 6ebf6135..f9f1fd30 100644 --- a/src/utils/exportData.js +++ b/src/utils/exportData.js @@ -7,7 +7,7 @@ export function exportExcel(columnList = [], listData = [], name = 'excel') { const headers = []; - const blackArr = ['序号', '复选框', '操作']; + const blackArr = ['序号', '复选框', '操作', '全选']; const data = []; diff --git a/src/views/basicdata/brand/ThreePartyMallManagement.vue b/src/views/basicdata/brand/ThreePartyMallManagement.vue index 2f6577c9..dda8b15a 100644 --- a/src/views/basicdata/brand/ThreePartyMallManagement.vue +++ b/src/views/basicdata/brand/ThreePartyMallManagement.vue @@ -21,6 +21,7 @@
+ @@ -134,6 +135,7 @@ import { downloadXls, handleClearTableQuery } from '@/utils/util'; import { useStore } from 'vuex'; import { getDictionaryBiz } from '@/api/system/dict'; import dayjs from 'dayjs'; +import { exportExcel } from '@/utils/exportData'; const $router = useRouter(); //跳转 const $useStore = useStore(); //权限 const $route = useRoute(); //获取地址栏参数 @@ -406,7 +408,7 @@ const handleSubmit = async () => { } }; // 删除 -const ViewDelete = (row) => { +const ViewDelete = row => { ElMessageBox.confirm('是否确认删除数据?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', @@ -423,6 +425,11 @@ const ViewDelete = (row) => { }) .catch(() => {}); }; + +/** 导出表格 */ +const handleExportData = () => { + exportExcel(details.columnList, details.data, '三方商场 - ' + new Date().getTime()); +};