Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
30dc6d25
Commit
30dc6d25
authored
Dec 18, 2022
by
邓春圆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户管理,全部客户,我的客户,待接收客户,公海池客户,待分配客户,间接客户,搜索结果进行导出
parent
56ad8dd7
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
116 additions
and
24 deletions
+116
-24
customer.js
src/api/ecw/customer.js
+49
-1
index.vue
src/views/ecw/customer/index.vue
+4
-4
indirectCustomer.vue
src/views/ecw/customer/indirectCustomer.vue
+22
-0
index.vue
src/views/ecw/customerConfirm/index.vue
+15
-9
index.vue
src/views/ecw/customerToBeAssigned/index.vue
+6
-4
index.vue
src/views/ecw/myCustomerService/index.vue
+9
-3
index.vue
src/views/ecw/oceanCustomer/index.vue
+11
-3
No files found.
src/api/ecw/customer.js
View file @
30dc6d25
...
@@ -70,7 +70,7 @@ export function getCustomerList(query) {
...
@@ -70,7 +70,7 @@ export function getCustomerList(query) {
})
})
}
}
// 导出客户 Excel
// 导出客户 Excel
全部
export
function
exportCustomerExcel
(
query
)
{
export
function
exportCustomerExcel
(
query
)
{
return
request
({
return
request
({
url
:
'
/ecw/customer/export-excel
'
,
url
:
'
/ecw/customer/export-excel
'
,
...
@@ -79,7 +79,55 @@ export function exportCustomerExcel(query) {
...
@@ -79,7 +79,55 @@ export function exportCustomerExcel(query) {
responseType
:
'
blob
'
responseType
:
'
blob
'
})
})
}
}
// 我的客户导出
export
function
mineExporteExcel
(
query
)
{
return
request
({
url
:
'
/ecw/customer/mine-export-excel
'
,
method
:
'
get
'
,
params
:
query
,
responseType
:
'
blob
'
})
}
// 我的待接收客户列表导出
export
function
waiteConfirmExportExcel
(
query
)
{
return
request
({
url
:
'
/ecw/customer/waite-confirm-export-excel
'
,
method
:
'
get
'
,
params
:
query
,
responseType
:
'
blob
'
})
}
/**
* // 待分配客户列表导出
* @param query
* @return {*}
*/
export
function
waitDistributionExportExcel
(
query
)
{
return
request
({
url
:
'
/ecw/customer/wait-distribution-export-excel
'
,
method
:
'
get
'
,
params
:
query
,
responseType
:
'
blob
'
})
}
// 公海池客户列表导出
export
function
publicExportExcel
(
query
)
{
return
request
({
url
:
'
/ecw/customer/public-export-excel
'
,
method
:
'
get
'
,
params
:
query
,
responseType
:
'
blob
'
})
}
export
function
indirectCustomerExportExcel
(
query
)
{
return
request
({
url
:
'
/ecw/indirect-customer/export-excel
'
,
method
:
'
get
'
,
params
:
query
,
responseType
:
'
blob
'
})
}
// 待接收客户列表
// 待接收客户列表
export
function
getWaitForConfirmList
(
query
)
{
export
function
getWaitForConfirmList
(
query
)
{
return
request
({
return
request
({
...
...
src/views/ecw/customer/index.vue
View file @
30dc6d25
...
@@ -66,14 +66,14 @@
...
@@ -66,14 +66,14 @@
<el-button
type=
"primary"
plain
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
<el-button
type=
"primary"
plain
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
v-hasPermi=
"['ecw:customer:create']"
>
{{
$t
(
'
新增
'
)
}}
</el-button>
v-hasPermi=
"['ecw:customer:create']"
>
{{
$t
(
'
新增
'
)
}}
</el-button>
</el-col>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"warning"
plain
icon=
"el-icon-download"
size=
"mini"
@
click=
"handleExport"
:loading=
"exportLoading"
v-hasPermi=
"['ecw:customer:export']"
>
{{
$t
(
'
导出
'
)
}}
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-col
:span=
"1.5"
>
<el-button
:disabled=
"selectCustomerList.length === 0"
type=
"primary"
size=
"mini"
@
click=
"transferShow = true;"
<el-button
:disabled=
"selectCustomerList.length === 0"
type=
"primary"
size=
"mini"
@
click=
"transferShow = true;"
v-hasPermi=
"['ecw:customer:export']"
>
{{
$t
(
'
批量移交
'
)
}}
</el-button>
v-hasPermi=
"['ecw:customer:export']"
>
{{
$t
(
'
批量移交
'
)
}}
</el-button>
</el-col>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"warning"
plain
icon=
"el-icon-download"
size=
"mini"
@
click=
"handleExport"
:loading=
"exportLoading"
v-hasPermi=
"['ecw:customer:export']"
>
{{
$t
(
'
导出
'
)
}}
</el-button>
</el-col>
<right-toolbar
:showSearch.sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
<right-toolbar
:showSearch.sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
</el-row>
...
...
src/views/ecw/customer/indirectCustomer.vue
View file @
30dc6d25
...
@@ -25,8 +25,11 @@
...
@@ -25,8 +25,11 @@
<el-date-picker
clearable
v-model=
"dateRangeCreateTime"
style=
"width: 240px"
value-format=
"yyyy-MM-dd"
<el-date-picker
clearable
v-model=
"dateRangeCreateTime"
style=
"width: 240px"
value-format=
"yyyy-MM-dd"
type=
"daterange"
range-separator=
"-"
:start-placeholder=
"$t('开始日期')"
:end-placeholder=
"$t('结束日期')"
/>
type=
"daterange"
range-separator=
"-"
:start-placeholder=
"$t('开始日期')"
:end-placeholder=
"$t('结束日期')"
/>
</el-form-item>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleQuery"
>
{{
$t
(
'
搜索
'
)
}}
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleQuery"
>
{{
$t
(
'
搜索
'
)
}}
</el-button>
<el-button
icon=
"el-icon-refresh"
@
click=
"resetQuery"
>
{{
$t
(
'
重置
'
)
}}
</el-button>
<el-button
icon=
"el-icon-refresh"
@
click=
"resetQuery"
>
{{
$t
(
'
重置
'
)
}}
</el-button>
<el-button
type=
"warning"
plain
icon=
"el-icon-download"
size=
"mini"
@
click=
"handleExport"
:loading=
"exportLoading"
v-hasPermi=
"['ecw:customer:export']"
>
{{
$t
(
'
导出
'
)
}}
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -90,11 +93,14 @@ import {updateCustomer, getCustomer,
...
@@ -90,11 +93,14 @@ import {updateCustomer, getCustomer,
import
{
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
;
import
{
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
;
import
{
listServiceUser
}
from
"
@/api/system/user
"
;
import
{
listServiceUser
}
from
"
@/api/system/user
"
;
import
{
exportCustomerComplaintExcel
}
from
"
@/api/ecw/customerComplaint
"
;
import
{
indirectCustomerExportExcel
}
from
"
@/api/ecw/customer
"
;
export
default
{
export
default
{
name
:
"
IndirectCustomer
"
,
name
:
"
IndirectCustomer
"
,
data
()
{
data
()
{
return
{
return
{
exportLoading
:
false
,
getDictDatas
,
getDictDatas
,
DICT_TYPE
,
DICT_TYPE
,
// 遮罩层
// 遮罩层
...
@@ -132,6 +138,22 @@ export default {
...
@@ -132,6 +138,22 @@ export default {
})
})
},
},
methods
:
{
methods
:
{
// 导出
handleExport
()
{
// 处理查询参数
let
params
=
{...
this
.
queryParams
};
params
.
pageNo
=
undefined
;
params
.
pageSize
=
undefined
;
this
.
addBeginAndEndTime
(
params
,
this
.
dateRangeCreateTime
,
'
createTime
'
);
// 执行导出
this
.
$modal
.
confirm
(
this
.
$t
(
'
是否确认导出间接客户数据项?
'
)).
then
(()
=>
{
this
.
exportLoading
=
true
;
return
indirectCustomerExportExcel
(
params
);
}).
then
(
response
=>
{
this
.
$download
.
excel
(
response
,
'
间接客户列表.xls
'
);
this
.
exportLoading
=
false
;
}).
catch
(()
=>
{});
},
customerServiceFn
(
val
){
customerServiceFn
(
val
){
if
(
this
.
customerServiceList
.
length
>
0
){
if
(
this
.
customerServiceList
.
length
>
0
){
let
index
=
this
.
customerServiceList
.
findIndex
(
item
=>
item
.
id
===
val
.
customerService
);
let
index
=
this
.
customerServiceList
.
findIndex
(
item
=>
item
.
id
===
val
.
customerService
);
...
...
src/views/ecw/customerConfirm/index.vue
View file @
30dc6d25
...
@@ -62,15 +62,14 @@
...
@@ -62,15 +62,14 @@
<!-- 操作工具栏 -->
<!-- 操作工具栏 -->
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<el-button
type=
"warning"
plain
icon=
"el-icon-download"
size=
"mini"
@
click=
"handleExport"
:loading=
"exportLoading"
v-hasPermi=
"['ecw:customer:export']"
>
{{
$t
(
'
导出
'
)
}}
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-col
:span=
"1.5"
>
<el-button
type=
"primary"
plain
icon=
"el-icon-plus"
size=
"mini"
@
click=
"$router.push(
{path:'/customer/add-edit/0',query:{isCustomerServiceConfirmed:true,}})"
<el-button
type=
"primary"
plain
icon=
"el-icon-plus"
size=
"mini"
@
click=
"$router.push(
{path:'/customer/add-edit/0',query:{isCustomerServiceConfirmed:true,}})"
v-hasPermi="['ecw:customer:create']">
{{
$t
(
'
新增
'
)
}}
</el-button>
v-hasPermi="['ecw:customer:create']">
{{
$t
(
'
新增
'
)
}}
</el-button>
</el-col>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"warning"
plain
icon=
"el-icon-download"
size=
"mini"
@
click=
"handleExport"
:loading=
"exportLoading"
v-hasPermi=
"['ecw:customer:export']"
>
{{
$t
(
'
导出
'
)
}}
</el-button>
</el-col>
<right-toolbar
:showSearch.sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
<right-toolbar
:showSearch.sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
</el-row>
...
@@ -332,7 +331,14 @@
...
@@ -332,7 +331,14 @@
</template>
</template>
<
script
>
<
script
>
import
{
updateCustomer
,
getCustomer
,
exportCustomerExcel
,
getWaitForConfirmList
,
confirm
}
from
"
@/api/ecw/customer
"
;
import
{
updateCustomer
,
getCustomer
,
exportCustomerExcel
,
getWaitForConfirmList
,
confirm
,
waiteConfirmExportExcel
}
from
"
@/api/ecw/customer
"
;
import
{
listServiceUser
}
from
"
@/api/system/user
"
import
{
listServiceUser
}
from
"
@/api/system/user
"
import
{
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
import
{
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
import
{
CommonStatusEnum
}
from
'
@/utils/constants
'
import
{
CommonStatusEnum
}
from
'
@/utils/constants
'
...
@@ -573,11 +579,11 @@ export default {
...
@@ -573,11 +579,11 @@ export default {
params
.
pageSize
=
undefined
;
params
.
pageSize
=
undefined
;
this
.
addBeginAndEndTime
(
params
,
this
.
dateRangeCreateTime
,
'
createTime
'
);
this
.
addBeginAndEndTime
(
params
,
this
.
dateRangeCreateTime
,
'
createTime
'
);
// 执行导出
// 执行导出
this
.
$modal
.
confirm
(
this
.
$t
(
'
是否确认导出
所有
客户数据项?
'
)).
then
(()
=>
{
this
.
$modal
.
confirm
(
this
.
$t
(
'
是否确认导出
我的待接受
客户数据项?
'
)).
then
(()
=>
{
this
.
exportLoading
=
true
;
this
.
exportLoading
=
true
;
return
exportCustomer
Excel
(
params
);
return
waiteConfirmExport
Excel
(
params
);
}).
then
(
response
=>
{
}).
then
(
response
=>
{
this
.
$download
.
excel
(
response
,
'
${table.classComment}.xls
'
);
this
.
$download
.
excel
(
response
,
`
${
this
.
$t
(
'
我的待接收客户
'
)}
.xls`
);
this
.
exportLoading
=
false
;
this
.
exportLoading
=
false
;
}).
catch
(()
=>
{});
}).
catch
(()
=>
{});
},
},
...
...
src/views/ecw/customerToBeAssigned/index.vue
View file @
30dc6d25
...
@@ -151,8 +151,10 @@
...
@@ -151,8 +151,10 @@
</template>
</template>
<
script
>
<
script
>
import
{
createCustomer
,
updateCustomer
,
deleteCustomer
,
getCustomer
,
handOverCustomer
,
import
{
exportCustomerExcel
,
getCustomerToBeAssigned
}
from
"
@/api/ecw/customer
"
;
createCustomer
,
updateCustomer
,
deleteCustomer
,
getCustomer
,
handOverCustomer
,
exportCustomerExcel
,
getCustomerToBeAssigned
,
waitDistributionExportExcel
}
from
"
@/api/ecw/customer
"
;
import
{
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
;
import
{
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
;
import
upload
from
'
@/components/ImageUpload
'
import
upload
from
'
@/components/ImageUpload
'
import
{
listServiceUser
}
from
"
@/api/system/user
"
;
import
{
listServiceUser
}
from
"
@/api/system/user
"
;
...
@@ -420,9 +422,9 @@ export default {
...
@@ -420,9 +422,9 @@ export default {
params
.
pageSize
=
undefined
;
params
.
pageSize
=
undefined
;
this
.
addBeginAndEndTime
(
params
,
this
.
dateRangeCreateTime
,
'
createTime
'
);
this
.
addBeginAndEndTime
(
params
,
this
.
dateRangeCreateTime
,
'
createTime
'
);
// 执行导出
// 执行导出
this
.
$modal
.
confirm
(
this
.
$t
(
'
是否确认导出
所有
客户数据项?
'
)).
then
(()
=>
{
this
.
$modal
.
confirm
(
this
.
$t
(
'
是否确认导出
待分配
客户数据项?
'
)).
then
(()
=>
{
this
.
exportLoading
=
true
;
this
.
exportLoading
=
true
;
return
exportCustomer
Excel
(
params
);
return
waitDistributionExport
Excel
(
params
);
}).
then
(
response
=>
{
}).
then
(
response
=>
{
this
.
$download
.
excel
(
response
,
`
${
this
.
$t
(
'
待分配客户
'
)}
.xls`
);
this
.
$download
.
excel
(
response
,
`
${
this
.
$t
(
'
待分配客户
'
)}
.xls`
);
this
.
exportLoading
=
false
;
this
.
exportLoading
=
false
;
...
...
src/views/ecw/myCustomerService/index.vue
View file @
30dc6d25
...
@@ -127,7 +127,13 @@
...
@@ -127,7 +127,13 @@
</template>
</template>
<
script
>
<
script
>
import
{
createCustomer
,
updateCustomer
,
deleteCustomer
,
getCustomer
,
exportCustomerExcel
,
getMyCustomerService
}
from
"
@/api/ecw/customer
"
;
import
{
createCustomer
,
updateCustomer
,
deleteCustomer
,
getMyCustomerService
,
mineExporteExcel
}
from
"
@/api/ecw/customer
"
;
import
{
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
;
import
{
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
;
import
upload
from
'
@/components/ImageUpload
'
import
upload
from
'
@/components/ImageUpload
'
import
customerFollowList
from
"
@/components/CustomerFollowList
"
;
import
customerFollowList
from
"
@/components/CustomerFollowList
"
;
...
@@ -373,9 +379,9 @@ export default {
...
@@ -373,9 +379,9 @@ export default {
params
.
pageSize
=
undefined
;
params
.
pageSize
=
undefined
;
this
.
addBeginAndEndTime
(
params
,
this
.
dateRangeCreateTime
,
'
createTime
'
);
this
.
addBeginAndEndTime
(
params
,
this
.
dateRangeCreateTime
,
'
createTime
'
);
// 执行导出
// 执行导出
this
.
$modal
.
confirm
(
this
.
$t
(
'
是否确认导出
所有
客户数据项?
'
)).
then
(()
=>
{
this
.
$modal
.
confirm
(
this
.
$t
(
'
是否确认导出
我的
客户数据项?
'
)).
then
(()
=>
{
this
.
exportLoading
=
true
;
this
.
exportLoading
=
true
;
return
exportCustomer
Excel
(
params
);
return
mineExporte
Excel
(
params
);
}).
then
(
response
=>
{
}).
then
(
response
=>
{
this
.
$download
.
excel
(
response
,
`
${
this
.
$t
(
'
我的客户列表
'
)}
.xls`
);
this
.
$download
.
excel
(
response
,
`
${
this
.
$t
(
'
我的客户列表
'
)}
.xls`
);
this
.
exportLoading
=
false
;
this
.
exportLoading
=
false
;
...
...
src/views/ecw/oceanCustomer/index.vue
View file @
30dc6d25
...
@@ -146,7 +146,15 @@
...
@@ -146,7 +146,15 @@
</template>
</template>
<
script
>
<
script
>
import
{
createCustomer
,
updateCustomer
,
deleteCustomer
,
handOverCustomer
,
getPublicList
,
exportCustomerExcel
,
setFishing
}
from
"
@/api/ecw/customer
"
;
import
{
createCustomer
,
updateCustomer
,
deleteCustomer
,
handOverCustomer
,
getPublicList
,
setFishing
,
publicExportExcel
}
from
"
@/api/ecw/customer
"
;
import
{
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
;
import
{
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
;
import
upload
from
'
@/components/ImageUpload
'
import
upload
from
'
@/components/ImageUpload
'
import
{
listServiceUser
}
from
"
@/api/system/user
"
;
import
{
listServiceUser
}
from
"
@/api/system/user
"
;
...
@@ -382,9 +390,9 @@ export default {
...
@@ -382,9 +390,9 @@ export default {
params
.
pageSize
=
undefined
;
params
.
pageSize
=
undefined
;
this
.
addBeginAndEndTime
(
params
,
this
.
dateRangeCreateTime
,
'
createTime
'
);
this
.
addBeginAndEndTime
(
params
,
this
.
dateRangeCreateTime
,
'
createTime
'
);
// 执行导出
// 执行导出
this
.
$modal
.
confirm
(
this
.
$t
(
'
是否确认导出
所有
客户数据项?
'
)).
then
(()
=>
{
this
.
$modal
.
confirm
(
this
.
$t
(
'
是否确认导出
公海池
客户数据项?
'
)).
then
(()
=>
{
this
.
exportLoading
=
true
;
this
.
exportLoading
=
true
;
return
exportCustomer
Excel
(
params
);
return
publicExport
Excel
(
params
);
}).
then
(
response
=>
{
}).
then
(
response
=>
{
this
.
$download
.
excel
(
response
,
`
${
this
.
$t
(
'
公海池客户
'
)}
.xls`
);
this
.
$download
.
excel
(
response
,
`
${
this
.
$t
(
'
公海池客户
'
)}
.xls`
);
this
.
exportLoading
=
false
;
this
.
exportLoading
=
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment