Browse Source

工厂建模导出文件名

linshi20240813
zhang_li 4 months ago
parent
commit
1fd081746f
  1. 4
      src/views/system/tenant/index.vue
  2. 5
      src/views/wms/basicDataManage/factoryModeling/areabasic/index.vue
  3. 5
      src/views/wms/basicDataManage/factoryModeling/dock/index.vue
  4. 3
      src/views/wms/basicDataManage/factoryModeling/enterprise/index.vue
  5. 5
      src/views/wms/basicDataManage/factoryModeling/location/index.vue
  6. 5
      src/views/wms/basicDataManage/factoryModeling/locationgroup/index.vue
  7. 5
      src/views/wms/basicDataManage/factoryModeling/process/index.vue
  8. 5
      src/views/wms/basicDataManage/factoryModeling/productionline/index.vue
  9. 5
      src/views/wms/basicDataManage/factoryModeling/warehouse/index.vue
  10. 5
      src/views/wms/basicDataManage/factoryModeling/workshop/index.vue
  11. 5
      src/views/wms/basicDataManage/factoryModeling/workstation/index.vue

4
src/views/system/tenant/index.vue

@ -104,6 +104,8 @@ import download from '@/utils/download'
import * as TenantApi from '@/api/system/tenant'
import * as TenantPackageApi from '@/api/system/tenantPackage'
import TenantForm from './TenantForm.vue'
import { formatDate } from '@/utils/formatTime'
const route = useRoute() //
defineOptions({ name: 'SystemTenant' })
@ -177,7 +179,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await TenantApi.exportTenant(queryParams)
download.excel(data, '租户列表.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false

5
src/views/wms/basicDataManage/factoryModeling/areabasic/index.vue

@ -68,6 +68,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: 'Area' })
@ -247,7 +248,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await AreaApi.exportArea(tableObject.params)
download.excel(data, '库区.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -262,7 +263,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '库区导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//
const importSuccess = () => {

5
src/views/wms/basicDataManage/factoryModeling/dock/index.vue

@ -70,6 +70,7 @@ import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import * as LocationApi from '@/api/wms/location'
import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data'
import { formatDate } from '@/utils/formatTime'
defineOptions({ name: 'Dock' })
@ -261,7 +262,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await DockApi.exportDock(tableObject.params)
download.excel(data, '月台.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -276,7 +277,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '月台导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//
const importSuccess = () => {

3
src/views/wms/basicDataManage/factoryModeling/enterprise/index.vue

@ -59,6 +59,7 @@ import download from '@/utils/download'
import { Enterprise,EnterpriseRules } from './enterprise.data'
import * as EnterpriseApi from '@/api/wms/enterprise'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { formatDate } from '@/utils/formatTime'
defineOptions({ name: 'Enterprise' })
@ -229,7 +230,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await EnterpriseApi.exportEnterprise(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/basicDataManage/factoryModeling/location/index.vue

@ -66,6 +66,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: 'Location' })
@ -265,7 +266,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await LocationApi.exportLocation(tableObject.params)
download.excel(data, '库位.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -280,7 +281,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '库位导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//
const importSuccess = () => {

5
src/views/wms/basicDataManage/factoryModeling/locationgroup/index.vue

@ -66,6 +66,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: 'Locationgroup' })
@ -246,7 +247,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await LocationgroupApi.exportLocationgroup(tableObject.params)
download.excel(data, '库位组.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -261,7 +262,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '库位组导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//
const importSuccess = () => {

5
src/views/wms/basicDataManage/factoryModeling/process/index.vue

@ -66,6 +66,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: 'Process' })
@ -253,7 +254,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await ProcessApi.exportProcess(tableObject.params)
download.excel(data, '工序.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -268,7 +269,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '工序导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//
const importSuccess = () => {

5
src/views/wms/basicDataManage/factoryModeling/productionline/index.vue

@ -66,6 +66,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: 'Productionline' })
@ -246,7 +247,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await ProductionlineApi.exportProductionline(tableObject.params)
download.excel(data, '生产线.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -261,7 +262,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '生产线导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//
const importSuccess = () => {

5
src/views/wms/basicDataManage/factoryModeling/warehouse/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: 'Warehouse' })
@ -226,7 +227,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await WarehouseApi.exportWarehouse(tableObject.params)
download.excel(data, '仓库.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -241,7 +242,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '仓库导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//
const importSuccess = () => {

5
src/views/wms/basicDataManage/factoryModeling/workshop/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: 'Workshop' })
@ -228,7 +229,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await WorkshopApi.exportWorkshop(tableObject.params)
download.excel(data, '车间.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -243,7 +244,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '车间导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//
const importSuccess = () => {

5
src/views/wms/basicDataManage/factoryModeling/workstation/index.vue

@ -66,6 +66,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: 'Workstation' })
@ -255,7 +256,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await WorkstationApi.exportWorkstation(tableObject.params)
download.excel(data, '工位.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -270,7 +271,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '工位导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//
const importSuccess = () => {

Loading…
Cancel
Save