Browse Source

发运结算导出文件名称

hella_online_20240815
zhang_li 1 month ago
parent
commit
87192f0b17
  1. 5
      src/views/wms/basicDataManage/customerManage/customerDeliveryForecast/index.vue
  2. 3
      src/views/wms/basicDataManage/itemManage/relegate/relegateRecord/index.vue
  3. 5
      src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue
  4. 3
      src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRecordMain/index.vue
  5. 3
      src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRequestMain/index.vue
  6. 3
      src/views/wms/deliversettlementManage/customerreturn/customerreturnJobMain/index.vue
  7. 3
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRecordMain/index.vue
  8. 5
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue
  9. 3
      src/views/wms/deliversettlementManage/customersettle/customersettleRecordMain/index.vue
  10. 5
      src/views/wms/deliversettlementManage/customersettle/customersettleRequestMain/index.vue
  11. 3
      src/views/wms/deliversettlementManage/deliver/deliverJobMain/index.vue
  12. 3
      src/views/wms/deliversettlementManage/deliver/deliverRecordMain/index.vue
  13. 7
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue
  14. 7
      src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue
  15. 5
      src/views/wms/deliversettlementManage/deliverplan/saleMain/index.vue
  16. 3
      src/views/wms/deliversettlementManage/saleShipmentMainRecord/index.vue
  17. 5
      src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue
  18. 3
      src/views/wms/deliversettlementManage/stockup/stockupMainJob/index.vue
  19. 3
      src/views/wms/deliversettlementManage/stockup/stockupMainRecord/index.vue
  20. 5
      src/views/wms/deliversettlementManage/stockup/stockupMainRequest/index.vue

