Browse Source

供应商管理客户管理导出文件名字修改

linshi20240813
zhang_li 3 months ago
parent
commit
67f469abf3
  1. 5
      src/views/wms/basicDataManage/customerManage/customer/index.vue
  2. 5
      src/views/wms/basicDataManage/customerManage/customerdock/index.vue
  3. 5
      src/views/wms/basicDataManage/customerManage/customeritem/index.vue
  4. 5
      src/views/wms/basicDataManage/customerManage/project/index.vue
  5. 5
      src/views/wms/basicDataManage/customerManage/saleprice/index.vue
  6. 7
      src/views/wms/basicDataManage/supplierManage/purchaseprice/index.vue
  7. 7
      src/views/wms/basicDataManage/supplierManage/supplier/index.vue
  8. 7
      src/views/wms/basicDataManage/supplierManage/supplieritem/index.vue

5
src/views/wms/basicDataManage/customerManage/customer/index.vue

@ -67,6 +67,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: 'Customer' })
@ -233,7 +234,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await CustomerApi.exportCustomer(tableObject.params)
download.excel(data, '客户 .xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -248,7 +249,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '客户导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//
const importSuccess = () => {

5
src/views/wms/basicDataManage/customerManage/customerdock/index.vue

@ -66,6 +66,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: 'Customerdock' })
@ -247,7 +248,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await CustomerdockApi.exportCustomerdock(tableObject.params)
download.excel(data, '客户月台.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -262,7 +263,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '客户月台导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//
const importSuccess = () => {

5
src/views/wms/basicDataManage/customerManage/customeritem/index.vue

@ -71,6 +71,7 @@ import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import * as ItembasicApi from '@/api/wms/itembasic'
import { Itembasic } from '../../itemManage/itembasic/itembasic.data'
import { formatDate } from '@/utils/formatTime'
defineOptions({ name: 'Customeritem' })
@ -271,7 +272,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await CustomeritemApi.exportCustomeritem(tableObject.params)
download.excel(data, '客户物料 .xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -286,7 +287,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '客户物料导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//
const importSuccess = () => {

5
src/views/wms/basicDataManage/customerManage/project/index.vue

@ -66,6 +66,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: 'Project' })
@ -241,7 +242,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await ProjectApi.exportProject(tableObject.params)
download.excel(data, '项目.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -256,7 +257,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '项目导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//
const importSuccess = () => {

5
src/views/wms/basicDataManage/customerManage/saleprice/index.vue

@ -66,6 +66,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: 'Saleprice' })
@ -245,7 +246,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await SalepriceApi.exportSaleprice(tableObject.params)
download.excel(data, '销售价格单.xlsx')
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -260,7 +261,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '销售价格单导入模版.xlsx'
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//
const importSuccess = () => {

7
src/views/wms/basicDataManage/supplierManage/purchaseprice/index.vue

@ -67,6 +67,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: 'Purchaseprice' })
@ -246,10 +247,10 @@ const handleExport = async () => {
exportLoading.value = true
if(routeName.value.includes('SCP')){
const data = await PurchasepriceApi.exportPurchasepriceSCP(tableObject.params)
download.excel(data, `${t('ts.采购价格单')}.xlsx`)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}.xlsx`)
}else{
const data = await PurchasepriceApi.exportPurchaseprice(tableObject.params)
download.excel(data, `${t('ts.采购价格单')}.xlsx`)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}.xlsx`)
}
} catch {
} finally {
@ -265,7 +266,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: `${t('ts.采购价格单导入模版')}.xlsx`
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//
const importSuccess = () => {

7
src/views/wms/basicDataManage/supplierManage/supplier/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: 'Supplier' })
@ -228,10 +229,10 @@ const handleExport = async () => {
exportLoading.value = true
if(routeName.value.includes('SCP')){
const data = await SupplierApi.exportSupplierSCP(tableObject.params)
download.excel(data, `${t('ts.供应商')}.xlsx`)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}.xlsx`)
}else{
const data = await SupplierApi.exportSupplier(tableObject.params)
download.excel(data, `${t('ts.供应商')}.xlsx`)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}.xlsx`)
}
} catch {
} finally {
@ -247,7 +248,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: `${t('ts.供应商导入模版')}.xlsx`
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//
const importSuccess = () => {

7
src/views/wms/basicDataManage/supplierManage/supplieritem/index.vue

@ -66,6 +66,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: 'Supplieritem' })
@ -261,10 +262,10 @@ const handleExport = async () => {
exportLoading.value = true
if(routeName.value.includes('SCP')){
const data = await SupplieritemApi.exportSupplieritemSCP(tableObject.params)
download.excel(data, `${t('ts.供应商物料')}.xlsx`)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}.xlsx`)
}else{
const data = await SupplieritemApi.exportSupplieritem(tableObject.params)
download.excel(data, `${t('ts.供应商物料')}.xlsx`)
download.excel(data, `${route.meta.title}】【${formatDate(new Date())}.xlsx`)
}
} catch {
} finally {
@ -280,7 +281,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: `${t('ts.供应商物料导入模版')}.xlsx`
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//
const importSuccess = () => {

Loading…
Cancel
Save