Browse Source

客户管理导出

master
zhang_li 1 year ago
parent
commit
b196ea8829
  1. 5
      src/api/wms/customer/index.ts
  2. 5
      src/api/wms/customerdock/index.ts
  3. 5
      src/api/wms/customeritem/index.ts
  4. 5
      src/api/wms/project/index.ts
  5. 5
      src/api/wms/saleprice/index.ts
  6. 2
      src/views/wms/basicDataManage/customerManage/customer/index.vue
  7. 2
      src/views/wms/basicDataManage/customerManage/customerdock/index.vue
  8. 2
      src/views/wms/basicDataManage/customerManage/customeritem/index.vue
  9. 2
      src/views/wms/basicDataManage/customerManage/project/index.vue
  10. 2
      src/views/wms/basicDataManage/customerManage/saleprice/index.vue

5
src/api/wms/customer/index.ts

@ -57,7 +57,12 @@ export const deleteCustomer = async (id: number) => {
// 导出客户 Excel
export const exportCustomer = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/customer/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/customer/export-excel`, params })
}
}
// 下载用户导入模板

5
src/api/wms/customerdock/index.ts

@ -50,7 +50,12 @@ export const deleteCustomerdock = async (id: number) => {
// 导出客户月台 Excel
export const exportCustomerdock = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/customerdock/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/customerdock/export-excel`, params })
}
}
// 下载用户导入模板

5
src/api/wms/customeritem/index.ts

@ -50,7 +50,12 @@ export const deleteCustomeritem = async (id: number) => {
// 导出客户物品 Excel
export const exportCustomeritem = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/customeritem/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/customeritem/export-excel`, params })
}
}
// 下载用户导入模板

5
src/api/wms/project/index.ts

@ -44,7 +44,12 @@ export const deleteProject = async (id: number) => {
// 导出项目 Excel
export const exportProject = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/project/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/project/export-excel`, params })
}
}
// 下载用户导入模板

5
src/api/wms/saleprice/index.ts

@ -44,7 +44,12 @@ export const deleteSaleprice = async (id: number) => {
// 导出销售价格单 Excel
export const exportSaleprice = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/saleprice/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/saleprice/export-excel`, params })
}
}
// 下载用户导入模板

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

@ -197,7 +197,7 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const data = await CustomerApi.exportCustomer(setSearchParams)
const data = await CustomerApi.exportCustomer(tableObject.params)
download.excel(data, '客户 .xls')
} catch {
} finally {

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

@ -230,7 +230,7 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const data = await CustomerdockApi.exportCustomerdock(setSearchParams)
const data = await CustomerdockApi.exportCustomerdock(tableObject.params)
download.excel(data, '客户月台.xls')
} catch {
} finally {

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

@ -205,7 +205,7 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const data = await CustomeritemApi.exportCustomeritem(setSearchParams)
const data = await CustomeritemApi.exportCustomeritem(tableObject.params)
download.excel(data, '客户物品 .xls')
} catch {
} finally {

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

@ -216,7 +216,7 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const data = await ProjectApi.exportProject(setSearchParams)
const data = await ProjectApi.exportProject(tableObject.params)
download.excel(data, '项目.xls')
} catch {
} finally {

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

@ -223,7 +223,7 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const data = await SalepriceApi.exportSaleprice(setSearchParams)
const data = await SalepriceApi.exportSaleprice(tableObject.params)
download.excel(data, '销售价格单.xls')
} catch {
} finally {

Loading…
Cancel
Save