Browse Source

scp导出文件名字修改

hella_online_20240815
zhang_li 4 months ago
parent
commit
94bd6a8e11
  1. 6
      src/views/wms/basicDataManage/systemSetting/supplierUser/index.vue
  2. 3
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue
  3. 4
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue
  4. 5
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue
  5. 6
      src/views/wms/supplierManage/invoicingcalendar/index.vue
  6. 7
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue
  7. 9
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue
  8. 9
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMainDifference/index.vue
  9. 6
      src/views/wms/supplierManage/supplierinvoiceInvoiced/index.vue

6
src/views/wms/basicDataManage/systemSetting/supplierUser/index.vue

@ -74,6 +74,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: 'SupplierUser' })
@ -220,8 +221,9 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await SupplierUserApi.exportSupplierUser(tableObject.params)
download.excel(data, '供应商用户关联信息.xls')
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -236,7 +238,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '供应商用户关联信息导入模版.xls'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//
const importSuccess = () => {

3
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue

@ -363,8 +363,9 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await PurchasereceiptJobMainApi.exportPurchasereceiptJobMain(tableObject.params)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false

4
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue

@ -118,6 +118,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { getAccessToken } from '@/utils/auth'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { getJmreportBaseUrl } from '@/utils/systemParam'
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'SupplierdeliverRecordMain' })
@ -279,8 +280,9 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await SupplierdeliverRecordMainApi.exportSupplierdeliverRecordMain(tableObject.params)
download.excel(data, `${t('ts.供应商发货记录主')}.xlsx`)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}.xlsx`)
} catch {
} finally {
exportLoading.value = false

5
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

@ -1029,10 +1029,11 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await SupplierdeliverRequestMainApi.exportSupplierdeliverRequestMain(
tableObject.params
)
download.excel(data, `${'ts.供应商发货申请主'}.xlsx`)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -1225,7 +1226,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: `${t('ts.供应商发货申请主导入模版')}.xlsx`
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//

6
src/views/wms/supplierManage/invoicingcalendar/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: 'Invoicingcalendar' })
@ -211,8 +212,9 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await InvoicingcalendarApi.exportInvoicingcalendar(tableObject.params)
download.excel(data, '开票日历.xlsx')
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -227,7 +229,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '开票日历导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//
const importSuccess = () => {

7
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue

@ -152,6 +152,7 @@ import * as SupplierinvoiceRequestDetailApi from '@/api/wms/supplierinvoiceReque
import * as PackageApi from "@/api/wms/package";
import {getAccessToken} from "@/utils/auth";
import {getJmreportBaseUrl} from "@/utils/systemParam";
import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'SupplierinvoiceRecordMain' })
@ -307,8 +308,9 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await SupplierinvoiceRecordMainApi.exportSupplierinvoiceRecordMain({...tableObject.params,checkNums:rows})
download.excel(data, `${t('ts.供应商发票记录主')}.xlsx`)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -344,8 +346,9 @@ const handleDetailExport = async (masterId) => {
let params = {
masterId: masterId
}
const excelTitle = ref(route.meta.title)
const data = await SupplierinvoiceRecordMainApi.exportSupplierinvoiceRecordDetail(params)
download.excel(data, `${t('ts.供应商发票记录明细')}.xlsx`)
download.excel(data, `${excelTitle.value}明细】【${formatDate(new Date())}.xlsx`)
} catch {
} finally {
exportLoadingDetail.value = false

9
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

@ -350,6 +350,7 @@ import { ElMessageBox } from 'element-plus'
import { getJmreportBaseUrl } from '@/utils/systemParam'
import { accountantFormart } from '@/utils/formatter'
import { formatDate } from '@/utils/formatTime'
defineOptions({ name: 'SupplierinvoiceRequestMain' })
const message = useMessage() //
@ -1179,8 +1180,9 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await SupplierinvoiceRequestMainApi.exportSupplierinvoiceRequestMain(paramsData)
download.excel(data, `${t('ts.供应商发票申请主')}.xlsx`)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -1272,7 +1274,7 @@ const submitForm = async (formType, submitData) => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: `${t('ts.供应商发票申请主导入模板')}.xlsx`
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//
@ -1327,8 +1329,9 @@ const handleDetailExport = async (masterId) => {
let params = {
masterId: masterId
}
const excelTitle = ref(route.meta.title)
const data = await SupplierinvoiceRequestMainApi.exportSupplierinvoiceRequestDetail(params)
download.excel(data, `${t('ts.供应商发票申请明细')}.xlsx`)
download.excel(data, `${excelTitle.value}明细】【${formatDate(new Date())}.xlsx`)
} catch {
} finally {
exportLoadingDetail.value = false

9
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMainDifference/index.vue

@ -151,6 +151,7 @@ import dayjs from 'dayjs'
import { ElMessageBox } from 'element-plus'
import { getJmreportBaseUrl } from '@/utils/systemParam'
import { accountantFormart } from '@/utils/formatter'
import { formatDate } from '@/utils/formatTime'
defineOptions({ name: 'SupplierinvoiceRequestMain' })
@ -329,8 +330,9 @@ const searchTableSuccessDetail = async (formField, searchField, val, formRef,sea
await message.exportConfirm()
//
exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await SupplierinvoiceRequestMainApi.exportSupplierinvoiceRequestMain(paramsData)
download.excel(data, `${t('ts.供应商发票申请主')}.xlsx`)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -351,7 +353,7 @@ const searchTableSuccessDetail = async (formField, searchField, val, formRef,sea
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: `${t('ts.供应商发票申请主导入模板')}.xlsx`
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
@ -407,8 +409,9 @@ const importTemplateData = reactive({
let params = {
masterId: masterId
}
const excelTitle = ref(route.meta.title)
const data = await SupplierinvoiceRequestMainApi.exportSupplierinvoiceRequestDetail(params)
download.excel(data, `${t('ts.供应商发票申请明细')}.xlsx`)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}.xlsx`)
} catch {
} finally {
exportLoadingDetail.value = false

6
src/views/wms/supplierManage/supplierinvoiceInvoiced/index.vue

@ -64,6 +64,7 @@ import * as SupplierinvoiceInvoicedApi from '@/api/wms/supplierinvoiceInvoiced'
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: 'SupplierinvoiceInvoiced' })
@ -271,8 +272,9 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await SupplierinvoiceInvoicedApi.exportSupplierinvoiceInvoiced(tableObject.params)
download.excel(data, `${t('ts.待开票')}.xlsx`)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -287,7 +289,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: `${t('ts.待开票导入模版')}.xlsx`
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//
const importSuccess = () => {

Loading…
Cancel
Save