Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CRM
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
华国豪
CRM
Commits
593232bb
Commit
593232bb
authored
Mar 26, 2020
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自助营销
parent
7f0e02c4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
62 additions
and
85 deletions
+62
-85
brithday.vue
src/components/sellevent/brithday.vue
+62
-85
No files found.
src/components/sellevent/brithday.vue
View file @
593232bb
...
...
@@ -19,7 +19,7 @@
</div>
-->
<div
class=
"rightmenu"
>
<!--
<el-button
class=
"crm-btn query-btn"
@
click=
"getList"
>
查询
</el-button>
-->
<el-button
icon=
"el-icon-p
lus"
class=
"crm-btn org-btn"
@
click=
"CustomerId = 0, dialogTableVisibleName = '新建直客', dialogTable
Visible=true"
>
发送生日祝福涵
</el-button>
<el-button
icon=
"el-icon-p
resent"
class=
"crm-btn org-btn"
@
click=
"addSendMsg.isAll=true;addSendMsg.sendObj='所有客户',transfer
Visible=true"
>
发送生日祝福涵
</el-button>
<!--
<el-dropdown>
<el-button
class=
"crm-btn crm-btn-more easy-btn margin-right0"
>
<i
class=
"iconfont icongengduo"
></i>
...
...
@@ -33,7 +33,7 @@
</div>
<div
class=
"query-box"
:style=
"
{'padding-bottom': sceneList.length > 0 ? '0px' : '10px'}">
<el-row
v-if=
"!multipleSelection.length"
:gutter=
"30"
>
<el-col
:span=
"4"
>
<
!--
<
el-col
:span=
"4"
>
<span
class=
"font-size-12"
style=
"padding-right: 10px"
>
场景
</span>
<el-popover
placement=
"bottom"
...
...
@@ -64,22 +64,27 @@
</el-option>
</el-select>
</el-popover>
</el-col>
<el-col
:span=
"4"
>
<span
class=
"font-size-12"
style=
"padding-right: 10px"
>
客户类型
</span>
<el-select
size=
"mini"
v-model=
"msg.CustomerType"
placeholder=
"请选择"
@
change=
"getList"
>
<el-option
key=
"0"
label=
"客户"
:value=
"0"
></el-option>
<el-option
key=
"1"
label=
"直客"
:value=
"1"
></el-option>
</el-col>
-->
<!--
<el-col
:span=
"10"
>
<span
class=
"font-size-12"
style=
"padding-right: 10px"
>
距离生日天数
</span>
<el-select
size=
"mini"
v-model=
"t"
placeholder=
"请选择"
@
change=
"changeBirthday"
>
<el-option
label=
"今日生日"
value=
"0"
></el-option>
<el-option
label=
"明日生日"
value=
"1"
></el-option>
<el-option
label=
"还有3天生日"
value=
"2"
></el-option>
<el-option
label=
"还有4天生日"
value=
"3"
></el-option>
<el-option
label=
"还有5天生日"
value=
"4"
></el-option>
<el-option
label=
"还有6天生日"
value=
"5"
></el-option>
<el-option
label=
"还有7天生日"
value=
"6"
></el-option>
</el-select>
</el-col>
<el-col
:span=
"4"
>
</el-col>
-->
<
!--
<
el-col
:span=
"4"
>
<el-button
icon=
"iconfont iconshaixuan"
class=
"crm-btn query-btn crm-btn-mini margin-right0"
@
click=
"MsgBus.$emit('sceneBoxShow', 5)"
>
高级筛选
</el-button>
</el-col>
</el-col>
-->
</el-row>
<div
v-else
class=
"flex-center"
>
<p
class=
"font-size-12"
>
已选
<span
class=
"font-color-link"
>
{{
multipleSelection
.
length
}}
</span>
项
</p>
<div
class=
"selection-box"
>
<el-button
v-for=
"(item, index) in selectionList"
:key=
"index"
@
click=
"item.myFun"
><i
:class=
"item.class"
></i>
{{
item
.
name
}}
</el-button>
<el-button
@
click=
"transferVisible=true"
><i
class=
"el-icon-present"
></i>
发送祝福
</el-button>
</div>
</div>
<div
class=
"scene-wrapper"
v-if=
"sceneList.length > 0"
>
...
...
@@ -262,29 +267,44 @@
</div> -->
<el-dialog
:visible
.
sync=
"transferVisible"
:close-on-click-modal=
"false"
width=
"450px"
custom-class=
"transfer-box add-box add-box2"
>
<div
class=
"add-tit"
slot=
"title"
>
<p><span></span>
客户转移
</p>
<p><span></span>
发送生日祝福涵
</p>
<span
icon=
"el-icon-close"
></span>
</div>
<el-form
:model=
"transferMsg"
ref=
"form"
class=
"MyEditForm"
>
<div
class=
"MyEditForm-item"
>
<el-form-item
label=
"变更负责人为"
class=
"label-pad-left"
>
<el-select
filterable
v-model=
"transferMsg.EmpId"
placeholder=
"请选择"
>
<el-option
v-for=
"item in EmployeeList"
:label=
'item.EmName'
:value=
'item.EmployeeId'
:key=
'item.EmployeeId'
>
</el-option>
<el-form-item
label=
"计划标题"
class=
"label-pad-left"
>
<el-input
v-model=
"addSendMsg.title"
placeholder=
"请输入计划标题,如果不填系统将自动生成"
></el-input>
</el-form-item>
</div>
<div
class=
"MyEditForm-item"
>
<el-form-item
label=
"发送方式"
class=
"label-pad-left"
>
<el-select
v-model=
"addSendMsg.sendType"
placeholder=
"请选择"
>
<el-option
label=
'同业助手'
value=
'0'
></el-option>
<el-option
label=
'短信'
value=
'1'
></el-option>
</el-select>
</el-form-item>
</div>
<div
class=
"MyEditForm-item"
>
<el-form-item
label=
"接收人员"
class=
"label-pad-left"
>
<el-input
readonly=
"true"
v-model=
"addSendMsg.sendObj"
></el-input>
<div
style=
"font-size:12px;color:red;margin-left: 10px; margin-top: 2px;"
>
消息将发送给关联的同行,由同行转发给客人,暂不支持直接转发
</div>
</el-form-item>
</div>
<div
class=
"MyEditForm-item"
>
<el-form-item
label=
"发送时间"
class=
"label-pad-left"
>
<el-date-picker
type=
"datetime"
v-model=
"addSendMsg.sendTime"
placeholder=
"选择日期时间"
>
</el-date-picker>
</el-form-item>
</div>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
class=
"add-box-btn"
@
click=
"transfer(2)"
>
确 定
</el-button>
<el-button
class=
"add-box-btn add-box-cancel"
@
click=
"transferVisible = false"
>
取 消
</el-button>
</div>
</el-dialog>
</div>
</template>
...
...
@@ -399,10 +419,7 @@ export default {
EmployeeList
:
[],
value
:
''
,
userInfo
:
{},
transferMsg
:
{
IDs
:
[],
EmpId
:
''
,
},
msg
:
{
GusetName
:
''
,
pageIndex
:
1
,
...
...
@@ -413,43 +430,24 @@ export default {
ID
:
36
},
total
:
0
,
WhereTypeList
:
[
{
id
:
-
1
,
name
:
'全部'
},{
id
:
1
,
name
:
'我负责的'
},{
id
:
2
,
name
:
'下属的'
},{
id
:
3
,
name
:
'我关注的'
},
],
selectionList
:
[
{
name
:
'转移'
,
class
:
'iconfont iconplus-transfer'
,
myFun
:
this
.
transfer
},{
name
:
'删除'
,
class
:
'iconfont icondelete'
,
myFun
:
this
.
delete
},
],
sceneList
:
[],
SceneEmployeeList
:
[],
sceneID
:
36
,
visible
:
false
,
addSendMsg
:{
title
:
""
,
sendType
:
"0"
,
sendObj
:
""
,
sendTime
:
""
,
isAll
:
false
,
}
};
},
mounted
()
{
this
.
userInfo
=
this
.
getLocalStorage
();
console
.
log
(
this
.
queryType
)
this
.
getList
()
this
.
Employee
()
//
this.Employee()
let
$this
=
this
this
.
MsgBus
.
$on
(
'closeCustomerDialogBox'
,
function
(){
$this
.
dialogTableVisible
=
false
...
...
@@ -474,6 +472,9 @@ export default {
this
.
MsgBus
.
$off
(
'editScene'
);
},
methods
:
{
sendPresent
(){
},
changeWhere
(
item
){
this
.
msg
.
ID
=
item
.
ID
this
.
sceneID
=
item
.
ID
...
...
@@ -498,34 +499,6 @@ export default {
this
.
msg
.
Data
=
obj
this
.
getList
()
},
getMarriageStr
(
type
){
if
(
type
===
5
)
return
'其他'
if
(
type
===
4
)
return
'丧偶'
if
(
type
===
3
)
return
'未婚'
if
(
type
===
2
)
return
'离婚'
if
(
type
===
1
)
return
'已婚'
if
(
type
===
0
)
return
'无'
},
Employee
(){
let
msg
=
{
RB_Group_id
:
this
.
userInfo
.
RB_Group_id
,
BranchId
:
-
1
,
DepartmentId
:
0
,
PostId
:
0
,
IsLeave
:
0
,
}
this
.
apipost2
(
"admin_get_EmployeeGetList"
,
this
.
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
EmployeeList
=
res
.
data
.
data
;
}
else
{
}
},
err
=>
{}
);
},
//锁定
locking
(){
...
...
@@ -633,9 +606,13 @@ export default {
})
},
handleSelectionChange
(
val
)
{
this
.
multipleSelection
=
val
.
map
(
x
=>
x
.
ID
)
this
.
multipleSelection
=
val
this
.
addSendMsg
.
isAll
=
false
if
(
val
&&
val
.
length
>
0
){
this
.
addSendMsg
.
sendObj
=
val
.
length
==
1
?
val
[
0
].
GuestName
:
val
[
0
].
GuestName
+
"等"
+
val
.
length
+
"人"
}
else
{
this
.
addSendMsg
.
sendObj
=
""
}
}
}
};
...
...
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