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 73c5fe51
authored
Jun 01, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'chenwq_dev_v2.3.0' into 'v2.3.0'
Chenwq dev v2.3.0 See merge request
!170
2 parents
5e5529ac
8440ed2f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
46 additions
and
27 deletions
src/api/modules/common.js
src/views/sop/editSop.vue
src/views/sop/editSop/baseInfo.vue
src/views/sop/editSop/components/selectCustomer.vue
src/views/sop/editSop/editEvent.vue
src/api/modules/common.js
View file @
73c5fe5
...
...
@@ -118,8 +118,8 @@ const getCrowdTreeListApi = params => {
}
// 跟进员工类型
const
getStaff
Type
ListApi
=
params
=>
{
params
.
method
=
'entmicro.api.staff.listEnt
Business
Type'
const
getStaff
Follower
ListApi
=
params
=>
{
params
.
method
=
'entmicro.api.staff.listEnt
Follower
Type'
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
...
...
@@ -128,4 +128,4 @@ const getStaffTypeListApi = params => {
})
}
export
default
{
getMerchantGoodsListApi
,
getGoodsListApi
,
uploadImgApi
,
uploadVideoApi
,
getMerchantList
,
getSimpleMerchantList
,
getZoneListApi
,
getClassifyListApi
,
pictureUpload
,
querylabeltree
,
getCrowdTreeListApi
,
getStaff
Type
ListApi
}
export
default
{
getMerchantGoodsListApi
,
getGoodsListApi
,
uploadImgApi
,
uploadVideoApi
,
getMerchantList
,
getSimpleMerchantList
,
getZoneListApi
,
getClassifyListApi
,
pictureUpload
,
querylabeltree
,
getCrowdTreeListApi
,
getStaff
Follower
ListApi
}
src/views/sop/editSop.vue
View file @
73c5fe5
...
...
@@ -43,8 +43,13 @@ export default {
editEvent
},
beforeRouteLeave
(
to
,
from
,
next
)
{
this
.
$common
.
utils
.
storage
.
get
(
'sopInfo'
)
&&
this
.
$common
.
utils
.
storage
.
remove
(
'sopInfo'
)
next
()
},
created
()
{
this
.
routeInfo
=
this
.
$route
.
query
this
.
routeInfo
=
Object
.
keys
(
this
.
$route
.
query
).
length
?
this
.
$route
.
query
:
this
.
$common
.
utils
.
storage
.
get
(
'sopInfo'
)
},
methods
:
{
...
...
src/views/sop/editSop/baseInfo.vue
View file @
73c5fe5
...
...
@@ -34,7 +34,7 @@
<
template
v-else
>
<el-tag
v-for=
"(subItem, subIdx) in item.list"
:key=
"subIdx"
class=
"customer-tag"
:size=
"size"
type=
"info"
:closable=
"!scope.scope.isDisabled"
:disable-transitions=
"false"
@
close=
"handleDeleteCustomer(subIdx)"
>
<!--
<i
class=
"el-icon-user-solid"
></i>
-->
<span>
{{
subItem
[
item
.
listConf
.
confName
]
}}
</span>
<span>
{{
subItem
[
item
.
listConf
.
confName
]
||
subItem
[
item
.
listConf
.
otherConfName
]
}}
</span>
</el-tag>
</
template
>
</div>
...
...
@@ -99,7 +99,7 @@
</div>
<select-Crowd
v-if=
"isCrowdCustVisible"
:dialogVisible=
"isCrowdCustVisible"
:selectedCrowdList=
"JSON.parse(JSON.stringify(customerDataList[0].list))"
@
handleCrowdCustClose=
"handleCrowdCustClose"
@
handleCrowdCustConfirm=
"handleDialogConfirm"
></select-Crowd>
<select-tag
ref=
"selectTagForm"
@
tagSelected=
"handleDialogConfirm"
:dialogVisible=
"isTagVisible"
></select-tag>
<select-customer
v-if=
"isAppointCustVisible"
:dialogVisible=
"isAppointCustVisible"
:
selectedCustomerList=
"JSON.parse(JSON.stringify(customerDataList[2].list))
"
@
handleAppointCustClose=
"handleAppointCustClose"
@
handleAppointCustConfirm=
"handleDialogConfirm"
></select-customer>
<select-customer
v-if=
"isAppointCustVisible"
:dialogVisible=
"isAppointCustVisible"
:
parentSelectedCustomerList=
"customerDataList[2].list
"
@
handleAppointCustClose=
"handleAppointCustClose"
@
handleAppointCustConfirm=
"handleDialogConfirm"
></select-customer>
</div>
</template>
...
...
@@ -171,7 +171,8 @@ export default {
customerCount
:
''
,
listConf
:
{
confId
:
'id'
,
confName
:
'customerName'
confName
:
'customerName'
,
otherConfName
:
'customerPhone'
},
list
:
[]
}
...
...
@@ -185,7 +186,7 @@ export default {
customerOptType
:
''
,
customerInfoList
:
[],
// customerIds: [],
customerOptUpdate
:
'
2
'
,
customerOptUpdate
:
'
1
'
,
eventList
:
[]
},
editRule
:
{
...
...
@@ -239,11 +240,11 @@ export default {
isDisabled
:
false
,
optionList
:
[
{
confId
:
'
1
'
,
confId
:
'
2
'
,
confName
:
'自动更新'
},
{
confId
:
'
2
'
,
confId
:
'
1
'
,
confName
:
'从不更新'
}
]
...
...
src/views/sop/editSop/components/selectCustomer.vue
View file @
73c5fe5
...
...
@@ -39,6 +39,7 @@ export default {
url
:
url
,
searchForm
:
{},
customerList
:
[],
selectedCustomerList
:
[],
heightBox
:
200
,
maxCustNum
:
200
,
// 搜索
...
...
@@ -143,11 +144,7 @@ export default {
type
:
Boolean
,
default
:
false
},
selectedLabelList
:
{
type
:
Array
,
default
:
()
=>
[]
},
selectedCustomerList
:
{
parentSelectedCustomerList
:
{
type
:
Array
,
default
:
()
=>
[]
}
...
...
@@ -156,11 +153,12 @@ export default {
mounted
()
{
let
clientHeight
=
document
.
documentElement
.
clientHeight
this
.
heightBox
=
clientHeight
-
0.15
*
clientHeight
-
425
this
.
selectedCustomerList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
parentSelectedCustomerList
))
},
methods
:
{
handleSearch
()
{
this
.
$refs
.
customerRef
.
refreshTable
()
this
.
$refs
.
customerRef
.
refreshTable
(
true
,
false
)
},
setTableFinishFun
()
{
...
...
@@ -172,6 +170,12 @@ export default {
recoverySelected
()
{
this
.
$nextTick
(()
=>
{
this
.
selectedCustomerList
.
forEach
(
row
=>
{
var
idx
=
this
.
tableList
.
findIndex
(
k
=>
k
.
id
==
row
.
id
)
if
(
idx
!=
-
1
)
{
this
.
$refs
.
customerRef
.
$refs
[
this
.
tableParams
.
mutiSelectName
+
'MutiTable'
].
toggleRowSelection
(
this
.
tableList
[
idx
],
true
)
}
})
if
(
this
.
selectedCustomerList
.
length
>=
this
.
maxCustNum
)
{
let
selectIds
=
this
.
selectedCustomerList
.
map
(
item
=>
item
.
id
)
this
.
tableList
.
forEach
((
row
,
idx
)
=>
{
...
...
@@ -191,16 +195,18 @@ export default {
let
tableIds
=
this
.
tableList
.
map
(
item
=>
item
.
id
)
var
selectIds
=
currentList
.
map
(
item
=>
item
.
id
)
var
selectedIds
=
val
.
map
(
item
=>
item
.
id
)
var
tempList
=
[]
val
.
forEach
(
item
=>
{
if
(
!
selectIds
.
includes
(
item
.
id
)
&&
tableIds
.
includes
(
item
.
id
)
&&
this
.
selectedCustomerList
.
length
<
this
.
maxCustNum
)
{
this
.
selectedCustomerList
.
push
(
item
)
}
})
currentList
.
forEach
((
item
,
idx
)
=>
{
if
(
!
selected
Ids
.
includes
(
item
.
id
))
{
t
his
.
selectedCustomerList
.
splice
(
idx
,
1
)
this
.
selectedCustomerList
.
forEach
(
item
=>
{
if
(
selectedIds
.
includes
(
item
.
id
)
||
!
table
Ids
.
includes
(
item
.
id
))
{
t
empList
.
push
(
item
)
}
})
this
.
selectedCustomerList
=
tempList
this
.
recoverySelected
()
},
...
...
src/views/sop/editSop/editEvent.vue
View file @
73c5fe5
...
...
@@ -18,20 +18,20 @@
<div
class=
"flex-default m-r-20"
slot=
"repeatTime"
slot-scope=
"scope"
>
<div
class=
"flex-default m-r-20"
v-if=
"editForm.repeatMode == 2"
>
<p
style=
"width: 50px"
>
每周
</p>
<el-select
:size=
"size"
v-model=
"editForm[scope.scope.name]"
placeholder=
"请选择每周指定日期"
>
<el-select
:size=
"size"
v-model=
"editForm[scope.scope.name]"
placeholder=
"请选择每周指定日期"
@
change=
"handleResetMaxSet"
>
<el-option
v-for=
"item in baseData.weekList"
:key=
"item.confId"
:label=
"item.confName"
:value=
"item.confId"
></el-option>
</el-select>
</div>
<div
class=
"flex-default m-r-20"
v-if=
"editForm.repeatMode == 3"
>
<p
style=
"width: 50px"
>
每月
</p>
<el-select
:size=
"size"
v-model=
"editForm[scope.scope.name]"
placeholder=
"请选择每月指定日期"
>
<el-select
:size=
"size"
v-model=
"editForm[scope.scope.name]"
placeholder=
"请选择每月指定日期"
@
change=
"handleResetMaxSet"
>
<el-option
v-for=
"item in baseData.monthList"
:key=
"item.confId"
:label=
"item.confName"
:value=
"item.confId"
></el-option>
</el-select>
</div>
<div>
重复循环至
</div>
</div>
<div
slot=
"eventEndDate"
slot-scope=
"scope"
>
<el-date-picker
v-model=
"editForm[scope.scope.name]"
:disabled=
"!editForm.eventStartDate"
:placeholder=
"scope.scope.placeholder"
:value-format=
"scope.scope.valueFormat"
:clearable=
"scope.scope.isClear"
:picker-options=
"scope.scope.customPickerOptions"
></el-date-picker>
<el-date-picker
v-model=
"editForm[scope.scope.name]"
:disabled=
"!editForm.eventStartDate"
:placeholder=
"scope.scope.placeholder"
:value-format=
"scope.scope.valueFormat"
:clearable=
"scope.scope.isClear"
:picker-options=
"scope.scope.customPickerOptions"
@
change=
"handleResetMaxSet"
></el-date-picker>
</div>
</glsx-combi-form>
</div>
...
...
@@ -77,7 +77,7 @@
<div
class=
"container edit-container"
>
<p
class=
"edit-title"
>
营销渠道
</p>
<glsx-combi-form
class=
"edit-form-container m-r-20"
ref=
"editFormRefChannel"
:isEdit=
"isEdit"
:labelWidth=
"labelWidth"
defaultWidth=
"320px"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormDataChannel"
:formRules=
"editRule"
>
<div
v-show=
"editForm.pushChannelType"
slot=
"channelSuffix"
class=
"edit-tips m-t-8"
>
预估受众用户总数:{{ editForm.pushChannelType == 2 ? predictCountObj.phone : predictCountObj.qiwei }} /{{ predictCountObj.total }}
</div>
<div
v-show=
"editForm.pushChannelType"
slot=
"channelSuffix"
class=
"edit-tips m-t-8"
>
预估受众用户总数:{{ editForm.pushChannelType == 2 ? predictCountObj.phone : predictCountObj.qiwei }} /
{{ predictCountObj.total }}
</div>
<
template
slot=
"reachesType"
slot-scope=
"scope"
>
<el-radio-group
v-model=
"editForm[scope.scope.name]"
@
change=
"handleReachesType"
:disabled=
"editForm.repeatFlag == 'N'"
>
<el-radio
v-for=
"(item, index) in scope.scope.optionList"
:key=
"index"
:label=
"item[scope.scope.optionId]"
>
{{
item
[
scope
.
scope
.
optionLabel
]
}}
</el-radio>
...
...
@@ -86,8 +86,10 @@
同一用户最多参与
<el-form-item
prop=
"reachesTypeSet"
>
<el-input
v-model=
"editForm.reachesTypeSet"
></el-input>
<span
class=
"txt-red"
v-if=
"+maxReachesTypeSet
< editForm
.
reachesTypeSet
"
>
该用户最多能参与
{{
maxReachesTypeSet
}}
次
</span>
<span
class=
"txt-red"
v-else-if=
"editForm.reachesTypeSet
< 2
"
>
只能输入2及以上的数字
</span>
<div
v-show=
"editForm.reachesTypeSet && maxReachesTypeSet"
>
<span
class=
"txt-red"
v-if=
"+maxReachesTypeSet
< editForm
.
reachesTypeSet
"
>
该用户最多能参与
{{
maxReachesTypeSet
}}
次
</span>
<span
class=
"txt-red"
v-else-if=
"editForm.reachesTypeSet
< 2
"
>
只能输入2及以上的数字
</span>
</div>
</el-form-item>
次
</span>
...
...
@@ -294,6 +296,7 @@ export default {
handleRadioChange
:
val
=>
{
this
.
editForm
.
repeatTime
=
''
this
.
editForm
.
eventEndDate
=
''
this
.
maxReachesTypeSet
=
''
}
}
],
...
...
@@ -360,7 +363,7 @@ export default {
type
:
'select'
,
optionList
:
[],
optionId
:
'id'
,
optionLabel
:
'
business
Name'
,
optionLabel
:
'
follow
Name'
,
optionsName
:
'staffTypeList'
},
{
...
...
@@ -488,8 +491,12 @@ export default {
}
},
handleResetMaxSet
()
{
this
.
maxReachesTypeSet
=
''
},
getStaffTypeList
()
{
this
.
$apis
.
common
.
getStaff
TypeListApi
({
flag
:
0
}).
then
(
res
=>
{
this
.
$apis
.
common
.
getStaff
FollowerListApi
({
}).
then
(
res
=>
{
this
.
baseData
.
staffTypeList
=
res
this
.
getOptionsList
(
'editFormDataChannel'
,
false
,
'followerTypeId'
)
})
...
...
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