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 b4bc6e89
authored
Dec 07, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://192.168.3.233:8090/saas/scrm-micro-marketing
2 parents
21589821
fca5a726
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
287 additions
and
174 deletions
src/assets/css/public.scss
src/components/glsx-dialog/index.vue
src/components/selectMutiProDialog/indexForCoupon.vue
src/views/couponManage/editCashCoupon.vue
src/views/customerTransform/addCustomer.vue
src/views/customerTransform/addCustomerGroup.vue
src/views/customerTransform/components/welcomeWords.vue
src/views/customerTransform/detailCustomer.vue
src/views/memberCenter/center.vue
src/views/memberCenter/order.vue
src/views/memberCenter/service.vue
src/views/memberCenter/serviceAddUpdateLook.vue
src/views/memberCenter/setmeal.vue
src/views/memberCenter/setmealAddUpdate.vue
src/assets/css/public.scss
View file @
b4bc6e8
...
...
@@ -20,7 +20,13 @@ html {
padding
:
15px
20px
;
box-shadow
:
0
1px
5px
0
rgba
(
38
,
38
,
38
,
0
.10
);
}
//输入框后置文字(如 “元”)
.suffix-label
{
font-size
:
14px
;
font-weight
:
400
;
color
:
#333333
;
margin-right
:
5px
;
}
// 单行省略
.ellipsis-1
{
overflow
:
hidden
;
...
...
src/components/glsx-dialog/index.vue
View file @
b4bc6e8
...
...
@@ -2,8 +2,7 @@
<
template
>
<div>
<el-dialog
:title=
"title"
:visible
.
sync=
"isVisible"
:show-close=
"showClose"
:before-close=
"handleClose"
:close-on-click-modal=
"false"
:modal-append-to-body=
"false"
:width=
"width"
>
<div
style=
"height:60vh;overflow:auto"
>
<el-scrollbar
v-if=
"hasScroll"
>
<el-scrollbar
v-if=
"hasScroll"
>
<span
slot=
"title"
>
<span
class=
"main-title"
>
{{
title
}}
</span>
<span
class=
"dialog-sub-title"
>
...
...
@@ -21,8 +20,6 @@
</span>
<slot></slot>
</
template
>
</div>
<div
slot=
"footer"
>
<slot
name=
"btn-start"
></slot>
...
...
@@ -86,6 +83,10 @@ export default {
type
:
String
,
default
:
''
},
// modalAppendToBody:{
// type: Boolean,
// default: false
// },
width
:
{
type
:
String
,
default
:
'580px'
...
...
@@ -93,7 +94,7 @@ export default {
btnSize
:
{
type
:
String
,
default
:
'mini'
}
,
}
},
methods
:
{
...
...
@@ -116,8 +117,9 @@ export default {
//
border-bottom
:
1px
solid
#e6e6e6
;
//
padding
:
20px
25px
;
//
}
.el-dialog-div
{
height
:
60vh
;
overflow
:
auto
;
}
//
.el-dialog-div
{
//
height
:
60vh
;
//
overflow
:
auto
;
//
}
</
style
>
src/components/selectMutiProDialog/indexForCoupon.vue
View file @
b4bc6e8
<!-- 选择商品弹窗 -->
<
template
>
<glsx-dialog
class=
"muti-pro"
title=
"选择商品"
:isVisible
.
sync=
"isMutiSelectVisible"
width=
"70%"
@
confirmDialog=
"handleMutiSelectConfirm"
@
closeDialog=
"handleMutiSelectClose"
>
<el-form
:inline=
"true"
:model=
"searchProForm"
>
<el-form-item
label=
"商品名称:"
>
<el-input
:size=
"size"
v-model=
"searchProForm.name"
placeholder=
"请输入商品名称"
maxlength=
"20"
clearable
></el-input>
</el-form-item>
<el-form-item>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleConfigSearch"
>
查询
</el-button>
<el-button
:size=
"size"
@
click=
"handleConfigReset"
>
重置
</el-button>
</el-form-item>
</el-form>
<GLTable
ref=
"mutiProRef"
:tableData=
"productList"
:hasPage=
"false"
:tableParams=
"tableParams"
@
refreshTable=
"getList"
>
<span
slot=
"goodsImage"
slot-scope=
"scope"
>
<img
class=
"m-t-10 img-60"
:src=
"scope.scope.goodsImage"
/>
</span>
</GLTable>
<glsx-dialog
class=
"muti-pro"
title=
"选择商品"
:isVisible
.
sync=
"isMutiSelectVisible"
:height=
"height"
width=
"70%"
@
confirmDialog=
"handleMutiSelectConfirm"
@
closeDialog=
"handleMutiSelectClose"
>
<div
style=
"max-height:60vh"
>
<el-form
:inline=
"true"
:model=
"searchProForm"
>
<el-form-item
label=
"商品名称:"
>
<el-input
:size=
"size"
v-model=
"searchProForm.name"
placeholder=
"请输入商品名称"
maxlength=
"20"
clearable
></el-input>
</el-form-item>
<el-form-item>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleConfigSearch"
>
查询
</el-button>
<el-button
:size=
"size"
@
click=
"handleConfigReset"
>
重置
</el-button>
</el-form-item>
</el-form>
<GLTable
ref=
"mutiProRef"
:tableData=
"productList"
:hasPage=
"false"
:tableParams=
"tableParams"
@
refreshTable=
"getList"
>
<span
slot=
"goodsImage"
slot-scope=
"scope"
>
<img
class=
"m-t-10 img-60"
:src=
"scope.scope.goodsImage"
/>
</span>
</GLTable>
</div>
</glsx-dialog>
</
template
>
...
...
src/views/couponManage/editCashCoupon.vue
View file @
b4bc6e8
...
...
@@ -65,13 +65,15 @@
</el-input>
<span
style=
"color:red;margin-left:15px"
v-if=
"priceFlag"
>
存在零售价低于代金券的商品
</span>
</
template
>
<!-- 只有使用途径为线上商品时才有效,到店核销时屏蔽 -->
<
template
slot=
"goodsHtml"
>
<el-radio
v-model=
"editForm.goods"
label=
"1"
v-if=
"apear=='couponAdd'"
>
全部商品可用
</el-radio>
<el-radio
v-model=
"editForm.goods"
label=
"2"
v-if=
"apear=='couponAdd'"
>
指定商品可用
<el-button
type=
"primary"
v-if=
"editForm.goods == 2"
@
click=
"chooseGoods"
>
选择商品
</el-button>
</el-radio>
</
template
>
<div
slot=
"proTable"
class=
"select-pro"
v-if=
"editForm.useChannel == 1"
>
<!-- 新增时并且为指定商品时显示,编辑或者查看时也显示 -->
<div
slot=
"proTable"
class=
"select-pro"
v-if=
"apear!='couponAdd' || (editForm.useChannel == 1 && editForm.goods == 2)"
>
<div
style=
"height:110px"
v-if=
"editForm.goodsRefList.length"
></div>
<GLTable
v-show=
"editForm.goodsRefList.length"
:hasPage=
"false"
:tableParams=
"tableParams"
:tableData=
"editForm.goodsRefList"
>
<
template
slot=
"goodsImage"
slot-scope=
"scope"
>
...
...
@@ -119,6 +121,10 @@ export default {
},
apear
:
''
,
minPirce
:
''
,
//全部商品时最低价
minPirceForAll
:
''
,
//指定商品时最低价
minPirceForPart
:
''
,
couponTime
:
''
,
remarksView
:
[],
//存在零售价低于代金券的商品
...
...
@@ -291,7 +297,6 @@ export default {
}
},
'editForm.useChannel'
(
newValue
,
oldValue
){
console
.
log
(
newValue
);
if
(
newValue
==
1
){
this
.
editFormData
[
6
].
isHide
=
false
}
else
{
...
...
@@ -300,6 +305,39 @@ export default {
this
.
editFormData
[
6
].
isHide
=
true
}
},
'editForm.goods'
(
newValue
,
oldValue
){
if
(
newValue
==
1
){
//全部商品
// var goods = this.selectedAllProList
// if(goods && goods.length > 0){
// this.minPirce = goods[0].retailPrice
// goods.forEach((item, index) => {
// if(item.retailPrice < this.minPirce){
// this.minPirce = item.retailPrice
// }
// })
// }else{
// this.priceFlag = true
// }
this
.
minPirce
=
this
.
minPirceForAll
}
else
{
//指定商品
// var goods2 = this.editForm.goodsRefList
// if(goods2 && goods2.length > 0){
// this.minPirce = goods2[0].retailPrice*100
// goods2.forEach((item, index) => {
// var retailPrice = item.retailPrice*100
// if(retailPrice < this.minPirce){
// this.minPirce = retailPrice
// }
// })
// }
this
.
minPirce
=
this
.
minPirceForPart
}
if
(
this
.
editForm
.
denomination
&&
this
.
minPirce
&&
this
.
editForm
.
denomination
*
100
>
this
.
minPirce
){
this
.
priceFlag
=
true
}
else
{
this
.
priceFlag
=
false
}
},
},
methods
:
{
...
...
@@ -325,10 +363,16 @@ export default {
const
goods
=
this
.
$common
.
utils
.
deepClone
(
res
.
list
)
this
.
selectedAllProList
=
goods
if
(
goods
&&
goods
.
length
>
0
){
this
.
minPirce
=
goods
[
0
].
retailPrice
// this.minPirce = goods[0].retailPrice
// goods.forEach((item, index) => {
// if(item.retailPrice < this.minPirce){
// this.minPirce = item.retailPrice
// }
// })
this
.
minPirceForAll
=
goods
[
0
].
retailPrice
goods
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
retailPrice
<
this
.
minPirce
){
this
.
minPirce
=
item
.
retailPrice
if
(
item
.
retailPrice
<
this
.
minPirce
ForAll
){
this
.
minPirce
ForAll
=
item
.
retailPrice
}
})
}
else
{
...
...
@@ -354,6 +398,35 @@ export default {
handleMutiSelectConfirm
(
selectedData
)
{
this
.
editForm
.
goodsRefList
=
selectedData
/** 选择指定商品时,面值最小值的判断区域应该在已选商品内 start*/
var
goods
=
this
.
editForm
.
goodsRefList
// this.minPirce = goods[0].retailPrice*100
// goods.forEach((item, index) => {
// var retailPrice = item.retailPrice*100
// if(retailPrice < this.minPirce){
// this.minPirce = retailPrice
// }
// })
// if(this.editForm.denomination && this.editForm.denomination*100 > this.minPirce){
// this.priceFlag = true
// }else{
// this.priceFlag = false
// }
this
.
minPirceForPart
=
goods
[
0
].
retailPrice
*
100
goods
.
forEach
((
item
,
index
)
=>
{
var
retailPrice
=
item
.
retailPrice
*
100
if
(
retailPrice
<
this
.
minPirceForPart
){
this
.
minPirceForPart
=
retailPrice
}
})
if
(
this
.
editForm
.
denomination
&&
this
.
editForm
.
denomination
*
100
>
this
.
minPirceForPart
){
this
.
priceFlag
=
true
}
else
{
this
.
priceFlag
=
false
}
/** 选择指定商品时,面值最小值的判断区域应该在已选商品内 end*/
this
.
handleMutiSelectClose
()
},
...
...
@@ -376,7 +449,11 @@ export default {
},
denominationBlur
(
event
){
console
.
log
(
'111'
);
if
(
this
.
editForm
.
goods
==
1
){
//全部商品
this
.
minPirce
=
this
.
minPirceForAll
}
else
{
//指定商品
this
.
minPirce
=
this
.
minPirceForPart
}
if
(
event
.
target
.
value
*
100
>
this
.
minPirce
){
this
.
priceFlag
=
true
}
else
{
...
...
@@ -409,12 +486,6 @@ export default {
})
},
//选择到店核销使用限制默认无使用门槛
clickUseChannel
(){
this
.
editForm
.
useBarriers
=
'1'
this
.
editFormData
[
6
].
isHide
=
true
},
validateRules
(){
var
form
=
this
.
editForm
if
(
form
.
effectiveType
==
'2'
){
//判断 有效期-日期选择是否验证
...
...
src/views/customerTransform/addCustomer.vue
View file @
b4bc6e8
...
...
@@ -36,7 +36,7 @@
</div>
</el-form-item>
<el-form-item
label=
"选择客户"
prop=
"selectType"
>
<el-radio-group
@
change=
"selectChange"
v-model=
"basicForm.selectType"
>
<el-radio-group
v-model=
"basicForm.selectType"
>
<el-radio
:label=
"1"
>
全部成员
</el-radio>
<el-radio
:label=
"2"
>
筛选成员
</el-radio>
</el-radio-group>
...
...
@@ -56,6 +56,7 @@
<el-select
v-model=
"basicForm.condition.chatId"
@
change=
"valueChange"
@
focus=
"groupFocus"
multiple
collapse-tags
placeholder=
"请选择"
...
...
@@ -187,7 +188,7 @@
width: footerWidth + 'px'
}"
>
<el-button
type=
"primary"
@
click=
"handleSubmit"
>
确定
</el-button>
<el-button
type=
"primary"
v-loading=
"addLoading"
@
click=
"handleSubmit"
>
确定
</el-button>
<el-button
type=
"primary"
@
click=
"handleCancel"
>
取消
</el-button>
</div>
<SelectLabel
ref=
"selectLabel"
@
tagSelected=
"handleSelect"
:dialogVisible=
"dialogVisible"
></SelectLabel>
...
...
@@ -254,6 +255,7 @@ export default {
}
}
return
{
addLoading
:
false
,
eventBus
:
new
Vue
(),
basicForm
:
{
condition
:
{}
...
...
@@ -376,6 +378,7 @@ export default {
params
.
sendTimeStr
=
this
.
basicForm
.
sendTime
+
' '
+
this
.
basicForm
.
sendDate
}
console
.
log
(
params
)
this
.
addLoading
=
true
this
.
$apis
.
customerTransform
.
insert
(
params
)
.
then
(
res
=>
{
...
...
@@ -387,12 +390,14 @@ export default {
})
this
.
handleCancel
()
}
this
.
addLoading
=
false
})
.
catch
(
err
=>
{
this
.
$message
({
type
:
'error'
,
message
:
err
.
message
})
this
.
addLoading
=
false
})
}
})
...
...
@@ -421,14 +426,21 @@ export default {
// this.$refs.selectLabel.init(this.tagging)
},
valueChange
(
val
)
{
console
.
log
(
val
)
this
.
isUpdate
=
true
},
getGroupList
()
{
this
.
$apis
.
customerTransform
.
groupList
({}).
then
(
res
=>
{
console
.
log
(
res
)
this
.
groupList
=
res
})
if
(
this
.
basicForm
.
userList
&&
this
.
basicForm
.
userList
.
length
!=
0
)
{
const
staffIds
=
this
.
basicForm
.
userList
.
map
(
item
=>
item
.
staffId
)
console
.
log
(
staffIds
)
this
.
$apis
.
customerTransform
.
groupList
({
staffIds
}).
then
(
res
=>
{
this
.
groupList
=
res
})
}
else
{
this
.
$message
({
type
:
'error'
,
message
:
'请选择群发账号'
})
}
},
getSiftMembers
()
{
const
params
=
{
...
...
@@ -453,7 +465,6 @@ export default {
},
// 查看群发人数
viewMembers
()
{
console
.
log
(
this
.
basicForm
)
if
(
!
this
.
basicForm
.
userList
||
this
.
basicForm
.
userList
.
length
==
0
)
{
this
.
$message
({
type
:
'error'
,
...
...
@@ -462,9 +473,7 @@ export default {
return
}
const
params
=
this
.
getSiftMembers
()
console
.
log
(
params
)
this
.
$apis
.
customerTransform
.
customerCount
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
this
.
groupNumber
=
res
this
.
isUpdate
=
false
})
...
...
@@ -485,11 +494,13 @@ export default {
}
}
},
selectChange
(
val
)
{
console
.
log
(
val
)
if
(
val
==
2
)
{
this
.
getGroupList
()
groupFocus
()
{
if
(
this
.
basicForm
.
condition
&&
this
.
basicForm
.
condition
.
chatId
)
{
this
.
basicForm
.
condition
.
chatId
=
[]
this
.
groupList
=
[]
this
.
isUpdate
=
true
}
this
.
getGroupList
()
}
}
}
...
...
src/views/customerTransform/addCustomerGroup.vue
View file @
b4bc6e8
...
...
@@ -80,7 +80,7 @@
width: footerWidth + 'px'
}"
>
<el-button
type=
"primary"
@
click=
"handleSubmit"
>
确定
</el-button>
<el-button
type=
"primary"
v-loading=
"addLoading"
@
click=
"handleSubmit"
>
确定
</el-button>
<el-button
type=
"primary"
@
click=
"handleCancel"
>
取消
</el-button>
</div>
<glsx-dialog
...
...
@@ -152,6 +152,7 @@ export default {
}
}
return
{
addLoading
:
false
,
eventBus
:
new
Vue
(),
basicForm
:
{},
basicRules
:
{
...
...
@@ -248,6 +249,7 @@ export default {
if
(
params
.
sendType
==
2
)
{
params
.
sendTimeStr
=
this
.
basicForm
.
sendTime
+
' '
+
this
.
basicForm
.
sendDate
}
this
.
addLoading
=
true
console
.
log
(
params
)
this
.
$apis
.
customerTransform
.
insert
(
params
)
...
...
@@ -260,12 +262,14 @@ export default {
})
this
.
handleCancel
()
}
this
.
addLoading
=
false
})
.
catch
(
err
=>
{
this
.
$message
({
type
:
'error'
,
message
:
err
.
message
})
this
.
addLoading
=
false
})
})
}
...
...
src/views/customerTransform/components/welcomeWords.vue
View file @
b4bc6e8
...
...
@@ -326,89 +326,90 @@ export default {
<
style
lang=
"scss"
scoped
>
.welcome-box
{
}
.content-bg
{
background-color
:
#f7f7f7
;
}
.content
{
display
:
inline-block
;
vertical-align
:
text-top
;
width
:
calc
(
100%
-
103px
);
margin-left
:
12px
;
.welcome-file
{
display
:
flex
;
align-items
:
center
;
color
:
#999
;
line-height
:
20px
;
padding
:
10px
;
margin-bottom
:
10px
;
border-left
:
1px
solid
#dcdfe6
;
border-right
:
1px
solid
#dcdfe6
;
img
{
width
:
20px
;
height
:
20px
;
margin-right
:
5px
;
}
span
{
display
:
inline-block
;
margin-right
:
20px
;
max-width
:
200px
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
font-size
:
14px
;
}
i
{
font-size
:
16px
;
}
.el-icon-loading
{
font-size
:
24px
;
}
&
:last-child
{
margin-bottom
:
0
;
}
}
.btn-group
{
padding
:
6px
0
6px
20px
;
border
:
1px
solid
#dcdfe6
;
border-top
:
0
;
.add-btn
{
display
:
inline-flex
;
position
:
relative
;
.content
{
display
:
inline-block
;
vertical-align
:
text-top
;
width
:
calc
(
100%
-
103px
);
margin-left
:
12px
;
.welcome-file
{
display
:
flex
;
align-items
:
center
;
padding-right
:
25px
;
font-size
:
16px
;
color
:
#666
;
cursor
:
pointer
;
color
:
#999
;
line-height
:
20px
;
padding
:
10px
;
margin-bottom
:
10px
;
border-left
:
1px
solid
#dcdfe6
;
border-right
:
1px
solid
#dcdfe6
;
img
{
width
:
20px
;
height
:
20px
;
margin-right
:
5px
;
}
span
{
display
:
inline-block
;
margin-right
:
20px
;
max-width
:
200px
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
font-size
:
14px
;
margin-left
:
5px
;
}
input
{
position
:
absolute
;
width
:
100%
;
cursor
:
pointer
;
font-size
:
0
;
height
:
40px
;
i
{
font-size
:
16px
;
}
img
{
width
:
16px
;
height
:
16px
;
cursor
:
pointer
;
.el-icon-loading
{
font-size
:
24px
;
}
.el-link
{
position
:
absolute
;
width
:
100%
;
&
:last-child
{
margin-bottom
:
0
;
}
}
}
.date-picker
{
margin-top
:
10px
;
font-size
:
14px
;
color
:
#999
;
.btn-group
{
padding
:
6px
0
6px
20px
;
border
:
1px
solid
#dcdfe6
;
border-top
:
0
;
.add-btn
{
display
:
inline-flex
;
position
:
relative
;
align-items
:
center
;
padding-right
:
25px
;
font-size
:
16px
;
color
:
#666
;
cursor
:
pointer
;
span
{
font-size
:
14px
;
margin-left
:
5px
;
}
input
{
position
:
absolute
;
width
:
100%
;
cursor
:
pointer
;
font-size
:
0
;
height
:
40px
;
}
img
{
width
:
16px
;
height
:
16px
;
cursor
:
pointer
;
}
.el-link
{
position
:
absolute
;
width
:
100%
;
}
}
}
.date-picker
{
margin-top
:
10px
;
font-size
:
14px
;
color
:
#999
;
}
}
}
.content-bg
{
background-color
:
#f7f7f7
;
}
.required
{
display
:
inline-block
;
line-height
:
40px
;
...
...
src/views/customerTransform/detailCustomer.vue
View file @
b4bc6e8
...
...
@@ -30,7 +30,7 @@
{{
item
.
staffName
}}
<span
:class=
"[item.status == 0 ? 'unsend' : 'send']"
>
{{
item
.
status
==
0
?
'未
'
:
'已'
}}
发送
</span>
>
{{
item
.
status
==
0
?
'未
发送'
:
item
.
status
==
1
?
'已发送'
:
'发送失败'
}}
</span>
</div>
<div
class=
"info-num"
>
共
{{
item
.
customerCount
?
item
.
customerCount
:
0
}}
个客户
</div>
</div>
...
...
@@ -60,9 +60,9 @@
@
select=
"handleCustomSelect"
>
<el-menu-item
index
>
全部
</el-menu-item>
<el-menu-item
index=
"1"
>
已
发送
客户
</el-menu-item>
<el-menu-item
index=
"0"
>
未
发送
客户
</el-menu-item>
<el-menu-item
index=
"2"
>
客户
接受
失败
</el-menu-item>
<el-menu-item
index=
"1"
>
已
送达
客户
</el-menu-item>
<el-menu-item
index=
"0"
>
未
送达
客户
</el-menu-item>
<el-menu-item
index=
"2"
>
客户
送达
失败
</el-menu-item>
</el-menu>
<div
class=
"detail-total"
>
共
{{
customerlist
.
length
||
0
}}
人
</div>
<div
v-if=
"customerlist.length != 0"
class=
"info-list"
>
...
...
@@ -79,7 +79,7 @@
<div
class=
"customer-table"
:class=
"[item.status == 0 ? 'unsend' : 'send']"
>
{{
item
.
status
==
0
?
'未
'
:
'已'
}}
送达
</div>
>
{{
item
.
status
==
0
?
'未
送达'
:
item
.
status
==
1
?
'已送达'
:
'送达失败'
}}
</div>
</div>
</div>
<div
class=
"info-right"
>
...
...
src/views/memberCenter/center.vue
View file @
b4bc6e8
...
...
@@ -32,13 +32,15 @@
</el-form-item>
<el-form-item
label=
"售价"
size=
"small"
prop=
"price"
style=
"width: 300px"
>
<el-input
v-model=
"ruleForm.price"
size=
"small"
placeholder=
"请输入合理价格"
@
keyup
.
native=
"ruleForm.price = oninput(ruleForm.price)"
>
<template
slot=
"append"
>
元
</
template
>
<!--
<template
slot=
"append"
>
元
</
template
>
-->
<span
slot=
"suffix"
>
元
</span>
</el-input>
</el-form-item>
<el-form-item
label=
"市场价"
prop=
"marketPrice"
size=
"small"
style=
"width: 300px"
>
<!-- :onkeyup="(ruleForm.marketPrice = ruleForm.marketPrice.replace(/[^\-\d.]/g, ''))" -->
<el-input
v-model=
"ruleForm.marketPrice"
size=
"small"
placeholder=
"请输入合理价格"
@
keyup
.
native=
"ruleForm.marketPrice = oninput(ruleForm.marketPrice)"
>
<
template
slot=
"append"
>
元
</
template
>
<!-- <template slot="append">元</template> -->
<span
slot=
"suffix"
class=
"suffix-label"
>
元
</span>
</el-input>
</el-form-item>
</el-form>
...
...
@@ -65,12 +67,12 @@
</el-form-item>
</el-row>
<el-row>
<el-form-item
size=
"small"
label=
"会员类型"
>
<el-form-item
size=
"small"
label=
"会员类型"
>
<el-select
size=
"small"
v-model=
"searchForm.memberType"
placeholder=
"请选择"
>
<el-option
v-for=
"item in memberTypeLists"
:key=
"item.dictValue"
:label=
"item.dictLabel"
:value=
"item.dictValue"
></el-option>
</el-select>
</el-form-item>
<el-form-item
size=
"small"
label=
"开通日期"
style=
"margin-left:-10px"
>
<el-form-item
size=
"small"
label=
"开通日期"
style=
"margin-left:
-10px"
>
<el-date-picker
:size=
"size"
v-model=
"searchForm.daterange"
type=
"daterange"
value-format=
"yyyy-MM-dd"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
:picker-options=
"pickerOptions || {}"
></el-date-picker>
</el-form-item>
...
...
@@ -80,7 +82,7 @@
</el-form-item>
</el-row>
</el-form>
<GLTable
ref=
"memberCenterRef"
v-if=
"isReload"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"getListApi"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<GLTable
ref=
"memberCenterRef"
v-if=
"isReload"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"getListApi"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<span
slot=
"accountName"
slot-scope=
"scope"
>
<div>
{{ scope.scope.accountName }}
</div>
<div>
{{ scope.scope.mobile }}
</div>
...
...
@@ -89,26 +91,26 @@
</div>
<glsx-dialog
title=
"权益详情"
width=
"712px"
:noBtnOk=
"true"
:noCancel=
"true"
:noClose=
"false"
btnCancelLabel=
"关闭"
btnSize=
"small"
:isVisible=
"isDialogVisible"
:showClose=
"false"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleClose"
>
<!-- <el-scrollbar> -->
<div
class=
"modal-body"
>
<div
class=
"equity-name"
>
汽车权益
</div>
<div
class=
"equity-panel"
>
<div
class=
"equity-item"
v-for=
"(item, index) in merchantData.carServiceList"
:key=
"index"
>
<div
class=
"equity-item-icon"
><img
:src=
"item.equityIcon"
/></div>
<div
class=
"equity-item-name"
>
{{ item.equityName }}
</div>
<div
class=
"equity-item-desc"
>
{{ item.equityDesc }}
</div>
</div>
<div
class=
"modal-body"
>
<div
class=
"equity-name"
>
汽车权益
</div>
<div
class=
"equity-panel"
>
<div
class=
"equity-item"
v-for=
"(item, index) in merchantData.carServiceList"
:key=
"index"
>
<div
class=
"equity-item-icon"
><img
:src=
"item.equityIcon"
/></div>
<div
class=
"equity-item-name"
>
{{ item.equityName }}
</div>
<div
class=
"equity-item-desc"
>
{{ item.equityDesc }}
</div>
</div>
<div
v-for=
"(item, index) in merchantData.goodsServiceList"
:key=
"index"
>
<div
class=
"equity-name"
>
{{ item.goodsCategory }}
</div
>
<div
class=
"equity-panel"
>
<div
class=
"equity-item"
v-for=
"(v, xindex) in item.equityGoodsGroupDescDtos"
:key=
"xindex
"
>
<div
class=
"equity-item-icon"
><img
:src=
"v.equityIcon"
/></div
>
<div
class=
"equity-item-name"
>
{{ v.equityName }}
</div>
<div
class=
"equity-item-desc"
>
{{ v.equityDesc
}}
</div>
</div>
</div
>
<div
v-for=
"(item, index) in merchantData.goodsServiceList"
:key=
"index"
>
<div
class=
"equity-name"
>
{{ item.goodsCategory }}
</div
>
<div
class=
"equity-panel
"
>
<div
class=
"equity-item"
v-for=
"(v, xindex) in item.equityGoodsGroupDescDtos"
:key=
"xindex"
>
<div
class=
"equity-item-icon"
><img
:src=
"v.equityIcon"
/>
</div>
<div
class=
"equity-item-name"
>
{{ v.equityName
}}
</div>
<
div
class=
"equity-item-desc"
>
{{ v.equityDesc }}
<
/div>
</div>
</div>
</div>
</div>
<!-- </el-scrollbar> -->
</glsx-dialog>
</div>
...
...
@@ -140,7 +142,7 @@ export default {
// }, 1000)
}
return
{
isReload
:
true
,
isReload
:
true
,
pickerOptions
:
{
disabledDate
(
time
)
{
return
time
.
getTime
()
>
Date
.
now
()
||
time
.
getTime
()
<
new
Date
(
'2017-12-31'
).
getTime
()
...
...
@@ -152,10 +154,10 @@ export default {
userInfo
:
''
,
status
:
''
,
merchantName
:
''
,
memberType
:
''
memberType
:
''
},
searchFormTable
:
{},
memberTypeLists
:[
memberTypeLists
:
[
{
dictValue
:
''
,
dictLabel
:
'全部'
...
...
@@ -240,7 +242,7 @@ export default {
price
:
''
,
marketPrice
:
''
,
linkUrl
:
''
,
tryAble
:
''
tryAble
:
''
},
copyRuleForm
:
{},
rules
:
{
...
...
@@ -263,7 +265,7 @@ export default {
created
()
{
if
(
window
.
__POWERED_BY_QIANKUN__
)
{
//运行在qiankun容器中
this
.
merchantId
=
this
.
$globalState
.
session
.
merchantId
this
.
merchantId
=
this
.
$globalState
.
session
.
merchantId
}
this
.
getCardContentFun
()
},
...
...
@@ -301,13 +303,15 @@ export default {
},
getCardContentFun
()
{
getCardContent
({
merchantId
:
this
.
merchantId
}).
then
(
res
=>
{
this
.
ruleForm
.
equityId
=
res
[
0
].
id
if
(
!
(
res
&&
res
.
length
)){
return
}
this
.
ruleForm
.
equityId
=
res
[
0
].
id
this
.
ruleForm
.
cardName
=
res
[
0
].
cardClassName
this
.
ruleForm
.
price
=
res
[
0
].
price
this
.
ruleForm
.
marketPrice
=
res
[
0
].
marketPrice
this
.
ruleForm
.
linkUrl
=
res
[
0
].
url
this
.
ruleForm
.
tryAble
=
res
[
0
].
tryAble
this
.
ruleForm
.
tryAble
=
res
[
0
].
tryAble
})
},
openEditWrap
()
{
...
...
@@ -330,7 +334,7 @@ export default {
params
.
cardClassName
=
this
.
ruleForm
.
cardName
params
.
price
=
this
.
ruleForm
.
price
params
.
marketPrice
=
this
.
ruleForm
.
marketPrice
params
.
tryAble
=
this
.
ruleForm
.
tryAble
params
.
tryAble
=
this
.
ruleForm
.
tryAble
updateCardContent
(
params
).
then
(
res
=>
{
if
(
!
res
)
{
return
...
...
@@ -420,7 +424,7 @@ export default {
.seeEquity
{
position
:
absolute
;
right
:
0
;
bottom
:
1
0
px
;
bottom
:
1
4
px
;
}
.cancelBtn
{
position
:
absolute
;
...
...
@@ -458,7 +462,8 @@ export default {
}
.address
{
display
:
inline-block
;
max-width
:
600px
;
vertical-align
:
bottom
;
max-width
:
calc
(
100%
-
220px
);
color
:
#989898
;
}
}
...
...
src/views/memberCenter/order.vue
View file @
b4bc6e8
...
...
@@ -241,6 +241,7 @@ export default {
display
:
flex
;
height
:
34px
;
.choseItem
{
cursor
:
pointer
;
width
:
120px
;
height
:
34px
;
line-height
:
34px
;
...
...
src/views/memberCenter/service.vue
View file @
b4bc6e8
...
...
@@ -171,7 +171,7 @@ export default {
this
.
$nextTick
(()
=>
{
this
.
isReload
=
true
})
},
handleSearch
()
{
this
.
$refs
.
memberServiceRef
.
refreshTable
()
...
...
@@ -186,7 +186,10 @@ export default {
//创建服务
handleCreate
()
{
this
.
$router
.
push
({
path
:
'/memberCenter/serviceAddUpdateLook'
path
:
'/memberCenter/serviceAddUpdateLook'
,
query
:{
$title
:
encodeURI
(
'创建服务'
)
}
})
},
//失效
...
...
@@ -227,7 +230,8 @@ export default {
path
:
'/memberCenter/serviceAddUpdateLook'
,
query
:
{
couponId
:
row
.
id
,
title
:
'编辑'
title
:
'编辑'
,
$title
:
encodeURI
(
'编辑服务'
)
}
})
},
...
...
@@ -236,7 +240,8 @@ export default {
path
:
'/memberCenter/serviceAddUpdateLook'
,
query
:
{
couponId
:
row
.
id
,
title
:
'查看'
title
:
'查看'
,
$title
:
encodeURI
(
'查看服务'
)
}
})
},
...
...
src/views/memberCenter/serviceAddUpdateLook.vue
View file @
b4bc6e8
...
...
@@ -77,12 +77,14 @@
</el-form-item>
<el-form-item
size=
"small"
label=
"会员价"
prop=
"vipPrice"
style=
"width: 315px"
>
<el-input
size=
"small"
:disabled=
"disabledContent"
maxlength=
"9"
v-model=
"ruleForm.vipPrice"
placeholder=
"请输入"
@
keyup
.
native=
"ruleForm.vipPrice = oninput(ruleForm.vipPrice)"
>
<template
slot=
"append"
>
元
</
template
>
<!--
<template
slot=
"append"
>
元
</
template
>
-->
<span
slot=
"suffix"
class=
"suffix-label"
>
元
</span>
</el-input>
</el-form-item>
<el-form-item
size=
"small"
label=
"门店价"
prop=
"shopPrice"
style=
"width: 315px"
>
<el-input
size=
"small"
:disabled=
"disabledContent"
maxlength=
"9"
v-model=
"ruleForm.shopPrice"
placeholder=
"请输入"
@
keyup
.
native=
"ruleForm.shopPrice = oninput(ruleForm.shopPrice)"
>
<
template
slot=
"append"
>
元
</
template
>
<!-- <template slot="append">元</template> -->
<span
slot=
"suffix"
class=
"suffix-label"
>
元
</span>
</el-input>
</el-form-item>
<el-form-item
size=
"small"
label=
"库存"
prop=
"stock"
style=
"width: 315px"
>
...
...
src/views/memberCenter/setmeal.vue
View file @
b4bc6e8
...
...
@@ -120,7 +120,7 @@ export default {
this
.
getLoginCountFun
()
},
methods
:
{
getLoginCountFun
()
{
getLoginCountFun
()
{
//loginType:5是查会员套餐浏览次数
getLoginCount
({
loginType
:
5
}).
then
(
res
=>
{
//获取是否第一次点击该页面
...
...
@@ -130,11 +130,11 @@ export default {
closePanel
()
{
this
.
isFirstShow
=
false
},
handleReset
()
{
handleReset
()
{
this
.
searchForm
=
{
merchantId
:
44184606
}
this
.
handleSearch
()
this
.
handleSearch
()
},
handleSearch
()
{
this
.
$refs
.
memberSetMealRef
.
refreshTable
()
...
...
@@ -148,7 +148,9 @@ export default {
//创建套餐
handleCreate
()
{
this
.
$router
.
push
(
'/memberCenter/setmealAddUpdate'
)
this
.
$router
.
push
({
path
:
'/memberCenter/setmealAddUpdate'
,
query
:{
$title
:
encodeURI
(
'创建套餐'
)
}})
},
handleClose
()
{
this
.
isDialogVisible
=
!
this
.
isDialogVisible
...
...
@@ -192,7 +194,7 @@ export default {
})
},
handleEdit
(
row
)
{
this
.
$router
.
push
({
path
:
'/memberCenter/setmealAddUpdate'
,
query
:
{
id
:
row
.
id
}
})
this
.
$router
.
push
({
path
:
'/memberCenter/setmealAddUpdate'
,
query
:
{
id
:
row
.
id
,
$title
:
encodeURI
(
'编辑套餐'
)
}
})
},
// 查看示例效果
handleLook
(
row
)
{},
...
...
src/views/memberCenter/setmealAddUpdate.vue
View file @
b4bc6e8
...
...
@@ -28,7 +28,8 @@
<el-form-item
size=
"small"
label=
"售价"
prop=
"packagePrice"
style=
"width: 315px"
>
<el-input
size=
"small"
v-model=
"ruleForm.packagePrice"
placeholder=
"请输入"
@
keyup
.
native=
"ruleForm.packagePrice = oninput(ruleForm.packagePrice)"
>
<template
slot=
"append"
>
元
</
template
>
<!--
<template
slot=
"append"
>
元
</
template
>
-->
<span
slot=
"suffix"
class=
"suffix-label"
>
元
</span>
</el-input>
</el-form-item>
...
...
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