Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-pay
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
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
179 additions
and
66 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 {
...
@@ -20,7 +20,13 @@ html {
padding
:
15px
20px
;
padding
:
15px
20px
;
box-shadow
:
0
1px
5px
0
rgba
(
38
,
38
,
38
,
0
.10
);
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
{
.ellipsis-1
{
overflow
:
hidden
;
overflow
:
hidden
;
...
...
src/components/glsx-dialog/index.vue
View file @
b4bc6e8
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
<
template
>
<
template
>
<div>
<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"
>
<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
slot=
"title"
>
<span
class=
"main-title"
>
{{
title
}}
</span>
<span
class=
"main-title"
>
{{
title
}}
</span>
...
@@ -21,8 +20,6 @@
...
@@ -21,8 +20,6 @@
</span>
</span>
<slot></slot>
<slot></slot>
</
template
>
</
template
>
</div>
<div
slot=
"footer"
>
<div
slot=
"footer"
>
<slot
name=
"btn-start"
></slot>
<slot
name=
"btn-start"
></slot>
...
@@ -86,6 +83,10 @@ export default {
...
@@ -86,6 +83,10 @@ export default {
type
:
String
,
type
:
String
,
default
:
''
default
:
''
},
},
// modalAppendToBody:{
// type: Boolean,
// default: false
// },
width
:
{
width
:
{
type
:
String
,
type
:
String
,
default
:
'580px'
default
:
'580px'
...
@@ -93,7 +94,7 @@ export default {
...
@@ -93,7 +94,7 @@ export default {
btnSize
:
{
btnSize
:
{
type
:
String
,
type
:
String
,
default
:
'mini'
default
:
'mini'
}
,
}
},
},
methods
:
{
methods
:
{
...
@@ -116,8 +117,9 @@ export default {
...
@@ -116,8 +117,9 @@ export default {
//
border-bottom
:
1px
solid
#e6e6e6
;
//
border-bottom
:
1px
solid
#e6e6e6
;
//
padding
:
20px
25px
;
//
padding
:
20px
25px
;
//
}
//
}
.el-dialog-div
{
height
:
60vh
;
//
.el-dialog-div
{
overflow
:
auto
;
//
height
:
60vh
;
}
//
overflow
:
auto
;
//
}
</
style
>
</
style
>
src/components/selectMutiProDialog/indexForCoupon.vue
View file @
b4bc6e8
<!-- 选择商品弹窗 -->
<!-- 选择商品弹窗 -->
<
template
>
<
template
>
<glsx-dialog
class=
"muti-pro"
title=
"选择商品"
:isVisible
.
sync=
"isMutiSelectVisible"
width=
"70%"
@
confirmDialog=
"handleMutiSelectConfirm"
@
closeDialog=
"handleMutiSelectClose"
>
<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
:inline=
"true"
:model=
"searchProForm"
>
<el-form-item
label=
"商品名称:"
>
<el-form-item
label=
"商品名称:"
>
<el-input
:size=
"size"
v-model=
"searchProForm.name"
placeholder=
"请输入商品名称"
maxlength=
"20"
clearable
></el-input>
<el-input
:size=
"size"
v-model=
"searchProForm.name"
placeholder=
"请输入商品名称"
maxlength=
"20"
clearable
></el-input>
...
@@ -15,6 +16,7 @@
...
@@ -15,6 +16,7 @@
<img
class=
"m-t-10 img-60"
:src=
"scope.scope.goodsImage"
/>
<img
class=
"m-t-10 img-60"
:src=
"scope.scope.goodsImage"
/>
</span>
</span>
</GLTable>
</GLTable>
</div>
</glsx-dialog>
</glsx-dialog>
</
template
>
</
template
>
...
...
src/views/couponManage/editCashCoupon.vue
View file @
b4bc6e8
...
@@ -65,13 +65,15 @@
...
@@ -65,13 +65,15 @@
</el-input>
</el-input>
<span
style=
"color:red;margin-left:15px"
v-if=
"priceFlag"
>
存在零售价低于代金券的商品
</span>
<span
style=
"color:red;margin-left:15px"
v-if=
"priceFlag"
>
存在零售价低于代金券的商品
</span>
</
template
>
</
template
>
<!-- 只有使用途径为线上商品时才有效,到店核销时屏蔽 -->
<
template
slot=
"goodsHtml"
>
<
template
slot=
"goodsHtml"
>
<el-radio
v-model=
"editForm.goods"
label=
"1"
v-if=
"apear=='couponAdd'"
>
全部商品可用
</el-radio>
<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-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-button
type=
"primary"
v-if=
"editForm.goods == 2"
@
click=
"chooseGoods"
>
选择商品
</el-button>
</el-radio>
</el-radio>
</
template
>
</
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>
<div
style=
"height:110px"
v-if=
"editForm.goodsRefList.length"
></div>
<GLTable
v-show=
"editForm.goodsRefList.length"
:hasPage=
"false"
:tableParams=
"tableParams"
:tableData=
"editForm.goodsRefList"
>
<GLTable
v-show=
"editForm.goodsRefList.length"
:hasPage=
"false"
:tableParams=
"tableParams"
:tableData=
"editForm.goodsRefList"
>
<
template
slot=
"goodsImage"
slot-scope=
"scope"
>
<
template
slot=
"goodsImage"
slot-scope=
"scope"
>
...
@@ -119,6 +121,10 @@ export default {
...
@@ -119,6 +121,10 @@ export default {
},
},
apear
:
''
,
apear
:
''
,
minPirce
:
''
,
minPirce
:
''
,
//全部商品时最低价
minPirceForAll
:
''
,
//指定商品时最低价
minPirceForPart
:
''
,
couponTime
:
''
,
couponTime
:
''
,
remarksView
:
[],
remarksView
:
[],
//存在零售价低于代金券的商品
//存在零售价低于代金券的商品
...
@@ -291,7 +297,6 @@ export default {
...
@@ -291,7 +297,6 @@ export default {
}
}
},
},
'editForm.useChannel'
(
newValue
,
oldValue
){
'editForm.useChannel'
(
newValue
,
oldValue
){
console
.
log
(
newValue
);
if
(
newValue
==
1
){
if
(
newValue
==
1
){
this
.
editFormData
[
6
].
isHide
=
false
this
.
editFormData
[
6
].
isHide
=
false
}
else
{
}
else
{
...
@@ -300,6 +305,39 @@ export default {
...
@@ -300,6 +305,39 @@ export default {
this
.
editFormData
[
6
].
isHide
=
true
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
:
{
methods
:
{
...
@@ -325,10 +363,16 @@ export default {
...
@@ -325,10 +363,16 @@ export default {
const
goods
=
this
.
$common
.
utils
.
deepClone
(
res
.
list
)
const
goods
=
this
.
$common
.
utils
.
deepClone
(
res
.
list
)
this
.
selectedAllProList
=
goods
this
.
selectedAllProList
=
goods
if
(
goods
&&
goods
.
length
>
0
){
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
)
=>
{
goods
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
retailPrice
<
this
.
minPirce
){
if
(
item
.
retailPrice
<
this
.
minPirce
ForAll
){
this
.
minPirce
=
item
.
retailPrice
this
.
minPirce
ForAll
=
item
.
retailPrice
}
}
})
})
}
else
{
}
else
{
...
@@ -354,6 +398,35 @@ export default {
...
@@ -354,6 +398,35 @@ export default {
handleMutiSelectConfirm
(
selectedData
)
{
handleMutiSelectConfirm
(
selectedData
)
{
this
.
editForm
.
goodsRefList
=
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
()
this
.
handleMutiSelectClose
()
},
},
...
@@ -376,7 +449,11 @@ export default {
...
@@ -376,7 +449,11 @@ export default {
},
},
denominationBlur
(
event
){
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
){
if
(
event
.
target
.
value
*
100
>
this
.
minPirce
){
this
.
priceFlag
=
true
this
.
priceFlag
=
true
}
else
{
}
else
{
...
@@ -409,12 +486,6 @@ export default {
...
@@ -409,12 +486,6 @@ export default {
})
})
},
},
//选择到店核销使用限制默认无使用门槛
clickUseChannel
(){
this
.
editForm
.
useBarriers
=
'1'
this
.
editFormData
[
6
].
isHide
=
true
},
validateRules
(){
validateRules
(){
var
form
=
this
.
editForm
var
form
=
this
.
editForm
if
(
form
.
effectiveType
==
'2'
){
//判断 有效期-日期选择是否验证
if
(
form
.
effectiveType
==
'2'
){
//判断 有效期-日期选择是否验证
...
...
src/views/customerTransform/addCustomer.vue
View file @
b4bc6e8
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item
label=
"选择客户"
prop=
"selectType"
>
<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=
"1"
>
全部成员
</el-radio>
<el-radio
:label=
"2"
>
筛选成员
</el-radio>
<el-radio
:label=
"2"
>
筛选成员
</el-radio>
</el-radio-group>
</el-radio-group>
...
@@ -56,6 +56,7 @@
...
@@ -56,6 +56,7 @@
<el-select
<el-select
v-model=
"basicForm.condition.chatId"
v-model=
"basicForm.condition.chatId"
@
change=
"valueChange"
@
change=
"valueChange"
@
focus=
"groupFocus"
multiple
multiple
collapse-tags
collapse-tags
placeholder=
"请选择"
placeholder=
"请选择"
...
@@ -187,7 +188,7 @@
...
@@ -187,7 +188,7 @@
width: footerWidth + 'px'
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>
<el-button
type=
"primary"
@
click=
"handleCancel"
>
取消
</el-button>
</div>
</div>
<SelectLabel
ref=
"selectLabel"
@
tagSelected=
"handleSelect"
:dialogVisible=
"dialogVisible"
></SelectLabel>
<SelectLabel
ref=
"selectLabel"
@
tagSelected=
"handleSelect"
:dialogVisible=
"dialogVisible"
></SelectLabel>
...
@@ -254,6 +255,7 @@ export default {
...
@@ -254,6 +255,7 @@ export default {
}
}
}
}
return
{
return
{
addLoading
:
false
,
eventBus
:
new
Vue
(),
eventBus
:
new
Vue
(),
basicForm
:
{
basicForm
:
{
condition
:
{}
condition
:
{}
...
@@ -376,6 +378,7 @@ export default {
...
@@ -376,6 +378,7 @@ export default {
params
.
sendTimeStr
=
this
.
basicForm
.
sendTime
+
' '
+
this
.
basicForm
.
sendDate
params
.
sendTimeStr
=
this
.
basicForm
.
sendTime
+
' '
+
this
.
basicForm
.
sendDate
}
}
console
.
log
(
params
)
console
.
log
(
params
)
this
.
addLoading
=
true
this
.
$apis
.
customerTransform
this
.
$apis
.
customerTransform
.
insert
(
params
)
.
insert
(
params
)
.
then
(
res
=>
{
.
then
(
res
=>
{
...
@@ -387,12 +390,14 @@ export default {
...
@@ -387,12 +390,14 @@ export default {
})
})
this
.
handleCancel
()
this
.
handleCancel
()
}
}
this
.
addLoading
=
false
})
})
.
catch
(
err
=>
{
.
catch
(
err
=>
{
this
.
$message
({
this
.
$message
({
type
:
'error'
,
type
:
'error'
,
message
:
err
.
message
message
:
err
.
message
})
})
this
.
addLoading
=
false
})
})
}
}
})
})
...
@@ -421,14 +426,21 @@ export default {
...
@@ -421,14 +426,21 @@ export default {
// this.$refs.selectLabel.init(this.tagging)
// this.$refs.selectLabel.init(this.tagging)
},
},
valueChange
(
val
)
{
valueChange
(
val
)
{
console
.
log
(
val
)
this
.
isUpdate
=
true
this
.
isUpdate
=
true
},
},
getGroupList
()
{
getGroupList
()
{
this
.
$apis
.
customerTransform
.
groupList
({}).
then
(
res
=>
{
if
(
this
.
basicForm
.
userList
&&
this
.
basicForm
.
userList
.
length
!=
0
)
{
console
.
log
(
res
)
const
staffIds
=
this
.
basicForm
.
userList
.
map
(
item
=>
item
.
staffId
)
console
.
log
(
staffIds
)
this
.
$apis
.
customerTransform
.
groupList
({
staffIds
}).
then
(
res
=>
{
this
.
groupList
=
res
this
.
groupList
=
res
})
})
}
else
{
this
.
$message
({
type
:
'error'
,
message
:
'请选择群发账号'
})
}
},
},
getSiftMembers
()
{
getSiftMembers
()
{
const
params
=
{
const
params
=
{
...
@@ -453,7 +465,6 @@ export default {
...
@@ -453,7 +465,6 @@ export default {
},
},
// 查看群发人数
// 查看群发人数
viewMembers
()
{
viewMembers
()
{
console
.
log
(
this
.
basicForm
)
if
(
!
this
.
basicForm
.
userList
||
this
.
basicForm
.
userList
.
length
==
0
)
{
if
(
!
this
.
basicForm
.
userList
||
this
.
basicForm
.
userList
.
length
==
0
)
{
this
.
$message
({
this
.
$message
({
type
:
'error'
,
type
:
'error'
,
...
@@ -462,9 +473,7 @@ export default {
...
@@ -462,9 +473,7 @@ export default {
return
return
}
}
const
params
=
this
.
getSiftMembers
()
const
params
=
this
.
getSiftMembers
()
console
.
log
(
params
)
this
.
$apis
.
customerTransform
.
customerCount
(
params
).
then
(
res
=>
{
this
.
$apis
.
customerTransform
.
customerCount
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
this
.
groupNumber
=
res
this
.
groupNumber
=
res
this
.
isUpdate
=
false
this
.
isUpdate
=
false
})
})
...
@@ -485,11 +494,13 @@ export default {
...
@@ -485,11 +494,13 @@ export default {
}
}
}
}
},
},
selectChange
(
val
)
{
groupFocus
()
{
console
.
log
(
val
)
if
(
this
.
basicForm
.
condition
&&
this
.
basicForm
.
condition
.
chatId
)
{
if
(
val
==
2
)
{
this
.
basicForm
.
condition
.
chatId
=
[]
this
.
getGroupList
()
this
.
groupList
=
[]
this
.
isUpdate
=
true
}
}
this
.
getGroupList
()
}
}
}
}
}
}
...
...
src/views/customerTransform/addCustomerGroup.vue
View file @
b4bc6e8
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
width: footerWidth + 'px'
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>
<el-button
type=
"primary"
@
click=
"handleCancel"
>
取消
</el-button>
</div>
</div>
<glsx-dialog
<glsx-dialog
...
@@ -152,6 +152,7 @@ export default {
...
@@ -152,6 +152,7 @@ export default {
}
}
}
}
return
{
return
{
addLoading
:
false
,
eventBus
:
new
Vue
(),
eventBus
:
new
Vue
(),
basicForm
:
{},
basicForm
:
{},
basicRules
:
{
basicRules
:
{
...
@@ -248,6 +249,7 @@ export default {
...
@@ -248,6 +249,7 @@ export default {
if
(
params
.
sendType
==
2
)
{
if
(
params
.
sendType
==
2
)
{
params
.
sendTimeStr
=
this
.
basicForm
.
sendTime
+
' '
+
this
.
basicForm
.
sendDate
params
.
sendTimeStr
=
this
.
basicForm
.
sendTime
+
' '
+
this
.
basicForm
.
sendDate
}
}
this
.
addLoading
=
true
console
.
log
(
params
)
console
.
log
(
params
)
this
.
$apis
.
customerTransform
this
.
$apis
.
customerTransform
.
insert
(
params
)
.
insert
(
params
)
...
@@ -260,12 +262,14 @@ export default {
...
@@ -260,12 +262,14 @@ export default {
})
})
this
.
handleCancel
()
this
.
handleCancel
()
}
}
this
.
addLoading
=
false
})
})
.
catch
(
err
=>
{
.
catch
(
err
=>
{
this
.
$message
({
this
.
$message
({
type
:
'error'
,
type
:
'error'
,
message
:
err
.
message
message
:
err
.
message
})
})
this
.
addLoading
=
false
})
})
})
})
}
}
...
...
src/views/customerTransform/components/welcomeWords.vue
View file @
b4bc6e8
...
@@ -326,11 +326,7 @@ export default {
...
@@ -326,11 +326,7 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.welcome-box
{
.welcome-box
{
}
.content
{
.content-bg
{
background-color
:
#f7f7f7
;
}
.content
{
display
:
inline-block
;
display
:
inline-block
;
vertical-align
:
text-top
;
vertical-align
:
text-top
;
width
:
calc
(
100%
-
103px
);
width
:
calc
(
100%
-
103px
);
...
@@ -408,7 +404,12 @@ export default {
...
@@ -408,7 +404,12 @@ export default {
font-size
:
14px
;
font-size
:
14px
;
color
:
#999
;
color
:
#999
;
}
}
}
}
}
.content-bg
{
background-color
:
#f7f7f7
;
}
.required
{
.required
{
display
:
inline-block
;
display
:
inline-block
;
line-height
:
40px
;
line-height
:
40px
;
...
...
src/views/customerTransform/detailCustomer.vue
View file @
b4bc6e8
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
{{
item
.
staffName
}}
{{
item
.
staffName
}}
<span
<span
:class=
"[item.status == 0 ? 'unsend' : 'send']"
:class=
"[item.status == 0 ? 'unsend' : 'send']"
>
{{
item
.
status
==
0
?
'未
'
:
'已'
}}
发送
</span>
>
{{
item
.
status
==
0
?
'未
发送'
:
item
.
status
==
1
?
'已发送'
:
'发送失败'
}}
</span>
</div>
</div>
<div
class=
"info-num"
>
共
{{
item
.
customerCount
?
item
.
customerCount
:
0
}}
个客户
</div>
<div
class=
"info-num"
>
共
{{
item
.
customerCount
?
item
.
customerCount
:
0
}}
个客户
</div>
</div>
</div>
...
@@ -60,9 +60,9 @@
...
@@ -60,9 +60,9 @@
@
select=
"handleCustomSelect"
@
select=
"handleCustomSelect"
>
>
<el-menu-item
index
>
全部
</el-menu-item>
<el-menu-item
index
>
全部
</el-menu-item>
<el-menu-item
index=
"1"
>
已
发送
客户
</el-menu-item>
<el-menu-item
index=
"1"
>
已
送达
客户
</el-menu-item>
<el-menu-item
index=
"0"
>
未
发送
客户
</el-menu-item>
<el-menu-item
index=
"0"
>
未
送达
客户
</el-menu-item>
<el-menu-item
index=
"2"
>
客户
接受
失败
</el-menu-item>
<el-menu-item
index=
"2"
>
客户
送达
失败
</el-menu-item>
</el-menu>
</el-menu>
<div
class=
"detail-total"
>
共
{{
customerlist
.
length
||
0
}}
人
</div>
<div
class=
"detail-total"
>
共
{{
customerlist
.
length
||
0
}}
人
</div>
<div
v-if=
"customerlist.length != 0"
class=
"info-list"
>
<div
v-if=
"customerlist.length != 0"
class=
"info-list"
>
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
<div
<div
class=
"customer-table"
class=
"customer-table"
:class=
"[item.status == 0 ? 'unsend' : 'send']"
:class=
"[item.status == 0 ? 'unsend' : 'send']"
>
{{
item
.
status
==
0
?
'未
'
:
'已'
}}
送达
</div>
>
{{
item
.
status
==
0
?
'未
送达'
:
item
.
status
==
1
?
'已送达'
:
'送达失败'
}}
</div>
</div>
</div>
</div>
</div>
<div
class=
"info-right"
>
<div
class=
"info-right"
>
...
...
src/views/memberCenter/center.vue
View file @
b4bc6e8
...
@@ -32,13 +32,15 @@
...
@@ -32,13 +32,15 @@
</el-form-item>
</el-form-item>
<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"
placeholder=
"请输入合理价格"
@
keyup
.
native=
"ruleForm.price = oninput(ruleForm.price)"
>
<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-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"
>
<!-- :onkeyup="(ruleForm.marketPrice = ruleForm.marketPrice.replace(/[^\-\d.]/g, ''))" -->
<!-- :onkeyup="(ruleForm.marketPrice = ruleForm.marketPrice.replace(/[^\-\d.]/g, ''))" -->
<el-input
v-model=
"ruleForm.marketPrice"
size=
"small"
placeholder=
"请输入合理价格"
@
keyup
.
native=
"ruleForm.marketPrice = oninput(ruleForm.marketPrice)"
>
<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-input>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -65,12 +67,12 @@
...
@@ -65,12 +67,12 @@
</el-form-item>
</el-form-item>
</el-row>
</el-row>
<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-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-option
v-for=
"item in memberTypeLists"
:key=
"item.dictValue"
:label=
"item.dictLabel"
:value=
"item.dictValue"
></el-option>
</el-select>
</el-select>
</el-form-item>
</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-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>
</el-form-item>
...
@@ -140,7 +142,7 @@ export default {
...
@@ -140,7 +142,7 @@ export default {
// }, 1000)
// }, 1000)
}
}
return
{
return
{
isReload
:
true
,
isReload
:
true
,
pickerOptions
:
{
pickerOptions
:
{
disabledDate
(
time
)
{
disabledDate
(
time
)
{
return
time
.
getTime
()
>
Date
.
now
()
||
time
.
getTime
()
<
new
Date
(
'2017-12-31'
).
getTime
()
return
time
.
getTime
()
>
Date
.
now
()
||
time
.
getTime
()
<
new
Date
(
'2017-12-31'
).
getTime
()
...
@@ -152,10 +154,10 @@ export default {
...
@@ -152,10 +154,10 @@ export default {
userInfo
:
''
,
userInfo
:
''
,
status
:
''
,
status
:
''
,
merchantName
:
''
,
merchantName
:
''
,
memberType
:
''
memberType
:
''
},
},
searchFormTable
:
{},
searchFormTable
:
{},
memberTypeLists
:[
memberTypeLists
:
[
{
{
dictValue
:
''
,
dictValue
:
''
,
dictLabel
:
'全部'
dictLabel
:
'全部'
...
@@ -240,7 +242,7 @@ export default {
...
@@ -240,7 +242,7 @@ export default {
price
:
''
,
price
:
''
,
marketPrice
:
''
,
marketPrice
:
''
,
linkUrl
:
''
,
linkUrl
:
''
,
tryAble
:
''
tryAble
:
''
},
},
copyRuleForm
:
{},
copyRuleForm
:
{},
rules
:
{
rules
:
{
...
@@ -301,13 +303,15 @@ export default {
...
@@ -301,13 +303,15 @@ export default {
},
},
getCardContentFun
()
{
getCardContentFun
()
{
getCardContent
({
merchantId
:
this
.
merchantId
}).
then
(
res
=>
{
getCardContent
({
merchantId
:
this
.
merchantId
}).
then
(
res
=>
{
if
(
!
(
res
&&
res
.
length
)){
return
}
this
.
ruleForm
.
equityId
=
res
[
0
].
id
this
.
ruleForm
.
equityId
=
res
[
0
].
id
this
.
ruleForm
.
cardName
=
res
[
0
].
cardClassName
this
.
ruleForm
.
cardName
=
res
[
0
].
cardClassName
this
.
ruleForm
.
price
=
res
[
0
].
price
this
.
ruleForm
.
price
=
res
[
0
].
price
this
.
ruleForm
.
marketPrice
=
res
[
0
].
marketPrice
this
.
ruleForm
.
marketPrice
=
res
[
0
].
marketPrice
this
.
ruleForm
.
linkUrl
=
res
[
0
].
url
this
.
ruleForm
.
linkUrl
=
res
[
0
].
url
this
.
ruleForm
.
tryAble
=
res
[
0
].
tryAble
this
.
ruleForm
.
tryAble
=
res
[
0
].
tryAble
})
})
},
},
openEditWrap
()
{
openEditWrap
()
{
...
@@ -330,7 +334,7 @@ export default {
...
@@ -330,7 +334,7 @@ export default {
params
.
cardClassName
=
this
.
ruleForm
.
cardName
params
.
cardClassName
=
this
.
ruleForm
.
cardName
params
.
price
=
this
.
ruleForm
.
price
params
.
price
=
this
.
ruleForm
.
price
params
.
marketPrice
=
this
.
ruleForm
.
marketPrice
params
.
marketPrice
=
this
.
ruleForm
.
marketPrice
params
.
tryAble
=
this
.
ruleForm
.
tryAble
params
.
tryAble
=
this
.
ruleForm
.
tryAble
updateCardContent
(
params
).
then
(
res
=>
{
updateCardContent
(
params
).
then
(
res
=>
{
if
(
!
res
)
{
if
(
!
res
)
{
return
return
...
@@ -420,7 +424,7 @@ export default {
...
@@ -420,7 +424,7 @@ export default {
.seeEquity
{
.seeEquity
{
position
:
absolute
;
position
:
absolute
;
right
:
0
;
right
:
0
;
bottom
:
1
0
px
;
bottom
:
1
4
px
;
}
}
.cancelBtn
{
.cancelBtn
{
position
:
absolute
;
position
:
absolute
;
...
@@ -458,7 +462,8 @@ export default {
...
@@ -458,7 +462,8 @@ export default {
}
}
.address
{
.address
{
display
:
inline-block
;
display
:
inline-block
;
max-width
:
600px
;
vertical-align
:
bottom
;
max-width
:
calc
(
100%
-
220px
);
color
:
#989898
;
color
:
#989898
;
}
}
}
}
...
...
src/views/memberCenter/order.vue
View file @
b4bc6e8
...
@@ -241,6 +241,7 @@ export default {
...
@@ -241,6 +241,7 @@ export default {
display
:
flex
;
display
:
flex
;
height
:
34px
;
height
:
34px
;
.choseItem
{
.choseItem
{
cursor
:
pointer
;
width
:
120px
;
width
:
120px
;
height
:
34px
;
height
:
34px
;
line-height
:
34px
;
line-height
:
34px
;
...
...
src/views/memberCenter/service.vue
View file @
b4bc6e8
...
@@ -186,7 +186,10 @@ export default {
...
@@ -186,7 +186,10 @@ export default {
//创建服务
//创建服务
handleCreate
()
{
handleCreate
()
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/memberCenter/serviceAddUpdateLook'
path
:
'/memberCenter/serviceAddUpdateLook'
,
query
:{
$title
:
encodeURI
(
'创建服务'
)
}
})
})
},
},
//失效
//失效
...
@@ -227,7 +230,8 @@ export default {
...
@@ -227,7 +230,8 @@ export default {
path
:
'/memberCenter/serviceAddUpdateLook'
,
path
:
'/memberCenter/serviceAddUpdateLook'
,
query
:
{
query
:
{
couponId
:
row
.
id
,
couponId
:
row
.
id
,
title
:
'编辑'
title
:
'编辑'
,
$title
:
encodeURI
(
'编辑服务'
)
}
}
})
})
},
},
...
@@ -236,7 +240,8 @@ export default {
...
@@ -236,7 +240,8 @@ export default {
path
:
'/memberCenter/serviceAddUpdateLook'
,
path
:
'/memberCenter/serviceAddUpdateLook'
,
query
:
{
query
:
{
couponId
:
row
.
id
,
couponId
:
row
.
id
,
title
:
'查看'
title
:
'查看'
,
$title
:
encodeURI
(
'查看服务'
)
}
}
})
})
},
},
...
...
src/views/memberCenter/serviceAddUpdateLook.vue
View file @
b4bc6e8
...
@@ -77,12 +77,14 @@
...
@@ -77,12 +77,14 @@
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
label=
"会员价"
prop=
"vipPrice"
style=
"width: 315px"
>
<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)"
>
<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-input>
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
label=
"门店价"
prop=
"shopPrice"
style=
"width: 315px"
>
<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)"
>
<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-input>
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
label=
"库存"
prop=
"stock"
style=
"width: 315px"
>
<el-form-item
size=
"small"
label=
"库存"
prop=
"stock"
style=
"width: 315px"
>
...
...
src/views/memberCenter/setmeal.vue
View file @
b4bc6e8
...
@@ -148,7 +148,9 @@ export default {
...
@@ -148,7 +148,9 @@ export default {
//创建套餐
//创建套餐
handleCreate
()
{
handleCreate
()
{
this
.
$router
.
push
(
'/memberCenter/setmealAddUpdate'
)
this
.
$router
.
push
({
path
:
'/memberCenter/setmealAddUpdate'
,
query
:{
$title
:
encodeURI
(
'创建套餐'
)
}})
},
},
handleClose
()
{
handleClose
()
{
this
.
isDialogVisible
=
!
this
.
isDialogVisible
this
.
isDialogVisible
=
!
this
.
isDialogVisible
...
@@ -192,7 +194,7 @@ export default {
...
@@ -192,7 +194,7 @@ export default {
})
})
},
},
handleEdit
(
row
)
{
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
)
{},
handleLook
(
row
)
{},
...
...
src/views/memberCenter/setmealAddUpdate.vue
View file @
b4bc6e8
...
@@ -28,7 +28,8 @@
...
@@ -28,7 +28,8 @@
<el-form-item
size=
"small"
label=
"售价"
prop=
"packagePrice"
style=
"width: 315px"
>
<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)"
>
<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-input>
</el-form-item>
</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