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 c7c5696a
authored
May 17, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
c8708667
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
533 additions
and
6 deletions
src/api/modules/giftBag.js
src/assets/coupon/equity.png
src/common/constant.js
src/views/activityLink/components/browseList.vue
src/views/activityLink/components/selectEquityDialog.vue
src/views/activityLink/editActivity.vue
src/api/modules/giftBag.js
View file @
c7c5696
/*
/*
* @Author: 前端 qianduan01@didihu.com.cn
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-12-13 16:38:54
* @Date: 2022-12-13 16:38:54
* @LastEditors:
yangming yangming
@didihu.com.cn
* @LastEditors:
前端 qianduan01
@didihu.com.cn
* @LastEditTime: 2023-0
3-22 11:29:49
* @LastEditTime: 2023-0
5-12 16:18:55
* @FilePath: \scrm-micro-link\src\api\modules\giftBag.js
* @FilePath: \scrm-micro-link\src\api\modules\giftBag.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
@@ -53,5 +53,14 @@ const couponTemplateDetails = params => {
...
@@ -53,5 +53,14 @@ const couponTemplateDetails = params => {
sign
:
true
sign
:
true
})
})
}
}
const
equityMerchant
=
params
=>
{
params
.
method
=
'scrm.api.equity.service.merchant.config.get'
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
default
{
getghDirectionalGiftListApi
,
getEquityListApi
,
brandList
,
couponTemplate
,
couponTemplateDetails
}
export
default
{
getghDirectionalGiftListApi
,
getEquityListApi
,
brandList
,
couponTemplate
,
couponTemplateDetails
,
equityMerchant
}
src/assets/coupon/equity.png
0 → 100644
View file @
c7c5696
1.65 KB
src/common/constant.js
View file @
c7c5696
...
@@ -262,6 +262,14 @@ const subscribe = [
...
@@ -262,6 +262,14 @@ const subscribe = [
optionLabel
:
'节假日关怀'
optionLabel
:
'节假日关怀'
},
},
{
{
optionId
:
7
,
optionLabel
:
'次新车转化'
},
{
optionId
:
7
,
optionLabel
:
'超级营销'
},
{
optionId
:
3
,
optionId
:
3
,
optionLabel
:
'其他'
optionLabel
:
'其他'
}
}
...
...
src/views/activityLink/components/browseList.vue
View file @
c7c5696
...
@@ -49,6 +49,9 @@
...
@@ -49,6 +49,9 @@
<span
class=
"m-l-10"
>
{{ scope.scope.shareName }}
</span>
<span
class=
"m-l-10"
>
{{ scope.scope.shareName }}
</span>
<span
class=
"m-l-10"
>
{{ scope.scope.sharePhone }}
</span>
<span
class=
"m-l-10"
>
{{ scope.scope.sharePhone }}
</span>
</div>
</div>
<div
slot=
"isFlow"
slot-scope=
"scope"
>
<el-switch
:value=
"scope.scope.followUpFlag == 2 ? true : false"
class=
"switchStyle"
@
change=
"changeSwith(scope.scope)"
></el-switch>
</div>
<div
slot=
"isBuy"
slot-scope=
"scope"
>
<div
slot=
"isBuy"
slot-scope=
"scope"
>
<span
:class=
"['table-circle', 'm-r-8', scope.scope.isBuy == 'Y' ? 'back-green' : 'back-grey']"
></span>
<span
:class=
"['table-circle', 'm-r-8', scope.scope.isBuy == 'Y' ? 'back-green' : 'back-grey']"
></span>
<span>
<span>
...
@@ -234,6 +237,12 @@ export default {
...
@@ -234,6 +237,12 @@ export default {
label
:
'最后浏览时间'
,
label
:
'最后浏览时间'
,
prop
:
'lastBrowseDate'
,
prop
:
'lastBrowseDate'
,
width
:
'195px'
width
:
'195px'
},
{
label
:
'是否跟进'
,
prop
:
'isFlow'
,
width
:
'100'
,
addHtml
:
'isFlow'
}
}
]
]
break
break
...
@@ -245,6 +254,12 @@ export default {
...
@@ -245,6 +254,12 @@ export default {
this
.
footerWidth
=
document
.
documentElement
.
clientWidth
-
this
.
footerLeft
this
.
footerWidth
=
document
.
documentElement
.
clientWidth
-
this
.
footerLeft
},
},
methods
:
{
methods
:
{
changeSwith
(
scope
)
{
const
{
id
,
followUpFlag
}
=
scope
this
.
$apis
.
seckillActivity
.
updateFollow
({
followUpFlag
:
followUpFlag
==
1
?
2
:
1
,
id
}).
then
(
res
=>
{
this
.
handleSearch
()
})
},
beforeSearchFn
()
{
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
console
.
log
(
this
.
$parent
)
console
.
log
(
this
.
$parent
)
...
...
src/views/activityLink/components/selectEquityDialog.vue
0 → 100644
View file @
c7c5696
<!-- 选择礼包弹窗 -->
<
template
>
<GLDialog
mode=
"big"
class=
"muti-gift"
bigTitle=
"选择内容"
:hasFooter=
"hasFooter"
:before-close=
"handleEquityClose"
@
onOk=
"handleEquityConfirm"
@
onCancel=
"handleEquityClose"
:visible
.
sync=
"isSelectEquityVisible"
>
<div
class=
"flex"
>
<div
class=
"gift-table"
>
<div>
<glsx-combi-form
:isEdit=
"false"
labelWidth=
"70px"
class=
"p-16"
style=
"padding-bottom: 0px;"
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormData"
>
<span
slot=
"footer"
>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
:size=
"size"
@
click=
"handleReset"
>
重置
</el-button>
</span>
</glsx-combi-form>
<GLTable
ref=
"equityRef"
v-loading=
"loading"
:tableData=
"EquityList"
:noDataImg=
"url"
:tableParams=
"tableParams"
@
refreshTable=
"getList"
@
selectionTable=
"handleSelectionTable"
>
<span
slot=
"effectiveType"
slot-scope=
"scope"
>
<span>
{{
toLabelText
(
scope
.
scope
)
}}
</span>
</span>
<span
slot=
"stock"
slot-scope=
"scope"
>
<span>
{{
scope
.
scope
.
limitStockFlag
==
1
?
scope
.
scope
.
stock
:
'无限制'
}}
</span>
</span>
<span
slot=
"useType"
slot-scope=
"scope"
>
<span>
{{
toRestrictLabelText
(
scope
.
scope
)
}}
</span>
</span>
</GLTable>
</div>
</div>
<div
class=
"selected-list"
>
<p
class=
"list-title p-16"
>
已选(
{{
selectedSum
}}
)
</p>
<div
class=
"list-gifts"
>
<div
class=
"gift-box"
v-if=
"selectedList.length"
>
<div
class=
"gift-label"
>
<img
class=
"muti-icon"
:src=
"require(`@/assets/coupon/$
{item}.png`)" />
</div>
<div
class=
"gift-content"
>
<div
class=
"gift-item"
:key=
"subItem.id"
v-for=
"(subItem, subIndex) in selectedList"
>
<img
class=
"muti-icon"
src=
"@/assets/muti-selected.png"
@
click=
"handleEquityDelete(item, subIndex)"
/>
<el-tooltip
effect=
"dark"
placement=
"top"
:disabled=
"couponString(subItem).length
<
= 8">
<p
:class=
"['gift-coupon-name', 'ellipsis-1']"
>
{{
couponString
(
subItem
)
>
8
?
couponString
(
subItem
).
slice
(
0
,
8
)
+
'...'
:
couponString
(
subItem
)
}}
</p>
<div
slot=
"content"
>
{{
couponString
(
subItem
)
}}
</div>
</el-tooltip>
<div
class=
"gift-sum"
>
<el-input-number
class=
"sum-input"
v-model=
"subItem.couponAmount"
:min=
"1"
:max=
"9999"
size=
"mini"
label=
"描述文字"
></el-input-number>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</GLDialog>
</
template
>
<
script
>
import
url
from
'@/assets/empty.png'
// import glsxDialog from '@/components/glsx-dialog'
export
default
{
name
:
'selectEquityDialog'
,
data
()
{
return
{
// 表格组件
isMount
:
false
,
userInfo
:
{},
EquityList
:
[],
fnCallBack
:
false
,
url
:
url
,
loading
:
true
,
selectedSum
:
0
,
selectedList
:
[],
initSelected
:
''
,
// 搜索
searchForm
:
{
brandName
:
''
},
searchFormData
:
[
{
label
:
'商品品牌'
,
name
:
'brandName'
,
type
:
'select'
,
maxlength
:
30
,
width
:
'185px'
,
placeholder
:
'请选择商品品牌'
,
optionList
:
[],
optionId
:
'brandName'
,
optionLabel
:
'brandName'
,
optionsName
:
'brandName'
,
isClear
:
true
},
{
label
:
'商品名称'
,
name
:
'goodsName'
,
type
:
'input'
,
maxlength
:
30
,
width
:
'185px'
,
placeholder
:
'请输入商品名称'
,
isClear
:
true
}
],
// pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
// 表格参数
tableParams
:
{
listName
:
'list'
,
// 行数据的key
mutiSelectUniqueKey
:
'id'
,
// 多选ref的名称
mutiSelectName
:
'list'
,
tableColumns
:
[
{
label
:
'品牌'
,
prop
:
'brandName'
,
width
:
120
},
{
label
:
'商品名称'
,
prop
:
'goodsName'
,
width
:
180
},
{
label
:
'劵面额'
,
prop
:
'denomination'
,
formatter
:
cellValue
=>
{
return
isNaN
(
cellValue
.
denomination
)
?
cellValue
.
denomination
:
(
cellValue
.
denomination
/
100
).
toFixed
(
2
)
+
'元'
}
},
{
label
:
'有效期'
,
prop
:
'effectiveDays'
,
formatter
:
cellValue
=>
{
return
cellValue
.
effectiveDays
+
'天'
}
}
]
},
tableParamsL
:
{}
}
},
props
:
{
isSelectEquityVisible
:
{
type
:
Boolean
,
default
:
false
},
merchantId
:
[
String
,
Number
],
selectedEquityLists
:
{
type
:
Object
,
default
:
()
=>
[]
}
},
// components: {
// glsxDialog
// },
mounted
()
{
this
.
getList
({},
true
)
},
methods
:
{
couponString
(
val
)
{
return
`
${
isNaN
(
val
.
denomination
)
?
val
.
denomination
:
(
val
.
denomination
/
100
).
toFixed
(
2
)
+
'元'
}${
val
.
brandName
}${
val
.
goodsName
}${
this
.
activeName
==
'recharge'
?
val
.
rechargeDenomination
:
''
}
`
},
filterDenomination
(
val
)
{
return
isNaN
(
val
)
?
val
:
(
val
/
100
).
toFixed
(
2
)
+
'元'
},
getList
(
page
,
isResetPage
=
false
,
isMount
=
false
)
{
this
.
tableParamsL
=
this
.
$common
.
utils
.
deepClone
(
this
.
tableParams
)
this
.
tableParamsL
.
tableColumns
.
splice
(
3
,
0
,
{
label
:
'直充面额'
,
prop
:
'rechargeDenomination'
,
width
:
100
})
var
params
=
{
...
this
.
searchForm
,
status
:
2
,
pageNum
:
isResetPage
?
1
:
this
.
$refs
.
equityRef
.
page
.
pageNum
,
pageSize
:
isResetPage
?
10
:
this
.
$refs
.
equityRef
.
page
.
pageSize
}
this
.
loading
=
true
this
.
$apis
.
giftBag
.
equityMerchant
(
params
)
.
then
(
res
=>
{
// 重置分页组件
if
(
this
.
$refs
.
equityRef
&&
isResetPage
)
{
this
.
$refs
.
equityRef
.
page
.
pageNum
=
1
this
.
$refs
.
equityRef
.
page
.
pageSize
=
10
}
this
.
EquityList
=
res
.
list
// this.fnCallBack = true
this
.
$refs
.
equityRef
.
tableTotal
=
res
.
total
this
.
recoverySelected
()
this
.
recoveryTotal
()
this
.
$nextTick
(()
=>
{
this
.
initSelected
=
null
})
this
.
$refs
.
equityRef
.
tableHeightValues
=
'50vh'
})
.
finally
(()
=>
{
this
.
loading
=
false
})
},
handleTabClick
()
{
this
.
getList
({},
true
)
this
.
recoverySelected
()
},
handleSearch
()
{
this
.
getList
({},
true
)
this
.
recoverySelected
()
},
handleReset
()
{
this
.
searchForm
=
{}
this
.
handleSearch
()
},
// 恢复选择
addSelected
()
{
this
.
$nextTick
(()
=>
{
// this.$refs.equityRef.$refs[this.tableParams.mutiSelectName + 'MutiTable'].clearSelection()
var
list
=
this
.
$common
.
utils
.
deepClone
(
this
.
selectedList
)
if
(
list
&&
list
.
length
)
{
list
.
forEach
(
row
=>
{
var
idx
=
this
.
EquityList
.
findIndex
(
k
=>
k
.
id
==
row
.
id
)
if
(
idx
!=
-
1
)
{
this
.
$refs
.
equityRef
.
$refs
[
this
.
tableParams
.
mutiSelectName
+
'MutiTable'
].
toggleRowSelection
(
this
.
EquityList
[
idx
],
true
)
}
})
}
})
},
recoverySelected
()
{
// 翻页,去掉已选项
var
selectedData
=
this
.
$refs
.
equityRef
.
mutiSelectArr
.
list
console
.
log
(
selectedData
,
'4444444444444444'
)
var
deleteList
=
[]
this
.
addSelected
()
if
(
selectedData
)
{
selectedData
.
forEach
(
item
=>
{
if
(
this
.
selectedList
.
findIndex
(
subItem
=>
subItem
.
id
==
item
.
id
)
==
-
1
)
{
deleteList
.
push
(
item
)
}
})
this
.
deleteSelected
(
deleteList
)
}
},
// 删除选中
deleteSelected
(
deleteList
)
{
this
.
$nextTick
(()
=>
{
deleteList
.
forEach
(
row
=>
{
var
idx
=
this
.
EquityList
.
findIndex
(
k
=>
k
.
id
==
row
.
id
)
if
(
idx
!=
-
1
)
{
this
.
$refs
.
equityRef
.
$refs
[
this
.
tableParams
.
mutiSelectName
+
'MutiTable'
].
toggleRowSelection
(
this
.
EquityList
[
idx
],
false
)
}
})
})
},
handleEquityDelete
(
attr
,
idx
)
{
var
deleteList
=
this
.
selectedList
.
splice
(
idx
,
1
)
this
.
deleteSelected
(
deleteList
)
this
.
recoveryTotal
()
},
// 计算已选张数
recoveryTotal
()
{
this
.
selectedSum
=
0
for
(
let
i
in
this
.
selectedList
)
{
this
.
selectedSum
+=
this
.
selectedList
.
length
}
},
// getSelectionTable(list, val) {
// var currentIdList = this.EquityList.map(item => item.id)
// var selectedIdList = list.map(item => item.id)
// val.forEach((item, index) => {
// const idx = currentIdList.indexOf(item.id)
// const idxs = selectedIdList.indexOf(item.id)
// if (idx == -1 && idxs == -1) {
// val.splice(index, 1)
// }
// })
// return val
// },
// 选择/取消
handleSelectionTable
(
val
)
{
var
list
=
this
.
$common
.
utils
.
deepClone
(
this
.
selectedList
)
// const val = this.getSelectionTable(list, valp)
var
count
=
0
var
currentIdList
=
this
.
EquityList
.
map
(
item
=>
item
.
id
)
val
.
map
(
item
=>
item
.
id
)
.
forEach
(
k
=>
{
if
(
currentIdList
.
indexOf
(
k
)
!=
-
1
)
{
count
=
count
+
1
}
})
if
(
count
<=
this
.
EquityList
.
length
||
count
==
0
||
!
val
.
length
)
{
this
.
selectedList
=
[]
}
val
.
forEach
(
item
=>
{
let
isSelected
=
list
.
find
(
k
=>
k
.
id
==
item
.
id
)
console
.
log
(
this
.
selectedList
,
item
.
id
)
if
(
this
.
selectedList
.
findIndex
(
k
=>
k
.
id
==
item
.
id
)
==
'-1'
)
{
this
.
selectedList
.
push
({
id
:
item
.
id
,
goodId
:
item
.
goodId
,
appearance
:
item
.
appearance
,
brandName
:
item
.
brandName
,
couponAmount
:
isSelected
?
list
.
find
(
k
=>
k
.
id
==
item
.
id
).
couponAmount
:
1
,
goodsName
:
item
.
goodsName
,
denomination
:
item
.
denomination
,
effectiveDays
:
item
.
effectiveDays
,
rechargeDenomination
:
item
.
rechargeDenomination
,
status
:
item
.
status
})
}
})
this
.
recoveryTotal
()
},
handleEquityConfirm
()
{
// if (!this.EquityList.length) {
// var params = {
// addOrEdit: 1,
// groupOrStore: this.userInfo.accountLevel == 4 ? 2 : 1,
// $title: '新建礼包'
// }
// this.$router.push({
// path: '/productGroup/editProduct',
// query: params
// })
// return true
// }
var
selectedData
=
[]
for
(
let
i
in
this
.
selectedList
)
{
selectedData
.
push
(...
this
.
selectedList
)
}
if
(
selectedData
.
length
==
0
)
{
this
.
$message
.
error
(
'请选择平台福利券'
)
return
}
this
.
$emit
(
'handleEquityConfirm'
,
selectedData
)
},
handleEquityClose
()
{
this
.
$emit
(
'handleEquityClose'
)
}
}
}
</
script
>
<
style
lang=
"scss"
>
.el-message
{
z-index
:
9999
!important
;
}
.muti-gift
.el-tabs__active-bar
{
display
:
block
;
}
.muti-gift
.el-tabs__nav-scroll
{
display
:
block
;
border-bottom
:
1px
solid
#eeeeee
;
}
.muti-gift
.el-tabs__item
{
font-weight
:
400
;
font-size
:
16px
;
color
:
#717171
;
height
:
36px
!important
;
line-height
:
36px
!important
;
}
.muti-gift
.el-tabs__item
:hover
,
.muti-gift
.el-tabs__item.is-active
{
color
:
#5f5efb
;
background
:
#fff
!important
;
border-width
:
0px
!important
;
}
.muti-gift
.m-t-10
{
margin-top
:
10px
;
}
.muti-gift
.gift-table
{
width
:
calc
(
100%
-
280px
);
border
:
1px
solid
#eeeeee
;
margin-right
:
10px
;
}
.muti-gift
.p-16
{
padding
:
16px
;
}
.muti-gift
.selected-list
{
width
:
280px
;
border-radius
:
2px
;
border
:
1px
solid
#eeeeee
;
.list-title
{
font-size
:
16px
;
border-bottom
:
1px
solid
#f1f1f1
;
}
.list-gifts
{
height
:
61vh
;
overflow-y
:
scroll
;
}
.gift-box
{
padding
:
16px
;
.gift-label
{
color
:
#999999
;
margin-bottom
:
14px
;
}
.gift-content
{
border-bottom
:
1px
solid
#e5e5e5
;
.gift-item
{
margin-bottom
:
20px
;
display
:
inline-flex
;
align-items
:
center
;
.muti-icon
{
cursor
:
pointer
;
}
.gift-coupon-name
{
display
:
inline-block
;
width
:
109px
;
margin
:
0
5px
0
7px
;
}
.gift-sum
{
display
:
inline-block
;
width
:
82px
;
text-align
:
right
;
.el-input-number--mini
.el-input__inner
{
padding
:
0
10px
;
}
.sum-input
{
display
:
inline-block
;
width
:
82px
;
}
.el-input--mini
.el-input__inner
{
border
:
0px
;
}
.el-input-number--mini
.el-input-number__decrease
,
.el-input-number--mini
.el-input-number__increase
{
width
:
20px
!important
;
border
:
0px
;
background-color
:
#fff
;
}
}
.gift-tips
{
display
:
inline-block
;
font-size
:
12px
;
height
:
18px
;
line-height
:
18px
;
color
:
#999999
;
background-color
:
#eeeded
;
margin-right
:
7px
;
}
}
.gift-item
:last-child
{
margin-bottom
:
0
;
}
}
.gift-content
:last-child
{
border-bottom
:
0px
;
}
}
}
</
style
>
src/views/activityLink/editActivity.vue
View file @
c7c5696
...
@@ -108,6 +108,31 @@
...
@@ -108,6 +108,31 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
slot=
"selectEquityBtn"
>
<el-button
type=
"default"
class=
"el-icon-plus"
@
click=
"handleEquityAdd"
>
选择服务
</el-button>
</div>
<div
class=
"gift-panel"
slot=
"equityListBlock"
style=
"width: 700px"
:style=
"{ 'margin-left': defaultLabelWidth }"
v-show=
"editForm.couponList && editForm.couponList.length != 0"
>
<div
class=
"gift-block"
>
<div
class=
"gift-title"
>
本次权益服务选择共
<span
class=
"price"
>
{{ totalEstimatedCost }}
</span>
项
</div>
<div
v-for=
"(item, index) in orderShow"
:key=
"index"
>
<div
class=
"gift-box"
v-show=
"couponObj[item].list.length"
>
<!-- <div class="gift-label">{{ couponObj[item].label }}:</div> -->
<img
class=
"server-type"
:src=
"require(`@/assets/coupon/equity.png`)"
/>
<div
class=
"gift-content"
>
<div
class=
"gift-item"
v-for=
"(subItem, subIndex) in couponObj[item].list"
:key=
"subIndex"
>
<span
:class=
"['circle', subItem.status == '3' ? ' grey' : '']"
></span>
<p
:class=
"['gift-coupon-name', subItem.status == '3' ? ' txt-grey' : '']"
>
{{ subItem.couponName }}
</p>
<i
class=
"el-icon-delete"
style=
"color: #c6c6c6"
@
click=
"handleGiftDelete(item, subIndex)"
></i>
</div>
</div>
</div>
</div>
</div>
</div>
</glsx-combi-form>
</glsx-combi-form>
</div>
</div>
<!-- 活动配置 -->
<!-- 活动配置 -->
...
@@ -361,6 +386,7 @@
...
@@ -361,6 +386,7 @@
</GLDialog> -->
</GLDialog> -->
<select-gift-dialog
:merchantId=
"editForm.merchantId"
v-if=
"isSelectGiftVisible"
:isSelectGiftVisible=
"isSelectGiftVisible"
:selectedGiftList=
"selectedMealList"
@
handleGiftConfirm=
"handleGiftConfirm"
@
handleGiftClose=
"handleGiftClose"
></select-gift-dialog>
<select-gift-dialog
:merchantId=
"editForm.merchantId"
v-if=
"isSelectGiftVisible"
:isSelectGiftVisible=
"isSelectGiftVisible"
:selectedGiftList=
"selectedMealList"
@
handleGiftConfirm=
"handleGiftConfirm"
@
handleGiftClose=
"handleGiftClose"
></select-gift-dialog>
<select-goods-dialog
v-if=
"isSelectGoodsVisible"
:isSelectGoodsVisible=
"isSelectGoodsVisible"
:selectedGoodsLists=
"selectedGoodsList"
@
handleGoodsConfirm=
"handleGoodsConfirm"
@
handleGoodsClose=
"handleGoodsClose"
></select-goods-dialog>
<select-goods-dialog
v-if=
"isSelectGoodsVisible"
:isSelectGoodsVisible=
"isSelectGoodsVisible"
:selectedGoodsLists=
"selectedGoodsList"
@
handleGoodsConfirm=
"handleGoodsConfirm"
@
handleGoodsClose=
"handleGoodsClose"
></select-goods-dialog>
<select-equity-dialog
v-if=
"isSelectEquityVisible"
:isSelectEquityVisible=
"isSelectEquityVisible"
:selectedEquityLists=
"selectedEquityList"
@
handleEquityConfirm=
"handleEquityConfirm"
@
handleEquityClose=
"handleEquityClose"
></select-equity-dialog>
<select-store
v-if=
"relateStoreVisible"
ref=
"relateStore"
:dialogVisible=
"relateStoreVisible"
:storeSelected=
"selectedList"
:merchantInfo=
"editForm.merchantId"
@
handleRelateStoreConfirm=
"handleRelateStoreConfirm"
@
handleRelateStoreClose=
"handleRelateStoreClose"
></select-store>
<select-store
v-if=
"relateStoreVisible"
ref=
"relateStore"
:dialogVisible=
"relateStoreVisible"
:storeSelected=
"selectedList"
:merchantInfo=
"editForm.merchantId"
@
handleRelateStoreConfirm=
"handleRelateStoreConfirm"
@
handleRelateStoreClose=
"handleRelateStoreClose"
></select-store>
<select-model
v-if=
"relateModelVisible"
:dialogVisible=
"relateModelVisible"
:modelValue=
"editForm.pageStyle"
@
handleRelateModelConfirm=
"handleRelateModelConfirm"
@
handleRelateModelClose=
"handleRelateModelClose"
></select-model>
<select-model
v-if=
"relateModelVisible"
:dialogVisible=
"relateModelVisible"
:modelValue=
"editForm.pageStyle"
@
handleRelateModelConfirm=
"handleRelateModelConfirm"
@
handleRelateModelClose=
"handleRelateModelClose"
></select-model>
</div>
</div>
...
@@ -373,6 +399,7 @@ import { utils } from 'glsx-common'
...
@@ -373,6 +399,7 @@ import { utils } from 'glsx-common'
import
selectStore
from
'./components/selectStore'
import
selectStore
from
'./components/selectStore'
import
selectGiftDialog
from
'./components/selectGiftDialog.vue'
import
selectGiftDialog
from
'./components/selectGiftDialog.vue'
import
selectGoodsDialog
from
'./components/selectGoodsDialog.vue'
import
selectGoodsDialog
from
'./components/selectGoodsDialog.vue'
import
selectEquityDialog
from
'./components/selectEquityDialog.vue'
import
selectModel
from
'./components/selectModel.vue'
import
selectModel
from
'./components/selectModel.vue'
import
HeaderConfig
from
'./components/header-config.vue'
import
HeaderConfig
from
'./components/header-config.vue'
const
couponObj
=
{
const
couponObj
=
{
...
@@ -437,7 +464,8 @@ export default {
...
@@ -437,7 +464,8 @@ export default {
selectGiftDialog
,
selectGiftDialog
,
selectGoodsDialog
,
selectGoodsDialog
,
HeaderConfig
,
HeaderConfig
,
selectModel
selectModel
,
selectEquityDialog
},
},
data
()
{
data
()
{
var
validatorPhone
=
function
(
rule
,
value
,
callback
)
{
var
validatorPhone
=
function
(
rule
,
value
,
callback
)
{
...
@@ -480,6 +508,7 @@ export default {
...
@@ -480,6 +508,7 @@ export default {
numToGoods
,
numToGoods
,
isSelectGiftVisible
:
false
,
isSelectGiftVisible
:
false
,
isSelectGoodsVisible
:
false
,
isSelectGoodsVisible
:
false
,
isSelectEquityVisible
:
false
,
routeInfo
:
{
routeInfo
:
{
// 1-新增;2-编辑;3-查看
// 1-新增;2-编辑;3-查看
// add-新增;edit-编辑;detail-详情;copy-复制
// add-新增;edit-编辑;detail-详情;copy-复制
...
@@ -716,6 +745,10 @@ export default {
...
@@ -716,6 +745,10 @@ export default {
optionLabel
:
'节假日关怀'
optionLabel
:
'节假日关怀'
},
},
{
{
optionId
:
7
,
optionLabel
:
'次新车转化'
},
{
optionId
:
3
,
optionId
:
3
,
optionLabel
:
'其他'
optionLabel
:
'其他'
}
}
...
@@ -771,6 +804,17 @@ export default {
...
@@ -771,6 +804,17 @@ export default {
addHtml
:
'selectGoodsBtn'
,
addHtml
:
'selectGoodsBtn'
,
tips
:
'平台提供了种类丰富的权益商品,可进一步提升产品套餐的受众,强烈推荐!'
tips
:
'平台提供了种类丰富的权益商品,可进一步提升产品套餐的受众,强烈推荐!'
},
},
{
label
:
'权益服务'
,
name
:
'equityList'
,
addHtml
:
'selectEquityBtn'
},
{
label
:
''
,
name
:
'equityListBlock'
,
addHtml
:
'equityListBlock'
},
{
{
label
:
'销售价格'
,
label
:
'销售价格'
,
name
:
'activityPrice'
,
name
:
'activityPrice'
,
...
@@ -1252,7 +1296,7 @@ export default {
...
@@ -1252,7 +1296,7 @@ export default {
let
hideStatus
=
false
let
hideStatus
=
false
if
(
val
==
2
)
{
if
(
val
==
2
)
{
hideStatus
=
true
hideStatus
=
true
this
.
editForm
.
couponList
=
[]
this
.
editForm
.
couponList
=
[]
this
.
selectedGoodsList
=
[]
this
.
selectedGoodsList
=
[]
}
else
{
}
else
{
hideStatus
=
false
hideStatus
=
false
...
@@ -1419,12 +1463,19 @@ export default {
...
@@ -1419,12 +1463,19 @@ export default {
handleGoodsAdd
()
{
handleGoodsAdd
()
{
this
.
handleGoodsClose
()
this
.
handleGoodsClose
()
},
},
//选择权益
handleEquityAdd
()
{
this
.
handleEquityClose
()
},
handleGiftClose
()
{
handleGiftClose
()
{
this
.
isSelectGiftVisible
=
!
this
.
isSelectGiftVisible
this
.
isSelectGiftVisible
=
!
this
.
isSelectGiftVisible
},
},
handleGoodsClose
()
{
handleGoodsClose
()
{
this
.
isSelectGoodsVisible
=
!
this
.
isSelectGoodsVisible
this
.
isSelectGoodsVisible
=
!
this
.
isSelectGoodsVisible
},
},
handleEquityClose
()
{
this
.
isSelectEquityVisible
=
!
this
.
isSelectEquityVisible
},
handleGiftConfirm
(
selectedData
)
{
handleGiftConfirm
(
selectedData
)
{
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
clearValidate
(
'couponList'
)
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
clearValidate
(
'couponList'
)
this
.
handleGiftClose
()
this
.
handleGiftClose
()
...
@@ -1893,7 +1944,7 @@ export default {
...
@@ -1893,7 +1944,7 @@ export default {
}
}
// 表单设置
// 表单设置
this
.
editForm
.
formDescribeCheck
=
[]
this
.
$set
(
this
.
editForm
,
'formDescribeCheck'
,
[])
this
.
editForm
.
selectCarNumberFlag
=
this
.
editForm
.
selectCarNumberFlag
||
1
this
.
editForm
.
selectCarNumberFlag
=
this
.
editForm
.
selectCarNumberFlag
||
1
this
.
editForm
.
selectVehicleTypeFlag
=
this
.
editForm
.
selectVehicleTypeFlag
||
1
this
.
editForm
.
selectVehicleTypeFlag
=
this
.
editForm
.
selectVehicleTypeFlag
||
1
this
.
editForm
.
selectPhoneNumberFlag
=
this
.
editForm
.
selectPhoneNumberFlag
||
1
this
.
editForm
.
selectPhoneNumberFlag
=
this
.
editForm
.
selectPhoneNumberFlag
||
1
...
...
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