Browse Source

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

linshi20240813
zhang_li 4 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 TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import { formatDate } from '@/utils/formatTime'
defineOptions({ name: 'Barcode' }) defineOptions({ name: 'Barcode' })
@ -218,7 +219,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await BarcodeApi.exportBarcode(tableObject.params) const data = await BarcodeApi.exportBarcode(tableObject.params)
download.excel(data, '条码片段.xlsx') download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false
@ -234,7 +235,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '条码片段导入模版.xlsx' templateTitle: `${route.meta.title}】导入模版.xlsx`
}) })
// //
const importSuccess = () => { 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 * as ItembasicApi from '@/api/wms/itembasic'
import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data' import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data'
import { getJmreportBaseUrl } from '@/utils/systemParam' import { getJmreportBaseUrl } from '@/utils/systemParam'
import { formatDate } from '@/utils/formatTime'
// //
defineOptions({ name: 'Callmaterials' }) defineOptions({ name: 'Callmaterials' })
@ -290,7 +291,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await CallmaterialsApi.exportCallmaterials(tableObject.params) const data = await CallmaterialsApi.exportCallmaterials(tableObject.params)
download.excel(data, '叫料标签.xlsx') download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false
@ -338,7 +339,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '叫料标签导入模版.xlsx' templateTitle: `${route.meta.title}】导入模版.xlsx`
}) })
// //
const importSuccess = () => { 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 { formatTime } from '@/utils/index'
import * as Itempackaging from '@/api/wms/itempackaging' import * as Itempackaging from '@/api/wms/itempackaging'
import { getJmreportBaseUrl } from '@/utils/systemParam' import { getJmreportBaseUrl } from '@/utils/systemParam'
import { formatDate } from '@/utils/formatTime'
// //
defineOptions({ name: 'LocationLabel' }) defineOptions({ name: 'LocationLabel' })
@ -177,7 +178,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await BarbasicApi.exportBarbasic(tableObject.params) const data = await BarbasicApi.exportBarbasic(tableObject.params)
download.excel(data, '库位标签.xlsx') download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false 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 { formatTime } from '@/utils/index'
import * as Itempackaging from '@/api/wms/itempackage' import * as Itempackaging from '@/api/wms/itempackage'
import { getJmreportBaseUrl } from '@/utils/systemParam' import { getJmreportBaseUrl } from '@/utils/systemParam'
import { formatDate } from '@/utils/formatTime'
// //
defineOptions({ name: 'PurchasePackage' }) defineOptions({ name: 'PurchasePackage' })
@ -154,6 +155,7 @@ const buttonBaseClick = (val, item) => {
} else if (val == 'import') { // } else if (val == 'import') { //
handleImport() handleImport()
} else if (val == 'export') { // } else if (val == 'export') { //
debugger
handleExport() handleExport()
} else if (val == 'refresh') { // } else if (val == 'refresh') { //
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) { if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
@ -241,12 +243,13 @@ const handleDelete = async (id: number) => {
const exportLoading = ref(false) // const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
debugger
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const data = await BarbasicApi.exportBarbasic(tableObject.params) const data = await BarbasicApi.exportBarbasic(tableObject.params)
download.excel(data, '制造件件标签.xlsx') download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false
@ -318,7 +321,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', 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 { formatTime } from '@/utils/index'
import * as Itempackaging from '@/api/wms/itempackage' import * as Itempackaging from '@/api/wms/itempackage'
import { getJmreportBaseUrl } from '@/utils/systemParam' import { getJmreportBaseUrl } from '@/utils/systemParam'
import { formatDate } from '@/utils/formatTime'
// //
defineOptions({ name: 'PurchasePackage' }) defineOptions({ name: 'PurchasePackage' })
@ -247,7 +248,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await BarbasicApi.exportBarbasic(tableObject.params) const data = await BarbasicApi.exportBarbasic(tableObject.params)
download.excel(data, '采购件标签.xlsx') download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false
@ -314,7 +315,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', 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 { Package,PackageRules } from './utensilPackage.data'
import * as BarbasicApi from '@/api/wms/barbasic' import * as BarbasicApi from '@/api/wms/barbasic'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { formatDate } from '@/utils/formatTime'
// //
defineOptions({ name: 'UtensilPackage' }) defineOptions({ name: 'UtensilPackage' })
@ -229,7 +230,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await BarbasicApi.exportBarbasic(tableObject.params) const data = await BarbasicApi.exportBarbasic(tableObject.params)
download.excel(data, '器具标签.xlsx') download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false
@ -252,7 +253,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', 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 TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import { formatDate } from '@/utils/formatTime'
defineOptions({ name: 'Carrier' }) defineOptions({ name: 'Carrier' })
@ -233,7 +234,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await CarrierApi.exportCarrier(tableObject.params) const data = await CarrierApi.exportCarrier(tableObject.params)
download.excel(data, '承运商.xlsx') download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false
@ -248,7 +249,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '承运商导入模版.xlsx' templateTitle: `${route.meta.title}】导入模版.xlsx`
}) })
// //
const importSuccess = () => { 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 TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import { formatDate } from '@/utils/formatTime'
defineOptions({ name: 'Owner' }) defineOptions({ name: 'Owner' })
@ -234,7 +235,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await OwnerApi.exportOwner(tableObject.params) const data = await OwnerApi.exportOwner(tableObject.params)
download.excel(data, '货主.xlsx') download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false
@ -249,7 +250,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '货主导入模版.xlsx' templateTitle: `${route.meta.title}】导入模版.xlsx`
}) })
// //
const importSuccess = () => { 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 Detail from '@/components/Detail/src/Detail.vue'
import TeamForm from "@/views/wms/basicDataManage/orderManage/team/teamForm.vue"; import TeamForm from "@/views/wms/basicDataManage/orderManage/team/teamForm.vue";
import {sync} from "rimraf"; import {sync} from "rimraf";
import { formatDate } from '@/utils/formatTime'
defineOptions({ name: 'Team' }) defineOptions({ name: 'Team' })
@ -228,7 +229,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await TeamApi.exportTeam(tableObject.params) const data = await TeamApi.exportTeam(tableObject.params)
download.excel(data, '班组.xlsx') download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false
@ -243,7 +244,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '班组导入模版.xlsx' templateTitle: `${route.meta.title}】导入模版.xlsx`
}) })
// //
const importSuccess = () => { const importSuccess = () => {

Loading…
Cancel
Save