diff --git a/src/views/wms/basicDataManage/customerManage/customerDeliveryForecast/index.vue b/src/views/wms/basicDataManage/customerManage/customerDeliveryForecast/index.vue index 0a8ef27a1..b3a8bcf8c 100644 --- a/src/views/wms/basicDataManage/customerManage/customerDeliveryForecast/index.vue +++ b/src/views/wms/basicDataManage/customerManage/customerDeliveryForecast/index.vue @@ -65,6 +65,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' import TableHead from '@/components/TableHead/src/TableHead.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import Detail from '@/components/Detail/src/Detail.vue' +import { formatDate } from '@/utils/formatTime' defineOptions({ name: 'CustomerDeliveryForecast' }) @@ -221,7 +222,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await CustomerDeliveryForecastApi.exportCustomerDeliveryForecast(tableObject.params) - download.excel(data, '客户发货预测.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -236,7 +237,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '客户发货预测导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 const importSuccess = () => { diff --git a/src/views/wms/basicDataManage/itemManage/relegate/relegateRecord/index.vue b/src/views/wms/basicDataManage/itemManage/relegate/relegateRecord/index.vue index 501d78c97..e04e54f9e 100644 --- a/src/views/wms/basicDataManage/itemManage/relegate/relegateRecord/index.vue +++ b/src/views/wms/basicDataManage/itemManage/relegate/relegateRecord/index.vue @@ -81,6 +81,7 @@ import * as RelegateRecordDetailApi from '@/api/wms/relegateRecordDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' import TableHead from '@/components/TableHead/src/TableHead.vue' import Detail from '@/components/Detail/src/Detail.vue' +import { formatDate } from '@/utils/formatTime' defineOptions({ name: 'RelegateRecordMain' }) @@ -234,7 +235,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await RelegateRecordMainApi.exportRelegateRecordMain(tableObject.params) - download.excel(data, '物料降级记录主.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false diff --git a/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue b/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue index 7497dabc6..711b328cb 100644 --- a/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue +++ b/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue @@ -99,6 +99,7 @@ import * as PackageApi from "@/api/wms/package"; import { getAccessToken } from '@/utils/auth' import { getJmreportBaseUrl } from '@/utils/systemParam' import * as ProductionlineitemApi from '@/api/wms/productionlineitem' +import { formatDate } from '@/utils/formatTime' defineOptions({ name: 'RelegateRequestMain' }) @@ -715,7 +716,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await RelegateRequestMainApi.exportRelegateRequestMain(tableObject.params) - download.excel(data, '物料降级申请主.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -730,7 +731,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '物料降级申请主导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 const importSuccess = () => { diff --git a/src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRecordMain/index.vue b/src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRecordMain/index.vue index c077173d5..fb5102cb4 100644 --- a/src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRecordMain/index.vue +++ b/src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRecordMain/index.vue @@ -68,6 +68,7 @@ import * as CustomerreceiptRecordMainApi from '@/api/wms/customerreceiptRecordMa import * as CustomerreceiptRecordDetailApi from '@/api/wms/customerreceiptRecordDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' import { CACHE_KEY, useCache } from '@/hooks/web/useCache' +import { formatDate } from '@/utils/formatTime' // 客户收货记录主 defineOptions({ name: 'CustomerreceiptRecordMain' }) @@ -156,7 +157,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await CustomerreceiptRecordMainApi.exportCustomerreceiptRecordMain(tableObject.params) - download.excel(data, '客户收货记录主.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false diff --git a/src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRequestMain/index.vue b/src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRequestMain/index.vue index 47b5b1aab..092693924 100644 --- a/src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRequestMain/index.vue +++ b/src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRequestMain/index.vue @@ -88,6 +88,7 @@ import { CustomerreceiptRequestMain,CustomerreceiptRequestMainRules,Customerrece import * as CustomerreceiptRequestMainApi from '@/api/wms/customerreceiptRequestMain' import * as CustomerreceiptRequestDetailApi from '@/api/wms/customerreceiptRequestDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' +import { formatDate } from '@/utils/formatTime' // 客户收货申请 defineOptions({ name: 'CustomerreceiptRequestMain' }) @@ -326,7 +327,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await CustomerreceiptRequestMainApi.exportCustomerreceiptRequestMain(tableObject.params) - download.excel(data, '客户收货申请主.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false diff --git a/src/views/wms/deliversettlementManage/customerreturn/customerreturnJobMain/index.vue b/src/views/wms/deliversettlementManage/customerreturn/customerreturnJobMain/index.vue index 4a7a883b2..0e18f8d4a 100644 --- a/src/views/wms/deliversettlementManage/customerreturn/customerreturnJobMain/index.vue +++ b/src/views/wms/deliversettlementManage/customerreturn/customerreturnJobMain/index.vue @@ -73,6 +73,7 @@ import * as CustomerreturnJobMainApi from '@/api/wms/customerreturnJobMain' import * as CustomerreturnJobDetailApi from '@/api/wms/customerreturnJobDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' import { CACHE_KEY, useCache } from '@/hooks/web/useCache' +import { formatDate } from '@/utils/formatTime' // 客户退货任务主 defineOptions({ name: 'CustomerreturnJobMain' }) @@ -365,7 +366,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await CustomerreturnJobMainApi.exportCustomerreturnJobMain(tableObject.params) - download.excel(data, '客户退货任务主.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false diff --git a/src/views/wms/deliversettlementManage/customerreturn/customerreturnRecordMain/index.vue b/src/views/wms/deliversettlementManage/customerreturn/customerreturnRecordMain/index.vue index cd714d6bf..fbbc43f99 100644 --- a/src/views/wms/deliversettlementManage/customerreturn/customerreturnRecordMain/index.vue +++ b/src/views/wms/deliversettlementManage/customerreturn/customerreturnRecordMain/index.vue @@ -70,6 +70,7 @@ import * as CustomerreturnRecordDetailApi from '@/api/wms/customerreturnRecordDe import * as defaultButtons from '@/utils/disposition/defaultButtons' import { CACHE_KEY, useCache } from '@/hooks/web/useCache' import { getJmreportBaseUrl } from '@/utils/systemParam' +import { formatDate } from '@/utils/formatTime' // 客户退货记录主 defineOptions({ name: 'CustomerreturnRecordMain' }) @@ -162,7 +163,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await CustomerreturnRecordMainApi.exportCustomerreturnRecordMain(tableObject.params) - download.excel(data, '客户退货记录主.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false diff --git a/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue b/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue index a6b1b8c67..57a386960 100644 --- a/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue +++ b/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue @@ -116,6 +116,7 @@ import { import * as PackageApi from '@/api/wms/package' import { getAccessToken } from '@/utils/auth' import { getJmreportBaseUrl } from '@/utils/systemParam' +import { formatDate } from '@/utils/formatTime' // 客户退货申请 defineOptions({ name: 'CustomerreturnRequestMain' }) @@ -654,7 +655,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await CustomerreturnRequestMainApi.exportCustomerreturnRequestMain(tableObject.params) - download.excel(data, '客户退货申请主.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -777,7 +778,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '客户退货申请主导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 diff --git a/src/views/wms/deliversettlementManage/customersettle/customersettleRecordMain/index.vue b/src/views/wms/deliversettlementManage/customersettle/customersettleRecordMain/index.vue index 4cdd0b633..44f8292f7 100644 --- a/src/views/wms/deliversettlementManage/customersettle/customersettleRecordMain/index.vue +++ b/src/views/wms/deliversettlementManage/customersettle/customersettleRecordMain/index.vue @@ -68,6 +68,7 @@ import * as CustomersettleRecordMainApi from '@/api/wms/customersettleRecordMain import * as CustomersettleRecordDetailApi from '@/api/wms/customersettleRecordDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' import { CACHE_KEY, useCache } from '@/hooks/web/useCache' +import { formatDate } from '@/utils/formatTime' // 客户结算记录主 defineOptions({ name: 'CustomersettleRecordMain' }) @@ -156,7 +157,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await CustomersettleRecordMainApi.exportCustomersettleRecordMain(tableObject.params) - download.excel(data, '客户结算记录主.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false diff --git a/src/views/wms/deliversettlementManage/customersettle/customersettleRequestMain/index.vue b/src/views/wms/deliversettlementManage/customersettle/customersettleRequestMain/index.vue index cac0f472d..d0cba855a 100644 --- a/src/views/wms/deliversettlementManage/customersettle/customersettleRequestMain/index.vue +++ b/src/views/wms/deliversettlementManage/customersettle/customersettleRequestMain/index.vue @@ -89,6 +89,7 @@ import { CustomersettleRequestMain,CustomersettleRequestMainRules,Customersettle import * as CustomersettleRequestMainApi from '@/api/wms/customersettleRequestMain' import * as CustomersettleRequestDetailApi from '@/api/wms/customersettleRequestDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' +import { formatDate } from '@/utils/formatTime' // 客户结算申请 defineOptions({ name: 'CustomersettleRequestMain' }) @@ -337,7 +338,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await CustomersettleRequestMainApi.exportCustomersettleRequestMain(tableObject.params) - download.excel(data, '客户结算申请主.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -399,7 +400,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '客户结算申请主导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 diff --git a/src/views/wms/deliversettlementManage/deliver/deliverJobMain/index.vue b/src/views/wms/deliversettlementManage/deliver/deliverJobMain/index.vue index 142ca8905..389ada838 100644 --- a/src/views/wms/deliversettlementManage/deliver/deliverJobMain/index.vue +++ b/src/views/wms/deliversettlementManage/deliver/deliverJobMain/index.vue @@ -73,6 +73,7 @@ import * as DeliverJobMainApi from '@/api/wms/deliverJobMain' import * as DeliverJobDetailApi from '@/api/wms/deliverJobDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' import { CACHE_KEY, useCache } from '@/hooks/web/useCache' +import { formatDate } from '@/utils/formatTime' // 发货任务主 defineOptions({ name: 'DeliverJobMain' }) @@ -350,7 +351,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await DeliverJobMainApi.exportDeliverJobMain(tableObject.params) - download.excel(data, '发货任务主.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false diff --git a/src/views/wms/deliversettlementManage/deliver/deliverRecordMain/index.vue b/src/views/wms/deliversettlementManage/deliver/deliverRecordMain/index.vue index 6c3944f96..e8ebfb94a 100644 --- a/src/views/wms/deliversettlementManage/deliver/deliverRecordMain/index.vue +++ b/src/views/wms/deliversettlementManage/deliver/deliverRecordMain/index.vue @@ -70,6 +70,7 @@ import * as DeliverRecordDetailApi from '@/api/wms/deliverRecordDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' import { CACHE_KEY, useCache } from '@/hooks/web/useCache' import { getJmreportBaseUrl } from '@/utils/systemParam' +import { formatDate } from '@/utils/formatTime' // 发货记录主 defineOptions({ name: 'DeliverRecordMain' }) @@ -184,7 +185,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await DeliverRecordMainApi.exportDeliverRecordMain(tableObject.params) - download.excel(data, '发货记录主.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false diff --git a/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue b/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue index 59a449b0c..10c39628d 100644 --- a/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue +++ b/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue @@ -95,6 +95,7 @@ import * as DeliverRequestMainApi from '@/api/wms/deliverRequestMain' import * as DeliverRequestDetailApi from '@/api/wms/deliverRequestDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as AreabasicApi from '@/api/wms/areabasic' +import { formatDate } from '@/utils/formatTime' // 发货申请 defineOptions({ name: 'DeliverRequestMain' }) @@ -475,11 +476,11 @@ const handleExport = async () => { exportLoading.value = true if(routeName.value == 'DeliverRequestMain'){ const data = await DeliverRequestMainApi.exportDeliverRequestMain(tableObject.params) - download.excel(data, '发货申请主.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) }else{ - const data = await DeliverRequestMainApi.exportZZBJDeliverRequestMain(tableObject.params) - download.excel(data, '自制备件发货申请主.xlsx') - } + const data = await DeliverRequestMainApi.exportZZBJDeliverRequestMain(tableObject.params) + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) + } } catch { } finally { exportLoading.value = false @@ -580,7 +581,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: importFileName.value + '.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 diff --git a/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue b/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue index 031b80c78..5733a471c 100644 --- a/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue +++ b/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue @@ -87,6 +87,7 @@ import * as DeliverPlanMainApi from '@/api/wms/deliverPlanMain' import * as DeliverPlanDetailApi from '@/api/wms/deliverPlanDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as AreabasicApi from '@/api/wms/areabasic' +import { formatDate } from '@/utils/formatTime' // 发货计划 defineOptions({ name: 'DeliverPlanMain' }) @@ -434,11 +435,11 @@ const handleExport = async () => { exportLoading.value = true if(routeName.value == 'DeliverRequestMain'){ const data = await DeliverPlanMainApi.exportDeliverPlanMain(tableObject.params) - download.excel(data, '发货计划主.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) }else{ - const data = await DeliverPlanMainApi.exportZZBJDeliverPlanMain(tableObject.params) - download.excel(data, '自制备件发货计划主.xlsx') - } + const data = await DeliverPlanMainApi.exportZZBJDeliverPlanMain(tableObject.params) + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) + } } catch { } finally { exportLoading.value = false @@ -546,7 +547,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '发货计划主导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 diff --git a/src/views/wms/deliversettlementManage/deliverplan/saleMain/index.vue b/src/views/wms/deliversettlementManage/deliverplan/saleMain/index.vue index 7bd7a29e7..7eae33f06 100644 --- a/src/views/wms/deliversettlementManage/deliverplan/saleMain/index.vue +++ b/src/views/wms/deliversettlementManage/deliverplan/saleMain/index.vue @@ -84,6 +84,7 @@ import { SaleMain,SaleMainRules,SaleDetail,SaleDetailRules } from './saleMain.da import * as SaleMainApi from '@/api/wms/saleMain' import * as SaleDetailApi from '@/api/wms/saleDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' +import { formatDate } from '@/utils/formatTime' // 销售订单主 defineOptions({ name: 'SaleMain' }) @@ -253,7 +254,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await SaleMainApi.exportSaleMain(tableObject.params) - download.excel(data, '销售订单主.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -315,7 +316,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '销售订单主导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 diff --git a/src/views/wms/deliversettlementManage/saleShipmentMainRecord/index.vue b/src/views/wms/deliversettlementManage/saleShipmentMainRecord/index.vue index c59689fbf..9d6be17a4 100644 --- a/src/views/wms/deliversettlementManage/saleShipmentMainRecord/index.vue +++ b/src/views/wms/deliversettlementManage/saleShipmentMainRecord/index.vue @@ -72,6 +72,7 @@ import * as SaleShipmentDetailRecordApi from '@/api/wms/saleShipmentDetailRecord import * as defaultButtons from '@/utils/disposition/defaultButtons' import TableHead from '@/components/TableHead/src/TableHead.vue' import Detail from '@/components/Detail/src/Detail.vue' +import { formatDate } from '@/utils/formatTime' defineOptions({ name: 'SaleShipmentMainRecord' }) @@ -206,7 +207,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await SaleShipmentMainRecordApi.exportSaleShipmentMainRecord(tableObject.params) - download.excel(data, '结算出库记录.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false diff --git a/src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue b/src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue index 2ded90f16..8c253fe6a 100644 --- a/src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue +++ b/src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue @@ -93,6 +93,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' import TableHead from '@/components/TableHead/src/TableHead.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import Detail from '@/components/Detail/src/Detail.vue' +import { formatDate } from '@/utils/formatTime' defineOptions({ name: 'SaleShipmentMain' }) const message = useMessage() // 消息弹窗 @@ -447,7 +448,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await SaleShipmentMainApi.exportSaleShipmentMain(tableObject.params) - download.excel(data, '结算出库申请主.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -462,7 +463,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '结算出库申请主导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 const importSuccess = () => { diff --git a/src/views/wms/deliversettlementManage/stockup/stockupMainJob/index.vue b/src/views/wms/deliversettlementManage/stockup/stockupMainJob/index.vue index 0ab075f66..a41360243 100644 --- a/src/views/wms/deliversettlementManage/stockup/stockupMainJob/index.vue +++ b/src/views/wms/deliversettlementManage/stockup/stockupMainJob/index.vue @@ -76,6 +76,7 @@ import * as StockupJobMainApi from '@/api/wms/stockupMainJob' import * as StockupJobDetailApi from '@/api/wms/stockupDetailJob' import * as defaultButtons from '@/utils/disposition/defaultButtons' import { CACHE_KEY, useCache } from '@/hooks/web/useCache' +import { formatDate } from '@/utils/formatTime' // 备货任务主 defineOptions({ name: 'StockupJobMain' }) @@ -239,7 +240,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await StockupJobMainApi.exportStockupMainJob(tableObject.params) - download.excel(data, '备货任务主.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false diff --git a/src/views/wms/deliversettlementManage/stockup/stockupMainRecord/index.vue b/src/views/wms/deliversettlementManage/stockup/stockupMainRecord/index.vue index 5e5dda7fa..8e8f73ae9 100644 --- a/src/views/wms/deliversettlementManage/stockup/stockupMainRecord/index.vue +++ b/src/views/wms/deliversettlementManage/stockup/stockupMainRecord/index.vue @@ -68,6 +68,7 @@ import * as StockupMainRecordApi from '@/api/wms/stockupMainRecord' import * as StockupDetailRecordApi from '@/api/wms/stockupDetailRecord' import * as defaultButtons from '@/utils/disposition/defaultButtons' import { CACHE_KEY, useCache } from '@/hooks/web/useCache' +import { formatDate } from '@/utils/formatTime' // 备货记录主 defineOptions({ name: 'StockupMainRecord' }) @@ -157,7 +158,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await StockupMainRecordApi.exportStockupMainRecord(tableObject.params) - download.excel(data, '备货记录主.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false diff --git a/src/views/wms/deliversettlementManage/stockup/stockupMainRequest/index.vue b/src/views/wms/deliversettlementManage/stockup/stockupMainRequest/index.vue index 7ea3de8f5..8856be868 100644 --- a/src/views/wms/deliversettlementManage/stockup/stockupMainRequest/index.vue +++ b/src/views/wms/deliversettlementManage/stockup/stockupMainRequest/index.vue @@ -95,6 +95,7 @@ import TableHead from '@/components/TableHead/src/TableHead.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import Detail from '@/components/Detail/src/Detail.vue' import * as DeliverPlanDetailApi from '@/api/wms/deliverPlanDetail' +import { formatDate } from '@/utils/formatTime' // 备货申请 defineOptions({ name: 'StockupMainRequest' }) @@ -411,7 +412,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await StockupMainRequestApi.exportStockupMainRequest(tableObject.params) - download.excel(data, '备货申请主.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -505,7 +506,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '备货申请主导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后