Browse Source

单据设置管理导出文件名字修改

linshi20240813
zhang_li 4 months ago
parent
commit
356b26a84c
  1. 5
      src/views/system/serialNumber/index.vue
  2. 5
      src/views/wms/basicDataManage/documentSetting/businesstype/index.vue
  3. 5
      src/views/wms/basicDataManage/documentSetting/documentsetting/index.vue
  4. 5
      src/views/wms/basicDataManage/documentSetting/jobsetting/index.vue
  5. 5
      src/views/wms/basicDataManage/documentSetting/plansetting/index.vue
  6. 5
      src/views/wms/basicDataManage/documentSetting/recordsetting/index.vue
  7. 5
      src/views/wms/basicDataManage/documentSetting/requestsetting/index.vue
  8. 5
      src/views/wms/basicDataManage/documentSetting/switch/index.vue
  9. 5
      src/views/wms/basicDataManage/documentSetting/transactiontype/index.vue
  10. 5
      src/views/wms/basicDataManage/strategySetting/configurationsetting/index.vue
  11. 5
      src/views/wms/basicDataManage/strategySetting/paramsetting/index.vue
  12. 5
      src/views/wms/basicDataManage/strategySetting/rule/index.vue
  13. 5
      src/views/wms/basicDataManage/systemSetting/accountcalendar/index.vue
  14. 5
      src/views/wms/basicDataManage/systemSetting/currencyexchange/index.vue
  15. 5
      src/views/wms/basicDataManage/systemSetting/systemcalendar/index.vue

5
src/views/system/serialNumber/index.vue

@ -99,6 +99,9 @@
import download from '@/utils/download' import download from '@/utils/download'
import * as SerialNumberApi from '@/api/system/serialNumber' import * as SerialNumberApi from '@/api/system/serialNumber'
import SerialNumberForm from './SerialNumberForm.vue' import SerialNumberForm from './SerialNumberForm.vue'
import { formatDate } from '@/utils/formatTime'
const route = useRoute() //
defineOptions({ name: 'SerialNumber' }) defineOptions({ name: 'SerialNumber' })
@ -168,7 +171,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await SerialNumberApi.exportSerialNumber(queryParams) const data = await SerialNumberApi.exportSerialNumber(queryParams)
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/basicDataManage/documentSetting/businesstype/index.vue