5
src/views/wms/basicDataManage/customerManage/customerDeliveryForecast/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: 'CustomerDeliveryForecast' })
@ -221,7 +222,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await CustomerDeliveryForecastApi.exportCustomerDeliveryForecast(tableObject.params)
download.excel(data, '客户发货预测.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -236,7 +237,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '客户发货预测导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//
const importSuccess = () => {

3
src/views/wms/basicDataManage/itemManage/relegate/relegateRecord/index.vue

@ -81,6 +81,7 @@ import * as RelegateRecordDetailApi from '@/api/wms/relegateRecordDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { formatDate } from '@/utils/formatTime'
defineOptions({ name: 'RelegateRecordMain' })
@ -234,7 +235,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await RelegateRecordMainApi.exportRelegateRecordMain(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/basicDataManage/itemManage/relegate/relegateRequest/index.vue

@ -99,6 +99,7 @@ import * as PackageApi from "@/api/wms/package";
import { getAccessToken } from '@/utils/auth'
import { getJmreportBaseUrl } from '@/utils/systemParam'
import * as ProductionlineitemApi from '@/api/wms/productionlineitem'
import { formatDate } from '@/utils/formatTime'
defineOptions({ name: 'RelegateRequestMain' })
@ -715,7 +716,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await RelegateRequestMainApi.exportRelegateRequestMain(tableObject.params)
download.excel(data, '物料降级申请主.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -730,7 +731,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '物料降级申请主导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//
const importSuccess = () => {

3
src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRecordMain/index.vue

@ -68,6 +68,7 @@ import * as CustomerreceiptRecordMainApi from '@/api/wms/customerreceiptRecordMa
import * as CustomerreceiptRecordDetailApi from '@/api/wms/customerreceiptRecordDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'CustomerreceiptRecordMain' })
@ -156,7 +157,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await CustomerreceiptRecordMainApi.exportCustomerreceiptRecordMain(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/deliversettlementManage/customerreceipt/customerreceiptRequestMain/index.vue

@ -88,6 +88,7 @@ import { CustomerreceiptRequestMain,CustomerreceiptRequestMainRules,Customerrece
import * as CustomerreceiptRequestMainApi from '@/api/wms/customerreceiptRequestMain'
import * as CustomerreceiptRequestDetailApi from '@/api/wms/customerreceiptRequestDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'CustomerreceiptRequestMain' })
@ -326,7 +327,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await CustomerreceiptRequestMainApi.exportCustomerreceiptRequestMain(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/deliversettlementManage/customerreturn/customerreturnJobMain/index.vue

@ -73,6 +73,7 @@ import * as CustomerreturnJobMainApi from '@/api/wms/customerreturnJobMain'
import * as CustomerreturnJobDetailApi from '@/api/wms/customerreturnJobDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { formatDate } from '@/utils/formatTime'
// 退
defineOptions({ name: 'CustomerreturnJobMain' })
@ -365,7 +366,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await CustomerreturnJobMainApi.exportCustomerreturnJobMain(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/deliversettlementManage/customerreturn/customerreturnRecordMain/index.vue

@ -70,6 +70,7 @@ import * as CustomerreturnRecordDetailApi from '@/api/wms/customerreturnRecordDe
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { getJmreportBaseUrl } from '@/utils/systemParam'
import { formatDate } from '@/utils/formatTime'
// 退
defineOptions({ name: 'CustomerreturnRecordMain' })
@ -162,7 +163,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await CustomerreturnRecordMainApi.exportCustomerreturnRecordMain(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/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue

@ -116,6 +116,7 @@ import {
import * as PackageApi from '@/api/wms/package'
import { getAccessToken } from '@/utils/auth'
import { getJmreportBaseUrl } from '@/utils/systemParam'
import { formatDate } from '@/utils/formatTime'
// 退
defineOptions({ name: 'CustomerreturnRequestMain' })
@ -654,7 +655,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await CustomerreturnRequestMainApi.exportCustomerreturnRequestMain(tableObject.params)
download.excel(data, '客户退货申请主.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -777,7 +778,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '客户退货申请主导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//

3
src/views/wms/deliversettlementManage/customersettle/customersettleRecordMain/index.vue

@ -68,6 +68,7 @@ import * as CustomersettleRecordMainApi from '@/api/wms/customersettleRecordMain
import * as CustomersettleRecordDetailApi from '@/api/wms/customersettleRecordDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'CustomersettleRecordMain' })
@ -156,7 +157,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await CustomersettleRecordMainApi.exportCustomersettleRecordMain(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/deliversettlementManage/customersettle/customersettleRequestMain/index.vue

@ -89,6 +89,7 @@ import { CustomersettleRequestMain,CustomersettleRequestMainRules,Customersettle
import * as CustomersettleRequestMainApi from '@/api/wms/customersettleRequestMain'
import * as CustomersettleRequestDetailApi from '@/api/wms/customersettleRequestDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'CustomersettleRequestMain' })
@ -337,7 +338,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await CustomersettleRequestMainApi.exportCustomersettleRequestMain(tableObject.params)
download.excel(data, '客户结算申请主.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -399,7 +400,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '客户结算申请主导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//

3
src/views/wms/deliversettlementManage/deliver/deliverJobMain/index.vue

@ -73,6 +73,7 @@ import * as DeliverJobMainApi from '@/api/wms/deliverJobMain'
import * as DeliverJobDetailApi from '@/api/wms/deliverJobDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'DeliverJobMain' })
@ -350,7 +351,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await DeliverJobMainApi.exportDeliverJobMain(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/deliversettlementManage/deliver/deliverRecordMain/index.vue

@ -70,6 +70,7 @@ import * as DeliverRecordDetailApi from '@/api/wms/deliverRecordDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { getJmreportBaseUrl } from '@/utils/systemParam'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'DeliverRecordMain' })
@ -184,7 +185,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await DeliverRecordMainApi.exportDeliverRecordMain(tableObject.params)
download.excel(data, '发货记录主.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false

7
src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue

@ -95,6 +95,7 @@ import * as DeliverRequestMainApi from '@/api/wms/deliverRequestMain'
import * as DeliverRequestDetailApi from '@/api/wms/deliverRequestDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import * as AreabasicApi from '@/api/wms/areabasic'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'DeliverRequestMain' })
@ -475,10 +476,10 @@ const handleExport = async () => {
exportLoading.value = true
if(routeName.value == 'DeliverRequestMain'){
const data = await DeliverRequestMainApi.exportDeliverRequestMain(tableObject.params)
download.excel(data, '发货申请主.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
}else{
const data = await DeliverRequestMainApi.exportZZBJDeliverRequestMain(tableObject.params)
download.excel(data, '自制备件发货申请主.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
}
} catch {
} finally {
@ -580,7 +581,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: importFileName.value + '.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//

7
src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue

@ -87,6 +87,7 @@ import * as DeliverPlanMainApi from '@/api/wms/deliverPlanMain'
import * as DeliverPlanDetailApi from '@/api/wms/deliverPlanDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import * as AreabasicApi from '@/api/wms/areabasic'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'DeliverPlanMain' })
@ -434,10 +435,10 @@ const handleExport = async () => {
exportLoading.value = true
if(routeName.value == 'DeliverRequestMain'){
const data = await DeliverPlanMainApi.exportDeliverPlanMain(tableObject.params)
download.excel(data, '发货计划主.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
}else{
const data = await DeliverPlanMainApi.exportZZBJDeliverPlanMain(tableObject.params)
download.excel(data, '自制备件发货计划主.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
}
} catch {
} finally {
@ -546,7 +547,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '发货计划主导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//

5
src/views/wms/deliversettlementManage/deliverplan/saleMain/index.vue

@ -84,6 +84,7 @@ import { SaleMain,SaleMainRules,SaleDetail,SaleDetailRules } from './saleMain.da
import * as SaleMainApi from '@/api/wms/saleMain'
import * as SaleDetailApi from '@/api/wms/saleDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'SaleMain' })
@ -253,7 +254,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await SaleMainApi.exportSaleMain(tableObject.params)
download.excel(data, '销售订单主.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -315,7 +316,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '销售订单主导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//

3
src/views/wms/deliversettlementManage/saleShipmentMainRecord/index.vue

@ -72,6 +72,7 @@ import * as SaleShipmentDetailRecordApi from '@/api/wms/saleShipmentDetailRecord
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { formatDate } from '@/utils/formatTime'
defineOptions({ name: 'SaleShipmentMainRecord' })
@ -206,7 +207,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await SaleShipmentMainRecordApi.exportSaleShipmentMainRecord(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/deliversettlementManage/saleShipmentMainRequest/index.vue

@ -93,6 +93,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: 'SaleShipmentMain' })
const message = useMessage() //
@ -447,7 +448,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await SaleShipmentMainApi.exportSaleShipmentMain(tableObject.params)
download.excel(data, '结算出库申请主.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -462,7 +463,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '结算出库申请主导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//
const importSuccess = () => {

3
src/views/wms/deliversettlementManage/stockup/stockupMainJob/index.vue

@ -76,6 +76,7 @@ import * as StockupJobMainApi from '@/api/wms/stockupMainJob'
import * as StockupJobDetailApi from '@/api/wms/stockupDetailJob'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'StockupJobMain' })
@ -239,7 +240,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await StockupJobMainApi.exportStockupMainJob(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/deliversettlementManage/stockup/stockupMainRecord/index.vue

@ -68,6 +68,7 @@ import * as StockupMainRecordApi from '@/api/wms/stockupMainRecord'
import * as StockupDetailRecordApi from '@/api/wms/stockupDetailRecord'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'StockupMainRecord' })
@ -157,7 +158,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await StockupMainRecordApi.exportStockupMainRecord(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/deliversettlementManage/stockup/stockupMainRequest/index.vue

@ -95,6 +95,7 @@ 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 * as DeliverPlanDetailApi from '@/api/wms/deliverPlanDetail'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'StockupMainRequest' })
@ -411,7 +412,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await StockupMainRequestApi.exportStockupMainRequest(tableObject.params)
download.excel(data, '备货申请主.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -505,7 +506,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '备货申请主导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//

Loading…
Cancel
Save