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 @@
...
@@ -2,7 +2,7 @@
<div>
<div>
<glsx-combi-form
class=
"edit-form-container"
:isBlock=
"true"
ref=
"editFormRef"
formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<glsx-combi-form
class=
"edit-form-container"
:isBlock=
"true"
ref=
"editFormRef"
formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<div
slot=
"selectGiftBtn"
>
<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>
<el-radio
label=
""
v-model=
"giftValue"
v-if=
"isGhPackage && !isCustom"
@
change=
"getModel"
>
自定义续保套餐
</el-radio>
<div
class=
"gift-container"
>
<div
class=
"gift-container"
>
<el-radio-group
v-model=
"giftValue"
@
change=
"getModel"
>
<el-radio-group
v-model=
"giftValue"
@
change=
"getModel"
>
...
@@ -108,7 +108,7 @@ export default {
...
@@ -108,7 +108,7 @@ export default {
isInit
:
this
.
$route
.
query
.
addOrEdit
==
'add'
,
isInit
:
this
.
$route
.
query
.
addOrEdit
==
'add'
,
isCustom
:
false
,
isCustom
:
false
,
isGhPackage
:
false
,
isGhPackage
:
false
,
giftValue
:
''
,
giftValue
:
null
,
editForm
:
{
editForm
:
{
giftList
:
1
,
giftList
:
1
,
activityPrice
:
''
activityPrice
:
''
...
@@ -205,12 +205,13 @@ export default {
...
@@ -205,12 +205,13 @@ export default {
if
(
info
.
activityPrice
)
{
if
(
info
.
activityPrice
)
{
this
.
editForm
.
activityPrice
=
info
.
activityPrice
/
100
this
.
editForm
.
activityPrice
=
info
.
activityPrice
/
100
}
}
this
.
giftValue
=
info
.
giftId
||
''
this
.
giftValue
=
info
.
giftId
||
null
if
(
this
.
giftValue
&&
info
.
ghExclusiveFlag
==
2
)
{
if
(
this
.
giftValue
&&
info
.
ghExclusiveFlag
==
2
)
{
await
this
.
getModel
()
await
this
.
getModel
()
}
else
{
}
else
{
this
.
getList
()
this
.
getList
()
}
}
this
.
validGh
()
setTimeout
(()
=>
{
setTimeout
(()
=>
{
if
(
this
.
routerInfo
.
addOrEdit
==
'edit'
)
{
if
(
this
.
routerInfo
.
addOrEdit
==
'edit'
)
{
this
.
handleSaveGift
(
false
)
this
.
handleSaveGift
(
false
)
...
@@ -243,8 +244,7 @@ export default {
...
@@ -243,8 +244,7 @@ export default {
this
.
$refs
[
'serviceRef'
+
this
.
serviceIndex
][
0
].
$refs
[
'listMutiTable'
].
clearSelection
()
this
.
$refs
[
'serviceRef'
+
this
.
serviceIndex
][
0
].
$refs
[
'listMutiTable'
].
clearSelection
()
},
},
validGh
()
{
validGh
()
{
if
(
this
.
activityInfo
.
ghExclusiveFlag
!=
2
&&
this
.
routerInfo
.
addOrEdit
!=
'edit'
)
return
if
(
this
.
activityInfo
.
ghExclusiveFlag
==
2
&&
this
.
routerInfo
.
addOrEdit
==
'edit'
)
this
.
isGhPackage
=
true
this
.
isGhPackage
=
true
// const carList = this.carList.map(item => item.packageCode)
// const carList = this.carList.map(item => item.packageCode)
// const serviceList = this.serviceList.map(item => item.id)
// const serviceList = this.serviceList.map(item => item.id)
// if (this.currentIndex == 1) this.carTableParams.checkSelectVal = carList
// if (this.currentIndex == 1) this.carTableParams.checkSelectVal = carList
...
@@ -293,7 +293,7 @@ export default {
...
@@ -293,7 +293,7 @@ export default {
return
return
}
}
let
equityCode
let
equityCode
if
((
this
.
isGhPackage
&&
!
this
.
giftValue
)
||
(
this
.
isGhPackage
&&
this
.
isCustom
))
{
if
((
this
.
isGhPackage
&&
!
this
.
giftValue
)
||
(
this
.
isGhPackage
&&
this
.
equitiesCode
))
{
if
(
selectedCarList
.
length
==
0
)
{
if
(
selectedCarList
.
length
==
0
)
{
this
.
$message
.
error
(
'请选择1~2项用车权益'
)
this
.
$message
.
error
(
'请选择1~2项用车权益'
)
return
return
...
@@ -319,7 +319,7 @@ export default {
...
@@ -319,7 +319,7 @@ export default {
for
(
let
i
=
0
;
i
<
selectedCarList
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
selectedCarList
.
length
;
i
++
)
{
this
.
totalPrice
=
this
.
totalPrice
+
parseFloat
(
selectedCarList
[
i
].
packageAmount
||
0
)
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
=>
{
const
selectedGoodsList
=
[...
this
.
selectedGoodsList
,
...
this
.
selectedServiceList
].
map
(
item
=>
{
console
.
log
(
item
)
console
.
log
(
item
)
return
{
return
{
...
@@ -568,7 +568,6 @@ export default {
...
@@ -568,7 +568,6 @@ export default {
})
})
this
.
carList
=
packageConfigs
this
.
carList
=
packageConfigs
this
.
selectedPreExisting
(
this
.
selectedCarList
,
this
.
carList
,
'packageCode'
,
this
.
$refs
[
'carRef'
])
this
.
selectedPreExisting
(
this
.
selectedCarList
,
this
.
carList
,
'packageCode'
,
this
.
$refs
[
'carRef'
])
this
.
validGh
()
})
})
.
finally
(()
=>
{
.
finally
(()
=>
{
this
.
loading
=
false
this
.
loading
=
false
...
@@ -580,7 +579,7 @@ export default {
...
@@ -580,7 +579,7 @@ export default {
this
.
getGoodsList
()
this
.
getGoodsList
()
},
},
handleReset
()
{
handleReset
()
{
this
.
searchForm
[
this
.
goodsIndex
-
1
]
=
{}
this
.
$set
(
this
.
searchForm
,
[
this
.
goodsIndex
-
1
],
{})
this
.
handleSearch
()
this
.
handleSearch
()
},
},
//生活权益
//生活权益
...
@@ -646,7 +645,6 @@ export default {
...
@@ -646,7 +645,6 @@ export default {
// this.fnCallBack = true
// this.fnCallBack = true
this
.
$refs
[
'serviceRef'
+
this
.
serviceIndex
][
0
].
tableTotal
=
res
.
total
this
.
$refs
[
'serviceRef'
+
this
.
serviceIndex
][
0
].
tableTotal
=
res
.
total
this
.
selectedPreExisting
(
this
.
selectedServiceList
,
this
.
serviceList
,
'id'
,
this
.
$refs
[
'serviceRef'
+
this
.
serviceIndex
][
0
])
this
.
selectedPreExisting
(
this
.
selectedServiceList
,
this
.
serviceList
,
'id'
,
this
.
$refs
[
'serviceRef'
+
this
.
serviceIndex
][
0
])
this
.
validGh
()
})
})
.
finally
(()
=>
{
.
finally
(()
=>
{
this
.
loading
=
false
this
.
loading
=
false
...
...
src/views/activityLink/components/MarketingTask.vue
View file @
97c0e02
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
成功导入客户数
成功导入客户数
</span>
</span>
</div>
</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-box-num"
>
成功导入客户数
{{
item
.
customerNumTotal
}}
</div>
<div
class=
"task-num-item flex-column-center"
>
<div
class=
"task-num-item flex-column-center"
>
<label>
分配方式:
</label>
<label>
分配方式:
</label>
...
@@ -211,8 +211,9 @@ export default {
...
@@ -211,8 +211,9 @@ export default {
//获取任务详情
//获取任务详情
findMarketingTask
(
activityId
)
{
findMarketingTask
(
activityId
)
{
this
.
$apis
.
marketing
.
findMarketingTask
({
activityId
}).
then
(
res
=>
{
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
}]
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