diff --git a/src/views/qms/inspectionJob/index.vue b/src/views/qms/inspectionJob/index.vue
index c7e3423da..47f35526a 100644
--- a/src/views/qms/inspectionJob/index.vue
+++ b/src/views/qms/inspectionJob/index.vue
@@ -4,7 +4,7 @@
@@ -477,27 +477,30 @@ const searchFormClick = (searchData) => {
}
getList() // 刷新当前列表
}
-const resetSearch = () => {
- if (route.name == 'inspectionJobProductionMain') {
- setSearchParams({
+/** 初始化 **/
+onMounted(async () => {
+ console.log(11,route.name)
+ if (route.name == 'inspectionJobProductionMain') {
+ tableObject.params = {
available: true,
inspectionType: '4'
- })
+ }
} else if (route.name == 'inspectionJobPurchaseMain') {
- setSearchParams({
+ tableObject.params = {
available: true,
inspectionType: '1'
- })
+ }
} else {
- setSearchParams({
+ tableObject.params = {
available: true,
excludeInspectionType: '1,4'
- })
+ }
}
-}
-/** 初始化 **/
-onMounted(async () => {
- console.log(11,route.name)
+
+ getList()
+ // importTemplateData.templateUrl = await InspectionJobMainApi.importTemplate()
+})
+onActivated(() => {
if (route.name == 'inspectionJobProductionMain') {
tableObject.params = {
available: true,
@@ -516,6 +519,5 @@ onMounted(async () => {
}
getList()
- // importTemplateData.templateUrl = await InspectionJobMainApi.importTemplate()
})
diff --git a/src/views/qms/inspectionRecord/index.vue b/src/views/qms/inspectionRecord/index.vue
index 2cd165f05..75bc47e35 100644
--- a/src/views/qms/inspectionRecord/index.vue
+++ b/src/views/qms/inspectionRecord/index.vue
@@ -4,7 +4,7 @@
@@ -464,26 +464,29 @@ const searchFormClick = (searchData) => {
}
getList() // 刷新当前列表
}
-const resetSearch = () => {
- if (route.name == 'inspectionRecordPurchaseMain') {
- setSearchParams({
+
+/** 初始化 **/
+onMounted(async () => {
+ if (route.name == 'inspectionRecordPurchaseMain') {
+ tableObject.params = {
available: true,
inspectionType: '1'
- })
+ }
} else if (route.name == 'inspectionRecordProductionMain') {
- setSearchParams({
+ tableObject.params = {
available: true,
inspectionType: '4'
- })
+ }
} else {
- setSearchParams({
+ tableObject.params = {
available: true,
excludeInspectionType: '1,4,11'
- })
+ }
}
-}
-/** 初始化 **/
-onMounted(async () => {
+
+ getList()
+})
+onActivated(() => {
if (route.name == 'inspectionRecordPurchaseMain') {
tableObject.params = {
available: true,
diff --git a/src/views/wms/purchasereceiptManage/inspect/inspectJobMain/index.vue b/src/views/wms/purchasereceiptManage/inspect/inspectJobMain/index.vue
index b2779c087..73a95c56b 100644
--- a/src/views/wms/purchasereceiptManage/inspect/inspectJobMain/index.vue
+++ b/src/views/wms/purchasereceiptManage/inspect/inspectJobMain/index.vue
@@ -73,6 +73,7 @@ import * as InspectJobMainApi from '@/api/wms/inspectJobMain'
import * as InspectJobDetailApi from '@/api/wms/inspectJobDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
+ import { formatDate } from '@/utils/formatTime'
// 检验任务主
defineOptions({ name: 'InspectJobMain' })
@@ -233,7 +234,7 @@ const handleExport = async () => {
// 发起导出
exportLoading.value = true
const data = await InspectJobMainApi.exportInspectJobMain(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/purchasereceiptManage/inspect/inspectRecordMain/index.vue b/src/views/wms/purchasereceiptManage/inspect/inspectRecordMain/index.vue
index b7f63eff1..a987cad02 100644
--- a/src/views/wms/purchasereceiptManage/inspect/inspectRecordMain/index.vue
+++ b/src/views/wms/purchasereceiptManage/inspect/inspectRecordMain/index.vue
@@ -72,6 +72,7 @@ import * as InspectRecordDetailApi from '@/api/wms/inspectRecordDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import Preview from '@/components/UploadFile/src/Preview.vue'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
+ import { formatDate } from '@/utils/formatTime'
// 检验记录主
defineOptions({ name: 'InspectRecordMain' })
@@ -179,7 +180,7 @@ const handleExport = async () => {
// 发起导出
exportLoading.value = true
const data = await InspectRecordMainApi.exportInspectRecordMain(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/purchasereceiptManage/inspect/inspectRequestMain/index.vue b/src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/index.vue
index 91b579ad2..4cbc8f5df 100644
--- a/src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/index.vue
+++ b/src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/index.vue
@@ -53,6 +53,7 @@
import * as InspectRequestMainApi from '@/api/wms/inspectRequestMain'
import * as InspectRequestDetailApi from '@/api/wms/inspectRequestDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
+ import { formatDate } from '@/utils/formatTime'
// 到货检验申请
defineOptions({ name: 'InspectRequestMain' })
@@ -322,7 +323,7 @@
// 发起导出
exportLoading.value = true
const data = await InspectRequestMainApi.exportInspectRequestMain(tableObject.params)
- download.excel(data, '检验申请主.xlsx')
+ download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@@ -385,7 +386,7 @@
// 导入附件弹窗所需的参数
const importTemplateData = reactive({
templateUrl: '',
- templateTitle: '检验申请主导入模版.xlsx'
+ templateTitle: `【${route.meta.title}】导入模版.xlsx`
})
// 导入成功之后
diff --git a/src/views/wms/purchasereceiptManage/purchasereturnspare/purchasereturnRecordSpareMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereturnspare/purchasereturnRecordSpareMain/index.vue
index 5f5e2b9ed..a2ec773c7 100644
--- a/src/views/wms/purchasereceiptManage/purchasereturnspare/purchasereturnRecordSpareMain/index.vue
+++ b/src/views/wms/purchasereceiptManage/purchasereturnspare/purchasereturnRecordSpareMain/index.vue
@@ -70,6 +70,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { getAccessToken } from '@/utils/auth'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { getJmreportBaseUrl } from '@/utils/systemParam'
+ import { formatDate } from '@/utils/formatTime'
// 采购退货记录主
defineOptions({ name: 'PurchasereturnRecordSpareMain' })
@@ -170,10 +171,10 @@ const handleExport = async () => {
exportLoading.value = true
if(routeName.value.includes('SCP')){
const data = await PurchasereturnRecordMainApi.exportPurchasereturnRecordMainSCP(tableObject.params)
- download.excel(data, `${t('ts.采购退货记录主')}.xlsx`)
+ download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
}else{
const data = await PurchasereturnRecordMainApi.exportPurchasereturnRecordMainSpare(tableObject.params)
- download.excel(data, `维修备件退货记录主.xlsx`)
+ download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
}
} catch {
diff --git a/src/views/wms/purchasereceiptManage/purchasereturnspare/purchasereturnRequestSpareMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereturnspare/purchasereturnRequestSpareMain/index.vue
index bea529f22..a5de550cc 100644
--- a/src/views/wms/purchasereceiptManage/purchasereturnspare/purchasereturnRequestSpareMain/index.vue
+++ b/src/views/wms/purchasereceiptManage/purchasereturnspare/purchasereturnRequestSpareMain/index.vue
@@ -141,6 +141,7 @@ import { getAccessToken } from '@/utils/auth'
import * as BalanceApi from '@/api/wms/balance'
import { async } from '@antv/x6/lib/registry/marker/async'
import { getJmreportBaseUrl } from '@/utils/systemParam'
+ import { formatDate } from '@/utils/formatTime'
// 采购退货申请
defineOptions({ name: 'PurchasereturnRequestSpareMain' })
@@ -708,7 +709,7 @@ const handleExport = async () => {
const data = await PurchasereturnRequestMainApi.exportPurchasereturnRequestMainSpare(
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/purchasereceiptManage/putaway/putawayJobMain/index.vue b/src/views/wms/purchasereceiptManage/putaway/putawayJobMain/index.vue
index c4a0dd4b4..7dee1ed75 100644
--- a/src/views/wms/purchasereceiptManage/putaway/putawayJobMain/index.vue
+++ b/src/views/wms/purchasereceiptManage/putaway/putawayJobMain/index.vue
@@ -101,6 +101,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import {getAccessToken} from "@/utils/auth";
import { getJmreportBaseUrl } from '@/utils/systemParam'
+ import { formatDate } from '@/utils/formatTime'
// 上架任务主
defineOptions({ name: 'PutawayJobMain' })
@@ -348,7 +349,7 @@ const handleExport = async () => {
// 发起导出
exportLoading.value = true
const data = await PutawayJobMainApi.exportPutawayJobMain(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/purchasereceiptManage/putaway/putawayRecordMain/index.vue b/src/views/wms/purchasereceiptManage/putaway/putawayRecordMain/index.vue
index 3d07d9ad2..9aa5e6792 100644
--- a/src/views/wms/purchasereceiptManage/putaway/putawayRecordMain/index.vue
+++ b/src/views/wms/purchasereceiptManage/putaway/putawayRecordMain/index.vue
@@ -91,6 +91,7 @@ import * as PutawayRecordMainApi from '@/api/wms/putawayRecordMain'
import * as PutawayRecordDetailApi from '@/api/wms/putawayRecordDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
+ import { formatDate } from '@/utils/formatTime'
// 上架记录主
defineOptions({ name: 'PutawayRecordMain' })
@@ -211,7 +212,7 @@ const handleExport = async () => {
// 发起导出
exportLoading.value = true
const data = await PutawayRecordMainApi.exportPutawayRecordMain(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/purchasereceiptManage/putaway/putawayRequestMain/index.vue b/src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue
index 1223cadad..ad499e129 100644
--- a/src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue
+++ b/src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue
@@ -110,6 +110,7 @@ import { PutawayRequestMain,
import * as PutawayRequestMainApi from '@/api/wms/putawayRequestMain'
import * as PutawayRequestDetailApi from '@/api/wms/putawayRequestDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
+ import { formatDate } from '@/utils/formatTime'
// 上架申请
defineOptions({ name: 'PutawayRequestMain' })
@@ -406,7 +407,7 @@ const handleExport = async () => {
// 发起导出
exportLoading.value = true
const data = await PutawayRequestMainApi.exportPutawayRequestMain(tableObject.params)
- download.excel(data, '上架申请主.xlsx')
+ download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@@ -475,7 +476,7 @@ const handleImport = () => {
// 导入附件弹窗所需的参数
const importTemplateData = reactive({
templateUrl: '',
- templateTitle: '上架申请主导入模版.xlsx'
+ templateTitle: `【${route.meta.title}】导入模版.xlsx`
})
// 导入成功之后
diff --git a/src/views/wms/supplierManage/purchaseclaim/purchaseclaimRecordMain/index.vue b/src/views/wms/supplierManage/purchaseclaim/purchaseclaimRecordMain/index.vue
index f3342060f..6784b9653 100644
--- a/src/views/wms/supplierManage/purchaseclaim/purchaseclaimRecordMain/index.vue
+++ b/src/views/wms/supplierManage/purchaseclaim/purchaseclaimRecordMain/index.vue
@@ -68,6 +68,7 @@ import * as PurchaseclaimRecordMainApi from '@/api/wms/purchaseclaimRecordMain'
import * as PurchaseclaimRecordDetailApi from '@/api/wms/purchaseclaimRecordDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
+ import { formatDate } from '@/utils/formatTime'
// 采购索赔记录主
defineOptions({ name: 'PurchaseclaimRecordMain' })
@@ -156,7 +157,7 @@ const handleExport = async () => {
// 发起导出
exportLoading.value = true
const data = await PurchaseclaimRecordMainApi.exportPurchaseclaimRecordMain(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/supplierManage/purchaseclaim/purchaseclaimRequestMain/index.vue b/src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/index.vue
index d95021822..3b4377640 100644
--- a/src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/index.vue
+++ b/src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/index.vue
@@ -77,6 +77,7 @@
import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import { getJmreportBaseUrl } from '@/utils/systemParam'
+ import { formatDate } from '@/utils/formatTime'
// 供应商索赔申请
defineOptions({ name: 'PurchaseclaimRequestMain' })
@@ -414,7 +415,7 @@ import { getJmreportBaseUrl } from '@/utils/systemParam'
// 发起导出
exportLoading.value = true
const data = await PurchaseclaimRequestMainApi.exportPurchaseclaimRequestMain(tableObject.params)
- download.excel(data, '采购索赔申请主.xlsx')
+ download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@@ -484,7 +485,7 @@ import { getJmreportBaseUrl } from '@/utils/systemParam'
// 导入附件弹窗所需的参数
const importTemplateData = reactive({
templateUrl: '',
- templateTitle: '采购索赔申请信息导入模版.xlsx'
+ templateTitle: `【${route.meta.title}】导入模版.xlsx`
})
// 导入成功之后
const importSuccess = () => {