From 5a16a4923b78230dd5f7ef16b30356f5912be85b Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Wed, 14 Aug 2024 11:25:01 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=98=E7=82=B9=EF=BC=8C=E7=BF=BB=E5=8C=85?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E6=96=87=E4=BB=B6=E5=90=8D=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wms/countManage/count/countJobMain/index.vue | 10 +++++++--- .../wms/countManage/count/countPlanMain/index.vue | 6 ++++-- .../wms/countManage/count/countRecordMain/index.vue | 4 +++- .../wms/countManage/count/countRequestMain/index.vue | 6 ++++-- .../countadjust/countadjustRecordMain/index.vue | 4 +++- .../countadjust/countadjustRequestMain/index.vue | 6 ++++-- .../packageManage/packagemergeMain/index.vue | 4 +++- .../packageoverMain/packageoverJobMain/index.vue | 4 +++- .../packageoverMain/packageoverRecordMain/index.vue | 4 +++- .../packageoverMain/packageoverRequestMain/index.vue | 6 ++++-- .../packageoverMain/packageoverRetrospect/index.vue | 4 +++- .../packageManage/packagesplitMain/index.vue | 4 +++- 12 files changed, 44 insertions(+), 18 deletions(-) diff --git a/src/views/wms/countManage/count/countJobMain/index.vue b/src/views/wms/countManage/count/countJobMain/index.vue index b09b17706..f7ccf55c2 100644 --- a/src/views/wms/countManage/count/countJobMain/index.vue +++ b/src/views/wms/countManage/count/countJobMain/index.vue @@ -87,6 +87,7 @@ import * as CountJobDetailApi from '@/api/wms/countJobDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' import { CACHE_KEY, useCache } from '@/hooks/web/useCache' import * as PackageunitApi from "@/api/wms/packageunit"; +import { formatDate } from '@/utils/formatTime' // 盘点任务主 defineOptions({ name: 'CountJobMain' }) @@ -307,8 +308,9 @@ const handleExport = async () => { await message.exportConfirm() // 发起导出 exportLoading.value = true + const excelTitle = ref(route.meta.title) const data = await CountJobMainApi.exportCountJobMain(tableObject.params) - download.excel(data, '盘点任务主.xlsx') + download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -320,8 +322,10 @@ const handleExportCountJob = async (id: number,number: string) => { try { await message.exportConfirm() exportLoading.value = true + const excelTitle = ref(route.meta.title) const data = await CountJobMainApi.handleExportCountJob(id) - download.excel(data, '盘点任务主'+number+'.xlsx') + // download.excel(data, '盘点任务主'+number+'.xlsx') + download.excel(data, `【${excelTitle.value}${number}】【${formatDate(new Date())}】.xlsx`) } catch { }finally { exportLoading.value = false @@ -339,7 +343,7 @@ const handleImport = (id: string) => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '盘点任务导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 diff --git a/src/views/wms/countManage/count/countPlanMain/index.vue b/src/views/wms/countManage/count/countPlanMain/index.vue index c911417c1..6a301f0f2 100644 --- a/src/views/wms/countManage/count/countPlanMain/index.vue +++ b/src/views/wms/countManage/count/countPlanMain/index.vue @@ -144,6 +144,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' import BasicFormWmsCount from '@/components/BasicForm/src/BasicFormWmsCount.vue' +import { formatDate } from '@/utils/formatTime' // 盘点计划主 defineOptions({ name: 'CountPlanMain' }) @@ -620,8 +621,9 @@ const handleExport = async () => { await message.exportConfirm() // 发起导出 exportLoading.value = true + const excelTitle = ref(route.meta.title) const data = await CountPlanMainApi.exportCountPlanMain(tableObject.params) - download.excel(data, '盘点计划主.xlsx') + download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -708,7 +710,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '盘点计划主导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 diff --git a/src/views/wms/countManage/count/countRecordMain/index.vue b/src/views/wms/countManage/count/countRecordMain/index.vue index 830bf6e65..88ae6448c 100644 --- a/src/views/wms/countManage/count/countRecordMain/index.vue +++ b/src/views/wms/countManage/count/countRecordMain/index.vue @@ -67,6 +67,7 @@ import * as CountRecordMainApi from '@/api/wms/countRecordMain' import * as CountRecordDetailApi from '@/api/wms/countRecordDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' import { CACHE_KEY, useCache } from '@/hooks/web/useCache' +import { formatDate } from '@/utils/formatTime' // 盘点记录主 defineOptions({ name: 'CountRecordMain' }) @@ -165,8 +166,9 @@ const handleExport = async () => { await message.exportConfirm() // 发起导出 exportLoading.value = true + const excelTitle = ref(route.meta.title) const data = await CountRecordMainApi.exportCountRecordMain(tableObject.params) - download.excel(data, '盘点记录主.xlsx') + download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false diff --git a/src/views/wms/countManage/count/countRequestMain/index.vue b/src/views/wms/countManage/count/countRequestMain/index.vue index cd29c597c..4a90f6378 100644 --- a/src/views/wms/countManage/count/countRequestMain/index.vue +++ b/src/views/wms/countManage/count/countRequestMain/index.vue @@ -114,6 +114,7 @@ import * as CountRequestMainApi from '@/api/wms/countRequestMain' import * as CountRequestDetailApi from '@/api/wms/countRequestDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' import { SearchTableCount } from '@/components/SearchTableCount' +import { formatDate } from '@/utils/formatTime' // 盘点申请 defineOptions({ name: 'CountRequestMain' }) @@ -500,8 +501,9 @@ const handleExport = async () => { await message.exportConfirm() // 发起导出 exportLoading.value = true + const excelTitle = ref(route.meta.title) const data = await CountRequestMainApi.exportCountRequestMain(tableObject.params) - download.excel(data, '盘点申请主.xlsx') + download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -564,7 +566,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '盘点申请主导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 diff --git a/src/views/wms/countManage/countadjust/countadjustRecordMain/index.vue b/src/views/wms/countManage/countadjust/countadjustRecordMain/index.vue index 3b22a5f60..1d3ed4146 100644 --- a/src/views/wms/countManage/countadjust/countadjustRecordMain/index.vue +++ b/src/views/wms/countManage/countadjust/countadjustRecordMain/index.vue @@ -67,6 +67,7 @@ import * as CountadjustRecordMainApi from '@/api/wms/countadjustRecordMain' import * as CountadjustRecordDetailApi from '@/api/wms/countadjustRecordDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' import { CACHE_KEY, useCache } from '@/hooks/web/useCache' +import { formatDate } from '@/utils/formatTime' // 盘点调整记录主 defineOptions({ name: 'CountadjustRecordMain' }) @@ -151,8 +152,9 @@ const handleExport = async () => { await message.exportConfirm() // 发起导出 exportLoading.value = true + const excelTitle = ref(route.meta.title) const data = await CountadjustRecordMainApi.exportCountadjustRecordMain(tableObject.params) - download.excel(data, '盘点调整记录主.xlsx') + download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false diff --git a/src/views/wms/countManage/countadjust/countadjustRequestMain/index.vue b/src/views/wms/countManage/countadjust/countadjustRequestMain/index.vue index 3d5f41c6f..dd89dd566 100644 --- a/src/views/wms/countManage/countadjust/countadjustRequestMain/index.vue +++ b/src/views/wms/countManage/countadjust/countadjustRequestMain/index.vue @@ -87,6 +87,7 @@ import { CountadjustRequestMain,CountadjustRequestMainRules,CountadjustRequestDe import * as CountadjustRequestMainApi from '@/api/wms/countadjustRequestMain' import * as CountadjustRequestDetailApi from '@/api/wms/countadjustRequestDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' +import { formatDate } from '@/utils/formatTime' // 盘点调整申请 defineOptions({ name: 'CountadjustRequestMain' }) @@ -320,8 +321,9 @@ const handleExport = async () => { await message.exportConfirm() // 发起导出 exportLoading.value = true + const excelTitle = ref(route.meta.title) const data = await CountadjustRequestMainApi.exportCountadjustRequestMain(tableObject.params) - download.excel(data, '盘点调整申请主.xlsx') + download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -384,7 +386,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '盘点调整申请主导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 diff --git a/src/views/wms/inventoryjobManage/packageManage/packagemergeMain/index.vue b/src/views/wms/inventoryjobManage/packageManage/packagemergeMain/index.vue index 03db5751b..c257c159b 100644 --- a/src/views/wms/inventoryjobManage/packageManage/packagemergeMain/index.vue +++ b/src/views/wms/inventoryjobManage/packageManage/packagemergeMain/index.vue @@ -66,6 +66,7 @@ import { PackagemergeMain,PackagemergeMainRules, PackagemergeDetail, Packagemerg import * as PackagemergeMainApi from '@/api/wms/packagemergeMain' import * as PackagemergeDetailApi from '@/api/wms/packagemergeDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' +import { formatDate } from '@/utils/formatTime' // 合包记录 defineOptions({ name: 'PackagemergeMain' }) @@ -139,8 +140,9 @@ const handleExport = async () => { await message.exportConfirm() // 发起导出 exportLoading.value = true + const excelTitle = ref(route.meta.title) const data = await PackagemergeMainApi.exportPackagemergeMain(tableObject.params) - download.excel(data, '合包记录.xlsx') + download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false diff --git a/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverJobMain/index.vue b/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverJobMain/index.vue index 14ae005fc..6ada64194 100644 --- a/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverJobMain/index.vue +++ b/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverJobMain/index.vue @@ -74,6 +74,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' import TableHead from '@/components/TableHead/src/TableHead.vue' import Detail from '@/components/Detail/src/Detail.vue' import { CACHE_KEY, useCache } from '@/hooks/web/useCache' +import { formatDate } from '@/utils/formatTime' defineOptions({ name: 'PackageoverJobMain' }) const message = useMessage() // 消息弹窗 @@ -251,8 +252,9 @@ const handleExport = async () => { await message.exportConfirm() // 发起导出 exportLoading.value = true + const excelTitle = ref(route.meta.title) const data = await PackageoverJobMainApi.exportPackageoverJobMain(tableObject.params) - download.excel(data, '翻包任务主.xlsx') + download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false diff --git a/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRecordMain/index.vue b/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRecordMain/index.vue index 286652a40..26fa917f0 100644 --- a/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRecordMain/index.vue +++ b/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRecordMain/index.vue @@ -71,6 +71,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as PackageApi from '@/api/wms/package' import { getAccessToken } from '@/utils/auth' import { getJmreportBaseUrl } from '@/utils/systemParam' +import { formatDate } from '@/utils/formatTime' // 翻包记录 defineOptions({ name: 'PackageoverMain' }) @@ -185,8 +186,9 @@ const handleExport = async () => { await message.exportConfirm() // 发起导出 exportLoading.value = true + const excelTitle = ref(route.meta.title) const data = await PackageoverRecordMainApi.exportPackageoverMain(tableObject.params) - download.excel(data, '翻包记录.xlsx') + download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false diff --git a/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRequestMain/index.vue b/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRequestMain/index.vue index 7edb981c1..ef44e8787 100644 --- a/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRequestMain/index.vue +++ b/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRequestMain/index.vue @@ -85,6 +85,7 @@ import { PackageoverRequestMain,PackageoverRequestMainRules, PackageoverRequestD import * as PackageoverRequestMainApi from '@/api/wms/packageoverRequestMain' import * as PackageoverRequestDetailApi from '@/api/wms/packageoverRequestDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' +import { formatDate } from '@/utils/formatTime' defineOptions({ name: 'PackageoverRequestMain' }) @@ -366,8 +367,9 @@ const handleExport = async () => { await message.exportConfirm() // 发起导出 exportLoading.value = true + const excelTitle = ref(route.meta.title) const data = await PackageoverRequestMainApi.exportPackageoverRequestMain(tableObject.params) - download.excel(data, '翻包申请.xlsx') + download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -458,7 +460,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '翻包申请导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 diff --git a/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRetrospect/index.vue b/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRetrospect/index.vue index 3f2ee68f7..4010fc996 100644 --- a/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRetrospect/index.vue +++ b/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRetrospect/index.vue @@ -51,6 +51,7 @@ import * as PackageoverRetrospectApi from '@/api/wms/packageoverRetrospect' import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as PackageApi from '@/api/wms/package' import { getJmreportBaseUrl } from '@/utils/systemParam' +import { formatDate } from '@/utils/formatTime' defineOptions({ name: 'PackageoverRetrospect' }) @@ -153,8 +154,9 @@ const handleExport = async () => { await message.exportConfirm() // 发起导出 exportLoading.value = true + const excelTitle = ref(route.meta.title) const data = await PackageoverRetrospectApi.exportPackageoverRetrospect(tableObject.params) - download.excel(data, '翻包记录主.xlsx') + download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false diff --git a/src/views/wms/inventoryjobManage/packageManage/packagesplitMain/index.vue b/src/views/wms/inventoryjobManage/packageManage/packagesplitMain/index.vue index ea18981cc..0bde40094 100644 --- a/src/views/wms/inventoryjobManage/packageManage/packagesplitMain/index.vue +++ b/src/views/wms/inventoryjobManage/packageManage/packagesplitMain/index.vue @@ -66,6 +66,7 @@ import { PackagesplitMain,PackagesplitMainRules, PackagesplitDetail, Packagespli import * as PackagesplitMainApi from '@/api/wms/packagesplitMain' import * as PackagesplitDetailApi from '@/api/wms/packagesplitDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' +import { formatDate } from '@/utils/formatTime' // 拆包记录 defineOptions({ name: 'PackagesplitMain' }) @@ -139,8 +140,9 @@ const handleExport = async () => { await message.exportConfirm() // 发起导出 exportLoading.value = true + const excelTitle = ref(route.meta.title) const data = await PackagesplitMainApi.exportPackagesplitMainApi(tableObject.params) - download.excel(data, '拆包记录.xlsx') + download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false