Browse Source

发料管理中上线结算之前的导出文件名字修改

hella_online_20240815
zhang_li 3 months ago
parent
commit
5d973867ee
  1. 3
      src/views/wms/issueManage/issue/issueJobMain/index.vue
  2. 3
      src/views/wms/issueManage/issue/issueRecordMain/index.vue
  3. 5
      src/views/wms/issueManage/issue/issueRequestMain/index.vue
  4. 3
      src/views/wms/issueManage/onlinesettlement/onlinesettlementRecordMain/index.vue
  5. 5
      src/views/wms/issueManage/onlinesettlement/onlinesettlementRequestMain/index.vue
  6. 5
      src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue
  7. 3
      src/views/wms/issueManage/productionreceipt/productionreceiptJobMain/index.vue
  8. 3
      src/views/wms/issueManage/productionreceipt/productionreceiptRecordMain/index.vue
  9. 3
      src/views/wms/issueManage/repleinsh/repleinshJobMain/index.vue
  10. 3
      src/views/wms/issueManage/repleinsh/repleinshRecordMain/index.vue
  11. 5
      src/views/wms/issueManage/repleinsh/repleinshRequestMain/index.vue

3
src/views/wms/issueManage/issue/issueJobMain/index.vue

@ -74,6 +74,7 @@ import * as IssueJobDetailApi from '@/api/wms/issueJobDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { getDictLabel, DICT_TYPE } from '@/utils/dict' import { getDictLabel, DICT_TYPE } from '@/utils/dict'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { formatDate } from '@/utils/formatTime'
// //
defineOptions({ name: 'IssueJobMain' }) defineOptions({ name: 'IssueJobMain' })
@ -300,7 +301,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await IssueJobMainApi.exportIssueJobMain(tableObject.params) const data = await IssueJobMainApi.exportIssueJobMain(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

3
src/views/wms/issueManage/issue/issueRecordMain/index.vue

@ -68,6 +68,7 @@ import * as IssueRecordMainApi from '@/api/wms/issueRecordMain'
import * as IssueRecordDetailApi from '@/api/wms/issueRecordDetail' import * as IssueRecordDetailApi from '@/api/wms/issueRecordDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { formatDate } from '@/utils/formatTime'
// //
defineOptions({ name: 'IssueRecordMain' }) defineOptions({ name: 'IssueRecordMain' })
@ -156,7 +157,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await IssueRecordMainApi.exportIssueRecordMain(tableObject.params) const data = await IssueRecordMainApi.exportIssueRecordMain(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

5
src/views/wms/issueManage/issue/issueRequestMain/index.vue

@ -103,6 +103,7 @@ import * as IssueRequestMainApi from '@/api/wms/issueRequestMain'
import * as IssueRequestDetailApi from '@/api/wms/issueRequestDetail' import * as IssueRequestDetailApi from '@/api/wms/issueRequestDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import * as WorkstationApi from '@/api/wms/workstation' import * as WorkstationApi from '@/api/wms/workstation'
import { formatDate } from '@/utils/formatTime'
// //
defineOptions({ name: 'IssueRequestMain' }) defineOptions({ name: 'IssueRequestMain' })
@ -443,7 +444,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await IssueRequestMainApi.exportIssueRequestMain(tableObject.params) const data = await IssueRequestMainApi.exportIssueRequestMain(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
@ -545,7 +546,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '发料申请主导入模版.xlsx' templateTitle: `${route.meta.title}】导入模版.xlsx`
}) })
// //

3
src/views/wms/issueManage/onlinesettlement/onlinesettlementRecordMain/index.vue

@ -67,6 +67,7 @@ import * as OnlinesettlementRecordMainApi from '@/api/wms/onlinesettlementRecord
import * as OnlinesettlementRecordDetailApi from '@/api/wms/onlinesettlementRecordDetail' import * as OnlinesettlementRecordDetailApi from '@/api/wms/onlinesettlementRecordDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { formatDate } from '@/utils/formatTime'
// 线 // 线
defineOptions({ name: 'OnlinesettlementRecordMain' }) defineOptions({ name: 'OnlinesettlementRecordMain' })
@ -151,7 +152,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await OnlinesettlementRecordMainApi.exportOnlinesettlementRecordMain(tableObject.params) const data = await OnlinesettlementRecordMainApi.exportOnlinesettlementRecordMain(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

5
src/views/wms/issueManage/onlinesettlement/onlinesettlementRequestMain/index.vue

@ -86,6 +86,7 @@ import * as OnlinesettlementRequestMainApi from '@/api/wms/onlinesettlementReque
import * as OnlinesettlementRequestDetailApi from '@/api/wms/onlinesettlementRequestDetail' import * as OnlinesettlementRequestDetailApi from '@/api/wms/onlinesettlementRequestDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import * as SupplieritemApi from '@/api/wms/supplieritem' import * as SupplieritemApi from '@/api/wms/supplieritem'
import { formatDate } from '@/utils/formatTime'
// 线 // 线
defineOptions({ name: 'OnlinesettlementRequestMain' }) defineOptions({ name: 'OnlinesettlementRequestMain' })
@ -267,7 +268,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await OnlinesettlementRequestMainApi.exportOnlinesettlementRequestMain(tableObject.params) const data = await OnlinesettlementRequestMainApi.exportOnlinesettlementRequestMain(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
@ -325,7 +326,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '上线结算申请主导入模版.xlsx' templateTitle: `${route.meta.title}】导入模版.xlsx`
}) })
// //

5
src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue

