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 fab4de7c
authored
Nov 19, 2021
by
李长胜
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
会员中心修改
1 parent
34d0e94b
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
103 additions
and
49 deletions
src/api/modules/order.js
src/views/memberCenter/center.vue
src/views/memberCenter/order.vue
src/views/memberCenter/orderDetail.vue
src/views/memberCenter/record.vue
src/views/memberCenter/service.vue
src/views/memberCenter/serviceAddUpdateLook.vue
src/api/modules/order.js
View file @
fab4de7
...
@@ -13,5 +13,14 @@ const getOrderListApi = params => {
...
@@ -13,5 +13,14 @@ const getOrderListApi = params => {
sign
:
true
sign
:
true
})
})
}
}
export
{
getOrderListApi
}
\ No newline at end of file
\ No newline at end of file
const
getOrderPageDetail
=
params
=>
{
params
.
method
=
`scrm.api.equity.merchant.order.select`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
export
{
getOrderListApi
,
getOrderPageDetail
}
\ No newline at end of file
\ No newline at end of file
src/views/memberCenter/center.vue
View file @
fab4de7
...
@@ -20,24 +20,22 @@
...
@@ -20,24 +20,22 @@
<span
class=
"price"
v-if=
"ruleForm.marketPrice"
>
¥
{{
ruleForm
.
marketPrice
}}
</span>
<span
class=
"price"
v-if=
"ruleForm.marketPrice"
>
¥
{{
ruleForm
.
marketPrice
}}
</span>
</div>
</div>
<div>
<div>
<span>
<span>
会员权益使用地址:
</span>
会员权益使用地址:
</span>
<span
class=
"address"
>
{{
ruleForm
.
linkUrl
}}
</span>
<span
class=
"address"
>
{{
ruleForm
.
linkUrl
}}
</span>
</div>
</div>
<el-button
class=
"seeEquity"
size=
"small"
type=
"primary"
@
click=
"openDialog"
>
查看权益
</el-button>
<el-button
class=
"seeEquity"
size=
"small"
type=
"primary"
@
click=
"openDialog"
>
查看权益
</el-button>
</div>
</div>
<div
class=
"cardDetail editForm"
v-else
>
<div
class=
"cardDetail editForm"
v-else
>
<el-form
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"90px"
class=
"demo-ruleForm"
style=
"width:500px"
>
<el-form
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"90px"
class=
"demo-ruleForm"
style=
"width:
500px"
>
<el-form-item
label=
"会员卡名"
prop=
"cardName"
size=
"small"
>
<el-form-item
label=
"会员卡名"
prop=
"cardName"
size=
"small"
>
<el-input
v-model=
"ruleForm.cardName"
size=
"small"
placeholder=
"请输入会员卡名"
maxlength=
"15"
></el-input>
<el-input
v-model=
"ruleForm.cardName"
size=
"small"
placeholder=
"请输入会员卡名"
maxlength=
"15"
></el-input>
</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
>
</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
>
...
@@ -52,15 +50,15 @@
...
@@ -52,15 +50,15 @@
<p
class=
"pageTitle"
>
会员中心
</p>
<p
class=
"pageTitle"
>
会员中心
</p>
<div
class=
"live-room container"
>
<div
class=
"live-room container"
>
<el-form
:inline=
"true"
style=
"width:
100%"
:model=
"searchForm"
label-width=
"10
0px"
label-position=
"right"
>
<el-form
:inline=
"true"
style=
"width:
100%"
:model=
"searchForm"
label-width=
"7
0px"
label-position=
"right"
>
<el-row>
<el-row>
<el-form-item
size=
"small"
label=
"会员用户"
>
<el-form-item
size=
"small"
label=
"会员用户"
>
<el-input
:size=
"size"
v-model=
"searchForm.userInfo"
placeholder=
"请输入会员用户或手机号"
clearable
></el-input>
<el-input
:size=
"size"
v-model=
"searchForm.userInfo"
placeholder=
"请输入会员用户或手机号"
clearable
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
label=
"门店"
>
<el-form-item
size=
"small"
label=
"门店"
style=
"margin-left:-10px"
>
<el-input
:size=
"size"
v-model=
"searchForm.merchantName"
placeholder=
"请输入门店"
clearable
></el-input>
<el-input
:size=
"size"
v-model=
"searchForm.merchantName"
placeholder=
"请输入门店"
clearable
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
label=
"状态"
>
<el-form-item
size=
"small"
label=
"状态"
style=
"margin-left:-10px"
>
<el-select
size=
"small"
v-model=
"searchForm.status"
placeholder=
"请选择"
>
<el-select
size=
"small"
v-model=
"searchForm.status"
placeholder=
"请选择"
>
<el-option
v-for=
"item in memberCenterStatus"
:key=
"item.dictValue"
:label=
"item.dictLabel"
:value=
"item.dictValue"
></el-option>
<el-option
v-for=
"item in memberCenterStatus"
:key=
"item.dictValue"
:label=
"item.dictLabel"
:value=
"item.dictValue"
></el-option>
</el-select>
</el-select>
...
@@ -71,13 +69,18 @@
...
@@ -71,13 +69,18 @@
<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>
<el-form-item
size=
"small"
style=
"float:right"
>
<el-form-item
size=
"small"
style=
"float:
right"
>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
:size=
"size"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
:size=
"size"
@
click=
"handleReset"
>
重置
</el-button>
</el-form-item>
</el-form-item>
</el-row>
</el-row>
</el-form>
</el-form>
<GLTable
ref=
"memberCenterRef"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"getListApi"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
></GLTable>
<GLTable
ref=
"memberCenterRef"
: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>
</span>
</GLTable>
</div>
</div>
<glsx-dialog
title=
"权益详情"
width=
"712px"
:noBtnOk=
"true"
:noCancel=
"true"
:noClose=
"false"
btnCancelLabel=
"关闭"
btnSize=
"small"
:isVisible=
"isDialogVisible"
:showClose=
"false"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleClose"
>
<glsx-dialog
title=
"权益详情"
width=
"712px"
:noBtnOk=
"true"
:noCancel=
"true"
:noClose=
"false"
btnCancelLabel=
"关闭"
btnSize=
"small"
:isVisible=
"isDialogVisible"
:showClose=
"false"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleClose"
>
<el-scrollbar>
<el-scrollbar>
...
@@ -168,7 +171,9 @@ export default {
...
@@ -168,7 +171,9 @@ export default {
{
{
label
:
'会员用户'
,
label
:
'会员用户'
,
prop
:
'accountName'
,
prop
:
'accountName'
,
width
:
'180'
width
:
'180'
,
addHtml
:
'accountName'
// formatter: cellValue => {
// formatter: cellValue => {
// return cellValue.startTime + '-' + cellValue.endTime
// return cellValue.startTime + '-' + cellValue.endTime
// }
// }
...
@@ -261,8 +266,8 @@ export default {
...
@@ -261,8 +266,8 @@ export default {
if
(
len1
==
'-'
)
{
if
(
len1
==
'-'
)
{
str
=
''
str
=
''
}
//限制只能输入一个小数点
}
//限制只能输入一个小数点
if
(
Number
(
value
)
>=
99999
)
{
if
(
Number
(
value
)
>=
99999
)
{
return
str
=
99999
return
(
str
=
99999
)
}
}
if
(
str
.
indexOf
(
'.'
)
!=
-
1
)
{
if
(
str
.
indexOf
(
'.'
)
!=
-
1
)
{
let
str_
=
str
.
substr
(
str
.
indexOf
(
'.'
)
+
1
)
let
str_
=
str
.
substr
(
str
.
indexOf
(
'.'
)
+
1
)
...
@@ -449,6 +454,9 @@ export default {
...
@@ -449,6 +454,9 @@ export default {
.el-range-editor--small.el-input__inner
{
.el-range-editor--small.el-input__inner
{
width
:
215px
;
width
:
215px
;
}
}
/
deep
/
.el-input--small
.el-input__inner
{
width
:
215px
;
}
/
deep
/
.el-dialog__header
.el-dialog__title
{
/
deep
/
.el-dialog__header
.el-dialog__title
{
font-size
:
16px
;
font-size
:
16px
;
color
:
#000
;
color
:
#000
;
...
@@ -459,10 +467,10 @@ export default {
...
@@ -459,10 +467,10 @@ export default {
//
::v-deep
.el-dialog__body
{
//
::v-deep
.el-dialog__body
{
//
border-top
:
1px
solid
#e6e6e6
;
//
border-top
:
1px
solid
#e6e6e6
;
//
border-bottom
:
1px
solid
#e6e6e6
;
//
border-bottom
:
1px
solid
#e6e6e6
;
//
padding
:
20px
25px
;
//
padding
:
20px
25px
;
//
}
//
}
/
deep
/
.el-dialog__body
{
/
deep
/
.el-dialog__body
{
border-top
:
1px
solid
#e6e6e6
;
border-top
:
1px
solid
#e6e6e6
;
border-bottom
:
1px
solid
#e6e6e6
;
border-bottom
:
1px
solid
#e6e6e6
;
padding
:
20px
45px
;
padding
:
20px
45px
;
.modal-body
{
.modal-body
{
...
...
src/views/memberCenter/order.vue
View file @
fab4de7
...
@@ -7,10 +7,10 @@
...
@@ -7,10 +7,10 @@
<el-form-item
size=
"small"
label=
"订单编号"
>
<el-form-item
size=
"small"
label=
"订单编号"
>
<el-input
:size=
"size"
v-model=
"searchForm.orderCode"
placeholder=
"请输入订单编号"
clearable
></el-input>
<el-input
:size=
"size"
v-model=
"searchForm.orderCode"
placeholder=
"请输入订单编号"
clearable
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
label=
"名称"
>
<el-form-item
size=
"small"
label=
"名称"
style=
"margin-left:20px"
>
<el-input
:size=
"size"
v-model=
"searchForm.packageName"
placeholder=
"请输入名称"
clearable
></el-input>
<el-input
:size=
"size"
v-model=
"searchForm.packageName"
placeholder=
"请输入名称"
clearable
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
label=
"类型"
>
<el-form-item
size=
"small"
label=
"类型"
style=
"margin-left:-10px"
>
<el-select
size=
"small"
v-model=
"searchForm.orderType"
placeholder=
"请选择"
>
<el-select
size=
"small"
v-model=
"searchForm.orderType"
placeholder=
"请选择"
>
<el-option
v-for=
"item in orderTypeList"
:key=
"item.dictValue"
:label=
"item.dictLabel"
:value=
"item.dictValue"
></el-option>
<el-option
v-for=
"item in orderTypeList"
:key=
"item.dictValue"
:label=
"item.dictLabel"
:value=
"item.dictValue"
></el-option>
</el-select>
</el-select>
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
<el-form-item
size=
"small"
label=
"用户信息"
>
<el-form-item
size=
"small"
label=
"用户信息"
>
<el-input
:size=
"size"
v-model=
"searchForm.userInfo"
placeholder=
"请输入用户名或手机号"
clearable
></el-input>
<el-input
:size=
"size"
v-model=
"searchForm.userInfo"
placeholder=
"请输入用户名或手机号"
clearable
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
label=
"下单时间"
>
<el-form-item
size=
"small"
label=
"下单时间"
style=
"margin-left:20px"
>
<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>
...
@@ -125,7 +125,7 @@ export default {
...
@@ -125,7 +125,7 @@ export default {
{
{
label
:
'订单号'
,
label
:
'订单号'
,
prop
:
'orderCode'
,
prop
:
'orderCode'
,
line
:
1
}
}
]
]
},
},
...
@@ -172,6 +172,9 @@ export default {
...
@@ -172,6 +172,9 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
/
deep
/
.el-input--small
.el-input__inner
{
width
:
215px
;
}
.el-range-editor.is-active
,
.el-range-editor.is-active
,
.el-range-editor.is-active
:hover
{
.el-range-editor.is-active
:hover
{
border-color
:
#5850ff
;
border-color
:
#5850ff
;
...
...
src/views/memberCenter/orderDetail.vue
View file @
fab4de7
...
@@ -4,9 +4,7 @@
...
@@ -4,9 +4,7 @@
<div
class=
"topMsg"
>
<div
class=
"topMsg"
>
<div
class=
"orderNo"
>
订单编号:
{{
detail
.
orderCode
}}
</div>
<div
class=
"orderNo"
>
订单编号:
{{
detail
.
orderCode
}}
</div>
<div
class=
"orderTime"
>
下单时间:
{{
detail
.
createDate
}}
</div>
<div
class=
"orderTime"
>
下单时间:
{{
detail
.
createDate
}}
</div>
<el-button
type=
"primary"
size=
"small"
class=
"backBtn"
@
click=
"goBack"
>
<el-button
type=
"primary"
size=
"small"
class=
"backBtn"
@
click=
"goBack"
>
返回
</el-button>
返回
</el-button>
</div>
</div>
<div
class=
"midMsgWrap"
>
<div
class=
"midMsgWrap"
>
<div
class=
"midMsgTitle"
>
<div
class=
"midMsgTitle"
>
...
@@ -33,6 +31,7 @@
...
@@ -33,6 +31,7 @@
<!--
<div>
8/12次
</div>
<!--
<div>
8/12次
</div>
<div>
0/1次
</div>
<div>
0/1次
</div>
<div>
0/3次
</div>
-->
<div>
0/3次
</div>
-->
<!-- detail.list从上一个页面那list有可能为空 -->
<div
v-for=
"(item, index) in detail.list"
:key=
"index"
>
{{
item
.
serviceAmount
}}
/
{{
item
.
serviceCount
}}
次
</div>
<div
v-for=
"(item, index) in detail.list"
:key=
"index"
>
{{
item
.
serviceAmount
}}
/
{{
item
.
serviceCount
}}
次
</div>
</div>
</div>
</div>
</div>
...
@@ -60,7 +59,7 @@
...
@@ -60,7 +59,7 @@
<el-table-column
prop=
"totalPrice"
label=
"小计/元"
align=
"center"
></el-table-column>
<el-table-column
prop=
"totalPrice"
label=
"小计/元"
align=
"center"
></el-table-column>
<el-table-column
prop=
"realPayPrice"
label=
"实收金额"
align=
"center"
>
<el-table-column
prop=
"realPayPrice"
label=
"实收金额"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span
style=
"color:
#EB4E4E
"
>
{{
scope
.
row
.
realPayPrice
}}
</span>
<span
style=
"color:
#eb4e4e
"
>
{{
scope
.
row
.
realPayPrice
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"orderStatus"
label=
"状态"
align=
"center"
>
<el-table-column
prop=
"orderStatus"
label=
"状态"
align=
"center"
>
...
@@ -75,15 +74,18 @@
...
@@ -75,15 +74,18 @@
</template>
</template>
<
script
>
<
script
>
import
{
getOrderPageDetail
}
from
'@/api/modules/order'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
tableData
:
[{}],
tableData
:
[{}],
detail
:
this
.
$route
.
query
.
detail
detail
:
{},
//this.$route.query.detail,
mylist
:
[]
}
}
},
},
created
()
{
created
()
{
this
.
setTableData
()
this
.
getOrderPageDetail
()
// this.setTableData()
},
},
mounted
()
{
mounted
()
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
...
@@ -93,17 +95,36 @@ export default {
...
@@ -93,17 +95,36 @@ export default {
})
})
},
},
methods
:
{
methods
:
{
setTableData
()
{
getOrderPageDetail
()
{
this
.
$set
(
this
.
tableData
[
0
],
'couponList'
,
this
.
detail
.
couponList
)
getOrderPageDetail
({
id
:
this
.
$route
.
query
.
id
}).
then
(
res
=>
{
this
.
$set
(
this
.
tableData
[
0
],
'orderType'
,
this
.
detail
.
orderType
)
// this.mylist=res.list
this
.
$set
(
this
.
tableData
[
0
],
'effectiveNum'
,
this
.
detail
.
effectiveNum
)
if
(
res
.
code
==
'0'
)
{
this
.
$set
(
this
.
tableData
[
0
],
'originalPrice'
,
this
.
detail
.
originalPrice
)
this
.
detail
=
res
.
data
this
.
$set
(
this
.
tableData
[
0
],
'amount'
,
1
)
this
.
$set
(
this
.
tableData
[
0
],
'couponList'
,
this
.
detail
.
couponList
)
this
.
$set
(
this
.
tableData
[
0
],
'totalPrice'
,
this
.
detail
.
originalPrice
)
this
.
$set
(
this
.
tableData
[
0
],
'orderType'
,
this
.
detail
.
orderType
)
this
.
$set
(
this
.
tableData
[
0
],
'realPayPrice'
,
this
.
detail
.
realPayPrice
)
this
.
$set
(
this
.
tableData
[
0
],
'effectiveNum'
,
this
.
detail
.
effectiveNum
)
this
.
$set
(
this
.
tableData
[
0
],
'orderStatus'
,
this
.
detail
.
orderStatus
)
this
.
$set
(
this
.
tableData
[
0
],
'originalPrice'
,
this
.
detail
.
originalPrice
)
console
.
log
(
this
.
tableData
[
0
],
'表格数据'
)
this
.
$set
(
this
.
tableData
[
0
],
'amount'
,
1
)
this
.
$set
(
this
.
tableData
[
0
],
'totalPrice'
,
this
.
detail
.
originalPrice
)
this
.
$set
(
this
.
tableData
[
0
],
'realPayPrice'
,
this
.
detail
.
realPayPrice
)
this
.
$set
(
this
.
tableData
[
0
],
'orderStatus'
,
this
.
detail
.
orderStatus
)
}
else
{
this
.
$message
.
error
(
`
${
res
.
message
}
`
)
}
})
},
},
// setTableData() {
// this.$set(this.tableData[0], 'couponList', this.detail.couponList)
// this.$set(this.tableData[0], 'orderType', this.detail.orderType)
// this.$set(this.tableData[0], 'effectiveNum', this.detail.effectiveNum)
// this.$set(this.tableData[0], 'originalPrice', this.detail.originalPrice)
// this.$set(this.tableData[0], 'amount', 1)
// this.$set(this.tableData[0], 'totalPrice', this.detail.originalPrice)
// this.$set(this.tableData[0], 'realPayPrice', this.detail.realPayPrice)
// this.$set(this.tableData[0], 'orderStatus', this.detail.orderStatus)
// console.log(this.tableData[0], '表格数据')
// },
goBack
()
{
goBack
()
{
console
.
log
(
this
.
detail
,
'gggg'
)
console
.
log
(
this
.
detail
,
'gggg'
)
this
.
$router
.
go
(
-
1
)
this
.
$router
.
go
(
-
1
)
...
...
src/views/memberCenter/record.vue
View file @
fab4de7
...
@@ -7,13 +7,13 @@
...
@@ -7,13 +7,13 @@
<el-button
:size=
"size"
type=
"primary"
class=
"el-icon-plus"
@
click=
"handleEdit(1)"
>
新增直播
</el-button>
<el-button
:size=
"size"
type=
"primary"
class=
"el-icon-plus"
@
click=
"handleEdit(1)"
>
新增直播
</el-button>
</el-form-item>
</el-form-item>
</el-form>
-->
</el-form>
-->
<el-form
:inline=
"true"
style=
"width:100%"
:model=
"searchForm"
label-width=
"
100
px"
label-position=
"right"
>
<el-form
:inline=
"true"
style=
"width:100%"
:model=
"searchForm"
label-width=
"
85
px"
label-position=
"right"
>
<el-row>
<el-row>
<!--
<el-col
:span=
"6"
></el-col>
-->
<!--
<el-col
:span=
"6"
></el-col>
-->
<el-form-item
size=
"small"
label=
"服务名称"
>
<el-form-item
size=
"small"
label=
"服务名称"
>
<el-input
:size=
"size"
v-model=
"searchForm.couponName"
placeholder=
"请输入服务名称"
clearable
></el-input>
<el-input
:size=
"size"
v-model=
"searchForm.couponName"
placeholder=
"请输入服务名称"
clearable
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
label=
"核销用户"
>
<el-form-item
size=
"small"
label=
"核销用户"
style=
"margin-left:-10px"
>
<el-input
:size=
"size"
v-model=
"searchForm.userReq"
placeholder=
"请输入核销用户"
clearable
></el-input>
<el-input
:size=
"size"
v-model=
"searchForm.userReq"
placeholder=
"请输入核销用户"
clearable
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
label=
"核销员"
>
<el-form-item
size=
"small"
label=
"核销员"
>
...
@@ -94,6 +94,11 @@ export default {
...
@@ -94,6 +94,11 @@ export default {
line
:
1
line
:
1
},
},
{
{
label
:
'核销用户'
,
prop
:
'userName'
,
line
:
1
},
{
label
:
'核销员'
,
label
:
'核销员'
,
prop
:
'verificationOperator'
prop
:
'verificationOperator'
},
},
...
@@ -198,6 +203,9 @@ export default {
...
@@ -198,6 +203,9 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
/
deep
/
.el-input--small
.el-input__inner
{
width
:
215px
;
}
.el-range-editor.is-active
,
.el-range-editor.is-active
,
.el-range-editor.is-active
:hover
{
.el-range-editor.is-active
:hover
{
border-color
:
#5850ff
;
border-color
:
#5850ff
;
...
...
src/views/memberCenter/service.vue
View file @
fab4de7
...
@@ -254,4 +254,8 @@ export default {
...
@@ -254,4 +254,8 @@ export default {
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
></
style
>
<
style
lang=
"scss"
scoped
>
/
deep
/
.el-input--small
.el-input__inner
{
width
:
215px
;
}
</
style
>
src/views/memberCenter/serviceAddUpdateLook.vue
View file @
fab4de7
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
领取后
领取后
<el-input
<el-input
v-model=
"effectiveDays"
v-model=
"effectiveDays"
maxlength=
"4"
@
input=
"
@
input=
"
val =>
{
val =>
{
effectiveDays = val.replace(/[^\d]/g, '')
effectiveDays = val.replace(/[^\d]/g, '')
...
@@ -54,6 +55,7 @@
...
@@ -54,6 +55,7 @@
有效期内每
有效期内每
<el-input
<el-input
v-model=
"limitDays"
v-model=
"limitDays"
maxlength=
"4"
@
input=
"
@
input=
"
val =>
{
val =>
{
limitDays = val.replace(/[^\d]/g, '')
limitDays = val.replace(/[^\d]/g, '')
...
@@ -74,17 +76,17 @@
...
@@ -74,17 +76,17 @@
</div>
</div>
</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"
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
>
</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"
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
>
</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"
>
<el-input
size=
"small"
:disabled=
"title == '查看'"
v-model
.
number=
"ruleForm.stock"
placeholder=
"请输入"
></el-input>
<el-input
size=
"small"
:disabled=
"title == '查看'"
maxlength=
"6"
v-model
.
number=
"ruleForm.stock"
placeholder=
"请输入"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
label=
"使用说明"
prop=
"useDescription"
style=
"width: 670px"
>
<el-form-item
size=
"small"
label=
"使用说明"
prop=
"useDescription"
style=
"width: 670px"
>
<el-input
size=
"small"
:rows=
"6"
:disabled=
"title == '查看'"
type=
"textarea"
v-model=
"ruleForm.useDescription"
placeholder=
"请输入"
maxlength=
"200"
show-word-limit
></el-input>
<el-input
size=
"small"
:rows=
"6"
:disabled=
"title == '查看'"
type=
"textarea"
v-model=
"ruleForm.useDescription"
placeholder=
"请输入"
maxlength=
"200"
show-word-limit
></el-input>
...
@@ -97,10 +99,9 @@
...
@@ -97,10 +99,9 @@
<span
class=
"effectiveRange"
>
{{ limitText }}
</span>
<span
class=
"effectiveRange"
>
{{ limitText }}
</span>
<span
class=
"timeRange"
>
{{ effectiveRangeText }}
</span>
<span
class=
"timeRange"
>
{{ effectiveRangeText }}
</span>
<div
class=
"grayLine"
></div>
<div
class=
"grayLine"
></div>
<div
class=
"desc"
>
使用说明:
</div>
<div
class=
"desc"
>
使用说明:
</div>
<span
class=
"detailDesc"
>
{{ ruleForm.useDescription }}
</span>
<span
class=
"detailDesc"
>
{{ ruleForm.useDescription }}
</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div
<div
...
@@ -379,8 +380,8 @@ export default {
...
@@ -379,8 +380,8 @@ export default {
if
(
len1
==
'-'
)
{
if
(
len1
==
'-'
)
{
str
=
''
str
=
''
}
//限制只能输入一个小数点
}
//限制只能输入一个小数点
if
(
Number
(
value
)
>=
99999
)
{
if
(
Number
(
value
)
>=
999999999
)
{
return
str
=
99999
return
(
str
=
999999999
)
}
}
if
(
str
.
indexOf
(
'.'
)
!=
-
1
)
{
if
(
str
.
indexOf
(
'.'
)
!=
-
1
)
{
let
str_
=
str
.
substr
(
str
.
indexOf
(
'.'
)
+
1
)
let
str_
=
str
.
substr
(
str
.
indexOf
(
'.'
)
+
1
)
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment