Browse Source

装配报工,制品回收隔离报工导导出文件名字修改

hella_online_20240815
zhang_li 3 months ago
parent
commit
5e96f7f341
  1. 3
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleJobMain/index.vue
  2. 3
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/index.vue
  3. 5
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue
  4. 3
      src/views/wms/productionManage/productreceiptscrap/productreceiptscrapJobMain/index.vue
  5. 3
      src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRecordMain/index.vue
  6. 5
      src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue
  7. 3
      src/views/wms/productionManage/productredress/productredressJobMain/index.vue
  8. 3
      src/views/wms/productionManage/productredress/productredressRecordMain/index.vue
  9. 5
      src/views/wms/productionManage/productredress/productredressRequestMain/index.vue

3
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleJobMain/index.vue

@ -73,6 +73,7 @@ import * as ProductreceiptJobMainApi from '@/api/wms/productreceiptJobMain'
import * as ProductreceiptJobDetailApi from '@/api/wms/productreceiptJobDetail' import * as ProductreceiptJobDetailApi from '@/api/wms/productreceiptJobDetail'
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: 'ProductreceiptJobMainA' }) defineOptions({ name: 'ProductreceiptJobMainA' })
@ -290,7 +291,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await ProductreceiptJobMainApi.exportProductreceiptJobMainAssemble(tableObject.params) const data = await ProductreceiptJobMainApi.exportProductreceiptJobMainAssemble(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/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/index.vue

@ -122,6 +122,7 @@ import {
SupplierdeliverRequestPackage SupplierdeliverRequestPackage
} from '../../../purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts' } from '../../../purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts'
import { getJmreportBaseUrl } from '@/utils/systemParam' import { getJmreportBaseUrl } from '@/utils/systemParam'
import { formatDate } from '@/utils/formatTime'
// //
defineOptions({ name: 'ProductreceiptRecordMainA' }) defineOptions({ name: 'ProductreceiptRecordMainA' })
@ -358,7 +359,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await ProductreceiptRecordMainApi.exportProductreceiptRecordAssembleMain(tableObject.params) const data = await ProductreceiptRecordMainApi.exportProductreceiptRecordAssembleMain(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/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue

@ -150,6 +150,7 @@ import { formatTime } from '@/utils/index'
import { getAccessToken } from '@/utils/auth' import { getAccessToken } from '@/utils/auth'
import { getJmreportBaseUrl } from '@/utils/systemParam' import { getJmreportBaseUrl } from '@/utils/systemParam'
import * as BomApi from "@/api/wms/bom"; import * as BomApi from "@/api/wms/bom";
import { formatDate } from '@/utils/formatTime'
// //
defineOptions({ name: 'ProductreceiptRequestMainA' }) defineOptions({ name: 'ProductreceiptRequestMainA' })
@ -567,7 +568,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await ProductreceiptRequestMainApi.exportProductreceiptRequestMainAssemble(tableObject.params) const data = await ProductreceiptRequestMainApi.exportProductreceiptRequestMainAssemble(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
@ -646,7 +647,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '装配收货申请导入模版.xlsx' templateTitle: `${route.meta.title}】导入模版.xlsx`
}) })
// //

3
src/views/wms/productionManage/productreceiptscrap/productreceiptscrapJobMain/index.vue

