Browse Source

库内作业下计划外出库之前导出文件名字修改

hella_online_20240815
zhang_li 3 months ago
parent
commit
df3986caf4
  1. 4
      src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRecordMain/index.vue
  2. 6
      src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/index.vue
  3. 4
      src/views/wms/inventoryjobManage/transferissue/transferissueJobMain/index.vue
  4. 4
      src/views/wms/inventoryjobManage/transferissue/transferissueRecordMain/index.vue
  5. 6
      src/views/wms/inventoryjobManage/transferissue/transferissueRequestMain/index.vue
  6. 4
      src/views/wms/inventoryjobManage/transferreceipt/transferreceiptJobMain/index.vue
  7. 4
      src/views/wms/inventoryjobManage/transferreceipt/transferreceiptRecordMain/index.vue
  8. 6
      src/views/wms/inventoryjobManage/transferreceipt/transferreceiptRequestMain/index.vue
  9. 4
      src/views/wms/inventoryjobManage/unplannedissue/unplannedissueJobMain/index.vue
  10. 4
      src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRecordMain/index.vue
  11. 6
      src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/index.vue

4
src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRecordMain/index.vue

@ -72,6 +72,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: 'InventoryinitRecordMain' })
@ -163,8 +164,9 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await InventoryinitRecordMainApi.exportInventoryinitRecordMain(tableObject.params)
download.excel(data, '库存初始化记录主.xlsx')
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false

6
src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/index.vue

@ -91,6 +91,7 @@ import { InventoryinitRequestMain,InventoryinitRequestMainRules,InventoryinitReq
import * as InventoryinitRequestMainApi from '@/api/wms/inventoryinitRequestMain'
import * as InventoryinitRequestDetailApi from '@/api/wms/inventoryinitRequestDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'InventoryinitRequestMain' })
@ -404,8 +405,9 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await InventoryinitRequestMainApi.exportInventoryinitRequestMain(tableObject.params)
download.excel(data, '库存初始化申请主.xlsx')
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -479,7 +481,7 @@ const handleImportLine = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '库存初始化申请主导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//

4
src/views/wms/inventoryjobManage/transferissue/transferissueJobMain/index.vue

@ -75,6 +75,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import * as PurchasereceiptJobMainApi from "@/api/wms/purchasereceiptJobMain";
import {acceptTransferissueJobMain} from "@/api/wms/transferissueJobMain";
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'TransferissueJobMain' })
@ -268,8 +269,9 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await TransferissueJobMainApi.exportTransferissueJobMain(tableObject.params)
download.excel(data, '调拨出库任务主.xlsx')
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false

4
src/views/wms/inventoryjobManage/transferissue/transferissueRecordMain/index.vue

@ -68,6 +68,7 @@ import * as TransferissueRecordMainApi from '@/api/wms/transferissueRecordMain'
import * as TransferissueRecordDetailApi from '@/api/wms/transferissueRecordDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'TransferissueRecordMain' })
@ -155,8 +156,9 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await TransferissueRecordMainApi.exportTransferissueRecordMain(tableObject.params)
download.excel(data, '调拨出库记录主.xlsx')
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false

6
src/views/wms/inventoryjobManage/transferissue/transferissueRequestMain/index.vue

@ -91,6 +91,7 @@ import { TransferissueRequestMain,TransferissueRequestMainRules,TransferissueReq
import * as TransferissueRequestMainApi from '@/api/wms/transferissueRequestMain'
import * as TransferissueRequestDetailApi from '@/api/wms/transferissueRequestDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'TransferissueRequestMain' })
@ -393,8 +394,9 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await TransferissueRequestMainApi.exportTransferissueRequestMain(tableObject.params)
download.excel(data, '调拨出库申请主.xlsx')
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -487,7 +489,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '调拨出库申请主导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//

4
src/views/wms/inventoryjobManage/transferreceipt/transferreceiptJobMain/index.vue

@ -73,6 +73,7 @@ import * as TransferreceiptJobMainApi from '@/api/wms/transferreceiptJobMain'
import * as TransferreceiptJobDetailApi from '@/api/wms/transferreceiptJobDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'TransferreceiptJobMain' })
@ -228,8 +229,9 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await TransferreceiptJobMainApi.exportTransferreceiptJobMain(tableObject.params)
download.excel(data, '调拨入库任务主.xlsx')
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false

4
src/views/wms/inventoryjobManage/transferreceipt/transferreceiptRecordMain/index.vue

@ -68,6 +68,7 @@ import * as TransferreceiptRecordMainApi from '@/api/wms/transferreceiptRecordMa
import * as TransferreceiptRecordDetailApi from '@/api/wms/transferreceiptRecordDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'TransferreceiptRecordMain' })
@ -155,8 +156,9 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await TransferreceiptRecordMainApi.exportTransferreceiptRecordMain(tableObject.params)
download.excel(data, '调拨入库记录主.xlsx')
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false

6
src/views/wms/inventoryjobManage/transferreceipt/transferreceiptRequestMain/index.vue

@ -89,6 +89,7 @@ import { TransferreceiptRequestMain,TransferreceiptRequestMainRules,Transferrece
import * as TransferreceiptRequestMainApi from '@/api/wms/transferreceiptRequestMain'
import * as TransferreceiptRequestDetailApi from '@/api/wms/transferreceiptRequestDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { formatDate } from '@/utils/formatTime'
//
@ -356,8 +357,9 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await TransferreceiptRequestMainApi.exportTransferreceiptRequestMain(tableObject.params)
download.excel(data, '调拨入库申请主.xlsx')
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -420,7 +422,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '调拨入库申请主导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//

4
src/views/wms/inventoryjobManage/unplannedissue/unplannedissueJobMain/index.vue

@ -73,6 +73,7 @@ import * as UnplannedissueJobMainApi from '@/api/wms/unplannedissueJobMain'
import * as UnplannedissueJobDetailApi from '@/api/wms/unplannedissueJobDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'UnplannedissueJobMain' })
@ -228,8 +229,9 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await UnplannedissueJobMainApi.exportUnplannedissueJobMain(tableObject.params)
download.excel(data, '计划外出库任务主.xlsx')
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false

4
src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRecordMain/index.vue

@ -68,6 +68,7 @@ import * as UnplannedissueRecordMainApi from '@/api/wms/unplannedissueRecordMain
import * as UnplannedissueRecordDetailApi from '@/api/wms/unplannedissueRecordDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'UnplannedissueRecordMain' })
@ -155,8 +156,9 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await UnplannedissueRecordMainApi.exportUnplannedissueRecordMain(tableObject.params)
download.excel(data, '计划外出库记录主.xlsx')
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false

6
src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/index.vue

@ -91,6 +91,7 @@ import { UnplannedissueRequestMain,UnplannedissueRequestMainRules,Unplannedissue
import * as UnplannedissueRequestMainApi from '@/api/wms/unplannedissueRequestMain'
import * as UnplannedissueRequestDetailApi from '@/api/wms/unplannedissueRequestDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'UnplannedissueRequestMain' })
@ -437,8 +438,9 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await UnplannedissueRequestMainApi.exportUnplannedissueRequestMain(tableObject.params)
download.excel(data, '计划外出库申请主.xlsx')
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -549,7 +551,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '计划外出库申请主导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//

Loading…
Cancel
Save