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 047d1935
authored
Nov 22, 2021
by
李长胜
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bugs
1 parent
85f85df6
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
42 additions
and
42 deletions
src/common/constant.js
src/views/memberCenter/center.vue
src/views/memberCenter/order.vue
src/views/memberCenter/record.vue
src/views/memberCenter/serviceAddUpdateLook.vue
src/common/constant.js
View file @
047d193
...
...
@@ -124,7 +124,7 @@ const orderStatusList=[
confName
:
'退款失败'
},
{
confId
:
2
,
confId
:
6
,
confName
:
'已经退款'
},
]
...
...
src/views/memberCenter/center.vue
View file @
047d193
...
...
@@ -10,7 +10,7 @@
</div>
<div
class=
"cardDetail"
v-if=
"!isShowEditWrap"
>
<p>
{{
ruleForm
.
cardName
}}
</p>
<img
src=
"@/assets/edit.png"
class=
"editIcon"
@
click=
"
isShowEditWrap = true
"
alt=
""
/>
<img
src=
"@/assets/edit.png"
class=
"editIcon"
@
click=
"
openEditWrap
"
alt=
""
/>
<div>
<span>
售价:
</span>
<span
class=
"price"
v-if=
"ruleForm.price"
>
¥
{{
ruleForm
.
price
}}
</span>
...
...
@@ -43,7 +43,7 @@
</el-form-item>
</el-form>
<el-button
size=
"small"
class=
"cancelBtn"
@
click=
"
isShowEditWrap = false
"
>
取消
</el-button>
<el-button
size=
"small"
class=
"cancelBtn"
@
click=
"
cancelEdit
"
>
取消
</el-button>
<el-button
size=
"small"
class=
"saveBtn"
type=
"primary"
@
click=
"submitRuleForm('ruleForm')"
>
保存
</el-button>
</div>
</div>
...
...
@@ -55,10 +55,10 @@
<el-form-item
size=
"small"
label=
"会员用户"
>
<el-input
:size=
"size"
v-model=
"searchForm.userInfo"
placeholder=
"请输入会员用户或手机号"
clearable
></el-input>
</el-form-item>
<el-form-item
size=
"small"
label=
"门店"
style=
"margin-left:-10px"
>
<el-form-item
size=
"small"
label=
"门店"
style=
"margin-left:
-10px"
>
<el-input
:size=
"size"
v-model=
"searchForm.merchantName"
placeholder=
"请输入门店"
clearable
></el-input>
</el-form-item>
<el-form-item
size=
"small"
label=
"状态"
style=
"margin-left:-10px"
>
<el-form-item
size=
"small"
label=
"状态"
style=
"margin-left:
-10px"
>
<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-select>
...
...
@@ -173,7 +173,6 @@ export default {
prop
:
'accountName'
,
width
:
'180'
,
addHtml
:
'accountName'
// formatter: cellValue => {
// return cellValue.startTime + '-' + cellValue.endTime
// }
...
...
@@ -225,6 +224,7 @@ export default {
marketPrice
:
''
,
linkUrl
:
''
},
copyRuleForm
:
{},
rules
:
{
cardName
:
[
{
required
:
true
,
message
:
'请输入会员卡名称'
,
trigger
:
'blur'
},
...
...
@@ -290,6 +290,15 @@ export default {
this
.
ruleForm
.
equityId
=
res
[
0
].
id
})
},
openEditWrap
()
{
this
.
copyRuleForm
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
ruleForm
))
this
.
isShowEditWrap
=
true
},
//点击取消编辑按钮
cancelEdit
()
{
this
.
ruleForm
=
this
.
copyRuleForm
this
.
isShowEditWrap
=
false
},
submitRuleForm
(
formName
)
{
this
.
$refs
[
formName
].
validate
(
valid
=>
{
if
(
!
valid
)
{
...
...
@@ -358,7 +367,7 @@ export default {
background-color
:
#fff
;
height
:
173px
;
box-sizing
:
border-box
;
margin
:
20px
0px
;
margin
:
20px
4
0px
;
padding
:
15px
20px
;
box-shadow
:
0
1px
5px
0
rgba
(
38
,
38
,
38
,
0.1
);
.cardBoxWrap
{
...
...
@@ -373,7 +382,7 @@ export default {
font-size
:
17px
;
color
:
#8e5310
;
font-weight
:
700
;
top
:
5
0
px
;
top
:
5
4
px
;
left
:
95px
;
}
}
...
...
@@ -434,7 +443,7 @@ export default {
.pageTitle
{
position
:
relative
;
padding
:
0
0px
;
padding
:
0
4
0px
;
height
:
20px
;
font-size
:
20px
;
font-weight
:
700
;
...
...
@@ -448,13 +457,12 @@ export default {
.el-range-editor.is-active
,
.el-range-editor.is-active
:hover
{
border-color
:
#5850ff
;
width
:
215px
;
}
.el-range-editor--small.el-input__inner
{
width
:
215px
;
}
/
deep
/
.el-input--small
.el-input__inner
{
/
deep
/
.el-input--small
.el-input__inner
{
width
:
215px
;
}
/
deep
/
.el-dialog__header
.el-dialog__title
{
...
...
@@ -529,6 +537,7 @@ export default {
}
}
/
deep
/
.el-dialog__footer
{
padding
:
20px
;
text-align
:
center
;
}
</
style
>
src/views/memberCenter/order.vue
View file @
047d193
...
...
@@ -2,7 +2,7 @@
<div
class=
"live-room"
>
<div
class=
"live-room container"
>
<div
class=
"flex"
>
<el-form
:inline=
"true"
style=
"width:100%"
:model=
"searchForm"
label-width=
"70px"
label-position=
"
left"
>
<el-form
:inline=
"true"
style=
"width:100%"
:model=
"searchForm"
label-width=
"70px"
label-position=
"
right"
>
<el-row>
<el-form-item
size=
"small"
label=
"订单编号"
>
<el-input
:size=
"size"
v-model=
"searchForm.orderCode"
placeholder=
"请输入订单编号"
clearable
></el-input>
...
...
@@ -10,7 +10,7 @@
<el-form-item
size=
"small"
label=
"名称"
style=
"margin-left:20px"
>
<el-input
:size=
"size"
v-model=
"searchForm.packageName"
placeholder=
"请输入名称"
clearable
></el-input>
</el-form-item>
<el-form-item
size=
"small"
label=
"类型"
style=
"margin-left:-10px"
>
<el-form-item
size=
"small"
label=
"类型"
style=
"margin-left:-10px
;
"
>
<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-select>
...
...
@@ -32,6 +32,9 @@
</el-form>
</div>
<GLTable
ref=
"memberOrderRef"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"getListApi"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<!--
<span
slot=
"shareImgUrl"
slot-scope=
"scope"
>
<img
class=
"img-60"
:src=
"scope.scope.shareImgUrl"
/>
</span>
-->
<span
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
详情
</el-button>
</span>
...
...
@@ -102,7 +105,7 @@ export default {
{
label
:
'实收金额'
,
prop
:
'realPayPrice'
,
line
:
1
},
{
label
:
'订单状态'
,
...
...
@@ -120,12 +123,10 @@ export default {
{
label
:
'用户信息'
,
prop
:
'accountName'
,
line
:
1
},
{
label
:
'订单号'
,
prop
:
'orderCode'
,
prop
:
'orderCode'
}
]
},
...
...
src/views/memberCenter/record.vue
View file @
047d193
...
...
@@ -7,16 +7,16 @@
<el-button
:size=
"size"
type=
"primary"
class=
"el-icon-plus"
@
click=
"handleEdit(1)"
>
新增直播
</el-button>
</el-form-item>
</el-form>
-->
<el-form
:inline=
"true"
style=
"width:100%"
:model=
"searchForm"
label-width=
"85px"
label-position=
"right"
>
<el-form
:inline=
"true"
style=
"width:
100%"
:model=
"searchForm"
label-width=
"85px"
label-position=
"right"
>
<el-row>
<!--
<el-col
:span=
"6"
></el-col>
-->
<el-form-item
size=
"small"
label=
"服务名称"
>
<el-input
:size=
"size"
v-model=
"searchForm.couponName"
placeholder=
"请输入服务名称"
clearable
></el-input>
</el-form-item>
<el-form-item
size=
"small"
label=
"核销用户"
style=
"margin-left:-10px"
>
<el-form-item
size=
"small"
label=
"核销用户"
>
<el-input
:size=
"size"
v-model=
"searchForm.userReq"
placeholder=
"请输入核销用户"
clearable
></el-input>
</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.verificationOperator"
placeholder=
"请输入核销员"
clearable
></el-input>
</el-form-item>
</el-row>
...
...
@@ -30,7 +30,7 @@
<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
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"
@
click=
"handleReset"
>
重置
</el-button>
</el-form-item>
...
...
@@ -91,12 +91,14 @@ export default {
{
label
:
'剩余待核销次数'
,
prop
:
'residueAmount'
,
line
:
1
formatter
:
cellValue
=>
{
return
cellValue
.
residueAmount
||
cellValue
.
residueAmount
==
0
?
cellValue
.
residueAmount
:
'不限制次数'
}
},
{
label
:
'核销用户'
,
prop
:
'userName'
,
line
:
1
},
{
label
:
'核销员'
,
...
...
@@ -105,27 +107,15 @@ export default {
{
label
:
'关联订单号'
,
prop
:
'orderCode'
,
line
:
1
},
{
label
:
'核销日期'
,
prop
:
'verificationTime'
,
line
:
1
,
addHtml
:
'verificationTime'
}
// {
// label: '直播状态',
// prop: 'liveStatus',
// width: '80'
// // formatter: cellValue => {
// // return this.baseDataList.liveStatusList.find(item => item.confId == cellValue.liveStatus).confName
// // }
// }
]
}
// baseDataList: {
// liveStatusList: liveStatusList
// }
}
},
methods
:
{
...
...
src/views/memberCenter/serviceAddUpdateLook.vue
View file @
047d193
...
...
@@ -34,7 +34,7 @@
</el-radio>
<!-- effectiveStartTime effectiveEndTime +具体时间 -->
<el-radio
:label=
"2"
>
<el-date-picker
:size=
"small"
:disabled=
"disabledContent"
style=
"width: 230px"
v-model=
"ruleForm.daterange"
type=
"daterange"
value-format=
"yyyy-MM-dd"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
></el-date-picker>
<el-date-picker
:size=
"small"
:disabled=
"disabledContent"
style=
"width: 230px"
v-model=
"ruleForm.daterange"
type=
"daterange"
value-format=
"yyyy-MM-dd"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
:picker-options=
"pickerOptions ||
{}"
>
</el-date-picker>
</el-radio>
</el-radio-group>
</div>
...
...
@@ -139,11 +139,11 @@ export default {
},
1000
)
}
return
{
//
pickerOptions: {
//
disabledDate(time) {
// return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime()
//
}
//
},
pickerOptions
:
{
disabledDate
(
time
)
{
return
time
.
getTime
()
<
Date
.
now
()
-
8.64e7
// 如果没有后面的-8.64e7就是不可以选择今天的
}
},
ruleForm
:
{
couponName
:
''
,
// region: '',
...
...
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