Browse Source

装配上架,下线结算,工序报产导出文件名字修改

hella_online_20240815
zhang_li 1 month ago
parent
commit
f1b5946830
  1. 3
      src/views/wms/productionManage/offlinesettlement/offlinesettlementRecordMain/index.vue
  2. 5
      src/views/wms/productionManage/processproduction/processproductionRequest/index.vue
  3. 3
      src/views/wms/productionManage/productputawayAssemble/productputawayAssembleJobMain/index.vue
  4. 3
      src/views/wms/productionManage/productputawayAssemble/productputawayAssembleRecordMain/index.vue
  5. 5
      src/views/wms/productionManage/productputawayAssemble/productputawayAssembleRequestMain/index.vue

3
src/views/wms/productionManage/offlinesettlement/offlinesettlementRecordMain/index.vue

@ -68,6 +68,7 @@ import * as OfflinesettlementRecordMainApi from '@/api/wms/offlinesettlementReco
import * as OfflinesettlementRecordDetailApi from '@/api/wms/offlinesettlementRecordDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { formatDate } from '@/utils/formatTime'
// 线
defineOptions({ name: 'OfflinesettlementRecordMain' })
@ -156,7 +157,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await OfflinesettlementRecordMainApi.exportOfflinesettlementRecordMain(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/productionManage/processproduction/processproductionRequest/index.vue

@ -98,6 +98,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: 'ProcessproductionRequestMain' })
@ -408,7 +409,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await ProcessproductionRequestMainApi.exportProcessproductionRequestMain(tableObject.params)
download.excel(data, '工序报产申请主.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -423,7 +424,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '工序报产申请主导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//
const importSuccess = () => {

3
src/views/wms/productionManage/productputawayAssemble/productputawayAssembleJobMain/index.vue

@ -76,6 +76,7 @@ import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import * as SwitchApi from '@/api/wms/switch'
import {getAccessToken} from "@/utils/auth";
import { getJmreportBaseUrl } from '@/utils/systemParam'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'ProductputawayJobMain' })
@ -249,7 +250,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await ProductputawayJobMainApi.exportProductputawayJobMain(tableObject.params)
download.excel(data, route.meta.title+'.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false

3
src/views/wms/productionManage/productputawayAssemble/productputawayAssembleRecordMain/index.vue

@ -68,6 +68,7 @@ import * as ProductputawayRecordMainApi from '@/api/wms/productputawayRecordMain
import * as ProductputawayRecordDetailApi from '@/api/wms/productputawayRecordDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'ProductputawayRecordMain' })
@ -156,7 +157,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await ProductputawayRecordMainApi.exportProductputawayRecordMain(tableObject.params)
download.excel(data, route.meta.title+'.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false

5
src/views/wms/productionManage/productputawayAssemble/productputawayAssembleRequestMain/index.vue

@ -88,6 +88,7 @@ import { ProductputawayRequestMain,ProductputawayRequestMainRules,Productputaway
import * as ProductputawayRequestMainApi from '@/api/wms/productputawayRequestMain'
import * as ProductputawayRequestDetailApi from '@/api/wms/productputawayRequestDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'ProductputawayRequestMain' })
@ -344,7 +345,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await ProductputawayRequestMainApi.exportProductputawayRequestMainAssemble(tableObject.params)
download.excel(data, route.meta.title+'.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -417,7 +418,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '制品上架申请主导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//

Loading…
Cancel
Save