@ -88,6 +88,7 @@ import * as PreparetoissueMainApi from '@/api/wms/preparetoissueMain'
import * as PreparetoissueDetailApi from '@/api/wms/preparetoissueDetail' import * as PreparetoissueDetailApi from '@/api/wms/preparetoissueDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import * as ProductionlineitemApi from '@/api/wms/productionlineitem' import * as ProductionlineitemApi from '@/api/wms/productionlineitem'
import { formatDate } from '@/utils/formatTime'
// //
defineOptions({ name: 'PreparetoissueMain' }) defineOptions({ name: 'PreparetoissueMain' })
@ -458,7 +459,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await PreparetoissueMainApi.exportPreparetoissueMain(tableObject.params) const data = await PreparetoissueMainApi.exportPreparetoissueMain(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
@ -532,7 +533,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '备料计划主导入模版.xlsx' templateTitle: `${route.meta.title}】导入模版.xlsx`
}) })
// //

3
src/views/wms/issueManage/productionreceipt/productionreceiptJobMain/index.vue

@ -73,6 +73,7 @@ import * as ProductionreceiptJobMainApi from '@/api/wms/productionreceiptJobMain
import * as ProductionreceiptJobDetailApi from '@/api/wms/productionreceiptJobDetail' import * as ProductionreceiptJobDetailApi from '@/api/wms/productionreceiptJobDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { formatDate } from '@/utils/formatTime'
// //
defineOptions({ name: 'ProductionreceiptJobMain' }) defineOptions({ name: 'ProductionreceiptJobMain' })
@ -300,7 +301,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await ProductionreceiptJobMainApi.exportProductionreceiptJobMain(tableObject.params) const data = await ProductionreceiptJobMainApi.exportProductionreceiptJobMain(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

3
src/views/wms/issueManage/productionreceipt/productionreceiptRecordMain/index.vue

@ -68,6 +68,7 @@ import * as ProductionreceiptRecordMainApi from '@/api/wms/productionreceiptReco
import * as ProductionreceiptRecordDetailApi from '@/api/wms/productionreceiptRecordDetail' import * as ProductionreceiptRecordDetailApi from '@/api/wms/productionreceiptRecordDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { formatDate } from '@/utils/formatTime'
// //
defineOptions({ name: 'ProductionreceiptRecordMain' }) defineOptions({ name: 'ProductionreceiptRecordMain' })
@ -156,7 +157,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await ProductionreceiptRecordMainApi.exportProductionreceiptRecordMain(tableObject.params) const data = await ProductionreceiptRecordMainApi.exportProductionreceiptRecordMain(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

3
src/views/wms/issueManage/repleinsh/repleinshJobMain/index.vue

@ -73,6 +73,7 @@ import { RepleinshJobMain,RepleinshJobMainRules,RepleinshJobDetail,RepleinshJobD
import * as RepleinshJobMainApi from '@/api/wms/repleinshJobMain' import * as RepleinshJobMainApi from '@/api/wms/repleinshJobMain'
import * as RepleinshJobDetailApi from '@/api/wms/repleinshJobDetail' import * as RepleinshJobDetailApi from '@/api/wms/repleinshJobDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { formatDate } from '@/utils/formatTime'
// //
defineOptions({ name: 'RepleinshJobMain' }) defineOptions({ name: 'RepleinshJobMain' })
@ -328,7 +329,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await RepleinshJobMainApi.exportRepleinshJobMain(tableObject.params) const data = await RepleinshJobMainApi.exportRepleinshJobMain(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

3
src/views/wms/issueManage/repleinsh/repleinshRecordMain/index.vue

@ -67,6 +67,7 @@ import { RepleinshRecordMain,RepleinshRecordMainRules,RepleinshRecordDetail,Repl
import * as RepleinshRecordMainApi from '@/api/wms/repleinshRecordMain' import * as RepleinshRecordMainApi from '@/api/wms/repleinshRecordMain'
import * as RepleinshRecordDetailApi from '@/api/wms/repleinshRecordDetail' import * as RepleinshRecordDetailApi from '@/api/wms/repleinshRecordDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { formatDate } from '@/utils/formatTime'
// //
defineOptions({ name: 'RepleinshRecordMain' }) defineOptions({ name: 'RepleinshRecordMain' })
@ -153,7 +154,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await RepleinshRecordMainApi.exportRepleinshRecordMain(tableObject.params) const data = await RepleinshRecordMainApi.exportRepleinshRecordMain(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

5
src/views/wms/issueManage/repleinsh/repleinshRequestMain/index.vue

@ -87,6 +87,7 @@ import { RepleinshRequestMain,RepleinshRequestMainRules,RepleinshRequestDetail,R
import * as RepleinshRequestMainApi from '@/api/wms/repleinshRequestMain' import * as RepleinshRequestMainApi from '@/api/wms/repleinshRequestMain'
import * as RepleinshRequestDetailApi from '@/api/wms/repleinshRequestDetail' import * as RepleinshRequestDetailApi from '@/api/wms/repleinshRequestDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { formatDate } from '@/utils/formatTime'
// //
defineOptions({ name: 'RepleinshRequestMain' }) defineOptions({ name: 'RepleinshRequestMain' })
@ -344,7 +345,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await RepleinshRequestMainApi.exportRepleinshRequestMain(tableObject.params) const data = await RepleinshRequestMainApi.exportRepleinshRequestMain(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
@ -423,7 +424,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '补料申请导入模版.xlsx' templateTitle: `${route.meta.title}】导入模版.xlsx`
}) })
// //

Loading…
Cancel
Save