Browse Source

生产计划和预生产报工导出文件夹名字修改

hella_online_20240815
zhang_li 3 months ago
parent
commit
3828bcaa50
  1. 5
      src/views/wms/productionManage/productionplan/productionMain/index.vue
  2. 5
      src/views/wms/productionManage/productionplan/productionMainAssemble/index.vue
  3. 3
      src/views/wms/productionManage/productionplan/productionMainAssembleSparePart/index.vue
  4. 5
      src/views/wms/productionManage/productionplan/productionMainPredictSparePart/index.vue
  5. 5
      src/views/wms/productionManage/productionplan/qadproductionplan/index.vue
  6. 3
      src/views/wms/productionManage/productreceipt/productreceiptJobMain/index.vue
  7. 3
      src/views/wms/productionManage/productreceipt/productreceiptRecordMain/index.vue
  8. 5
      src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue

5
src/views/wms/productionManage/productionplan/productionMain/index.vue

@ -89,6 +89,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import * as ItemBasicApi from '@/api/wms/itembasic'
import * as BomApi from "@/api/wms/bom";
import * as SwitchApi from '@/api/wms/switch'
import { formatDate } from '@/utils/formatTime'
//
//
defineOptions({ name: 'ProductionMain' })
@ -549,7 +550,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await ProductionMainApi.exportProductionMain(tableObject.params)
download.excel(data, '预生产计划.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -627,7 +628,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '生产计划导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//

5
src/views/wms/productionManage/productionplan/productionMainAssemble/index.vue

@ -89,6 +89,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import * as ItemBasicApi from '@/api/wms/itembasic'
import * as BomApi from "@/api/wms/bom";
import * as SwitchApi from '@/api/wms/switch'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'ProductionMainAssemble' })
@ -512,7 +513,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await ProductionMainApi.exportProductionMainAssemble(tableObject.params)
download.excel(data, '装配计划.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -626,7 +627,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '装配计划导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//

3
src/views/wms/productionManage/productionplan/productionMainAssembleSparePart/index.vue

@ -89,6 +89,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import * as ItemBasicApi from '@/api/wms/itembasic'
import * as BomApi from "@/api/wms/bom";
import * as SwitchApi from '@/api/wms/switch'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'ProductionMainASparePart' })
@ -500,7 +501,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await ProductionMainApi.exportProductionMainAssembleSparePart(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/productionplan/productionMainPredictSparePart/index.vue

@ -89,6 +89,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import * as ItemBasicApi from '@/api/wms/itembasic'
import * as BomApi from "@/api/wms/bom";
import * as SwitchApi from '@/api/wms/switch'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'ProductionMainPredictSparePart' })
@ -502,7 +503,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await ProductionMainApi.exportProductionMainPredictSparePart(tableObject.params)
download.excel(data, '预生产备件计划.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -619,7 +620,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '预生产备件计划导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//

5
src/views/wms/productionManage/productionplan/qadproductionplan/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: 'QadProductionPlanMain' })
@ -214,7 +215,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await QadProductionPlanMainApi.exportQadProductionPlanMain(tableObject.params)
download.excel(data, 'QAD生产计划主.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -229,7 +230,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: 'QAD生产计划主导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//
const importSuccess = () => {

3
src/views/wms/productionManage/productreceipt/productreceiptJobMain/index.vue

@ -104,6 +104,7 @@ import {
BackflushRecordDetailb
} from "@/views/wms/productionManage/productreceipt/productreceiptRecordMain/productreceiptRecordMain.data";
import { formatDate } from '@/utils/formatTime'
//
//
defineOptions({ name: 'ProductreceiptJobMain' })
@ -350,7 +351,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await ProductreceiptJobMainApi.exportProductreceiptJobMain(tableObject.params)
download.excel(data, '制品收货任务.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false

3
src/views/wms/productionManage/productreceipt/productreceiptRecordMain/index.vue

@ -102,6 +102,7 @@ import * as ProductreceiptRequestDetailApi from '@/api/wms/productreceiptRequest
import { getAccessToken } from '@/utils/auth'
import { getJmreportBaseUrl } from '@/utils/systemParam'
import { formatDate } from '@/utils/formatTime'
//
//
defineOptions({ name: 'ProductreceiptRecordMain' })
@ -294,7 +295,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await ProductreceiptRecordMainApi.exportProductreceiptRecordMain(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/productreceipt/productreceiptRequestMain/index.vue

@ -150,6 +150,7 @@ import { getAccessToken } from '@/utils/auth'
import dayjs from 'dayjs'
import { getJmreportBaseUrl } from '@/utils/systemParam'
import * as BomApi from "@/api/wms/bom";
import { formatDate } from '@/utils/formatTime'
//
//
defineOptions({ name: 'ProductreceiptRequestMain' })
@ -567,7 +568,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await ProductreceiptRequestMainApi.exportProductreceiptRequestMain(tableObject.params)
download.excel(data, '制品收货申请主.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -645,7 +646,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '制品收货申请主导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//

Loading…
Cancel
Save