Browse Source

其他和标签管理的导出文件名字修改

linshi20240813
zhang_li 3 months ago
parent
commit
a655a026db
  1. 5
      src/views/wms/basicDataManage/labelManage/barcode/index.vue
  2. 5
      src/views/wms/basicDataManage/labelManage/callmaterials/index.vue
  3. 3
      src/views/wms/basicDataManage/labelManage/locationLabel/index.vue
  4. 7
      src/views/wms/basicDataManage/labelManage/manufacturePackage/index.vue
  5. 5
      src/views/wms/basicDataManage/labelManage/purchasePackage/index.vue
  6. 5
      src/views/wms/basicDataManage/labelManage/utensilPackage/index.vue
  7. 5
      src/views/wms/basicDataManage/orderManage/carrier/index.vue
  8. 5
      src/views/wms/basicDataManage/orderManage/owner/index.vue
  9. 5
      src/views/wms/basicDataManage/orderManage/team/index.vue

5
src/views/wms/basicDataManage/labelManage/barcode/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: 'Barcode' })
@ -218,7 +219,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await BarcodeApi.exportBarcode(tableObject.params)
download.excel(data, '条码片段.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -234,7 +235,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '条码片段导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//
const importSuccess = () => {

5
src/views/wms/basicDataManage/labelManage/callmaterials/index.vue

@ -79,6 +79,7 @@ import * as PackageApi from '@/api/wms/package'
import * as ItembasicApi from '@/api/wms/itembasic'
import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data'
import { getJmreportBaseUrl } from '@/utils/systemParam'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'Callmaterials' })
@ -290,7 +291,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await CallmaterialsApi.exportCallmaterials(tableObject.params)
download.excel(data, '叫料标签.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -338,7 +339,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '叫料标签导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//
const importSuccess = () => {

3
src/views/wms/basicDataManage/labelManage/locationLabel/index.vue

@ -54,6 +54,7 @@ import * as PackageApi from '@/api/wms/package'
import { formatTime } from '@/utils/index'
import * as Itempackaging from '@/api/wms/itempackaging'
import { getJmreportBaseUrl } from '@/utils/systemParam'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'LocationLabel' })
@ -177,7 +178,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await BarbasicApi.exportBarbasic(tableObject.params)
download.excel(data, '库位标签.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false

7
src/views/wms/basicDataManage/labelManage/manufacturePackage/index.vue

@ -67,6 +67,7 @@ import * as PackageApi from '@/api/wms/package'
import { formatTime } from '@/utils/index'
import * as Itempackaging from '@/api/wms/itempackage'
import { getJmreportBaseUrl } from '@/utils/systemParam'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'PurchasePackage' })
@ -154,6 +155,7 @@ const buttonBaseClick = (val, item) => {
} else if (val == 'import') { //
handleImport()
} else if (val == 'export') { //
debugger
handleExport()
} else if (val == 'refresh') { //
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
@ -241,12 +243,13 @@ const handleDelete = async (id: number) => {
const exportLoading = ref(false) //
const handleExport = async () => {
try {
debugger
//
await message.exportConfirm()
//
exportLoading.value = true
const data = await BarbasicApi.exportBarbasic(tableObject.params)
download.excel(data, '制造件件标签.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -318,7 +321,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '包装导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//

5
src/views/wms/basicDataManage/labelManage/purchasePackage/index.vue

@ -68,6 +68,7 @@ import * as PackageApi from '@/api/wms/package'
import { formatTime } from '@/utils/index'
import * as Itempackaging from '@/api/wms/itempackage'
import { getJmreportBaseUrl } from '@/utils/systemParam'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'PurchasePackage' })
@ -247,7 +248,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await BarbasicApi.exportBarbasic(tableObject.params)
download.excel(data, '采购件标签.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -314,7 +315,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '包装导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//

5
src/views/wms/basicDataManage/labelManage/utensilPackage/index.vue

@ -64,6 +64,7 @@ import { getAccessToken } from '@/utils/auth'
import { Package,PackageRules } from './utensilPackage.data'
import * as BarbasicApi from '@/api/wms/barbasic'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'UtensilPackage' })
@ -229,7 +230,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await BarbasicApi.exportBarbasic(tableObject.params)
download.excel(data, '器具标签.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -252,7 +253,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '包装导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//

5
src/views/wms/basicDataManage/orderManage/carrier/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: 'Carrier' })
@ -233,7 +234,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await CarrierApi.exportCarrier(tableObject.params)
download.excel(data, '承运商.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -248,7 +249,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '承运商导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//
const importSuccess = () => {

5
src/views/wms/basicDataManage/orderManage/owner/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: 'Owner' })
@ -234,7 +235,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await OwnerApi.exportOwner(tableObject.params)
download.excel(data, '货主.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -249,7 +250,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '货主导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//
const importSuccess = () => {

5
src/views/wms/basicDataManage/orderManage/team/index.vue

@ -68,6 +68,7 @@ import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import TeamForm from "@/views/wms/basicDataManage/orderManage/team/teamForm.vue";
import {sync} from "rimraf";
import { formatDate } from '@/utils/formatTime'
defineOptions({ name: 'Team' })
@ -228,7 +229,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await TeamApi.exportTeam(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 = () => {

Loading…
Cancel
Save