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 8e23600b
authored
Nov 27, 2021
by
李长胜
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交表格重置不良效果
1 parent
caf0d47c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
111 additions
and
79 deletions
src/views/memberCenter/center.vue
src/views/memberCenter/order.vue
src/views/memberCenter/record.vue
src/views/memberCenter/service.vue
src/views/memberCenter/setmeal.vue
src/views/memberCenter/center.vue
View file @
8e23600
...
...
@@ -75,7 +75,7 @@
</el-form-item>
</el-row>
</el-form>
<GLTable
ref=
"memberCenterRef
"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"getListApi"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<GLTable
v-if=
"isReload"
ref=
"memberCenterRef"
@
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>
...
...
@@ -84,26 +84,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>
...
...
@@ -135,6 +135,7 @@ export default {
// }, 1000)
}
return
{
isReload
:
true
,
pickerOptions
:
{
disabledDate
(
time
)
{
return
time
.
getTime
()
>
Date
.
now
()
||
time
.
getTime
()
<
new
Date
(
'2017-12-31'
).
getTime
()
...
...
@@ -190,13 +191,12 @@ export default {
},
{
label
:
'开通方式'
,
prop
:
'activeTypeDesc'
,
prop
:
'activeTypeDesc'
},
{
label
:
'开通日期'
,
prop
:
'activeTime'
,
prop
:
'activeTime'
// addHtml: 'activeTime'
},
{
...
...
@@ -281,12 +281,11 @@ export default {
},
getCardContentFun
()
{
getCardContent
({
merchantId
:
this
.
merchantId
}).
then
(
res
=>
{
this
.
ruleForm
.
equityId
=
res
[
0
].
id
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
})
},
openEditWrap
()
{
...
...
@@ -333,16 +332,21 @@ export default {
})
},
handleReset
()
{
// this.searchForm = {
// name: '',
// status: '-1'
// }
this
.
isReload
=
false
this
.
searchForm
=
{}
this
.
handleSearch
()
this
.
$nextTick
(()
=>
{
this
.
isReload
=
true
})
},
handleSearch
()
{
this
.
$refs
.
memberCenterRef
.
refreshTable
()
},
setTableFinishFun
()
{
//接收到的数据为空
if
(
!
this
.
$refs
.
memberCenterRef
.
data
.
length
)
{
this
.
$refs
.
memberCenterRef
.
setTableHeightFun
()
}
},
handleClose
()
{
this
.
isDialogVisible
=
!
this
.
isDialogVisible
},
...
...
@@ -439,7 +443,7 @@ export default {
}
.editForm
{
padding-top
:
0px
;
.cardNameInput
{
.cardNameInput
{
width
:
423px
;
}
}
...
...
@@ -447,7 +451,7 @@ export default {
.pageTitle
{
position
:
relative
;
padding
:
0
0px
;
padding
:
0
0px
;
height
:
20px
;
font-size
:
20px
;
font-weight
:
700
;
...
...
src/views/memberCenter/order.vue
View file @
8e23600
...
...
@@ -2,15 +2,15 @@
<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=
"right"
>
<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>
</el-form-item>
<el-form-item
size=
"small"
label=
"名称"
style=
"margin-left:20px"
>
<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>
...
...
@@ -24,7 +24,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>
...
...
@@ -36,12 +36,12 @@
{{
item
}}
</div>
</div>
<GLTable
ref=
"memberOrderRef"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"getListApi"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<GLTable
ref=
"memberOrderRef"
v-if=
"isReload"
@
setTableFinishFun=
"setTableFinishFun"
: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)"
v-if=
"scope.scope.orderType
==
1"
>
详情
</el-button>
<el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
v-if=
"scope.scope.orderType
==
1"
>
详情
</el-button>
</span>
</GLTable>
</div>
...
...
@@ -54,6 +54,7 @@ import { getOrderListApi } from '@/api/modules/order'
export
default
{
data
()
{
return
{
isReload
:
true
,
pickerOptions
:
{
disabledDate
(
time
)
{
return
time
.
getTime
()
>
Date
.
now
()
||
time
.
getTime
()
<
new
Date
(
'2017-12-31'
).
getTime
()
...
...
@@ -162,7 +163,7 @@ export default {
break
case
3
:
delete
this
.
searchForm
.
orderStatus
delete
this
.
searchForm
[
'orderStatus[1]'
]
delete
this
.
searchForm
[
'orderStatus[1]'
]
delete
this
.
searchForm
[
'orderStatus[2]'
]
this
.
searchForm
[
'orderStatus[0]'
]
=
3
break
...
...
@@ -202,9 +203,21 @@ export default {
handleSearch
()
{
this
.
$refs
.
memberOrderRef
.
refreshTable
()
},
setTableFinishFun
()
{
//接收到的数据为空
if
(
!
this
.
$refs
.
memberOrderRef
.
data
.
length
)
{
this
.
$refs
.
memberOrderRef
.
setTableHeightFun
()
}
},
handleReset
()
{
this
.
isReload
=
false
this
.
currentIndex
=
1
this
.
searchForm
=
{}
this
.
handleSearch
()
this
.
searchForm
.
orderStatus
=
''
//默认查询全部
// this.handleSearch()
this
.
$nextTick
(()
=>
{
this
.
isReload
=
true
})
}
}
}
...
...
src/views/memberCenter/record.vue
View file @
8e23600
...
...
@@ -37,7 +37,7 @@
</el-row>
</el-form>
</div>
<GLTable
ref=
"memberRecordRef"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"getListApi"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<GLTable
ref=
"memberRecordRef"
v-if=
"isReload"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"getListApi"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<span
slot=
"verificationTime"
slot-scope=
"scope"
>
<span>
{{
dateFormatFun
(
scope
.
scope
.
verificationTime
)
}}
</span>
</span>
...
...
@@ -53,6 +53,7 @@ export default {
name
:
'record'
,
data
()
{
return
{
isReload
:
true
,
pickerOptions
:
{
disabledDate
(
time
)
{
return
time
.
getTime
()
>
Date
.
now
()
||
time
.
getTime
()
<
new
Date
(
'2017-12-31'
).
getTime
()
...
...
@@ -68,7 +69,7 @@ export default {
userReq
:
''
,
verificationOperator
:
''
,
orderCode
:
''
,
merchantId
:
44184606
merchantId
:
0
},
// 44187877
searchFormTable
:
{},
...
...
@@ -115,10 +116,18 @@ export default {
addHtml
:
'verificationTime'
}
]
}
},
merchantId
:
0
}
},
created
()
{
if
(
window
.
__POWERED_BY_QIANKUN__
)
{
//运行在qiankun容器中
this
.
merchantId
=
this
.
$globalState
.
session
.
merchantId
this
.
searchForm
.
merchantId
=
this
.
merchantId
}
},
methods
:
{
dateFormatFun
(
date
)
{
return
dateFormat
(
date
)
...
...
@@ -143,15 +152,7 @@ export default {
this
.
$refs
.
memberRecordRef
.
setTableHeightFun
()
}
},
// handleShare(row) {
// getLiveShareApi({ id: row.id }).then(res => {
// console.log(res)
// this.isShareVisible = !this.isShareVisible
// this.shareForm = res
// })
// },
handleShareClose
()
{
// this.handleShare()
this
.
isShareVisible
=
!
this
.
isShareVisible
},
...
...
@@ -186,8 +187,13 @@ export default {
this
.
$refs
.
memberRecordRef
.
refreshTable
()
},
handleReset
()
{
this
.
searchForm
=
{
merchantId
:
44184606
}
this
.
handleSearch
()
// this.searchForm = { merchantId: 44184606 }
// this.handleSearch()
this
.
isReload
=
false
this
.
searchForm
=
{
merchantId
:
this
.
merchantId
}
this
.
$nextTick
(()
=>
{
this
.
isReload
=
true
})
}
}
}
...
...
src/views/memberCenter/service.vue
View file @
8e23600
...
...
@@ -18,7 +18,7 @@
</el-form-item>
</el-row>
</el-form>
<GLTable
ref=
"memberServiceRef"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:getListApi=
"getListApi"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<GLTable
v-if=
"isReload"
ref=
"memberServiceRef"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:getListApi=
"getListApi"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<span
slot=
"effectiveType"
slot-scope=
"scope"
>
<span>
{{
toLabelText
(
scope
.
scope
)
}}
</span>
</span>
...
...
@@ -57,6 +57,7 @@ export default {
},
data
()
{
return
{
isReload
:
true
,
isFirstShow
:
false
,
panelContent
:
'会员服务:是由门店根据自店服务项目创建的线上服务券,如“一年十二次洗车券”、“陶瓷镀膜”等,客户购买后可到店出示服务券享受服务,门店扫码进行次数核销。'
,
size
:
'small'
,
...
...
@@ -164,14 +165,19 @@ export default {
},
handleReset
()
{
this
.
isReload
=
false
this
.
searchForm
=
{
couponName
:
''
,
merchantId
:
this
.
merchantId
,
discountType
:
7
}
this
.
handleSearch
()
// this.handleSearch()
this
.
$nextTick
(()
=>
{
this
.
isReload
=
true
})
},
handleSearch
()
{
this
.
$refs
.
memberServiceRef
.
refreshTable
()
},
setTableFinishFun
(
content
)
{
console
.
log
(
content
,
this
.
$refs
.
memberServiceRef
.
data
.
length
,
'获取数据'
)
//
console.log(content, this.$refs.memberServiceRef.data.length, '获取数据')
//接收到的数据为空
if
(
!
this
.
$refs
.
memberServiceRef
.
data
.
length
)
{
this
.
$refs
.
memberServiceRef
.
setTableHeightFun
()
...
...
src/views/memberCenter/setmeal.vue
View file @
8e23600
...
...
@@ -6,7 +6,7 @@
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleCreate"
icon=
"el-icon-plus"
>
创建套餐
</el-button>
<el-button
:size=
"size"
@
click=
"isDialogVisible = true"
>
查看示例效果
</el-button>
</div>
<GLTable
ref=
"memberSetMealRef"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:getListApi=
"getListApi"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<GLTable
ref=
"memberSetMealRef"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:getListApi=
"getListApi"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<span
slot=
"list"
slot-scope=
"scope"
>
<div
v-for=
"(item, index) in scope.scope.list"
:key=
"index"
>
{{
item
.
couponName
}}
×
{{
item
.
serviceQuantity
}}
</div>
</span>
...
...
@@ -26,21 +26,17 @@
</span>
</GLTable>
</div>
<!-- btnCancelLabel="关闭" -->
<!-- btnCancelLabel="关闭" -->
<glsx-dialog
title=
"示例效果"
width=
"1142px"
:hasScroll=
"false"
:noBtnOk=
"true"
:noCancel=
"true"
:noClose=
"false"
btnSize=
"small"
:isVisible=
"isDialogVisible"
:showClose=
"false"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleClose"
>
<div
class=
"content-body"
>
<div
class=
"content-item col1"
>
<div
class=
"subTitle"
>
1、管理后台先创建套餐
</div>
<div
class=
"subTitle"
>
1、管理后台先创建套餐
</div>
<div
class=
"imageWrap"
>
<img
src=
"@/assets/table.png"
alt=
""
/>
</div>
</div>
<div
class=
"content-item col2"
>
<div
class=
"subTitle"
>
2、小程序端进行展示
</div>
<div
class=
"subTitle"
>
2、小程序端进行展示
</div>
<div
class=
"twoImageWrap"
>
<img
src=
"@/assets/card1.png"
alt=
""
/>
<img
src=
"@/assets/card2.png"
alt=
""
/>
...
...
@@ -120,11 +116,11 @@ export default {
isDialogVisible
:
false
}
},
created
()
{
this
.
getLoginCountFun
()
created
()
{
this
.
getLoginCountFun
()
},
methods
:
{
getLoginCountFun
()
{
getLoginCountFun
()
{
//loginType:5是查会员套餐浏览次数
getLoginCount
({
loginType
:
5
}).
then
(
res
=>
{
//获取是否第一次点击该页面
...
...
@@ -143,6 +139,13 @@ export default {
handleSearch
()
{
this
.
$refs
.
memberSetMealRef
.
refreshTable
()
},
setTableFinishFun
()
{
//接收到的数据为空
if
(
!
this
.
$refs
.
memberSetMealRef
.
data
.
length
)
{
this
.
$refs
.
memberSetMealRef
.
setTableHeightFun
()
}
},
//创建套餐
handleCreate
()
{
this
.
$router
.
push
(
'/memberCenter/setmealAddUpdate'
)
...
...
@@ -222,19 +225,18 @@ export default {
margin-bottom
:
20px
;
}
/
deep
/
.el-dialog__header
{
.main-title{
font-size
:
16px
;
/
deep
/
.el-dialog__header
{
.main-title
{
font-size
:
16px
;
font-weight
:
700
;
color
:
#000000
;
font-weight
:
700
;
color
:
#000000
;
}
}
/
deep
/
.el-dialog__body
{
border-top
:
1px
solid
#e6e6e6
;
border-bottom
:
1px
solid
#e6e6e6
;
padding
:
20px
25px
;
border-bottom
:
1px
solid
#e6e6e6
;
padding
:
20px
25px
;
.content-body
{
display
:
flex
;
...
...
@@ -249,13 +251,14 @@ export default {
font-weight
:
700
;
color
:
#000000
;
}
.imageWrap
,
.twoImageWrap
{
margin-left
:
25px
;
img{
border
:
1.5px
solid
rgba
(
0
,
0
,
0
,
0.03
);
box-shadow
:
0px
10px
20px
0px
rgba
(
0
,
0
,
0
,
0.03
);
.imageWrap
,
.twoImageWrap
{
margin-left
:
25px
;
img
{
border
:
1.5px
solid
rgba
(
0
,
0
,
0
,
0.03
);
box-shadow
:
0px
10px
20px
0px
rgba
(
0
,
0
,
0
,
0.03
);
}
img
+
img
{
img
+
img
{
margin-left
:
22px
;
}
}
...
...
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