Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
horse
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
向伟
horse
Commits
1cee7e6a
Commit
1cee7e6a
authored
Nov 12, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
a5b429ca
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
97 additions
and
40 deletions
+97
-40
customer2.ts
src/api/customer2.ts
+8
-0
customerModule.ts
src/module/customer/customerModule.ts
+12
-6
customer.vue
src/pages/customerManage/customer.vue
+77
-34
No files found.
src/api/customer2.ts
View file @
1cee7e6a
...
@@ -57,6 +57,14 @@ class CustomerService {
...
@@ -57,6 +57,14 @@ class CustomerService {
data
data
})
})
}
}
//获取部门-员工下拉数据
static
async
getEmployeeData
(
data
:
any
):
Promise
<
HttpResponse
>
{
return
Axios
(
'/User/GetEmployeeAddrBook'
,
{
method
:
'post'
,
responseType
:
'json'
,
data
})
}
}
}
export
{
CutomerParams
}
export
{
CutomerParams
}
...
...
src/module/customer/customerModule.ts
View file @
1cee7e6a
...
@@ -36,12 +36,20 @@ const CustomerModule = () => {
...
@@ -36,12 +36,20 @@ const CustomerModule = () => {
//调用获取下拉
//调用获取下拉
const
getWayList
=
(
param
:
any
)
=>
{
const
getWayList
=
(
param
:
any
)
=>
{
customer2
.
getWayList
(
param
).
then
(
res
=>
{
customer2
.
getWayList
(
param
).
then
(
res
=>
{
console
.
log
(
res
,
'下拉数据'
);
if
(
res
.
data
.
Code
==
1
){
if
(
res
.
data
.
Code
==
1
){
data
.
WayList
=
res
.
data
.
Data
;
data
.
WayList
=
res
.
data
.
Data
;
}
}
})
})
}
}
//获取员工数据
const
getEmployeeData
=
(
param
:
any
)
=>
{
customer2
.
getEmployeeData
(
param
).
then
(
res
=>
{
console
.
log
(
res
,
'员工数据'
);
if
(
res
.
data
.
Code
==
1
){
data
.
EmployeeList
=
res
.
data
.
Data
;
}
})
}
const
title
=
ref
(
StaticConfig
.
appsuffix
)
const
title
=
ref
(
StaticConfig
.
appsuffix
)
//控制页显示条数
//控制页显示条数
const
pagination
=
reactive
({
const
pagination
=
reactive
({
...
@@ -70,7 +78,8 @@ const CustomerModule = () => {
...
@@ -70,7 +78,8 @@ const CustomerModule = () => {
],
],
selected
:[],
selected
:[],
dataList
:[],
dataList
:[],
WayList
:[]
WayList
:[],
EmployeeList
:[]
})
})
const
msg
=
reactive
({
const
msg
=
reactive
({
PageIndex
:
1
,
PageIndex
:
1
,
...
@@ -168,15 +177,12 @@ const CustomerModule = () => {
...
@@ -168,15 +177,12 @@ const CustomerModule = () => {
msg
.
CustomerMobile
=
SeletObj
.
selectVal
;
msg
.
CustomerMobile
=
SeletObj
.
selectVal
;
}
}
}
}
const
getSelectTime
=
()
=>
{
console
.
log
(
TimeObj
,
'TimeObj'
);
}
const
changePage
=
(
val
:
any
)
=>
{
const
changePage
=
(
val
:
any
)
=>
{
msg
.
PageIndex
=
val
;
msg
.
PageIndex
=
val
;
getCustomerList
(
msg
);
getCustomerList
(
msg
);
}
}
return
{
getCustomerList
,
getWayList
,
data
,
msg
,
title
,
TypeList
,
SeletObj
,
getSelectWay
,
TimeObj
,
TimeList
,
changePage
,
pagination
,
getSelectTime
,
return
{
getCustomerList
,
getWayList
,
getEmployeeData
,
data
,
msg
,
title
,
TypeList
,
SeletObj
,
getSelectWay
,
TimeObj
,
TimeList
,
changePage
,
pagination
,
CustomList
,
customSetObj
,
friendObj
,
friendOptions
}
CustomList
,
customSetObj
,
friendObj
,
friendOptions
}
}
}
...
...
src/pages/customerManage/customer.vue
View file @
1cee7e6a
...
@@ -6,14 +6,15 @@
...
@@ -6,14 +6,15 @@
<div
class=
"col-3"
>
<div
class=
"col-3"
>
<q-input
filled
v-model=
"SeletObj.selectVal"
label=
'请输入'
>
<q-input
filled
v-model=
"SeletObj.selectVal"
label=
'请输入'
>
<template
#
before
>
<template
#
before
>
<q-select
filled
style=
"width:120px;"
@
update:model-value=
"getSelectWay"
option-value=
"Id"
option-label=
"Name"
v-model=
"SeletObj.selectWay"
<q-select
filled
style=
"width:120px;"
@
update:model-value=
"getSelectWay"
option-value=
"Id"
:options=
"TypeList"
emit-value
map-options
label=
"选择类型"
/>
option-label=
"Name"
v-model=
"SeletObj.selectWay"
:options=
"TypeList"
emit-value
map-options
label=
"选择类型"
/>
</
template
>
</
template
>
</q-input>
</q-input>
</div>
</div>
<div
class=
"col-2"
>
<div
class=
"col-2"
>
<q-select
filled
@
update:model-value=
"getSelectTime"
option-value=
"Id"
option-label=
"Name"
v-model=
"TimeObj.timeWay
"
<q-select
filled
option-value=
"Id"
option-label=
"Name
"
:options=
"TimeList"
emit-value
map-options
/>
v-model=
"TimeObj.timeWay"
:options=
"TimeList"
emit-value
map-options
/>
</div>
</div>
<
template
v-if=
"TimeObj.timeWay==1"
>
<
template
v-if=
"TimeObj.timeWay==1"
>
<div
class=
"col-2"
>
<div
class=
"col-2"
>
...
@@ -81,28 +82,34 @@
...
@@ -81,28 +82,34 @@
</template>
</template>
<div
class=
"col-2"
>
<div
class=
"col-2"
>
<q-select
filled
option-value=
"Id"
option-label=
"Name"
v-model=
"customSetObj.customWay"
<q-select
filled
option-value=
"Id"
option-label=
"Name"
v-model=
"customSetObj.customWay"
:options=
"CustomList"
emit-value
map-options
/>
:options=
"CustomList"
emit-value
map-options
/>
</div>
</div>
<div
class=
"col-2"
v-if=
"customSetObj.customWay==1"
>
<div
class=
"col-2"
v-if=
"customSetObj.customWay==1"
>
<q-select
filled
label=
"请选择"
use-chips
<q-select
filled
label=
"请选择"
use-chips
option-value=
"Id"
option-label=
"Name"
:options=
"friendOptions"
option-value=
"Id"
option-label=
"Name"
:options=
"friendOptions"
v-model=
"friendObj.frendArr"
multiple
/>
v-model=
"friendObj.frendArr"
multiple
/>
</div>
</div>
<div
class=
"col-2"
v-if=
"customSetObj.customWay==2"
>
<div
class=
"col-2"
v-if=
"customSetObj.customWay==2"
>
<q-select
filled
label=
"请选择"
use-chips
<q-select
filled
label=
"请选择"
use-chips
option-value=
"Id"
option-label=
"Name"
:options=
"data.WayList"
option-value=
"Id"
option-label=
"Name"
:options=
"data.WayList"
v-model=
"friendObj.wayArr"
multiple
/>
v-model=
"friendObj.wayArr"
multiple
/>
</div>
</div>
<div
class=
"col-2"
v-if=
"customSetObj.customWay==3"
>
<div
class=
"col-2"
v-if=
"customSetObj.customWay==3"
>
<q-input
filled
v-model=
"msg.Q_NotFollowUpDay"
label=
'请输入天数'
></q-input>
<q-input
filled
v-model=
"msg.Q_NotFollowUpDay"
label=
'几天未跟进'
></q-input>
</div>
<div
class=
"col-2"
>
<!-- <q-tree class="col-12 col-sm-6"
:nodes="data.EmployeeList"
node-key="DeptName"
tick-strategy="leaf"
v-model:selected="selected"
/> -->
<!-- <selectTree :treeData='data.EmployeeList' nodeKey="newId" :multiple="false"
labelKey="DeptName" childrenKey="ChildList" tipText="选择部门/人员"></selectTree> -->
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"page-content"
style=
"margin-top:20px;"
>
<div
class=
"page-content"
style=
"margin-top:20px;"
>
<q-table
:rows=
"data.dataList"
<q-table
:rows=
"data.dataList"
:columns=
"data.columns"
class=
"my-sticky-header-column-table"
row-key=
"name"
:columns=
"data.columns"
v-model:pagination=
"pagination"
selection=
"multiple"
>
class=
"my-sticky-header-column-table"
row-key=
"name"
v-model:pagination=
"pagination"
selection=
"multiple"
>
<
template
v-slot:body-cell-CustomerName=
"props"
>
<
template
v-slot:body-cell-CustomerName=
"props"
>
<q-td
auto-width
:props=
"props"
>
<q-td
auto-width
:props=
"props"
>
<div
class=
"cutomer_Header"
>
<div
class=
"cutomer_Header"
>
...
@@ -132,42 +139,78 @@
...
@@ -132,42 +139,78 @@
export
default
defineComponent
({
export
default
defineComponent
({
setup
()
{
setup
()
{
let
{
let
{
getCustomerList
,
getWayList
,
data
,
msg
,
title
,
TypeList
,
SeletObj
,
getSelectWay
,
TimeObj
,
TimeList
,
changePage
,
pagination
,
getSelectTime
,
getCustomerList
,
CustomList
,
customSetObj
,
friendObj
,
friendOptions
getWayList
,
data
,
msg
,
title
,
TypeList
,
SeletObj
,
getSelectWay
,
TimeObj
,
TimeList
,
changePage
,
pagination
,
CustomList
,
customSetObj
,
friendObj
,
friendOptions
,
getEmployeeData
}
=
CustomerModule
()
}
=
CustomerModule
()
onMounted
(()
=>
{
onMounted
(()
=>
{
getCustomerList
(
msg
)
getCustomerList
(
msg
)
getWayList
({})
getWayList
({})
getEmployeeData
({})
})
})
return
{
return
{
getCustomerList
,
getWayList
,
data
,
msg
,
title
,
TypeList
,
SeletObj
,
getSelectWay
,
TimeObj
,
TimeList
,
changePage
,
pagination
,
getSelectTime
,
getCustomerList
,
CustomList
,
customSetObj
,
friendObj
,
friendOptions
getWayList
,
data
,
msg
,
title
,
TypeList
,
SeletObj
,
getSelectWay
,
TimeObj
,
TimeList
,
changePage
,
pagination
,
CustomList
,
customSetObj
,
friendObj
,
friendOptions
,
getEmployeeData
}
}
}
}
})
})
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.customer
.q-field__before
{
.customer
.q-field__before
{
padding-right
:
0
!
important
;
padding-right
:
0
!
important
;
}
}
</
style
>
</
style
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.cutomer_Header
{
.cutomer_Header
{
display
:flex
;
display
:
flex
;
}
}
.customer_Img
{
width
:
40px
;
.customer_Img
{
height
:
40px
;
width
:
40px
;
height
:
40px
;
border-radius
:
5px
;
border-radius
:
5px
;
overflow
:
hidden
;
overflow
:
hidden
;
margin-right
:
14px
;
margin-right
:
14px
;
}
}
.cutomer_Free
{
color
:
#3470ff
;
.cutomer_Free
{
font-size
:
14px
;
color
:
#3470ff
;
font-size
:
14px
;
}
}
.customer_Wechat
{
color
:
#9999a8
;
.customer_Wechat
{
color
:
#9999a8
;
}
}
</
style
>
</
style
>
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