@ -78,6 +78,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 { DICT_TYPE, getStrDictOptions } from '@/utils/dict' import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
import { formatDate } from '@/utils/formatTime'
// //
defineOptions({ name: 'Businesstype' }) defineOptions({ name: 'Businesstype' })
@ -365,7 +366,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await BusinesstypeApi.exportBusinesstype(tableObject.params) const data = await BusinesstypeApi.exportBusinesstype(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
@ -380,7 +381,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '业务类型导入模版.xlsx' templateTitle: `${route.meta.title}】导入模版.xlsx`
}) })
// //
const importSuccess = () => { const importSuccess = () => {

5
src/views/wms/basicDataManage/documentSetting/documentsetting/index.vue

@ -65,6 +65,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' 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 { formatDate } from '@/utils/formatTime'
defineOptions({ name: 'Documentsetting' }) defineOptions({ name: 'Documentsetting' })
@ -213,7 +214,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await DocumentsettingApi.exportDocumentsetting(tableObject.params) const data = await DocumentsettingApi.exportDocumentsetting(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
@ -228,7 +229,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '单据设置导入模版.xlsx' templateTitle: `${route.meta.title}】导入模版.xlsx`
}) })
// //
const importSuccess = () => { const importSuccess = () => {

5
src/views/wms/basicDataManage/documentSetting/jobsetting/index.vue

@ -65,6 +65,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' 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 { formatDate } from '@/utils/formatTime'
defineOptions({ name: 'Jobsetting' }) defineOptions({ name: 'Jobsetting' })
@ -213,7 +214,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await JobsettingApi.exportJobsetting(tableObject.params) const data = await JobsettingApi.exportJobsetting(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
@ -228,7 +229,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '任务单设置导入模版.xlsx' templateTitle: `${route.meta.title}】导入模版.xlsx`
}) })
// //
const importSuccess = () => { const importSuccess = () => {

5
src/views/wms/basicDataManage/documentSetting/plansetting/index.vue

@ -65,6 +65,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' 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 { formatDate } from '@/utils/formatTime'
defineOptions({ name: 'Plansetting' }) defineOptions({ name: 'Plansetting' })
@ -214,7 +215,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await PlansettingApi.exportPlansetting(tableObject.params) const data = await PlansettingApi.exportPlansetting(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
@ -229,7 +230,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '计划单设置导入模版.xlsx' templateTitle: `${route.meta.title}】导入模版.xlsx`
}) })
// //
const importSuccess = () => { const importSuccess = () => {

5
src/views/wms/basicDataManage/documentSetting/recordsetting/index.vue

@ -65,6 +65,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' 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 { formatDate } from '@/utils/formatTime'
defineOptions({ name: 'Recordsetting' }) defineOptions({ name: 'Recordsetting' })
@ -214,7 +215,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await RecordsettingApi.exportRecordsetting(tableObject.params) const data = await RecordsettingApi.exportRecordsetting(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
@ -229,7 +230,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '记录单设置导入模版.xlsx' templateTitle: `${route.meta.title}】导入模版.xlsx`
}) })
// //
const importSuccess = () => { const importSuccess = () => {

5
src/views/wms/basicDataManage/documentSetting/requestsetting/index.vue

@ -65,6 +65,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' 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 { formatDate } from '@/utils/formatTime'
defineOptions({ name: 'Requestsetting' }) defineOptions({ name: 'Requestsetting' })
@ -214,7 +215,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await RequestsettingApi.exportRequestsetting(tableObject.params) const data = await RequestsettingApi.exportRequestsetting(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
@ -229,7 +230,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '申请单设置导入模版.xlsx' templateTitle: `${route.meta.title}】导入模版.xlsx`
}) })
// //
const importSuccess = () => { const importSuccess = () => {

5
src/views/wms/basicDataManage/documentSetting/switch/index.vue

@ -65,6 +65,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' 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 { formatDate } from '@/utils/formatTime'
defineOptions({ name: 'Switch' }) defineOptions({ name: 'Switch' })
@ -189,7 +190,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await SwitchApi.exportSwitch(tableObject.params) const data = await SwitchApi.exportSwitch(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
@ -204,7 +205,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '单据开关导入模版.xlsx' templateTitle: `${route.meta.title}】导入模版.xlsx`
}) })
// //
const importSuccess = () => { const importSuccess = () => {

5
src/views/wms/basicDataManage/documentSetting/transactiontype/index.vue

@ -65,6 +65,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' 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 { formatDate } from '@/utils/formatTime'
defineOptions({ name: 'Transactiontype' }) defineOptions({ name: 'Transactiontype' })
@ -215,7 +216,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await TransactiontypeApi.exportTransactiontype(tableObject.params) const data = await TransactiontypeApi.exportTransactiontype(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
@ -230,7 +231,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '事务类型导入模版.xlsx' templateTitle: `${route.meta.title}】导入模版.xlsx`
}) })
// //
const importSuccess = () => { const importSuccess = () => {

5
src/views/wms/basicDataManage/strategySetting/configurationsetting/index.vue

@ -75,6 +75,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 { DICT_TYPE, getStrDictOptions } from '@/utils/dict' import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
import { formatDate } from '@/utils/formatTime'
defineOptions({ name: 'Configurationsetting' }) defineOptions({ name: 'Configurationsetting' })
@ -210,7 +211,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await ConfigurationsettingApi.exportConfigurationsetting(tableObject.params) const data = await ConfigurationsettingApi.exportConfigurationsetting(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
@ -225,7 +226,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '配置设置导入模版.xlsx' templateTitle: `${route.meta.title}】导入模版.xlsx`
}) })
// //
const importSuccess = () => { const importSuccess = () => {

5
src/views/wms/basicDataManage/strategySetting/paramsetting/index.vue

@ -66,6 +66,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 { DICT_TYPE, getStrDictOptions } from '@/utils/dict' import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
import { formatDate } from '@/utils/formatTime'
defineOptions({ name: 'Paramsetting' }) defineOptions({ name: 'Paramsetting' })
@ -181,7 +182,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await ParamsettingApi.exportParamsetting(tableObject.params) const data = await ParamsettingApi.exportParamsetting(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
@ -196,7 +197,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '参数设置导入模版.xlsx' templateTitle: `${route.meta.title}】导入模版.xlsx`
}) })
// //
const importSuccess = () => { const importSuccess = () => {

5
src/views/wms/basicDataManage/strategySetting/rule/index.vue

@ -74,6 +74,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' 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 { formatDate } from '@/utils/formatTime'
defineOptions({ name: 'Rule' }) defineOptions({ name: 'Rule' })
@ -213,7 +214,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await RuleApi.exportRule(tableObject.params) const data = await RuleApi.exportRule(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
@ -228,7 +229,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '规则导入模版.xlsx' templateTitle: `${route.meta.title}】导入模版.xlsx`
}) })
// //
const importSuccess = () => { const importSuccess = () => {

5
src/views/wms/basicDataManage/systemSetting/accountcalendar/index.vue

@ -65,6 +65,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' 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 { formatDate } from '@/utils/formatTime'
defineOptions({ name: 'Accountcalendar' }) defineOptions({ name: 'Accountcalendar' })
@ -214,7 +215,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await AccountcalendarApi.exportAccountcalendar(tableObject.params) const data = await AccountcalendarApi.exportAccountcalendar(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
@ -229,7 +230,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '账期日历导入模版.xlsx' templateTitle: `${route.meta.title}】导入模版.xlsx`
}) })
// //
const importSuccess = () => { const importSuccess = () => {

5
src/views/wms/basicDataManage/systemSetting/currencyexchange/index.vue

@ -66,6 +66,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 { DICT_TYPE, getStrDictOptions } from '@/utils/dict' import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
import { formatDate } from '@/utils/formatTime'
defineOptions({ name: 'Currencyexchange' }) defineOptions({ name: 'Currencyexchange' })
@ -215,7 +216,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await CurrencyexchangeApi.exportCurrencyexchange(tableObject.params) const data = await CurrencyexchangeApi.exportCurrencyexchange(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
@ -230,7 +231,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '货币转换导入模版.xlsx' templateTitle: `${route.meta.title}】导入模版.xlsx`
}) })
// //
const importSuccess = () => { const importSuccess = () => {

5
src/views/wms/basicDataManage/systemSetting/systemcalendar/index.vue

@ -65,6 +65,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' 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 { formatDate } from '@/utils/formatTime'
defineOptions({ name: 'Systemcalendar' }) defineOptions({ name: 'Systemcalendar' })
@ -214,7 +215,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await SystemcalendarApi.exportSystemcalendar(tableObject.params) const data = await SystemcalendarApi.exportSystemcalendar(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
@ -229,7 +230,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '系统日历导入模版.xlsx' templateTitle: `${route.meta.title}】导入模版.xlsx`
}) })
// //
const importSuccess = () => { const importSuccess = () => {

Loading…
Cancel
Save