Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 cf368c2a
authored
Feb 24, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3.5.0' of
http://192.168.3.233:8090/saas/scrm-micro-marketing
into xuyl_dev_sop
2 parents
7223c705
f5079e2e
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
166 additions
and
46 deletions
src/api/modules/center.js
src/assets/css/public.scss
src/views/friendGroup/components/basicInfo.vue
src/views/friendGroup/friendGroupDetail.vue
src/views/memberCenter/center.vue
src/views/memberCenter/order.vue
src/views/memberCenter/setmealAddUpdate.vue
src/views/seckillActivity/editCrowdFund.vue
src/api/modules/center.js
View file @
cf368c2
...
@@ -78,6 +78,15 @@ const getCardtypeList = params => {
...
@@ -78,6 +78,15 @@ const getCardtypeList = params => {
returnAll
:
true
returnAll
:
true
})
})
}
}
// 重置会员权益卡
const
resetCard
=
params
=>
{
params
.
method
=
'scrm.api.equity.card.reset'
return
http
({
url
:
'/rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
returnAll
:
true
})
}
export
{
resetCard
,
getCenterListApi
,
getMoreMerchant
,
updateCardContent
,
getCardContent
,
memberExportApi
,
getQrUrl
,
getCardtypeList
}
export
{
getCenterListApi
,
getMoreMerchant
,
updateCardContent
,
getCardContent
,
memberExportApi
,
getQrUrl
,
getCardtypeList
}
src/assets/css/public.scss
View file @
cf368c2
...
@@ -603,6 +603,9 @@ html {
...
@@ -603,6 +603,9 @@ html {
.marketing
.pd-20
{
.marketing
.pd-20
{
padding
:
0
20px
;
padding
:
0
20px
;
}
}
.marketing
.hand
{
cursor
:
pointer
;
}
.el-tooltip__popper.is-light
{
.el-tooltip__popper.is-light
{
background
:
#ffffff
;
background
:
#ffffff
;
box-shadow
:
0px
4px
12px
0px
rgba
(
0
,
0
,
0
,
0
.08
);
box-shadow
:
0px
4px
12px
0px
rgba
(
0
,
0
,
0
,
0
.08
);
...
...
src/views/friendGroup/components/basicInfo.vue
View file @
cf368c2
...
@@ -156,7 +156,7 @@ export default {
...
@@ -156,7 +156,7 @@ export default {
},
},
watch
:
{
watch
:
{
basicInfo
(
val
)
{
basicInfo
(
val
)
{
if
(
val
.
userList
.
length
>
4
)
{
if
(
val
.
userList
?
.
length
>
4
)
{
this
.
limitUserList
=
val
.
userList
.
slice
(
0
,
4
)
this
.
limitUserList
=
val
.
userList
.
slice
(
0
,
4
)
}
else
{
}
else
{
this
.
limitUserList
=
val
.
userList
this
.
limitUserList
=
val
.
userList
...
...
src/views/friendGroup/friendGroupDetail.vue
View file @
cf368c2
...
@@ -50,6 +50,7 @@
...
@@ -50,6 +50,7 @@
<template
v-if=
"activeName == 1 || activeName == 4"
>
<template
v-if=
"activeName == 1 || activeName == 4"
>
<el-form-item
label=
"是否互动:"
>
<el-form-item
label=
"是否互动:"
>
<el-select
v-model=
"drawerSearchForm.isInteract"
placeholder=
""
>
<el-select
v-model=
"drawerSearchForm.isInteract"
placeholder=
""
>
<el-option
label=
"全部"
value=
""
></el-option>
<el-option
label=
"是"
value=
"true"
></el-option>
<el-option
label=
"是"
value=
"true"
></el-option>
<el-option
label=
"否"
value=
"false"
></el-option>
<el-option
label=
"否"
value=
"false"
></el-option>
</el-select>
</el-select>
...
@@ -134,7 +135,7 @@ export default {
...
@@ -134,7 +135,7 @@ export default {
}
}
},
},
{
{
label
:
'已
发送
客户'
,
label
:
'已
送达
客户'
,
prop
:
'customerCount'
,
prop
:
'customerCount'
,
addHtml
:
'customerCount'
addHtml
:
'customerCount'
// formatter: cellValue => {
// formatter: cellValue => {
...
@@ -144,33 +145,42 @@ export default {
...
@@ -144,33 +145,42 @@ export default {
{
{
label
:
'互动客户'
,
label
:
'互动客户'
,
prop
:
'
sendStaff
Count'
,
prop
:
'
interact
Count'
,
width
:
'110'
width
:
'110'
},
},
{
{
label
:
'互动率'
,
label
:
'互动率'
,
prop
:
'sendStaffCount'
,
prop
:
'interactRatio'
,
width
:
'110'
width
:
'110'
,
formatter
:
cellValue
=>
{
return
(
cellValue
.
interactRatio
*
100
).
toFixed
(
0
)
+
'%'
}
},
},
{
{
label
:
'点赞客户'
,
label
:
'点赞客户'
,
prop
:
'
unSendStaff
Count'
,
prop
:
'
like
Count'
,
width
:
'110'
width
:
'110'
},
},
{
{
label
:
'点赞率'
,
label
:
'点赞率'
,
prop
:
'copyCustomerCount'
,
prop
:
'likeRatio'
,
width
:
'110'
width
:
'110'
,
formatter
:
cellValue
=>
{
return
(
cellValue
.
likeRatio
*
100
).
toFixed
(
0
)
+
'%'
}
},
},
{
{
label
:
'评论客户'
,
label
:
'评论客户'
,
prop
:
'co
pyCustomer
Count'
,
prop
:
'co
mment
Count'
,
width
:
'110'
width
:
'110'
},
},
{
{
label
:
'评论率'
,
label
:
'评论率'
,
prop
:
'copyCustomerCount'
,
prop
:
'commentRatio'
,
width
:
'110'
width
:
'110'
,
formatter
:
cellValue
=>
{
return
(
cellValue
.
commentRatio
*
100
).
toFixed
(
0
)
+
'%'
}
},
},
{
{
label
:
'操作'
,
label
:
'操作'
,
...
@@ -299,7 +309,7 @@ export default {
...
@@ -299,7 +309,7 @@ export default {
params
.
isFollowerStaff
=
isFollowerStaff
params
.
isFollowerStaff
=
isFollowerStaff
this
.
$apis
.
customerTransform
.
listDepartmentTree
(
params
).
then
(
res
=>
{
this
.
$apis
.
customerTransform
.
listDepartmentTree
(
params
).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
this
.
tableEmpData
=
this
.
getEmployee
(
res
)
this
.
tableEmpData
=
[{
staffName
:
'全部'
,
staffId
:
''
}].
concat
(
this
.
getEmployee
(
res
)
)
}
else
{
}
else
{
this
.
treeData
=
[]
this
.
treeData
=
[]
}
}
...
@@ -371,14 +381,14 @@ export default {
...
@@ -371,14 +381,14 @@ export default {
})
})
},
},
getStatistics
(
data
)
{
getStatistics
(
data
)
{
console
.
log
(
data
)
//朋友圈id
//朋友圈id
this
.
drawerSearchForm
.
scrmMomentId
=
this
.
$refs
.
basicInfo
.
basicInfo
.
id
this
.
drawerSearchForm
.
scrmMomentId
=
this
.
$refs
.
basicInfo
.
basicInfo
.
id
this
.
drawerSearchForm
.
type
=
''
this
.
drawerSearchForm
.
type
=
''
this
.
drawerSearchForm
.
isInteract
=
''
this
.
drawerSearchForm
.
isInteract
=
''
this
.
drawerSearchForm
.
momentStaffId
=
''
this
.
drawerSearchForm
.
momentStaffId
=
''
this
.
activeName
=
data
.
activeName
this
.
activeName
=
data
.
activeName
const
titleArray
=
[
'已送达客户'
,
'点赞客户'
,
'评论客户'
,
'已送达客户'
]
this
.
infoTitle
=
titleArray
[
data
.
activeName
-
1
]
if
(
data
.
activeName
==
2
)
{
if
(
data
.
activeName
==
2
)
{
this
.
drawerSearchForm
.
type
=
1
this
.
drawerSearchForm
.
type
=
1
}
}
...
...
src/views/memberCenter/center.vue
View file @
cf368c2
<
template
>
<
template
>
<div
class=
"marketing live-room"
>
<div
class=
"marketing live-room"
>
<div
class=
"memberCardWrap"
v-if=
"!(merchantModel == 2 && accountLevel == 1)"
>
<div
class=
"memberCardWrap"
v-if=
"
showGh||
!(merchantModel == 2 && accountLevel == 1)"
>
<div
class=
"cardBoxWrap"
>
<div
class=
"cardBoxWrap"
>
<img
src=
"@/assets/memberCard.png"
alt=
""
/>
<img
src=
"@/assets/memberCard.png"
alt=
""
/>
<div
class=
"memberCardName"
>
{{
ruleForm
.
cardName
}}
</div>
<div
class=
"memberCardName"
>
{{
ruleForm
.
cardName
}}
</div>
...
@@ -16,7 +16,9 @@
...
@@ -16,7 +16,9 @@
<template
v-if=
"showGh"
>
<template
v-if=
"showGh"
>
<div
class=
"member-card"
><img
src=
"@/assets/silver.png"
alt=
""
/></div>
<div
class=
"member-card"
><img
src=
"@/assets/silver.png"
alt=
""
/></div>
</
template
>
</
template
>
<
template
v-if=
"(showGh && accountLevel != 4) || !showGh"
>
<GLButton
@
click=
"openEditWrap"
fn=
"编辑"
mode=
"div"
><img
src=
"@/assets/editBlue.png"
class=
"editIcon"
@
click=
"openEditWrap"
alt=
""
/></GLButton>
<GLButton
@
click=
"openEditWrap"
fn=
"编辑"
mode=
"div"
><img
src=
"@/assets/editBlue.png"
class=
"editIcon"
@
click=
"openEditWrap"
alt=
""
/></GLButton>
</
template
>
</div>
</div>
<
template
v-if=
"showGh"
>
<
template
v-if=
"showGh"
>
<div
class=
"flex-1 mt-10 line-20"
>
<div
class=
"flex-1 mt-10 line-20"
>
...
@@ -61,12 +63,12 @@
...
@@ -61,12 +63,12 @@
<div
class=
"pricesMerge"
>
<div
class=
"pricesMerge"
>
<el-form-item
label=
"售价/元:"
size=
"small"
prop=
"price"
style=
"width: 300px"
>
<el-form-item
label=
"售价/元:"
size=
"small"
prop=
"price"
style=
"width: 300px"
>
<el-input
v-model=
"ruleForm.price"
size=
"small"
style=
"width: 136px
;
"
placeholder=
"请输入售价"
@
keyup
.
native=
"ruleForm.price = oninput(ruleForm.price)"
>
<el-input
v-model=
"ruleForm.price"
size=
"small"
style=
"width: 136px"
placeholder=
"请输入售价"
@
keyup
.
native=
"ruleForm.price = oninput(ruleForm.price)"
>
<!-- <span slot="suffix" class="suffix-label">元</span> -->
<!-- <span slot="suffix" class="suffix-label">元</span> -->
</el-input>
</el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"市场价/元:"
prop=
"marketPrice"
size=
"small"
style=
"width: 300px"
>
<el-form-item
label=
"市场价/元:"
prop=
"marketPrice"
size=
"small"
style=
"width: 300px"
>
<el-input
v-model=
"ruleForm.marketPrice"
size=
"small"
style=
"width: 136px
;
"
placeholder=
"请输入市场价"
@
keyup
.
native=
"ruleForm.marketPrice = oninput(ruleForm.marketPrice)"
>
<el-input
v-model=
"ruleForm.marketPrice"
size=
"small"
style=
"width: 136px"
placeholder=
"请输入市场价"
@
keyup
.
native=
"ruleForm.marketPrice = oninput(ruleForm.marketPrice)"
>
<!-- <span slot="suffix" class="suffix-label">元</span> -->
<!-- <span slot="suffix" class="suffix-label">元</span> -->
</el-input>
</el-input>
</el-form-item>
</el-form-item>
...
@@ -108,6 +110,9 @@
...
@@ -108,6 +110,9 @@
<div>
{{ scope.scope.accountName }}
</div>
<div>
{{ scope.scope.accountName }}
</div>
<div>
{{ scope.scope.mobile }}
</div>
<div>
{{ scope.scope.mobile }}
</div>
</span>
</span>
<span
slot=
"optionBtns"
slot-scope=
"scope"
v-if=
"scope.scope.goldMemberStatus == 1"
>
<span
class=
"txt-blue hand"
@
click=
"chancelMember(scope.scope)"
>
取消会员
</span>
</span>
</GLTable>
</GLTable>
</div>
</div>
<GLDialog
:mode=
"mode"
title=
"权益详情"
:hasFooter=
"hasFooter"
:type=
"'error'"
:visible
.
sync=
"isDialogVisible"
>
<GLDialog
:mode=
"mode"
title=
"权益详情"
:hasFooter=
"hasFooter"
:type=
"'error'"
:visible
.
sync=
"isDialogVisible"
>
...
@@ -161,7 +166,7 @@ const cloneText = message => {
...
@@ -161,7 +166,7 @@ const cloneText = message => {
input
.
setSelectionRange
(
0
,
input
.
value
.
length
),
document
.
execCommand
(
'Copy'
)
input
.
setSelectionRange
(
0
,
input
.
value
.
length
),
document
.
execCommand
(
'Copy'
)
document
.
body
.
removeChild
(
input
)
document
.
body
.
removeChild
(
input
)
}
}
import
{
getCenterListApi
,
getMoreMerchant
,
getCardContent
,
updateCardContent
,
memberExportApi
,
getQrUrl
,
getCardtypeList
}
from
'@/api/modules/center'
import
{
getCenterListApi
,
getMoreMerchant
,
getCardContent
,
updateCardContent
,
memberExportApi
,
getQrUrl
,
getCardtypeList
,
resetCard
}
from
'@/api/modules/center'
import
{
statusList
,
memberTypeList
,
exportFn
}
from
'@/common/constant'
import
{
statusList
,
memberTypeList
,
exportFn
}
from
'@/common/constant'
export
default
{
export
default
{
filters
:
{
filters
:
{
...
@@ -173,7 +178,7 @@ export default {
...
@@ -173,7 +178,7 @@ export default {
return
{
return
{
mode
:
'mid'
,
mode
:
'mid'
,
hasFooter
:
false
,
hasFooter
:
false
,
showGh
:
fals
e
,
showGh
:
tru
e
,
promotionForm
:
{
promotionForm
:
{
QRurl
:
''
,
QRurl
:
''
,
QRcode
:
''
QRcode
:
''
...
@@ -257,7 +262,6 @@ export default {
...
@@ -257,7 +262,6 @@ export default {
{
{
label
:
'会员用户'
,
label
:
'会员用户'
,
prop
:
'accountName'
,
prop
:
'accountName'
,
width
:
'180'
,
addHtml
:
'accountName'
addHtml
:
'accountName'
},
},
{
{
...
@@ -370,7 +374,8 @@ export default {
...
@@ -370,7 +374,8 @@ export default {
this
.
merchantModel
=
this
.
$globalState
.
session
.
merchantModel
this
.
merchantModel
=
this
.
$globalState
.
session
.
merchantModel
this
.
accountLevel
=
this
.
$globalState
.
session
.
accountLevel
this
.
accountLevel
=
this
.
$globalState
.
session
.
accountLevel
}
}
this
.
showGh
=
window
.
location
.
host
.
indexOf
(
'cgacar'
)
!=
-
1
// this.showGh = window.location.host.indexOf('cgacar') != -1
if
(
this
.
showGh
)
this
.
judgeGh
()
this
.
getCardContentFun
()
this
.
getCardContentFun
()
this
.
getCardtypeList
()
this
.
getCardtypeList
()
},
},
...
@@ -378,6 +383,41 @@ export default {
...
@@ -378,6 +383,41 @@ export default {
this
.
getOptionsList
(
'searchFormData'
)
this
.
getOptionsList
(
'searchFormData'
)
},
},
methods
:
{
methods
:
{
judgeGh
()
{
if
(
this
.
accountLevel
==
4
)
{
this
.
baseData
.
openModeList
.
push
({
dictValue
:
13
,
dictLabel
:
'通过门店套餐赠送'
})
}
this
.
tableParams
.
tableColumns
.
push
({
label
:
'操作'
,
width
:
'140px'
,
addHtml
:
'optionBtns'
})
},
chancelMember
(
data
)
{
this
.
$messageBox
.
confirm
(
'此操作会将该会员用户的剩余会员有效天数扣减1年或归0,是否确认继续操作?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
// type: 'error',
callback
:
action
=>
{
if
(
action
==
'confirm'
)
{
resetCard
({
mobile
:
data
.
mobile
}).
then
(
res
=>
{
this
.
$message
({
message
:
res
.
code
==
'0'
?
'取消成功'
:
'将该用户的会员有效天数扣减365天,不足365天则直接将会员身份变更为普通会员'
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
})
if
(
res
.
code
==
'0'
)
{
this
.
handleSearch
()
}
})
}
}
})
},
getOptionsList
(
formName
,
hasAll
=
true
,
refreshSigle
)
{
getOptionsList
(
formName
,
hasAll
=
true
,
refreshSigle
)
{
if
(
refreshSigle
)
{
if
(
refreshSigle
)
{
var
item
=
this
[
formName
].
find
(
k
=>
k
.
name
==
refreshSigle
)
var
item
=
this
[
formName
].
find
(
k
=>
k
.
name
==
refreshSigle
)
...
@@ -628,9 +668,9 @@ export default {
...
@@ -628,9 +668,9 @@ export default {
.memberCardWrap
{
.memberCardWrap
{
display
:
flex
;
display
:
flex
;
background-color
:
#fff
;
background-color
:
#fff
;
height
:
190px
;
height
:
auto
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding
:
1
0px
8px
;
padding
:
2
0px
8px
;
box-shadow
:
0
1px
5px
0
rgba
(
38
,
38
,
38
,
0.1
);
box-shadow
:
0
1px
5px
0
rgba
(
38
,
38
,
38
,
0.1
);
.cardBoxWrap
{
.cardBoxWrap
{
position
:
relative
;
position
:
relative
;
...
...
src/views/memberCenter/order.vue
View file @
cf368c2
...
@@ -72,7 +72,7 @@
...
@@ -72,7 +72,7 @@
<div
class=
"dialog-refund"
>
<div
class=
"dialog-refund"
>
<img
class=
"img"
src=
"../../images/warn.png"
/>
<img
class=
"img"
src=
"../../images/warn.png"
/>
<div>
该会员在升级黑卡会员期间,已购买过生活权益
</div>
<div>
该会员在升级黑卡会员期间,已购买过生活权益
</div>
<div
style=
"color: #
FF4D4F;padding: 6px 0;
"
>
(时间:{{ orderDate }} 金额:{{ orderPrice }}元)
</div>
<div
style=
"color: #
ff4d4f; padding: 6px 0
"
>
(时间:{{ orderDate }} 金额:{{ orderPrice }}元)
</div>
<div>
暂不支持退款
</div>
<div>
暂不支持退款
</div>
</div>
</div>
</GLDialog>
</GLDialog>
...
@@ -102,6 +102,7 @@ export default {
...
@@ -102,6 +102,7 @@ export default {
accountLevel
:
0
,
//1,2,3,4工厂,省代,市代,门店
accountLevel
:
0
,
//1,2,3,4工厂,省代,市代,门店
url
:
url
,
url
:
url
,
isReload
:
true
,
isReload
:
true
,
showGh
:
true
,
size
:
'small'
,
size
:
'small'
,
searchForm
:
{
searchForm
:
{
orderStatus
:
''
,
//默认查询全部
orderStatus
:
''
,
//默认查询全部
...
@@ -157,7 +158,7 @@ export default {
...
@@ -157,7 +158,7 @@ export default {
name
:
'shareStaffName'
,
name
:
'shareStaffName'
,
type
:
'input'
,
type
:
'input'
,
maxlength
:
100
maxlength
:
100
}
,
}
],
],
choseList
:
[
'全部'
,
'待收货'
,
'已完成'
,
'退款|售后'
],
choseList
:
[
'全部'
,
'待收货'
,
'已完成'
,
'退款|售后'
],
currentIndex
:
1
,
currentIndex
:
1
,
...
@@ -290,6 +291,8 @@ export default {
...
@@ -290,6 +291,8 @@ export default {
this
.
merchantModel
=
this
.
$globalState
.
session
.
merchantModel
this
.
merchantModel
=
this
.
$globalState
.
session
.
merchantModel
this
.
accountLevel
=
this
.
$globalState
.
session
.
accountLevel
this
.
accountLevel
=
this
.
$globalState
.
session
.
accountLevel
}
}
// this.showGh = window.location.host.indexOf('cgacar') != -1
if
(
this
.
showGh
)
this
.
judgeGh
()
// if (this.$isGroupUp) {
// if (this.$isGroupUp) {
// let idx = this.tableParams.tableColumns.findIndex(item => item.label == '推荐人')
// let idx = this.tableParams.tableColumns.findIndex(item => item.label == '推荐人')
// this.tableParams.tableColumns.splice(idx, 1)
// this.tableParams.tableColumns.splice(idx, 1)
...
@@ -299,6 +302,41 @@ export default {
...
@@ -299,6 +302,41 @@ export default {
this
.
getOptionsList
(
'searchFormData'
)
this
.
getOptionsList
(
'searchFormData'
)
},
},
methods
:
{
methods
:
{
judgeGh
()
{
this
.
searchFormData
.
push
({
label
:
'收款商户'
,
name
:
'payMerchantName'
,
type
:
'input'
,
maxlength
:
100
},
{
label
:
'车牌号'
,
name
:
'plateNum'
,
type
:
'input'
,
maxlength
:
100
},
{
label
:
'车架号'
,
name
:
'standNo'
,
type
:
'input'
,
maxlength
:
100
})
this
.
tableParams
.
tableColumns
.
push
({
label
:
'收款商户'
,
width
:
'140px'
,
prop
:
'payMerchantName'
},
{
label
:
'车牌号'
,
width
:
'140px'
,
prop
:
'plateNum'
},
{
label
:
'车架号'
,
width
:
'140px'
,
prop
:
'standNo'
})
},
getOptionsList
(
formName
,
hasAll
=
true
,
refreshSigle
)
{
getOptionsList
(
formName
,
hasAll
=
true
,
refreshSigle
)
{
if
(
refreshSigle
)
{
if
(
refreshSigle
)
{
var
item
=
this
[
formName
].
find
(
k
=>
k
.
name
==
refreshSigle
)
var
item
=
this
[
formName
].
find
(
k
=>
k
.
name
==
refreshSigle
)
...
...
src/views/memberCenter/setmealAddUpdate.vue
View file @
cf368c2
...
@@ -29,7 +29,13 @@
...
@@ -29,7 +29,13 @@
</div>
</div>
<div
class=
"el-form-item__error"
v-if=
"setmealContentRules"
>
请选择套餐
</div>
<div
class=
"el-form-item__error"
v-if=
"setmealContentRules"
>
请选择套餐
</div>
</el-form-item>
</el-form-item>
<el-form-item
label=
"赠送金卡会员:"
prop=
"giveGoldFlag"
v-if=
"showGh"
>
<el-radio-group
v-model=
"ruleForm.giveGoldFlag"
>
<el-radio
:label=
"2"
>
赠送
</el-radio>
<el-radio
:label=
"1"
>
不赠送
</el-radio>
</el-radio-group>
</el-form-item>
<span
class=
"give-tip"
>
选择赠送,客户购买该套餐后即开通一年金卡会员权益
</span>
<el-form-item
size=
"small"
label=
"套餐售价/元:"
prop=
"packagePrice"
>
<el-form-item
size=
"small"
label=
"套餐售价/元:"
prop=
"packagePrice"
>
<el-input
size=
"small"
v-model=
"ruleForm.packagePrice"
placeholder=
"请输入套餐售价"
@
keyup
.
native=
"ruleForm.packagePrice = oninput(ruleForm.packagePrice)"
>
<el-input
size=
"small"
v-model=
"ruleForm.packagePrice"
placeholder=
"请输入套餐售价"
@
keyup
.
native=
"ruleForm.packagePrice = oninput(ruleForm.packagePrice)"
>
<!--
<span
slot=
"suffix"
class=
"suffix-label"
>
元
</span>
-->
<!--
<span
slot=
"suffix"
class=
"suffix-label"
>
元
</span>
-->
...
@@ -86,8 +92,8 @@ export default {
...
@@ -86,8 +92,8 @@ export default {
var
validatePrice
=
(
rule
,
value
,
callback
)
=>
{
var
validatePrice
=
(
rule
,
value
,
callback
)
=>
{
if
(
!
value
)
{
if
(
!
value
)
{
return
callback
(
new
Error
(
'请输入售价'
))
return
callback
(
new
Error
(
'请输入售价'
))
}
else
if
(
value
<
this
.
memberPrice
&&
this
.
accountLevel
!==
4
&&
this
.
showGh
)
{
}
else
if
(
value
<
this
.
memberPrice
&&
this
.
ruleForm
.
giveGoldFlag
==
2
&&
this
.
showGh
)
{
return
callback
(
new
Error
(
'套餐售价
需大于会员卡的售价
'
))
return
callback
(
new
Error
(
'套餐售价
不能低于会员卡价格
'
))
}
else
{
}
else
{
callback
()
callback
()
}
}
...
@@ -100,12 +106,14 @@ export default {
...
@@ -100,12 +106,14 @@ export default {
packagePrice
:
''
,
packagePrice
:
''
,
switchStatus
:
true
,
switchStatus
:
true
,
// couponList:[],
// couponList:[],
notes
:
''
notes
:
''
,
giveGoldFlag
:
''
},
},
copyRuleForm
:
{},
//用于检查页面信息是否改动
copyRuleForm
:
{},
//用于检查页面信息是否改动
rules
:
{
rules
:
{
packageName
:
[{
required
:
true
,
message
:
'请输入套餐名称'
,
trigger
:
'blur'
}],
packageName
:
[{
required
:
true
,
message
:
'请输入套餐名称'
,
trigger
:
'blur'
}],
packagePrice
:
[{
required
:
true
,
validator
:
validatePrice
,
trigger
:
'blur'
}]
packagePrice
:
[{
required
:
true
,
validator
:
validatePrice
,
trigger
:
'blur'
}],
giveGoldFlag
:
[{
required
:
true
,
message
:
'请选择金卡会员'
,
trigger
:
'change'
}]
},
},
allItemList
:
[],
allItemList
:
[],
choseItemList
:
[],
//['一年12次洗车券×1', '车身打蜡×2', '全车镀膜×1'],
choseItemList
:
[],
//['一年12次洗车券×1', '车身打蜡×2', '全车镀膜×1'],
...
@@ -163,7 +171,7 @@ export default {
...
@@ -163,7 +171,7 @@ export default {
copyTotalPrice
:
0
,
//用于检查页面信息是否改动
copyTotalPrice
:
0
,
//用于检查页面信息是否改动
id
:
this
.
$route
.
query
.
id
||
0
,
id
:
this
.
$route
.
query
.
id
||
0
,
accountLevel
:
0
,
//1,2,3,4工厂,省代,市代,门店
accountLevel
:
0
,
//1,2,3,4工厂,省代,市代,门店
showGh
:
fals
e
showGh
:
tru
e
}
}
},
},
computed
:
{
computed
:
{
...
@@ -186,27 +194,29 @@ export default {
...
@@ -186,27 +194,29 @@ export default {
this
.
merchantName
=
this
.
$globalState
.
session
.
merchantName
this
.
merchantName
=
this
.
$globalState
.
session
.
merchantName
this
.
accountLevel
=
this
.
$globalState
.
session
.
accountLevel
this
.
accountLevel
=
this
.
$globalState
.
session
.
accountLevel
}
}
let
href
=
window
.
location
.
host
this
.
showGh
=
href
.
indexOf
(
'cgacar'
)
!=
-
1
// this.showGh = window.location.host.indexOf('cgacar')
!= -1
if
(
this
.
showGh
)
{
if
(
this
.
showGh
)
{
this
.
getCardContentFun
()
this
.
getCardContentFun
()
}
}
if
(
this
.
id
)
{
this
.
getServiceInfo
()
this
.
getServiceInfo
()
}
else
{
this
.
ruleForm
.
giveGoldFlag
=
2
}
// this.getSetmealServiceFun() //获取服务套餐,执行完了之后去获取编辑详情
// this.getSetmealServiceFun() //获取服务套餐,执行完了之后去获取编辑详情
},
},
mounted
()
{
},
mounted
()
{},
methods
:
{
methods
:
{
//获取会员卡上方卡片的相关信息
//获取会员卡上方卡片的相关信息
getCardContentFun
()
{
getCardContentFun
()
{
if
(
this
.
accountLevel
!==
4
)
{
getCardContent
({
merchantId
:
this
.
merchantId
}).
then
(
res
=>
{
getCardContent
({
merchantId
:
this
.
merchantId
}).
then
(
res
=>
{
if
(
!
res
)
{
if
(
!
res
)
{
return
return
}
}
this
.
memberPrice
=
res
.
goodPrice
this
.
memberPrice
=
res
.
goodPrice
})
})
}
},
},
// 礼包
// 礼包
recoveryGiftList
()
{
recoveryGiftList
()
{
...
@@ -216,6 +226,11 @@ export default {
...
@@ -216,6 +226,11 @@ export default {
this
.
choseItemList
.
push
(
k
)
this
.
choseItemList
.
push
(
k
)
})
})
})
})
if
(
this
.
choseItemList
.
length
>
0
)
{
this
.
setmealContentRules
=
false
}
else
{
this
.
setmealContentRules
=
true
}
},
},
handleGiftDelete
(
attr
,
idx
)
{
handleGiftDelete
(
attr
,
idx
)
{
this
.
couponObj
[
attr
].
list
.
splice
(
idx
,
1
)
this
.
couponObj
[
attr
].
list
.
splice
(
idx
,
1
)
...
@@ -303,10 +318,6 @@ export default {
...
@@ -303,10 +318,6 @@ export default {
}
}
return
return
}
}
if
(
this
.
choseItemList
.
length
<=
0
)
{
this
.
setmealContentRules
=
true
return
}
if
(
this
.
id
)
{
if
(
this
.
id
)
{
//需要调config的接口????
//需要调config的接口????
...
@@ -322,6 +333,7 @@ export default {
...
@@ -322,6 +333,7 @@ export default {
param
.
packagePrice
=
this
.
ruleForm
.
packagePrice
param
.
packagePrice
=
this
.
ruleForm
.
packagePrice
param
.
notes
=
this
.
ruleForm
.
notes
param
.
notes
=
this
.
ruleForm
.
notes
param
.
switchStatus
=
this
.
ruleForm
.
switchStatus
?
1
:
0
param
.
switchStatus
=
this
.
ruleForm
.
switchStatus
?
1
:
0
if
(
this
.
showGh
)
param
.
giveGoldFlag
=
this
.
ruleForm
.
giveGoldFlag
let
lists
=
this
.
choseItemList
let
lists
=
this
.
choseItemList
for
(
var
k
in
lists
)
{
for
(
var
k
in
lists
)
{
param
[
`lists[
${
k
}
].serviceQuantity`
]
=
lists
[
k
].
couponAmount
param
[
`lists[
${
k
}
].serviceQuantity`
]
=
lists
[
k
].
couponAmount
...
@@ -357,6 +369,7 @@ export default {
...
@@ -357,6 +369,7 @@ export default {
params
.
packagePrice
=
this
.
ruleForm
.
packagePrice
params
.
packagePrice
=
this
.
ruleForm
.
packagePrice
params
.
notes
=
this
.
ruleForm
.
notes
params
.
notes
=
this
.
ruleForm
.
notes
params
.
switchStatus
=
this
.
ruleForm
.
switchStatus
?
1
:
0
params
.
switchStatus
=
this
.
ruleForm
.
switchStatus
?
1
:
0
if
(
this
.
showGh
)
params
.
giveGoldFlag
=
this
.
ruleForm
.
giveGoldFlag
let
list
=
this
.
choseItemList
let
list
=
this
.
choseItemList
for
(
var
i
in
list
)
{
for
(
var
i
in
list
)
{
params
[
`list[
${
i
}
].serviceQuantity`
]
=
list
[
i
].
couponAmount
params
[
`list[
${
i
}
].serviceQuantity`
]
=
list
[
i
].
couponAmount
...
@@ -677,5 +690,15 @@ export default {
...
@@ -677,5 +690,15 @@ export default {
margin-left
:
-110px
;
margin-left
:
-110px
;
}
}
}
}
.give-tip
{
font-weight
:
400
;
font-size
:
12px
;
color
:
#999999
;
display
:
block
;
margin
:
-15px
0
20px
154px
;
}
}
/
deep
/
.el-form-item__error
{
margin-left
:
154px
;
}
}
</
style
>
</
style
>
src/views/seckillActivity/editCrowdFund.vue
View file @
cf368c2
...
@@ -1117,7 +1117,7 @@ export default {
...
@@ -1117,7 +1117,7 @@ export default {
relateStoreVisible
:
false
,
// 选择门店
relateStoreVisible
:
false
,
// 选择门店
limitPurchaseDisabled
:
fals
e
,
//多商品禁用限购
limitPurchaseDisabled
:
tru
e
,
//多商品禁用限购
selectedList
:
[],
selectedList
:
[],
selectedProInfo
:
[],
selectedProInfo
:
[],
...
@@ -2704,9 +2704,6 @@ export default {
...
@@ -2704,9 +2704,6 @@ export default {
this
.
$set
(
this
.
editForm
,
'activityTime'
,
[
info
.
startTime
,
info
.
endTime
])
this
.
$set
(
this
.
editForm
,
'activityTime'
,
[
info
.
startTime
,
info
.
endTime
])
this
.
selectedProInfo
=
selectedProInfo
this
.
selectedProInfo
=
selectedProInfo
//是否限购
if
(
res
.
goodsList
.
length
>
1
)
this
.
limitPurchaseDisabled
=
true
// 预估销量
// 预估销量
if
(
info
.
predictVolume
)
{
if
(
info
.
predictVolume
)
{
this
.
editForm
.
predictVolume
=
(
info
.
predictVolume
/
100
).
toFixed
(
2
)
this
.
editForm
.
predictVolume
=
(
info
.
predictVolume
/
100
).
toFixed
(
2
)
...
...
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