Browse Source

盘点,翻包导出文件名字

hella_online_20240815
zhang_li 4 months ago
parent
commit
5a16a4923b
  1. 10
      src/views/wms/countManage/count/countJobMain/index.vue
  2. 6
      src/views/wms/countManage/count/countPlanMain/index.vue
  3. 4
      src/views/wms/countManage/count/countRecordMain/index.vue
  4. 6
      src/views/wms/countManage/count/countRequestMain/index.vue
  5. 4
      src/views/wms/countManage/countadjust/countadjustRecordMain/index.vue
  6. 6
      src/views/wms/countManage/countadjust/countadjustRequestMain/index.vue
  7. 4
      src/views/wms/inventoryjobManage/packageManage/packagemergeMain/index.vue
  8. 4
      src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverJobMain/index.vue
  9. 4
      src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRecordMain/index.vue
  10. 6
      src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRequestMain/index.vue
  11. 4
      src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRetrospect/index.vue
  12. 4
      src/views/wms/inventoryjobManage/packageManage/packagesplitMain/index.vue

10
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`
})
//

6
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`
})
//

4
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

6
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`
})
//

4
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

6
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`
})
//

4
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

4
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

4
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

6
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`
})
//

4
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

4
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

Loading…
Cancel
Save