Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
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
罗超
confucius
Commits
709e6e2d
Commit
709e6e2d
authored
Nov 02, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
7e26057f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
162 additions
and
29 deletions
+162
-29
customer.vue
src/pages/enterprise/customer/customer.vue
+110
-29
customFilter.vue
...pages/enterprise/customer/kehucomponents/customFilter.vue
+52
-0
No files found.
src/pages/enterprise/customer/customer.vue
View file @
709e6e2d
...
...
@@ -3,7 +3,7 @@
<div
class=
"page-search row items-center"
>
<div
class=
"col row wrap q-mr-lg q-col-gutter-md"
>
<div
class=
"col-
3
"
>
<div
class=
"col-
4
"
>
<div
class=
"col row wrap "
>
<div
class=
"col-4"
>
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"Name"
v-model=
"inputtype"
...
...
@@ -17,22 +17,7 @@
</div>
<div
class=
"col-3"
>
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"Name"
v-model=
"msg.CustomerType"
ref=
"Id"
:options=
"CustomerTypeList"
label=
"输入类型"
:dense=
"false"
emit-value
map-options
/>
</div>
<div
class=
"col-3"
>
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"Name"
v-model=
"msg.Q_Friends"
multiple
use-chips
@
input=
"changePage(1)"
ref=
"Id"
:options=
"Q_FriendsList"
label=
"好友关系"
:dense=
"false"
emit-value
map-options
/>
</div>
<div
class=
"col-3"
>
<selectTree
:treeData=
'memberList'
:defaultArray=
"returnString"
nodeKey=
"newId"
:multiple=
"false"
labelKey=
"DeptName"
childrenKey=
"ChildList"
tipText=
"选择部门/人员"
@
getChild=
"getChild"
></selectTree>
</div>
<div
class=
"col-4"
>
<div
class=
"col-5"
>
<div
class=
"col row wrap "
>
<div
class=
"col-4"
>
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"Name"
v-model=
"timetype"
...
...
@@ -51,12 +36,92 @@
</div>
</div>
<div
class=
"col-3"
>
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"Name"
v-model=
"msg.CustomerType"
ref=
"Id"
:options=
"CustomerTypeList"
label=
"输入类型"
:dense=
"false"
emit-value
map-options
/>
</div>
<div
class=
"col-3"
>
<q-select
filled
option-value=
"Id"
option-label=
"Name"
v-model=
"msg.Q_Friends"
multiple
@
input=
"changePage(1)"
ref=
"Id"
:options=
"Q_FriendsList"
label=
"好友关系"
map-options
/>
</div>
<div
class=
"col-3"
>
<q-select
filled
option-value=
"Id"
option-label=
"Name"
v-model=
"msg.Q_AddWay"
multiple
@
input=
"changePage(1)"
ref=
"Id"
:options=
"AddWayEnumList"
label=
"获取途径"
map-options
/>
</div>
<div
class=
"col-3"
>
<q-input
@
keyup
.
enter
.
native=
"changePage(1)"
type=
"number"
:min=
"1"
@
input=
"getQ_NotFollowUpDay"
standout=
"bg-primary text-white"
v-model=
"msg.Q_NotFollowUpDay"
label=
"几天未跟进"
@
clear=
"setinput()"
>
<
template
v-slot:append
>
<span
style=
"font-size: 14px;"
>
天
</span>
</
template
>
</q-input>
</div>
<div
class=
"col-3"
>
<selectTree
:treeData=
'memberList'
:defaultArray=
"returnString"
nodeKey=
"newId"
:multiple=
"false"
labelKey=
"DeptName"
childrenKey=
"ChildList"
tipText=
"选择部门/人员"
@
getChild=
"getChild"
></selectTree>
</div>
<div
class=
"col-3"
>
<q-btn-dropdown
split
color=
"orange"
push
glossy
no-caps
label=
"自定义"
@
click=
"onMainClick"
>
<q-list>
<q-item
clickable
v-close-popup
@
click=
"msg.SelectList = []"
>
<q-item-section>
<span>
清空自定义标签条件
</span>
</q-item-section>
</q-item>
<div
style=
"width:100%;padding:0 16px"
>
<div
style=
"border-top: 1px solid #dfe4ed;border-bottom: 1px solid #dfe4ed;padding: 6px 0 ;"
>
<span
style=
"font-size: 12px;color: dfe4ed;line-height: 30px;"
>
常用筛选
</span>
</div>
</div>
<q-item
clickable
v-close-popup
@
click=
"addCommonlyUsed"
>
<q-item-section
style=
"flex: none;"
><i
class=
"el-icon-circle-plus"
></i></q-item-section>
<q-item-section>
<span>
添加常用筛选
</span>
</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
@
click=
"customSettings"
>
<q-item-section
style=
"flex: none;"
><i
class=
"el-icon-s-tools"
></i></i></q-item-section>
<q-item-section>
<span>
设置
</span>
</q-item-section>
</q-item>
</q-list>
</q-btn-dropdown>
</div>
</div>
</div>
<div
class=
"page-content"
>
</div>
<q-dialog
v-model=
"isscreen"
persistent
>
<q-card
style=
"width: 520px; max-width: 80vw;"
>
<q-card-section>
<div
class=
"text-h6"
>
自定义筛选
</div>
</q-card-section>
<q-separator
/>
<!-- <q-card-section class="q-pt-none" style="margin-top: 15px;padding: 20px;">
<q-input filled clearable v-model="addMsg.Name" label="分组名称"
:rules="[val => !!val || '请输入分组名称']" ref="Name" />
<q-input filled clearable v-model="addMsg.Sort" label="分组排序"
style="margin-top: 20px;" :rules="[val => !!val || '请输入分组排序']" ref="Sort"/>
</q-card-section> -->
<q-separator
/>
<q-card-actions
align=
"right"
class=
"bg-white"
>
<q-btn
class=
"q-mr-md"
label=
"取消"
@
click=
"isscreen = false"
/>
<q-btn
color=
"accent"
class=
"q-mr-md"
label=
"确定"
@
click=
"submit()"
/>
</q-card-actions>
</q-card>
</q-dialog>
</div>
</template>
...
...
@@ -128,7 +193,7 @@
inputtext
:
''
,
inputList
:
[{
Id
:
1
,
Name
:
'企业'
},
{
Id
:
2
,
Name
:
'备注名'
},
{
Id
:
3
,
Name
:
'昵称'
},
{
Id
:
4
,
Name
:
'电话'
},],
CustomerTypeList
:
[{
Id
:
0
,
Name
:
'不限'
},
{
Id
:
1
,
Name
:
'微信用户'
},
{
Id
:
2
,
Name
:
'企业微信用户'
}],
Q_FriendsList
:
[
{
Id
:
1
,
Name
:
'好友客户'
},
{
Id
:
2
,
Name
:
'待添加'
},
{
Id
:
3
,
Name
:
'已申请'
}],
Q_FriendsList
:
[{
Id
:
1
,
Name
:
'好友客户'
},
{
Id
:
2
,
Name
:
'待添加'
},
{
Id
:
3
,
Name
:
'已申请'
}],
msg
:
{
PageIndex
:
1
,
PageSize
:
20
,
...
...
@@ -140,9 +205,9 @@
CreateETime
:
''
,
//创建结束时间
FriendSTime
:
''
,
//好友开始时间
FriendETime
:
''
,
//好友结束时间
Q_NotFollowUpDay
:
0
,
//几天未跟进
Q_NotFollowUpDay
:
7
,
//几天未跟进
Q_Friends
:
[],
// 好友关系 多选英文逗号分隔
Q_AddWay
:
''
,
//获取来源 多选英文逗号分隔
Q_AddWay
:
[]
,
//获取来源 多选英文逗号分隔
EmpId
:
0
,
// 员工Id
CustomerType
:
0
,
//类型 1微信用户 2企业微信用户
SelectList
:
[],
//自定义查询
...
...
@@ -152,18 +217,25 @@
dateList
:
[],
//创建时间
ctypeList
:
[{
Id
:
1
,
Name
:
'客户创建时间'
},
{
Id
:
2
,
Name
:
'好友添加时间'
},],
memberList
:
[],
AddWayEnumList
:[],
AddWayEnumList
:
[],
isscreen
:
false
,
//自定义筛选处理
}
},
mounted
()
{
this
.
getEmployList
()
//
this.getAddWayEnumList()
this
.
getAddWayEnumList
()
},
created
()
{
},
methods
:
{
getQ_NotFollowUpDay
(
e
)
{
//天数为空的处理
if
(
e
==
null
||
e
==
''
)
{
console
.
log
(
e
)
this
.
msg
.
Q_NotFollowUpDay
=
1
}
},
changePage
(
e
)
{
this
.
msg
.
pageIndex
=
e
this
.
getList
()
...
...
@@ -209,7 +281,7 @@
this
.
msg
.
FriendETime
=
''
;
}
let
data
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
msg
))
if
(
data
.
Q_Friends
.
length
>
0
)
{
if
(
data
.
Q_Friends
.
length
>
0
)
{
data
.
Q_Friends
=
data
.
Q_Friends
.
join
(
','
)
}
console
.
log
(
data
)
...
...
@@ -233,8 +305,8 @@
})
},
getAddWayEnumList
(){
getCustomerAddWayEnumList
({}).
then
(
res
=>
{
getAddWayEnumList
()
{
getCustomerAddWayEnumList
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
AddWayEnumList
=
res
.
Data
...
...
@@ -254,6 +326,15 @@
console
.
log
(
deptArray
)
//数据处理 获取夏利是 1-2 前面代表部门还是人员 后面是原生ID
},
onMainClick
()
{
this
.
isscreen
=
true
},
addCommonlyUsed
()
{
//添加常用
},
customSettings
()
{
//自定义设置
}
...
...
src/pages/enterprise/customer/kehucomponents/customFilter.vue
0 → 100644
View file @
709e6e2d
<
style
>
</
style
>
<
template
>
<div
class=
"addwelcome page-body row"
style=
"background: transparent;"
>
<!-- 图片 -->
<selectMaterial
v-if=
"isshowselectMaterial"
:materialType=
"materialType"
:classifyList=
'classifyList'
@
close=
"getclose()"
@
success=
'getsuccess'
>
</selectMaterial>
</div>
</
template
>
<
script
>
import
{
setWeChatWelcomesInfo
,
getWeChatMediumGroupList
,
getWeChatWelcomesInfo
}
from
'../../api/system/wechat'
;
export
default
{
meta
:
{
// title: "自定义筛选"
},
components
:
{
},
name
:
"customFilter"
,
data
()
{
return
{
}
},
created
()
{
},
methods
:
{
}
}
</
script
>
\ No newline at end of file
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