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 11a73f0e
authored
May 25, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
sop编辑;标签选客户
1 parent
d6168f33
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
5 deletions
src/views/sop/editSop/baseInfo.vue
src/views/sop/editSop/baseInfo.vue
View file @
11a73f0
...
@@ -40,8 +40,8 @@
...
@@ -40,8 +40,8 @@
</
template
>
</
template
>
</div>
</div>
</div>
</div>
<el-button
type=
"text"
@
click=
"handleSelectCustomer(pIdx)"
>
编辑
</el-button>
<el-button
v-if=
"!editDisabled"
type=
"text"
@
click=
"handleSelectCustomer(pIdx)"
>
编辑
</el-button>
<el-button
type=
"text"
@
click=
"handleResetCustomer(pIdx)"
>
重置
</el-button>
<el-button
v-if=
"!editDisabled"
type=
"text"
@
click=
"handleResetCustomer(pIdx)"
>
重置
</el-button>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -306,13 +306,44 @@ export default {
...
@@ -306,13 +306,44 @@ export default {
methods
:
{
methods
:
{
judgeDisable
()
{
judgeDisable
()
{
var
list
=
[
'sopName'
,
'customer
InfoList
'
]
var
list
=
[
'sopName'
,
'customer
OptType'
,
'customerOptUpdate
'
]
list
.
forEach
(
item
=>
{
list
.
forEach
(
item
=>
{
var
idx
=
this
.
editFormData
.
findIndex
(
k
=>
k
.
name
==
item
)
var
idx
=
this
.
editFormData
.
findIndex
(
k
=>
k
.
name
==
item
)
this
.
editFormData
[
idx
].
isDisabled
=
this
.
editDisabled
this
.
editFormData
[
idx
].
isDisabled
=
this
.
editDisabled
})
})
},
},
recoverLabelList
()
{
var
list
=
[]
var
groupIdList
=
[]
this
.
customerDataList
[
this
.
currentCustomerIdx
].
list
=
JSON
.
parse
(
JSON
.
stringify
(
list
))
this
.
editForm
[
this
.
customerDataList
[
this
.
currentCustomerIdx
].
reqListName
].
forEach
(
item
=>
{
let
pIdx
=
groupIdList
.
findIndex
(
k
=>
k
==
item
.
labelGroupId
)
if
(
list
.
length
&&
pIdx
!=
-
1
)
{
list
[
pIdx
].
labelList
.
push
({
id
:
item
.
labelId
,
name
:
item
.
labelName
})
}
else
{
groupIdList
.
push
(
item
.
labelGroupId
)
list
.
push
({
labelGroup
:
{
id
:
item
.
labelGroupId
,
name
:
item
.
labelGroupName
},
labelList
:
[
{
id
:
item
.
labelId
,
name
:
item
.
labelName
}
]
})
}
})
this
.
customerDataList
[
this
.
currentCustomerIdx
].
list
=
JSON
.
parse
(
JSON
.
stringify
(
list
))
this
.
changeCustomer
()
},
recoverAppointList
()
{
recoverAppointList
()
{
var
list
=
[]
var
list
=
[]
var
sexToObj
=
{
var
sexToObj
=
{
...
@@ -340,6 +371,7 @@ export default {
...
@@ -340,6 +371,7 @@ export default {
case
'人群'
:
case
'人群'
:
break
break
case
'标签'
:
case
'标签'
:
this
.
recoverLabelList
()
break
break
case
'指定'
:
case
'指定'
:
this
.
recoverAppointList
()
this
.
recoverAppointList
()
...
@@ -610,6 +642,22 @@ export default {
...
@@ -610,6 +642,22 @@ export default {
reqCrowdAttrs
()
{
},
reqCrowdAttrs
()
{
},
reqLabelAttrs
()
{
var
list
=
[]
console
.
log
(
this
.
customerDataList
[
this
.
currentCustomerIdx
].
list
)
this
.
customerDataList
[
this
.
currentCustomerIdx
].
list
.
forEach
(
item
=>
{
item
.
labelList
.
forEach
(
subItem
=>
{
list
.
push
({
labelGroupId
:
item
.
labelGroup
.
id
,
labelGroupName
:
item
.
labelGroup
.
name
,
labelId
:
subItem
.
id
,
labelName
:
subItem
.
name
})
})
})
return
list
},
reqAppointAttrs
()
{
reqAppointAttrs
()
{
var
list
=
[]
var
list
=
[]
var
sexToObj
=
{
var
sexToObj
=
{
...
@@ -628,7 +676,6 @@ export default {
...
@@ -628,7 +676,6 @@ export default {
externalUserId
:
item
.
oneid
externalUserId
:
item
.
oneid
})
})
})
})
console
.
log
(
list
)
return
list
return
list
},
},
...
@@ -704,7 +751,7 @@ export default {
...
@@ -704,7 +751,7 @@ export default {
})
})
}
}
params
.
eventList
=
JSON
.
stringify
(
params
.
eventList
)
params
.
eventList
=
JSON
.
stringify
(
params
.
eventList
)
//
console.log(params)
console
.
log
(
params
)
if
(
this
.
editDisabled
)
{
if
(
this
.
editDisabled
)
{
var
batchEditParams
=
{
var
batchEditParams
=
{
sopId
:
params
.
id
,
sopId
:
params
.
id
,
...
...
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