Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-link
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 97c0e029
authored
Aug 14, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
fbe02bef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
12 deletions
src/views/activityLink/components/MarketingGift.vue
src/views/activityLink/components/MarketingTask.vue
src/views/activityLink/components/MarketingGift.vue
View file @
97c0e02
...
...
@@ -2,7 +2,7 @@
<div>
<glsx-combi-form
class=
"edit-form-container"
:isBlock=
"true"
ref=
"editFormRef"
formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<div
slot=
"selectGiftBtn"
>
<el-radio
label=
"
"
v-model=
"giftValue"
v-if=
"!isGhPackage"
>
自定义礼包
</el-radio>
<el-radio
:label=
"null
"
v-model=
"giftValue"
v-if=
"!isGhPackage"
>
自定义礼包
</el-radio>
<el-radio
label=
""
v-model=
"giftValue"
v-if=
"isGhPackage && !isCustom"
@
change=
"getModel"
>
自定义续保套餐
</el-radio>
<div
class=
"gift-container"
>
<el-radio-group
v-model=
"giftValue"
@
change=
"getModel"
>
...
...
@@ -108,7 +108,7 @@ export default {
isInit
:
this
.
$route
.
query
.
addOrEdit
==
'add'
,
isCustom
:
false
,
isGhPackage
:
false
,
giftValue
:
''
,
giftValue
:
null
,
editForm
:
{
giftList
:
1
,
activityPrice
:
''
...
...
@@ -205,12 +205,13 @@ export default {
if
(
info
.
activityPrice
)
{
this
.
editForm
.
activityPrice
=
info
.
activityPrice
/
100
}
this
.
giftValue
=
info
.
giftId
||
''
this
.
giftValue
=
info
.
giftId
||
null
if
(
this
.
giftValue
&&
info
.
ghExclusiveFlag
==
2
)
{
await
this
.
getModel
()
}
else
{
this
.
getList
()
}
this
.
validGh
()
setTimeout
(()
=>
{
if
(
this
.
routerInfo
.
addOrEdit
==
'edit'
)
{
this
.
handleSaveGift
(
false
)
...
...
@@ -243,8 +244,7 @@ export default {
this
.
$refs
[
'serviceRef'
+
this
.
serviceIndex
][
0
].
$refs
[
'listMutiTable'
].
clearSelection
()
},
validGh
()
{
if
(
this
.
activityInfo
.
ghExclusiveFlag
!=
2
&&
this
.
routerInfo
.
addOrEdit
!=
'edit'
)
return
this
.
isGhPackage
=
true
if
(
this
.
activityInfo
.
ghExclusiveFlag
==
2
&&
this
.
routerInfo
.
addOrEdit
==
'edit'
)
this
.
isGhPackage
=
true
// const carList = this.carList.map(item => item.packageCode)
// const serviceList = this.serviceList.map(item => item.id)
// if (this.currentIndex == 1) this.carTableParams.checkSelectVal = carList
...
...
@@ -293,7 +293,7 @@ export default {
return
}
let
equityCode
if
((
this
.
isGhPackage
&&
!
this
.
giftValue
)
||
(
this
.
isGhPackage
&&
this
.
isCustom
))
{
if
((
this
.
isGhPackage
&&
!
this
.
giftValue
)
||
(
this
.
isGhPackage
&&
this
.
equitiesCode
))
{
if
(
selectedCarList
.
length
==
0
)
{
this
.
$message
.
error
(
'请选择1~2项用车权益'
)
return
...
...
@@ -319,7 +319,7 @@ export default {
for
(
let
i
=
0
;
i
<
selectedCarList
.
length
;
i
++
)
{
this
.
totalPrice
=
this
.
totalPrice
+
parseFloat
(
selectedCarList
[
i
].
packageAmount
||
0
)
}
this
.
setPackage
(
Object
.
assign
({},
{
selectedServiceList
:
this
.
$common
.
utils
.
deepClone
(
this
.
selectedServiceList
),
selectedCarList
:
this
.
$common
.
utils
.
deepClone
(
this
.
selectedCarList
),
selectedGoodsList
:
this
.
$common
.
utils
.
deepClone
(
this
.
selectedGoodsList
)
}))
this
.
setPackage
(
Object
.
assign
({},
{
selectedServiceList
:
this
.
$common
.
utils
.
deepClone
(
this
.
selectedServiceList
),
selectedCarList
:
this
.
$common
.
utils
.
deepClone
(
selectedCarList
),
selectedGoodsList
:
this
.
$common
.
utils
.
deepClone
(
this
.
selectedGoodsList
)
}))
const
selectedGoodsList
=
[...
this
.
selectedGoodsList
,
...
this
.
selectedServiceList
].
map
(
item
=>
{
console
.
log
(
item
)
return
{
...
...
@@ -568,7 +568,6 @@ export default {
})
this
.
carList
=
packageConfigs
this
.
selectedPreExisting
(
this
.
selectedCarList
,
this
.
carList
,
'packageCode'
,
this
.
$refs
[
'carRef'
])
this
.
validGh
()
})
.
finally
(()
=>
{
this
.
loading
=
false
...
...
@@ -580,7 +579,7 @@ export default {
this
.
getGoodsList
()
},
handleReset
()
{
this
.
searchForm
[
this
.
goodsIndex
-
1
]
=
{}
this
.
$set
(
this
.
searchForm
,
[
this
.
goodsIndex
-
1
],
{})
this
.
handleSearch
()
},
//生活权益
...
...
@@ -646,7 +645,6 @@ export default {
// this.fnCallBack = true
this
.
$refs
[
'serviceRef'
+
this
.
serviceIndex
][
0
].
tableTotal
=
res
.
total
this
.
selectedPreExisting
(
this
.
selectedServiceList
,
this
.
serviceList
,
'id'
,
this
.
$refs
[
'serviceRef'
+
this
.
serviceIndex
][
0
])
this
.
validGh
()
})
.
finally
(()
=>
{
this
.
loading
=
false
...
...
src/views/activityLink/components/MarketingTask.vue
View file @
97c0e02
...
...
@@ -25,7 +25,7 @@
成功导入客户数
</span>
</div>
<div
class=
"task-box-desc"
>
<div
class=
"task-box-desc"
v-if=
"item.customerNumTotal"
>
<div
class=
"task-box-num"
>
成功导入客户数
{{
item
.
customerNumTotal
}}
</div>
<div
class=
"task-num-item flex-column-center"
>
<label>
分配方式:
</label>
...
...
@@ -211,8 +211,9 @@ export default {
//获取任务详情
findMarketingTask
(
activityId
)
{
this
.
$apis
.
marketing
.
findMarketingTask
({
activityId
}).
then
(
res
=>
{
const
{
staffList
=
[],
customerNum
=
0
,
assignType
=
1
}
=
res
const
{
staffList
=
[],
customerNum
=
0
,
assignType
=
1
}
=
res
||
{}
this
.
taskList
=
[{
...
taskData
,
isFinish
:
true
,
staffList
,
customerNumTotal
:
customerNum
,
assignType
}]
console
.
log
(
this
.
taskList
,
'taskList'
)
})
},
//获取客户导入模板
...
...
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