@ -74,6 +74,7 @@ import * as ProductreceiptJobMainApi from '@/api/wms/productreceiptJobMain'
import * as ProductreceiptJobDetailApi from '@/api/wms/productreceiptJobDetail' import * as ProductreceiptJobDetailApi from '@/api/wms/productreceiptJobDetail'
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: 'ProductreceiptJobMain' }) defineOptions({ name: 'ProductreceiptJobMain' })
@ -287,7 +288,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await ProductreceiptJobMainApi.exportProductreceiptJobMain(tableObject.params) const data = await ProductreceiptJobMainApi.exportProductreceiptJobMain(tableObject.params)
download.excel(data, route.meta.title+'.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/productionManage/productreceiptscrap/productreceiptscrapRecordMain/index.vue

@ -92,6 +92,7 @@ import * as ProductreceiptRecordDetailApi from '@/api/wms/productreceiptRecordDe
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import * as BackflushRecordDetailbApi from '@/api/wms/backflushRecordDetailb' import * as BackflushRecordDetailbApi from '@/api/wms/backflushRecordDetailb'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { formatDate } from '@/utils/formatTime'
// //
defineOptions({ name: 'ProductreceiptRecordMain' }) defineOptions({ name: 'ProductreceiptRecordMain' })
@ -199,7 +200,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await ProductreceiptRecordMainApi.exportProductreceiptRecordMain(tableObject.params) const data = await ProductreceiptRecordMainApi.exportProductreceiptRecordMain(tableObject.params)
download.excel(data, route.meta.title+'.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/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue

@ -141,6 +141,7 @@ import {
SupplierdeliverRequestPackage SupplierdeliverRequestPackage
} from '../../../purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts' } from '../../../purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts'
import { getJmreportBaseUrl } from '@/utils/systemParam' import { getJmreportBaseUrl } from '@/utils/systemParam'
import { formatDate } from '@/utils/formatTime'
// //
// //
@ -554,7 +555,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await ProductreceiptRequestMainApi.exportProductreceiptRequestMain(tableObject.params) const data = await ProductreceiptRequestMainApi.exportProductreceiptRequestMain(tableObject.params)
download.excel(data, route.meta.title+'.xlsx') download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false
@ -631,7 +632,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '隔离报工申请导入模版.xlsx' templateTitle: `${route.meta.title}】导入模版.xlsx`
}) })
// //

3
src/views/wms/productionManage/productredress/productredressJobMain/index.vue

@ -60,6 +60,7 @@ import { ProductredressJobMain,ProductredressJobMainRules,ProductredressJobDetai
import * as ProductredressJobMainApi from '@/api/wms/productredressJobMain' import * as ProductredressJobMainApi from '@/api/wms/productredressJobMain'
import * as ProductredressJobDetailApi from '@/api/wms/productredressJobDetail' import * as ProductredressJobDetailApi from '@/api/wms/productredressJobDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { formatDate } from '@/utils/formatTime'
defineOptions({ name: 'ProductredressJobMain' }) defineOptions({ name: 'ProductredressJobMain' })
@ -195,7 +196,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await ProductredressJobMainApi.exportProductredressJobMain(tableObject.params) const data = await ProductredressJobMainApi.exportProductredressJobMain(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/productionManage/productredress/productredressRecordMain/index.vue

@ -58,6 +58,7 @@ import { ProductredressRecordMain,ProductredressRecordMainRules,ProductredressRe
import * as ProductredressRecordMainApi from '@/api/wms/productredressRecordMain' import * as ProductredressRecordMainApi from '@/api/wms/productredressRecordMain'
import * as ProductredressRecordDetailApi from '@/api/wms/productredressRecordDetail' import * as ProductredressRecordDetailApi from '@/api/wms/productredressRecordDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { formatDate } from '@/utils/formatTime'
defineOptions({ name: 'ProductredressRecordMain' }) defineOptions({ name: 'ProductredressRecordMain' })
@ -139,7 +140,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await ProductredressRecordMainApi.exportProductredressRecordMain(tableObject.params) const data = await ProductredressRecordMainApi.exportProductredressRecordMain(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/productionManage/productredress/productredressRequestMain/index.vue

@ -113,6 +113,7 @@ 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 { getJmreportBaseUrl } from '@/utils/systemParam' import { getJmreportBaseUrl } from '@/utils/systemParam'
import { formatDate } from '@/utils/formatTime'
defineOptions({ name: 'ProductredressRequestMain' }) defineOptions({ name: 'ProductredressRequestMain' })
@ -382,7 +383,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await ProductredressRequestMainApi.exportProductredressRequestMain(tableObject.params) const data = await ProductredressRequestMainApi.exportProductredressRequestMain(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
@ -457,7 +458,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '制品回收申请导入模版.xlsx' templateTitle: `${route.meta.title}】导入模版.xlsx`
}) })
// //

Loading…
Cancel
Save