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 d5b986c5
authored
May 22, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
f177f087
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
78 additions
and
221 deletions
src/common/constant.js
src/config/index.js
src/main.js
src/setup/qiankun.js
src/views/activityLink/components/selectEquityDialog.vue
src/views/activityLink/editActivity.vue
src/common/constant.js
View file @
d5b986c
...
@@ -266,12 +266,8 @@ const subscribe = [
...
@@ -266,12 +266,8 @@ const subscribe = [
optionLabel
:
'次新车转化'
optionLabel
:
'次新车转化'
},
},
{
{
optionId
:
7
,
optionId
:
8
,
optionLabel
:
'超级营销'
optionLabel
:
'超级营销'
},
{
optionId
:
3
,
optionLabel
:
'其他'
}
}
]
]
const
giftPackage
=
[
const
giftPackage
=
[
...
...
src/config/index.js
View file @
d5b986c
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
* @version:
* @version:
* @Author: limin
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @Date: 2021-06-07 14:12:32
* @LastEditors:
前端 qianduan01
@didihu.com.cn
* @LastEditors:
yangming yangming
@didihu.com.cn
* @LastEditTime: 2023-0
4-21 14:24:35
* @LastEditTime: 2023-0
5-22 13:51:04
*/
*/
// 根据环境引入不同配置 process.env.VUE_APP_ENV
// 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js')
// let request = require('@/http/request.js')
...
...
src/main.js
View file @
d5b986c
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
* @version: 1.0.0
* @version: 1.0.0
* @Author: limin
* @Author: limin
* @Date: 2021-08-13 14:12:11
* @Date: 2021-08-13 14:12:11
* @LastEditors:
前端 qianduan01
@didihu.com.cn
* @LastEditors:
yangming yangming
@didihu.com.cn
* @LastEditTime: 2023-0
4-21 14:25:28
* @LastEditTime: 2023-0
5-22 13:50:51
* @FilePath: \scrm\scrm-sub-blog\src\main.js
* @FilePath: \scrm\scrm-sub-blog\src\main.js
*/
*/
import
Vue
from
'vue'
import
Vue
from
'vue'
...
...
src/setup/qiankun.js
View file @
d5b986c
/*
/*
* @Author: 前端 qianduan01@didihu.com.cn
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-12-13 09:23:57
* @Date: 2022-12-13 09:23:57
* @LastEditors:
前端 qianduan01
@didihu.com.cn
* @LastEditors:
yangming yangming
@didihu.com.cn
* @LastEditTime: 2023-0
4-14 10:46:24
* @LastEditTime: 2023-0
5-22 13:45:51
* @FilePath: \scrm-micro-link\src\setup\qiankun.js
* @FilePath: \scrm-micro-link\src\setup\qiankun.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
*/
*/
...
...
src/views/activityLink/components/selectEquityDialog.vue
View file @
d5b986c
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<el-button
:size=
"size"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
:size=
"size"
@
click=
"handleReset"
>
重置
</el-button>
</span>
</span>
</glsx-combi-form>
</glsx-combi-form>
<GLTable
ref=
"equityRef"
v-loading=
"loading"
:tableData=
"EquityList"
:noDataImg=
"url"
:tableParams=
"tableParams"
@
refreshTable=
"getList"
@
selectionTable=
"handleSelectionTable"
>
<GLTable
:hasPage=
"false"
ref=
"equityRef"
v-loading=
"loading"
:tableData=
"EquityList"
:noDataImg=
"url"
:tableParams=
"tableParams"
@
refreshTable=
"getList"
@
selectionTable=
"handleSelectionTable"
>
<span
slot=
"effectiveType"
slot-scope=
"scope"
>
<span
slot=
"effectiveType"
slot-scope=
"scope"
>
<span>
{{
toLabelText
(
scope
.
scope
)
}}
</span>
<span>
{{
toLabelText
(
scope
.
scope
)
}}
</span>
</span>
</span>
...
@@ -24,22 +24,19 @@
...
@@ -24,22 +24,19 @@
</div>
</div>
</div>
</div>
<div
class=
"selected-list"
>
<div
class=
"selected-list"
>
<p
class=
"list-title p-16"
>
已选(
{{
selected
Sum
}}
)
</p>
<p
class=
"list-title p-16"
>
已选(
{{
selected
List
.
length
}}
)
</p>
<div
class=
"list-gifts"
>
<div
class=
"list-gifts"
>
<div
class=
"gift-box"
v-if=
"selectedList.length"
>
<div
class=
"gift-box"
v-if=
"selectedList.length"
>
<div
class=
"gift-label"
>
<div
class=
"gift-label"
>
<img
class=
"muti-icon"
:src=
"require(`@/assets/coupon/
$
{item}
.png`)" />
<img
class=
"muti-icon"
:src=
"require(`@/assets/coupon/
equity
.png`)"
/>
</div>
</div>
<div
class=
"gift-content"
>
<div
class=
"gift-content"
>
<div
class=
"gift-item"
:key=
"subItem.id"
v-for=
"
(subItem, subIndex)
in selectedList"
>
<div
class=
"gift-item"
:key=
"subItem.id"
v-for=
"
subItem
in selectedList"
>
<img
class=
"muti-icon"
src=
"@/assets/muti-selected.png"
@
click=
"
handleEquityDelete(item, subIndex
)"
/>
<img
class=
"muti-icon"
src=
"@/assets/muti-selected.png"
@
click=
"
deleteSelected(subItem
)"
/>
<el-tooltip
effect=
"dark"
placement=
"top"
:disabled=
"couponString(subItem).length
<
= 8">
<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>
<p
:class=
"['gift-coupon-name', 'ellipsis-1']"
>
{{
couponString
(
subItem
)
>
8
?
couponString
(
subItem
).
slice
(
0
,
8
)
+
'...'
:
couponString
(
subItem
)
}}
</p>
<div
slot=
"content"
>
{{
couponString
(
subItem
)
}}
</div>
<div
slot=
"content"
>
{{
couponString
(
subItem
)
}}
</div>
</el-tooltip>
</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>
...
@@ -67,29 +64,16 @@ export default {
...
@@ -67,29 +64,16 @@ export default {
initSelected
:
''
,
initSelected
:
''
,
// 搜索
// 搜索
searchForm
:
{
searchForm
:
{
brand
Name
:
''
package
Name
:
''
},
},
searchFormData
:
[
searchFormData
:
[
{
{
label
:
'商品品牌'
,
label
:
'权益名称'
,
name
:
'brandName'
,
name
:
'packageName'
,
type
:
'select'
,
maxlength
:
30
,
width
:
'185px'
,
placeholder
:
'请选择商品品牌'
,
optionList
:
[],
optionId
:
'brandName'
,
optionLabel
:
'brandName'
,
optionsName
:
'brandName'
,
isClear
:
true
},
{
label
:
'商品名称'
,
name
:
'goodsName'
,
type
:
'input'
,
type
:
'input'
,
maxlength
:
30
,
maxlength
:
30
,
width
:
'185px'
,
width
:
'185px'
,
placeholder
:
'请输入
商品
名称'
,
placeholder
:
'请输入
权益
名称'
,
isClear
:
true
isClear
:
true
}
}
],
],
...
@@ -98,32 +82,20 @@ export default {
...
@@ -98,32 +82,20 @@ export default {
tableParams
:
{
tableParams
:
{
listName
:
'list'
,
listName
:
'list'
,
// 行数据的key
// 行数据的key
mutiSelectUniqueKey
:
'
id
'
,
mutiSelectUniqueKey
:
'
packageCode
'
,
// 多选ref的名称
// 多选ref的名称
mutiSelectName
:
'list'
,
mutiSelectName
:
'list'
,
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'品牌'
,
label
:
'权益名称'
,
prop
:
'brandName'
,
prop
:
'packageName'
,
width
:
120
width
:
300
},
{
label
:
'商品名称'
,
prop
:
'goodsName'
,
width
:
180
},
{
label
:
'劵面额'
,
prop
:
'denomination'
,
formatter
:
cellValue
=>
{
return
isNaN
(
cellValue
.
denomination
)
?
cellValue
.
denomination
:
(
cellValue
.
denomination
/
100
).
toFixed
(
2
)
+
'元'
}
},
},
{
{
label
:
'有效期'
,
label
:
'有效期'
,
prop
:
'
effectiveDays
'
,
prop
:
'
packageServicePeriod
'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
effectiveDays
+
'天
'
return
'一年
'
}
}
}
}
]
]
...
@@ -146,187 +118,60 @@ export default {
...
@@ -146,187 +118,60 @@ export default {
// glsxDialog
// glsxDialog
// },
// },
mounted
()
{
mounted
()
{
this
.
getList
(
{},
true
)
this
.
getList
()
},
},
methods
:
{
methods
:
{
couponString
(
val
)
{
couponString
(
val
)
{
return
`
${
isNaN
(
val
.
denomination
)
?
val
.
denomination
:
(
val
.
denomination
/
100
).
toFixed
(
2
)
+
'元'
}${
val
.
brandName
}${
val
.
goodsName
}${
this
.
activeName
==
'recharge'
?
val
.
rechargeDenomination
:
''
}
`
return
val
.
packageName
},
},
filterDenomination
(
val
)
{
handleSearch
(
)
{
return
isNaN
(
val
)
?
val
:
(
val
/
100
).
toFixed
(
2
)
+
'元'
this
.
getList
()
},
},
getList
(
page
,
isResetPage
=
false
,
isMount
=
false
)
{
getList
()
{
this
.
tableParamsL
=
this
.
$common
.
utils
.
deepClone
(
this
.
tableParams
)
this
.
tableParamsL
.
tableColumns
.
splice
(
3
,
0
,
{
label
:
'直充面额'
,
prop
:
'rechargeDenomination'
,
width
:
100
})
var
params
=
{
var
params
=
{
...
this
.
searchForm
,
...
this
.
searchForm
,
status
:
2
,
merchantId
:
this
.
merchantId
pageNum
:
isResetPage
?
1
:
this
.
$refs
.
equityRef
.
page
.
pageNum
,
pageSize
:
isResetPage
?
10
:
this
.
$refs
.
equityRef
.
page
.
pageSize
}
}
this
.
loading
=
true
this
.
loading
=
true
this
.
$apis
.
giftBag
this
.
$apis
.
giftBag
.
equityMerchant
(
params
)
.
equityMerchant
(
params
)
.
then
(
res
=>
{
.
then
(
res
=>
{
// 重置分页组件
this
.
EquityList
=
res
.
packageConfigs
if
(
this
.
$refs
.
equityRef
&&
isResetPage
)
{
this
.
$refs
.
equityRef
.
tableHeightValues
=
'52vh'
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
.
recoverySelected
()
this
.
recoveryTotal
()
this
.
$nextTick
(()
=>
{
this
.
initSelected
=
null
})
this
.
$refs
.
equityRef
.
tableHeightValues
=
'50vh'
})
})
.
finally
(()
=>
{
.
finally
(()
=>
{
this
.
loading
=
false
this
.
loading
=
false
})
})
},
},
handleTabClick
()
{
recoverySelected
()
{
this
.
getList
({},
true
)
console
.
log
(
this
.
selectedEquityLists
)
this
.
recoverySelected
()
this
.
selectedEquityLists
.
forEach
(
item
=>
{
},
var
idx
=
this
.
EquityList
.
findIndex
(
k
=>
k
.
packageCode
==
item
.
packageCode
)
handleSearch
()
{
if
(
idx
!=
-
1
)
{
this
.
getList
({},
true
)
this
.
$refs
.
equityRef
.
$refs
[
this
.
tableParams
.
mutiSelectName
+
'MutiTable'
].
toggleRowSelection
(
this
.
EquityList
[
idx
],
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
)
{
deleteSelected
(
deleteList
)
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
deleteList
.
forEach
(
row
=>
{
var
idx
=
this
.
EquityList
.
findIndex
(
k
=>
k
.
packageCode
==
deleteList
.
packageCode
)
var
idx
=
this
.
EquityList
.
findIndex
(
k
=>
k
.
id
==
row
.
id
)
if
(
idx
!=
-
1
)
{
if
(
idx
!=
-
1
)
{
this
.
$refs
.
equityRef
.
$refs
[
this
.
tableParams
.
mutiSelectName
+
'MutiTable'
].
toggleRowSelection
(
this
.
EquityList
[
idx
],
false
)
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
)
{
handleSelectionTable
(
val
)
{
var
list
=
this
.
$common
.
utils
.
deepClone
(
this
.
selectedList
)
this
.
selectedList
=
val
// 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
()
{
handleEquityConfirm
()
{
// if (!this.EquityList.length) {
if
(
this
.
selectedList
.
length
==
0
)
{
// var params = {
this
.
$message
.
error
(
'请选择权益'
)
// 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
return
}
}
this
.
$emit
(
'handleEquityConfirm'
,
selectedData
)
this
.
$emit
(
'handleEquityConfirm'
,
this
.
selectedList
)
},
},
handleEquityClose
()
{
handleEquityClose
()
{
this
.
$emit
(
'handleEquityClose'
)
this
.
$emit
(
'handleEquityClose'
)
...
...
src/views/activityLink/editActivity.vue
View file @
d5b986c
...
@@ -111,23 +111,20 @@
...
@@ -111,23 +111,20 @@
<div
slot=
"selectEquityBtn"
>
<div
slot=
"selectEquityBtn"
>
<el-button
type=
"default"
class=
"el-icon-plus"
@
click=
"handleEquityAdd"
>
选择服务
</el-button>
<el-button
type=
"default"
class=
"el-icon-plus"
@
click=
"handleEquityAdd"
>
选择服务
</el-button>
</div>
</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-panel"
slot=
"equityListBlock"
style=
"width: 700px"
:style=
"{ 'margin-left': defaultLabelWidth }"
v-show=
"
selectedEquityList.length
"
>
<div
class=
"gift-block"
>
<div
class=
"gift-block"
>
<div
class=
"gift-title"
>
<div
class=
"gift-title"
>
本次权益服务选择共
本次权益服务选择共
<span
class=
"price"
>
{{
totalEstimatedCost
}}
</span>
<span
class=
"price"
>
{{
selectedEquityList.length
}}
</span>
项
项
</div>
</div>
<div
v-for=
"(item, index) in orderShow"
:key=
"index"
>
<div
class=
"gift-box"
v-show=
"selectedEquityList.length"
>
<div
class=
"gift-box"
v-show=
"couponObj[item].list.length"
>
<!-- <div class="gift-label">{{ couponObj[item].label }}:</div> -->
<!-- <div class="gift-label">{{ couponObj[item].label }}:</div> -->
<img
class=
"server-type"
:src=
"require(`@/assets/coupon/equity.png`)"
/>
<img
class=
"server-type"
:src=
"require(`@/assets/coupon/equity.png`)"
/>
<div
class=
"gift-content"
>
<div
class=
"gift-content"
>
<div
class=
"gift-item"
v-for=
"(subItem, subIndex) in selectedEquityList"
:key=
"subIndex"
>
<div
class=
"gift-item"
v-for=
"(subItem, subIndex) in couponObj[item].list"
:key=
"subIndex"
>
<p
:class=
"['gift-coupon-name']"
>
{{ subItem.packageName }}
</p>
<span
:class=
"['circle', subItem.status == '3' ? ' grey' : '']"
></span>
<i
class=
"el-icon-delete"
style=
"color: #c6c6c6"
@
click=
"handleEquityDelete(subIndex)"
></i>
<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>
</div>
...
@@ -386,7 +383,7 @@
...
@@ -386,7 +383,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-equity-dialog
:merchantId=
"editForm.merchantId"
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>
...
@@ -501,6 +498,7 @@ export default {
...
@@ -501,6 +498,7 @@ export default {
choseItemList
:
[],
choseItemList
:
[],
selectedMealList
:
[],
selectedMealList
:
[],
selectedGoodsList
:
[],
selectedGoodsList
:
[],
selectedEquityList
:
[],
goodsLoading
:
false
,
goodsLoading
:
false
,
couponObj
:
JSON
.
parse
(
JSON
.
stringify
(
couponObj
)),
couponObj
:
JSON
.
parse
(
JSON
.
stringify
(
couponObj
)),
goodsObj
:
JSON
.
parse
(
JSON
.
stringify
(
goodsObj
)),
goodsObj
:
JSON
.
parse
(
JSON
.
stringify
(
goodsObj
)),
...
@@ -747,10 +745,6 @@ export default {
...
@@ -747,10 +745,6 @@ export default {
{
{
optionId
:
7
,
optionId
:
7
,
optionLabel
:
'次新车转化'
optionLabel
:
'次新车转化'
},
{
optionId
:
3
,
optionLabel
:
'其他'
}
}
],
],
optionId
:
'optionId'
,
optionId
:
'optionId'
,
...
@@ -1483,6 +1477,11 @@ export default {
...
@@ -1483,6 +1477,11 @@ export default {
this
.
recoveryTotalPrice
()
this
.
recoveryTotalPrice
()
this
.
recoveryGiftList
()
this
.
recoveryGiftList
()
},
},
handleEquityConfirm
(
selectedData
)
{
this
.
selectedEquityList
=
selectedData
console
.
log
(
this
.
selectedEquityList
)
this
.
handleEquityClose
()
},
setNameHide
(
formName
,
name
,
status
)
{
setNameHide
(
formName
,
name
,
status
)
{
name
.
forEach
(
i
=>
{
name
.
forEach
(
i
=>
{
var
idx
=
this
[
formName
].
findIndex
(
item
=>
item
.
name
==
i
)
var
idx
=
this
[
formName
].
findIndex
(
item
=>
item
.
name
==
i
)
...
@@ -1519,6 +1518,9 @@ export default {
...
@@ -1519,6 +1518,9 @@ export default {
this
.
recoveryTotalPrice
()
this
.
recoveryTotalPrice
()
this
.
recoveryGiftList
()
this
.
recoveryGiftList
()
},
},
handleEquityDelete
(
idx
)
{
this
.
selectedEquityList
.
splice
(
idx
,
1
)
},
recoveryCoupon
()
{
recoveryCoupon
()
{
this
.
orderShow
.
forEach
(
item
=>
{
this
.
orderShow
.
forEach
(
item
=>
{
this
.
couponObj
[
item
].
list
=
[]
this
.
couponObj
[
item
].
list
=
[]
...
@@ -1914,6 +1916,14 @@ export default {
...
@@ -1914,6 +1916,14 @@ export default {
if
(
info
.
activityPrice
)
{
if
(
info
.
activityPrice
)
{
this
.
editForm
.
activityPrice
=
info
.
activityPrice
/
100
this
.
editForm
.
activityPrice
=
info
.
activityPrice
/
100
}
}
if
(
info
.
serviceMerchantPackageConfigDTOS
&&
info
.
serviceMerchantPackageConfigDTOS
.
length
)
{
this
.
selectedEquityList
=
info
.
serviceMerchantPackageConfigDTOS
.
map
(
item
=>
{
return
{
packageCode
:
item
.
packageCode
,
packageName
:
item
.
packageName
}
})
}
// 活动音乐
// 活动音乐
if
(
info
.
activityMusic
)
{
if
(
info
.
activityMusic
)
{
var
checkIdx
=
this
.
musicList
.
map
(
item
=>
item
.
addr
).
findIndex
(
k
=>
k
==
info
.
activityMusic
)
var
checkIdx
=
this
.
musicList
.
map
(
item
=>
item
.
addr
).
findIndex
(
k
=>
k
==
info
.
activityMusic
)
...
@@ -1966,6 +1976,7 @@ export default {
...
@@ -1966,6 +1976,7 @@ export default {
if
(
!
this
.
formDescribeList
.
length
)
{
if
(
!
this
.
formDescribeList
.
length
)
{
this
.
formDescribeList
=
[{
value
:
''
}]
this
.
formDescribeList
=
[{
value
:
''
}]
}
}
if
(
!
this
.
editForm
.
playingType
)
this
.
editForm
.
playingType
=
3
// 服务评价
// 服务评价
if
(
this
.
editForm
.
activityExperienceDTOs
.
length
)
{
if
(
this
.
editForm
.
activityExperienceDTOs
.
length
)
{
this
.
editForm
.
activityExperienceDTOs
.
forEach
((
item
,
index
)
=>
{
this
.
editForm
.
activityExperienceDTOs
.
forEach
((
item
,
index
)
=>
{
...
@@ -2105,7 +2116,8 @@ export default {
...
@@ -2105,7 +2116,8 @@ export default {
}
}
})
})
param
.
couponCreateRequests
=
couponLists
.
concat
(
selectedGoodsList
)
||
[]
param
.
couponCreateRequests
=
couponLists
.
concat
(
selectedGoodsList
)
||
[]
console
.
log
(
param
.
couponCreateRequests
)
const
equityServices
=
this
.
selectedEquityList
.
map
(
i
=>
i
.
packageCode
)
param
.
equityServices
=
equityServices
.
join
(
','
)
delete
param
.
couponList
delete
param
.
couponList
// 标杆门店总产值/元(已结束战报)
// 标杆门店总产值/元(已结束战报)
if
(
param
.
activityActionReport
.
signMerchantProduceCount
)
{
if
(
param
.
activityActionReport
.
signMerchantProduceCount
)
{
...
@@ -2823,6 +2835,10 @@ export default {
...
@@ -2823,6 +2835,10 @@ export default {
.gift-box
{
.gift-box
{
display
:
flex
;
display
:
flex
;
padding
:
10px
0
10px
10px
;
padding
:
10px
0
10px
10px
;
img
{
width
:
58px
;
height
:
22px
;
}
.gift-logo
{
.gift-logo
{
width
:
58px
;
width
:
58px
;
height
:
22px
;
height
:
22px
;
...
...
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