Browse Source

发料管理中所有的导出文件名字修改

hella_online_20240815
zhang_li 3 months ago
parent
commit
56a78c5714
  1. 3
      src/views/wms/issueManage/productionreturn/productionreturnJobMain/index.vue
  2. 3
      src/views/wms/issueManage/productionreturn/productionreturnRecordMain/index.vue
  3. 5
      src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue
  4. 5
      src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue
  5. 3
      src/views/wms/issueManage/productionscrap/productionscrapRecordMain/index.vue
  6. 5
      src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue

3
src/views/wms/issueManage/productionreturn/productionreturnJobMain/index.vue

@ -73,6 +73,7 @@ import * as ProductionreturnJobMainApi from '@/api/wms/productionreturnJobMain'
import * as ProductionreturnJobDetailApi from '@/api/wms/productionreturnJobDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { formatDate } from '@/utils/formatTime'
// 退
defineOptions({ name: 'ProductionreturnJobMain' })
@ -272,7 +273,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await ProductionreturnJobMainApi.exportProductionreturnJobMain(tableObject.params)
download.excel(data, '生产退料任务.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false

3
src/views/wms/issueManage/productionreturn/productionreturnRecordMain/index.vue

@ -68,6 +68,7 @@ import * as ProductionreturnRecordMainApi from '@/api/wms/productionreturnRecord
import * as ProductionreturnRecordDetailApi from '@/api/wms/productionreturnRecordDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { formatDate } from '@/utils/formatTime'
// 退 and 退
defineOptions({ name: 'ProductionreturnRecordMain' })
@ -157,7 +158,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await ProductionreturnRecordMainApi.exportProductionreturnRecordMain(tableObject.params)
download.excel(data, '生产退料记录主.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false

5
src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue

@ -110,6 +110,7 @@ import * as ItembasicApi from '@/api/wms/itembasic'
import * as PackageApi from '@/api/wms/package'
import { getAccessToken } from '@/utils/auth'
import { getJmreportBaseUrl } from '@/utils/systemParam'
import { formatDate } from '@/utils/formatTime'
// 退
defineOptions({ name: 'ProductionreturnRequestMain' })
@ -607,7 +608,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await ProductionreturnRequestMainApi.exportProductionreturnRequestMain(tableObject.params)
download.excel(data, '生产退料合格申请.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -769,7 +770,7 @@ const labelPrint = async (row) => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '生产退料导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//

5
src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue

@ -112,6 +112,7 @@ import * as PackageApi from '@/api/wms/package'
import { formatTime } from '@/utils/index'
import { getAccessToken } from '@/utils/auth'
import { getJmreportBaseUrl } from '@/utils/systemParam'
import { formatDate } from '@/utils/formatTime'
// 退
defineOptions({ name: 'ProductionreturnRequestMainNo' })
@ -551,7 +552,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await ProductionreturnRequestMainNoApi.exportProductionreturnRequestMain(tableObject.params)
download.excel(data, '生产退料不合格申请.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -757,7 +758,7 @@ const importFormRef = ref()
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '隔离退料导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//

3
src/views/wms/issueManage/productionscrap/productionscrapRecordMain/index.vue

@ -68,6 +68,7 @@ import * as ProductionscrapRecordMainApi from '@/api/wms/productionscrapRecordMa
import * as ProductionscrapRecordDetailApi from '@/api/wms/productionscrapRecordDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { formatDate } from '@/utils/formatTime'
// 退
defineOptions({ name: 'ProductionscrapRecordMain' })
@ -156,7 +157,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await ProductionscrapRecordMainApi.exportProductionscrapRecordMain(tableObject.params)
download.excel(data, '线标报废记录.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false

5
src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue

@ -110,6 +110,7 @@ import * as ItembasicApi from '@/api/wms/itembasic'
import * as PackageApi from '@/api/wms/package'
import { getAccessToken } from '@/utils/auth'
import { getJmreportBaseUrl } from '@/utils/systemParam'
import { formatDate } from '@/utils/formatTime'
// 线
defineOptions({ name: 'ProductionscrapRequestMain' })
@ -607,7 +608,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await ProductionscrapRequestMainApi.exportProductionscrapRequestMain(tableObject.params)
download.excel(data, '线边原料报废申请.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -768,7 +769,7 @@ const labelPrint = async (row) => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '线边原料报废导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//

Loading…
Cancel
Save