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 3bd730f0
authored
Jul 17, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
a0fa2d96
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
6 deletions
src/views/activityLink/components/MarketingGift.vue
src/views/activityLink/components/SelectInsure.vue
src/views/activityLink/editActivity.vue
src/views/activityLink/components/MarketingGift.vue
View file @
3bd730f
...
...
@@ -15,7 +15,7 @@
<div
v-show=
"currentIndex == 1"
class=
"car-table"
>
<GLTable
:hasPage=
"false"
v-loading=
"loading"
ref=
"carRef"
:tableData=
"carList"
:tableParams=
"carTableParams"
@
refreshTable=
"getCarList"
@
select=
"handleSelectionCarTable"
>
<template
slot=
"price"
slot-scope=
"scope"
>
<el-input
v-model=
"scope.scope.packageAmount"
@
blur=
"calcCarValue"
placeholder=
"请输入"
oninput=
"value=value.match(/\d+\.?\d
{0,2}/, '')">
</el-input>
<el-input
v-model=
"scope.scope.packageAmount"
@
blur=
"calcCarValue
(scope.scope)
"
placeholder=
"请输入"
oninput=
"value=value.match(/\d+\.?\d
{0,2}/, '')">
</el-input>
</
template
>
</GLTable>
<div
class=
"car-gift flex-space-between"
>
...
...
@@ -209,9 +209,12 @@ export default {
this
.
giftList
=
res
||
[]
})
},
calcCarValue
()
{
calcCarValue
(
scope
)
{
this
.
totalPrice
=
0
for
(
let
i
=
0
;
i
<
this
.
selectedCarList
.
length
;
i
++
)
{
if
(
scope
&&
scope
.
packageCode
==
this
.
selectedCarList
[
i
].
packageCode
)
{
this
.
selectedCarList
[
i
].
packageAmount
=
scope
.
packageAmount
}
if
(
!
this
.
selectedCarList
[
i
].
packageAmount
)
{
this
.
$message
.
error
(
'输入用车权益价格'
)
return
...
...
@@ -254,6 +257,7 @@ export default {
params
.
equityServices
=
equityServices
.
join
(
','
)
params
.
activityPrice
=
(
this
.
editForm
.
activityPrice
*
100
).
toFixed
(
0
)
params
.
superMarketingCouponRelRequestList
=
selectedGoodsList
||
[]
console
.
log
(
params
)
this
.
SET_STEP
(
3
)
this
.
setProcess
({
1
:
{
...
...
src/views/activityLink/components/SelectInsure.vue
View file @
3bd730f
...
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-07-06 11:45:15
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-17 1
1:26:13
* @LastEditTime: 2023-07-17 1
8:21:24
* @FilePath: \scrm-micro-link\src\views\activityLink\components\SelectInsure.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
...
...
@@ -42,13 +42,21 @@ export default {
methods
:
{
...
mapActions
(
'marketing'
,
[
'getCalendarDetail'
]),
calendarPage
()
{
this
.
$apis
.
marketing
.
calendarPage
({
pageSize
:
100
,
pageNum
:
1
,
status
:
1
}).
then
(
res
=>
{
this
.
$apis
.
marketing
.
calendarPage
({
pageSize
:
100
,
pageNum
:
1
,
status
:
1
}).
then
(
res
=>
{
this
.
modelList
=
(
res
.
data
||
[]).
filter
(
item
=>
item
.
marketingType
==
5
)
this
.
selectObj
=
this
.
modelList
[
0
]
})
},
handleConfirm
()
{
this
.
$emit
(
'handleSure'
,
this
.
selectObj
)
this
.
$confirm
(
'是否覆盖营销礼包的内容?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
})
.
then
(()
=>
{
this
.
$emit
(
'handleSure'
,
this
.
selectObj
)
})
.
catch
(()
=>
{})
},
handleModelClose
()
{
this
.
$emit
(
'handleClose'
)
...
...
src/views/activityLink/editActivity.vue
View file @
3bd730f
...
...
@@ -123,7 +123,7 @@
<img
class=
"server-type"
:src=
"require(`@/assets/coupon/equity.png`)"
/>
<div
class=
"gift-content"
>
<div
class=
"gift-item"
v-for=
"(subItem, subIndex) in selectedEquityList"
:key=
"subIndex"
>
<p
:class=
"['gift-coupon-name']"
>
{{ subitem.packageName }}
</p>
<p
:class=
"['gift-coupon-name']"
>
{{ subitem
&&
subitem
.packageName }}
</p>
<i
class=
"el-icon-delete"
style=
"color: #c6c6c6"
@
click=
"handleEquityDelete(subIndex)"
></i>
</div>
</div>
...
...
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