Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 5c22d920
authored
Mar 31, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'chenwq_dev_v2.0.0' into 'v2.0.0'
选择客户弹窗 See merge request
!77
2 parents
5ae05176
10262383
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
30 deletions
src/views/sop/editSop/baseInfo.vue
src/views/sop/editSop/baseInfo.vue
View file @
5c22d92
...
@@ -55,11 +55,9 @@
...
@@ -55,11 +55,9 @@
<div
v-if=
"item.object.additionalType == 4"
>
<div
v-if=
"item.object.additionalType == 4"
>
<div
v-if=
"item.object.showVideoContent.length"
>
<div
v-if=
"item.object.showVideoContent.length"
>
<video
class=
"model-item-img"
:src=
"item.object.showVideoContent[0].attContent"
controls=
"controls"
/>
<video
class=
"model-item-img"
:src=
"item.object.showVideoContent[0].attContent"
controls=
"controls"
/>
<!--
<video
v-for=
"(subItem, subIndex) in item.object.showVideoContent"
class=
"model-item-img"
:key=
"subIndex"
:src=
"subItem.attContent"
controls=
"controls"
/>
-->
</div>
</div>
<div
v-if=
"!item.object.showVideoContent.length && item.object.showImgContent.length"
>
<div
v-if=
"!item.object.showVideoContent.length && item.object.showImgContent.length"
>
<img
class=
"model-item-img"
:src=
"item.object.showImgContent[0].attContent"
/>
<img
class=
"model-item-img"
:src=
"item.object.showImgContent[0].attContent"
/>
<!--
<el-image
v-for=
"(subItem, subIndex) in item.object.showImgContent"
class=
"model-item-img"
:key=
"subIndex"
:src=
"subItem.attContent"
:preview-src-list=
"[subItem.attContent]"
></el-image>
-->
</div>
</div>
</div>
</div>
<span
v-else
>
{{
item
.
object
.
objectName
}}
</span>
<span
v-else
>
{{
item
.
object
.
objectName
}}
</span>
...
@@ -265,9 +263,7 @@ export default {
...
@@ -265,9 +263,7 @@ export default {
}
}
},
},
// 选择标签
changeCustomer
(
obj
)
{
handleSelect
(
obj
)
{
// this.tagging = obj.selectedLabelList
this
.
editForm
.
customerInfoList
=
obj
.
selectedCustomerList
this
.
editForm
.
customerInfoList
=
obj
.
selectedCustomerList
this
.
condLimitObj
=
obj
.
condLimitObj
this
.
condLimitObj
=
obj
.
condLimitObj
if
(
this
.
markCondLimitObj
.
hasQw
!=
-
1
)
{
if
(
this
.
markCondLimitObj
.
hasQw
!=
-
1
)
{
...
@@ -279,46 +275,38 @@ export default {
...
@@ -279,46 +275,38 @@ export default {
hasQw
:
this
.
condLimitObj
.
hasQw
,
hasQw
:
this
.
condLimitObj
.
hasQw
,
hasPhone
:
this
.
condLimitObj
.
hasPhone
hasPhone
:
this
.
condLimitObj
.
hasPhone
}
}
// let arr = []
// this.tagging.forEach(item => {
// item.labelList.forEach(tag => {
// arr.push({
// groupId: item.labelGroup.id,
// groupName: item.labelGroup.name,
// labelId: tag.id,
// labelName: tag.name,
// groupType: item.labelType
// })
// })
// })
// this.taggingList = arr
this
.
key
=
new
Date
()
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validateField
(
'customerInfoList'
)
},
},
handleSelectCustomer
()
{
// 选择标签
if
(
this
.
editForm
.
eventList
.
length
)
{
handleSelect
(
obj
)
{
this
.
$confirm
(
'已有事件,改变客户后,会导致事件丢失'
,
'提示'
,
{
// this.tagging = obj.selectedLabelList
if
(
this
.
editForm
.
eventList
.
length
&&
(
this
.
markCondLimitObj
.
hasQw
!=
obj
.
condLimitObj
.
hasQw
||
this
.
markCondLimitObj
.
hasPhone
!=
obj
.
condLimitObj
.
hasPhone
))
{
this
.
$confirm
(
'修改的客户类型(是否加企微、是否有手机号)不一致,原有营销渠道可能不可用,系统自动重置原有营销事件。是否确定修改?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
type
:
'warning'
,
callback
:
action
=>
{
callback
:
action
=>
{
console
.
log
(
action
)
console
.
log
(
action
)
if
(
action
==
'confirm'
)
{
if
(
action
==
'confirm'
)
{
this
.
isTagVisible
=
!
this
.
isTagVisible
this
.
changeCustomer
(
obj
)
this
.
$refs
.
selectLabel
.
init
({
condLimitObj
:
this
.
condLimitObj
,
tagList
:
[],
customerInfoList
:
this
.
editForm
.
customerInfoList
,
activeName
:
'customer'
})
}
}
}
}
})
})
}
else
{
}
else
{
this
.
isTagVisible
=
!
this
.
isTagVisible
this
.
changeCustomer
(
obj
)
this
.
$refs
.
selectLabel
.
init
({
condLimitObj
:
this
.
condLimitObj
,
tagList
:
[],
customerInfoList
:
this
.
editForm
.
customerInfoList
,
activeName
:
'customer'
})
}
}
this
.
key
=
new
Date
()
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validateField
(
'customerInfoList'
)
},
handleSelectCustomer
()
{
this
.
isTagVisible
=
!
this
.
isTagVisible
this
.
$refs
.
selectLabel
.
init
({
condLimitObj
:
this
.
condLimitObj
,
tagList
:
[],
customerInfoList
:
JSON
.
parse
(
JSON
.
stringify
(
this
.
editForm
.
customerInfoList
)),
activeName
:
'customer'
})
},
},
handleResetCustomer
()
{
handleResetCustomer
()
{
if
(
this
.
editForm
.
eventList
.
length
)
{
if
(
this
.
editForm
.
eventList
.
length
)
{
this
.
$confirm
(
'
清空客户,事件也将清空
'
,
'提示'
,
{
this
.
$confirm
(
'
重置客户将清空当前已选客户。是否确定重置?
'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
type
:
'warning'
,
...
@@ -339,12 +327,11 @@ export default {
...
@@ -339,12 +327,11 @@ export default {
handleDeleteCustomer
(
idx
)
{
handleDeleteCustomer
(
idx
)
{
if
(
this
.
editForm
.
customerInfoList
.
length
==
1
&&
this
.
editForm
.
eventList
.
length
)
{
if
(
this
.
editForm
.
customerInfoList
.
length
==
1
&&
this
.
editForm
.
eventList
.
length
)
{
this
.
$confirm
(
'
删完所有客户,事件也将清空
'
,
'提示'
,
{
this
.
$confirm
(
'
修改的客户类型(是否加企微、是否有手机号)不一致,原有营销渠道可能不可用,系统自动重置原有营销事件。是否确定修改?
'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
type
:
'warning'
,
callback
:
action
=>
{
callback
:
action
=>
{
console
.
log
(
action
)
if
(
action
==
'confirm'
)
{
if
(
action
==
'confirm'
)
{
this
.
editForm
.
customerInfoList
.
splice
(
idx
,
1
)
this
.
editForm
.
customerInfoList
.
splice
(
idx
,
1
)
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validateField
(
'customerInfoList'
)
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validateField
(
'customerInfoList'
)
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment