Commit b0924b14 authored by 邓春圆's avatar 邓春圆

潜在,间接,部门客户,异步导出

parent b837445a
...@@ -470,3 +470,19 @@ export function waitDistributionExportExcel(){ ...@@ -470,3 +470,19 @@ export function waitDistributionExportExcel(){
method:'get' method:'get'
}) })
} }
//导出潜在客户
export function potentialExportExcel(){
return request({
url:'ecw/customer/potential-export-excel',
method:'get'
})
}
// 导出部门客户
export function deptExportExcel(){
return request({
url:'ecw/customer/dept-export-excel',
method:'get'
})
}
...@@ -543,7 +543,7 @@ import { ...@@ -543,7 +543,7 @@ import {
getCustomerDeptPage, getCustomerDeptPage,
changeCustomerAir, changeCustomerAir,
getPotential, getPotential,
setChangeCustomerFcl setChangeCustomerFcl, potentialExportExcel, deptExportExcel
} from "@/api/ecw/customer"; } from "@/api/ecw/customer";
import { getDictDatas, DICT_TYPE } from '@/utils/dict'; import { getDictDatas, DICT_TYPE } from '@/utils/dict';
import {CommonStatusEnum} from '@/utils/constants' import {CommonStatusEnum} from '@/utils/constants'
...@@ -555,7 +555,8 @@ import CustomerFollowList from "@/components/CustomerFollowList" ...@@ -555,7 +555,8 @@ import CustomerFollowList from "@/components/CustomerFollowList"
import customerComplaints from "@/components/customerComplaints" import customerComplaints from "@/components/customerComplaints"
import {listServiceUser} from "@/api/system/user"; import {listServiceUser} from "@/api/system/user";
import { getCountryListAll } from '@/api/ecw/country' import { getCountryListAll } from '@/api/ecw/country'
import {customerExportExcel, getCreditPage} from "@/api/customer/credit"; import {getCreditPage} from "@/api/customer/credit";
import {customerExportExcel} from "@/api/ecw/customer";
import transferCustomer from "@/views/ecw/customer/transferCustomer"; import transferCustomer from "@/views/ecw/customer/transferCustomer";
import Template from "@/views/cms/template/index.vue"; import Template from "@/views/cms/template/index.vue";
import AddPotentialCustom from "@/views/ecw/customer/addPotentialCustom.vue"; import AddPotentialCustom from "@/views/ecw/customer/addPotentialCustom.vue";
...@@ -782,7 +783,7 @@ export default { ...@@ -782,7 +783,7 @@ export default {
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
let func = null let func = null;
let title = '' let title = ''
switch (this.$route.path){ switch (this.$route.path){
case '/customer/customer' : case '/customer/customer' :
...@@ -790,10 +791,12 @@ export default { ...@@ -790,10 +791,12 @@ export default {
title = '是否确认导出所有客户数据项?' title = '是否确认导出所有客户数据项?'
break; break;
case '/customer/department-customers': case '/customer/department-customers':
// getCustomerDeptPage(params).then(this.setData); func = deptExportExcel
title = '是否确认导出部门客户数据项?'
break; break;
case '/customer/potential': case '/customer/potential':
// getPotential(params).then(this.setData) func = potentialExportExcel
title = '是否确认导出潜在客户数据项?'
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment