Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pseer
gxpt_web
Commits
4657fc91
Commit
4657fc91
authored
Jun 25, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改会员管理的页面
parent
84b206ff
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
702 additions
and
541 deletions
+702
-541
integralLog.js
src/api/system/integralLog.js
+5
-5
index.vue
src/views/system/activity/index.vue
+228
-82
index.vue
src/views/system/balanceLog/index.vue
+52
-52
index.vue
src/views/system/durationLog/index.vue
+52
-52
index.vue
src/views/system/equityMembersOrderConfig/index.vue
+10
-10
index.vue
src/views/system/member/index.vue
+21
-27
index.vue
src/views/system/memberConfig/index.vue
+51
-35
index.vue
src/views/system/recharge/index.vue
+116
-116
index.vue
src/views/system/rechargeConf/index.vue
+35
-18
index.vue
src/views/system/rechargeCouponConf/index.vue
+33
-33
index.vue
src/views/system/rechargeRefund/index.vue
+93
-90
index.vue
src/views/system/wallet/index.vue
+6
-21
No files found.
src/api/system/
I
ntegralLog.js
→
src/api/system/
i
ntegralLog.js
View file @
4657fc91
...
@@ -3,7 +3,7 @@ import request from '@/utils/request'
...
@@ -3,7 +3,7 @@ import request from '@/utils/request'
// 查询积分日志列表
// 查询积分日志列表
export
function
listIntegralLog
(
query
)
{
export
function
listIntegralLog
(
query
)
{
return
request
({
return
request
({
url
:
'/system/
I
ntegralLog/list'
,
url
:
'/system/
i
ntegralLog/list'
,
method
:
'get'
,
method
:
'get'
,
params
:
query
params
:
query
})
})
...
@@ -12,7 +12,7 @@ export function listIntegralLog(query) {
...
@@ -12,7 +12,7 @@ export function listIntegralLog(query) {
// 查询积分日志详细
// 查询积分日志详细
export
function
getIntegralLog
(
id
)
{
export
function
getIntegralLog
(
id
)
{
return
request
({
return
request
({
url
:
'/system/
I
ntegralLog/'
+
id
,
url
:
'/system/
i
ntegralLog/'
+
id
,
method
:
'get'
method
:
'get'
})
})
}
}
...
@@ -20,7 +20,7 @@ export function getIntegralLog(id) {
...
@@ -20,7 +20,7 @@ export function getIntegralLog(id) {
// 新增积分日志
// 新增积分日志
export
function
addIntegralLog
(
data
)
{
export
function
addIntegralLog
(
data
)
{
return
request
({
return
request
({
url
:
'/system/
I
ntegralLog'
,
url
:
'/system/
i
ntegralLog'
,
method
:
'post'
,
method
:
'post'
,
data
:
data
data
:
data
})
})
...
@@ -29,7 +29,7 @@ export function addIntegralLog(data) {
...
@@ -29,7 +29,7 @@ export function addIntegralLog(data) {
// 修改积分日志
// 修改积分日志
export
function
updateIntegralLog
(
data
)
{
export
function
updateIntegralLog
(
data
)
{
return
request
({
return
request
({
url
:
'/system/
I
ntegralLog'
,
url
:
'/system/
i
ntegralLog'
,
method
:
'put'
,
method
:
'put'
,
data
:
data
data
:
data
})
})
...
@@ -38,7 +38,7 @@ export function updateIntegralLog(data) {
...
@@ -38,7 +38,7 @@ export function updateIntegralLog(data) {
// 删除积分日志
// 删除积分日志
export
function
delIntegralLog
(
id
)
{
export
function
delIntegralLog
(
id
)
{
return
request
({
return
request
({
url
:
'/system/
I
ntegralLog/'
+
id
,
url
:
'/system/
i
ntegralLog/'
+
id
,
method
:
'delete'
method
:
'delete'
})
})
}
}
src/views/system/activity/index.vue
View file @
4657fc91
...
@@ -9,70 +9,77 @@
...
@@ -9,70 +9,77 @@
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"活动描述"
prop=
"activityDescription"
>
<!--
<el-form-item
label=
"活动描述"
prop=
"activityDescription"
>
-->
<el-input
<!--
<el-input-->
v-model=
"queryParams.activityDescription"
<!-- v-model="queryParams.activityDescription"-->
clearable
<!-- clearable-->
placeholder=
"请输入活动描述"
<!-- placeholder="请输入活动描述"-->
@
keyup
.
enter
.
native=
"handleQuery"
<!-- @keyup.enter.native="handleQuery"-->
/>
<!-- />-->
<!--
</el-form-item>
-->
<!--
<el-form-item
label=
"优惠比例"
prop=
"discountRatio"
>
-->
<!--
<el-input-->
<!-- v-model="queryParams.discountRatio"-->
<!-- clearable-->
<!-- placeholder="请输入优惠比例"-->
<!-- @keyup.enter.native="handleQuery"-->
<!-- />-->
<!--
</el-form-item>
-->
<!--
<el-form-item
label=
"门店枚举"
prop=
"storeIds"
>
-->
<!--
<el-input-->
<!-- v-model="queryParams.storeIds"-->
<!-- clearable-->
<!-- placeholder="请输入门店枚举"-->
<!-- @keyup.enter.native="handleQuery"-->
<!-- />-->
<!--
</el-form-item>
-->
<el-form-item
label=
"标签"
prop=
"labelId"
>
<el-select
v-model=
"queryParams.labelId"
placeholder=
"请选择标签"
>
<el-option
v-for=
"item in labelList"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
>
</el-option>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"优惠比例"
prop=
"discountRatio"
>
<el-form-item
label=
"套餐"
prop=
"packId"
>
<el-input
<el-select
v-model=
"queryParams.packId"
placeholder=
"请选择套餐"
>
v-model=
"queryParams.discountRatio"
<el-option
clearable
v-for=
"item in packList"
placeholder=
"请输入优惠比例"
:key=
"item.id"
@
keyup
.
enter
.
native=
"handleQuery"
:label=
"item.name"
/>
:value=
"item.id"
</el-form-item>
>
<el-form-item
label=
"门店枚举"
prop=
"storeIds"
>
</el-option>
<el-input
</el-select>
v-model=
"queryParams.storeIds"
clearable
placeholder=
"请输入门店枚举"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"标签id"
prop=
"labelId"
>
<el-input
v-model=
"queryParams.labelId"
clearable
placeholder=
"请输入标签id"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"套餐id"
prop=
"packId"
>
<el-input
v-model=
"queryParams.packId"
clearable
placeholder=
"请输入套餐id"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"cron表达式"
prop=
"cronExpression"
>
<el-input
v-model=
"queryParams.cronExpression"
clearable
placeholder=
"请输入cron表达式"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
</el-form-item>
<!--
<el-form-item
label=
"cron表达式"
prop=
"cronExpression"
>
-->
<!--
<el-input-->
<!-- v-model="queryParams.cronExpression"-->
<!-- clearable-->
<!-- placeholder="请输入cron表达式"-->
<!-- @keyup.enter.native="handleQuery"-->
<!-- />-->
<!--
</el-form-item>
-->
<el-form-item
label=
"是否开启"
prop=
"isOpen"
>
<el-form-item
label=
"是否开启"
prop=
"isOpen"
>
<el-input
<el-select
v-model=
"queryParams.isOpen"
clearable
placeholder=
"请选择是否开启"
>
v-model=
"queryParams.isOpen"
<el-option
clearable
v-for=
"dict in dict.type.store_is_use_coupon"
placeholder=
"请输入是否开启"
:key=
"dict.value"
@
keyup
.
enter
.
native=
"handleQuery"
:label=
"dict.label"
/>
:value=
"dict.value"
</el-form-item>
/>
<el-form-item
label=
"是否删除"
prop=
"isDelete"
>
</el-select>
<el-input
v-model=
"queryParams.isDelete"
clearable
placeholder=
"请输入是否删除"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
</el-form-item>
<!--
<el-form-item
label=
"是否删除"
prop=
"isDelete"
>
-->
<!--
<el-input-->
<!-- v-model="queryParams.isDelete"-->
<!-- clearable-->
<!-- placeholder="请输入是否删除"-->
<!-- @keyup.enter.native="handleQuery"-->
<!-- />-->
<!--
</el-form-item>
-->
<el-form-item>
<el-form-item>
<el-button
icon=
"el-icon-search"
size=
"mini"
type=
"primary"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-search"
size=
"mini"
type=
"primary"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
...
@@ -131,16 +138,39 @@
...
@@ -131,16 +138,39 @@
<el-table
v-loading=
"loading"
:data=
"activityList"
@
selection-change=
"handleSelectionChange"
>
<el-table
v-loading=
"loading"
:data=
"activityList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
align=
"center"
type=
"selection"
width=
"55"
/>
<el-table-column
align=
"center"
type=
"selection"
width=
"55"
/>
<
el-table-column
align=
"center"
label=
"ID"
prop=
"id"
/
>
<
!--
<el-table-column
align=
"center"
label=
"ID"
prop=
"id"
/>
--
>
<el-table-column
align=
"center"
label=
"活动名称"
prop=
"activityName"
/>
<el-table-column
align=
"center"
label=
"活动名称"
prop=
"activityName"
/>
<el-table-column
align=
"center"
label=
"活动描述"
prop=
"activityDescription"
/>
<el-table-column
align=
"center"
label=
"活动描述"
prop=
"activityDescription"
/>
<el-table-column
align=
"center"
label=
"优惠比例"
prop=
"discountRatio"
/>
<el-table-column
align=
"center"
label=
"优惠比例"
prop=
"discountRatio"
/>
<el-table-column
align=
"center"
label=
"门店枚举"
prop=
"storeIds"
/>
<el-table-column
align=
"center"
label=
"会员类型"
prop=
"memberType"
width=
"100px"
>
<el-table-column
align=
"center"
label=
"标签id"
prop=
"labelId"
/>
<template
slot-scope=
"scope"
>
<el-table-column
align=
"center"
label=
"套餐id"
prop=
"packId"
/>
<dict-tag
:options=
"dict.type.member_type"
:value=
"scope.row.memberType"
/>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
label=
"适用门店"
prop=
"storeIds"
width=
"350"
>
<
template
slot-scope=
"scope"
>
<div
v-if=
"scope.row.storeIds"
style=
"display: flex;flex-wrap: wrap;width: 100%;"
>
<dict-tag
v-for=
"(item ,k) in scope.row.storeIds"
:key=
"k"
:options=
"storeList"
:value=
"item"
style=
"margin: 0 3px;"
/>
</div>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
label=
"标签名称"
prop=
"labelId"
width=
"120"
>
<
template
slot-scope=
"scope"
>
<span
v-for=
"item in labelList"
v-if=
"scope.row.labelId === item.id"
>
{{
item
.
name
}}
</span>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
label=
"套餐名称"
prop=
"packId"
width=
"120"
>
<
template
slot-scope=
"scope"
>
<span
v-for=
"item in packList"
v-if=
"scope.row.packId === item.id"
>
{{
item
.
name
}}
</span>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
label=
"cron表达式"
prop=
"cronExpression"
/>
<el-table-column
align=
"center"
label=
"cron表达式"
prop=
"cronExpression"
/>
<el-table-column
align=
"center"
label=
"是否开启"
prop=
"isOpen"
/>
<el-table-column
align=
"center"
label=
"是否开启"
prop=
"isOpen"
>
<el-table-column
align=
"center"
label=
"是否删除"
prop=
"isDelete"
/>
<
template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.store_is_use_coupon"
:value=
"scope.row.isOpen"
/>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
label=
"备注"
prop=
"remark"
/>
<el-table-column
align=
"center"
label=
"备注"
prop=
"remark"
/>
<el-table-column
align=
"center"
class-name=
"small-padding fixed-width"
label=
"操作"
>
<el-table-column
align=
"center"
class-name=
"small-padding fixed-width"
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
...
@@ -173,8 +203,8 @@
...
@@ -173,8 +203,8 @@
/>
/>
<!-- 添加或修改活动对话框 -->
<!-- 添加或修改活动对话框 -->
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
append-to-body
width=
"
5
00px"
>
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
append-to-body
width=
"
6
00px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"
8
0px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"
10
0px"
>
<el-form-item
label=
"活动名称"
prop=
"activityName"
>
<el-form-item
label=
"活动名称"
prop=
"activityName"
>
<el-input
v-model=
"form.activityName"
placeholder=
"请输入活动名称"
/>
<el-input
v-model=
"form.activityName"
placeholder=
"请输入活动名称"
/>
</el-form-item>
</el-form-item>
...
@@ -182,26 +212,71 @@
...
@@ -182,26 +212,71 @@
<el-input
v-model=
"form.activityDescription"
placeholder=
"请输入活动描述"
/>
<el-input
v-model=
"form.activityDescription"
placeholder=
"请输入活动描述"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"优惠比例"
prop=
"discountRatio"
>
<el-form-item
label=
"优惠比例"
prop=
"discountRatio"
>
<el-input
v-model=
"form.discountRatio"
placeholder=
"请输入优惠比例"
/>
<el-input-number
v-model=
"form.discountRatio"
:max=
"100"
:min=
"0"
placeholder=
"请输入门槛时长"
/>
</el-form-item>
<el-form-item
label=
"会员类型"
prop=
"memberType"
>
<el-select
v-model=
"form.memberType"
placeholder=
"请选择会员类型"
>
<el-option
v-for=
"dict in dict.type.member_type"
:key=
"dict.value"
:label=
"dict.label"
:value=
"parseInt(dict.value)"
></el-option>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"门店枚举"
prop=
"storeIds"
>
<el-form-item
label=
"适用门店"
prop=
"storeIds"
>
<el-input
v-model=
"form.storeIds"
placeholder=
"请输入门店枚举"
/>
<el-select
v-model=
"form.storeIds"
clearable
multiple
placeholder=
"请选择适用门店"
>
<el-option
v-for=
"dict in storeList"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
></el-option>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"标签id"
prop=
"labelId"
>
<el-form-item
label=
"标签"
prop=
"labelId"
>
<el-input
v-model=
"form.labelId"
placeholder=
"请输入标签id"
/>
<el-select
v-model=
"form.labelId"
clearable
placeholder=
"请选择标签"
>
<el-option
v-for=
"item in labelList"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
>
</el-option>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"套餐id"
prop=
"packId"
>
<el-form-item
label=
"套餐"
prop=
"packId"
>
<el-input
v-model=
"form.packId"
placeholder=
"请输入套餐id"
/>
<el-select
v-model=
"form.packId"
clearable
placeholder=
"请选择套餐"
>
<el-option
v-for=
"item in packList"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
>
</el-option>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"cron表达式"
prop=
"cronExpression"
>
<el-form-item
label=
"cron表达式"
prop=
"cronExpression"
>
<el-input
v-model=
"form.cronExpression"
placeholder=
"请输入cron表达式"
/>
<el-input
v-model=
"form.cronExpression"
placeholder=
"请输入cron执行表达式"
>
<
template
slot=
"append"
>
<el-button
type=
"primary"
@
click=
"handleShowCron"
>
生成表达式
<i
class=
"el-icon-time el-icon--right"
></i>
</el-button>
</
template
>
</el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"是否开启"
prop=
"isOpen"
>
<el-form-item
label=
"是否开启"
prop=
"isOpen"
>
<el-input
v-model=
"form.isOpen"
placeholder=
"请输入是否开启"
/>
<el-radio-group
v-model=
"form.isOpen"
>
</el-form-item>
<el-radio
<el-form-item
label=
"是否删除"
prop=
"isDelete"
>
v-for=
"dict in dict.type.store_is_use_coupon"
<el-input
v-model=
"form.isDelete"
placeholder=
"请输入是否删除"
/>
:key=
"dict.value"
:label=
"parseInt(dict.value)"
>
{{ dict.label }}
</el-radio>
</el-radio-group>
</el-form-item>
</el-form-item>
<!-- <el-form-item label="是否删除" prop="isDelete">-->
<!-- <el-input v-model="form.isDelete" placeholder="请输入是否删除"/>-->
<!-- </el-form-item>-->
<el-form-item
label=
"备注"
prop=
"remark"
>
<el-form-item
label=
"备注"
prop=
"remark"
>
<el-input
v-model=
"form.remark"
placeholder=
"请输入内容"
type=
"textarea"
/>
<el-input
v-model=
"form.remark"
placeholder=
"请输入内容"
type=
"textarea"
/>
</el-form-item>
</el-form-item>
...
@@ -211,14 +286,22 @@
...
@@ -211,14 +286,22 @@
<el-button
@
click=
"cancel"
>
取 消
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
<el-dialog
:visible
.
sync=
"openCron"
append-to-body
class=
"scrollbar"
destroy-on-close
title=
"Cron表达式生成器"
>
<crontab
:expression=
"expression"
@
fill=
"crontabFill"
@
hide=
"openCron=false"
></crontab>
</el-dialog>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
listActivity
,
getActivity
,
delActivity
,
addActivity
,
updateActivity
}
from
"@/api/system/activity"
;
import
{
listActivity
,
getActivity
,
delActivity
,
addActivity
,
updateActivity
}
from
"@/api/system/activity"
;
import
Crontab
from
'@/components/Crontab'
import
{
query
}
from
"@/api/system/pack"
;
import
{
queryList
}
from
"@/api/system/label"
;
import
{
storeList
}
from
'@/api/system/store'
;
export
default
{
export
default
{
name
:
"Activity"
,
name
:
"Activity"
,
components
:
{
Crontab
},
dicts
:
[
'store_is_use_coupon'
,
'member_type'
],
data
()
{
data
()
{
return
{
return
{
// 遮罩层
// 遮罩层
...
@@ -235,10 +318,17 @@ export default {
...
@@ -235,10 +318,17 @@ export default {
total
:
0
,
total
:
0
,
// 活动表格数据
// 活动表格数据
activityList
:
[],
activityList
:
[],
labelList
:
[],
packList
:
[],
storeList
:
[],
// 弹出层标题
// 弹出层标题
title
:
""
,
title
:
""
,
// 是否显示弹出层
// 是否显示弹出层
open
:
false
,
open
:
false
,
// 是否显示Cron表达式弹出层
openCron
:
false
,
// 传入的表达式
expression
:
""
,
// 查询参数
// 查询参数
queryParams
:
{
queryParams
:
{
pageNum
:
1
,
pageNum
:
1
,
...
@@ -246,6 +336,7 @@ export default {
...
@@ -246,6 +336,7 @@ export default {
activityName
:
null
,
activityName
:
null
,
activityDescription
:
null
,
activityDescription
:
null
,
discountRatio
:
null
,
discountRatio
:
null
,
memberType
:
null
,
storeIds
:
null
,
storeIds
:
null
,
labelId
:
null
,
labelId
:
null
,
packId
:
null
,
packId
:
null
,
...
@@ -253,6 +344,9 @@ export default {
...
@@ -253,6 +344,9 @@ export default {
isOpen
:
null
,
isOpen
:
null
,
isDelete
:
null
,
isDelete
:
null
,
},
},
packParams
:
{
type
:
0
},
// 表单参数
// 表单参数
form
:
{},
form
:
{},
// 表单校验
// 表单校验
...
@@ -261,13 +355,21 @@ export default {
...
@@ -261,13 +355,21 @@ export default {
},
},
created
()
{
created
()
{
this
.
getList
();
this
.
getList
();
this
.
onLabelList
();
this
.
onPackList
();
this
.
onStoreList
();
},
},
methods
:
{
methods
:
{
/** 查询活动列表 */
/** 查询活动列表 */
getList
()
{
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
listActivity
(
this
.
queryParams
).
then
(
response
=>
{
listActivity
(
this
.
queryParams
).
then
(
response
=>
{
this
.
activityList
=
response
.
rows
;
this
.
activityList
=
response
.
rows
.
map
(
item
=>
{
return
{
...
item
,
storeIds
:
item
.
storeIds
&&
item
.
storeIds
.
length
?
item
.
storeIds
.
split
(
","
)
:
[]
}
});
this
.
total
=
response
.
total
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
this
.
loading
=
false
;
});
});
...
@@ -284,6 +386,7 @@ export default {
...
@@ -284,6 +386,7 @@ export default {
activityName
:
null
,
activityName
:
null
,
activityDescription
:
null
,
activityDescription
:
null
,
discountRatio
:
null
,
discountRatio
:
null
,
memberType
:
null
,
storeIds
:
null
,
storeIds
:
null
,
labelId
:
null
,
labelId
:
null
,
packId
:
null
,
packId
:
null
,
...
@@ -303,11 +406,48 @@ export default {
...
@@ -303,11 +406,48 @@ export default {
this
.
queryParams
.
pageNum
=
1
;
this
.
queryParams
.
pageNum
=
1
;
this
.
getList
();
this
.
getList
();
},
},
/** cron表达式按钮操作 */
handleShowCron
()
{
this
.
expression
=
this
.
form
.
cronExpression
;
this
.
openCron
=
true
;
},
/** 确定后回传值 */
crontabFill
(
value
)
{
this
.
form
.
cronExpression
=
value
;
},
/** 重置按钮操作 */
/** 重置按钮操作 */
resetQuery
()
{
resetQuery
()
{
this
.
resetForm
(
"queryForm"
);
this
.
resetForm
(
"queryForm"
);
this
.
handleQuery
();
this
.
handleQuery
();
},
},
onLabelList
()
{
queryList
().
then
(
res
=>
{
this
.
labelList
=
res
.
data
})
},
onPackList
()
{
query
(
this
.
packParams
).
then
(
res
=>
{
this
.
packList
=
res
.
data
})
},
onStoreList
()
{
storeList
().
then
(
res
=>
{
this
.
storeList
=
res
.
data
.
map
(
obj
=>
{
return
{
...
obj
,
raw
:
{
dictSort
:
1
,
dictValue
:
"1"
,
listClass
:
"primary"
,
cssClass
:
''
},
value
:
obj
.
id
.
toString
(),
label
:
obj
.
name
,
}
})
this
.
$forceUpdate
();
})
},
// 多选框选中数据
// 多选框选中数据
handleSelectionChange
(
selection
)
{
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
(
item
=>
item
.
id
)
this
.
ids
=
selection
.
map
(
item
=>
item
.
id
)
...
@@ -318,6 +458,8 @@ export default {
...
@@ -318,6 +458,8 @@ export default {
handleAdd
()
{
handleAdd
()
{
this
.
reset
();
this
.
reset
();
this
.
open
=
true
;
this
.
open
=
true
;
this
.
form
.
isOpen
=
1
;
this
.
form
.
discountRatio
=
50
;
this
.
title
=
"添加活动"
;
this
.
title
=
"添加活动"
;
},
},
/** 修改按钮操作 */
/** 修改按钮操作 */
...
@@ -326,6 +468,9 @@ export default {
...
@@ -326,6 +468,9 @@ export default {
const
id
=
row
.
id
||
this
.
ids
const
id
=
row
.
id
||
this
.
ids
getActivity
(
id
).
then
(
response
=>
{
getActivity
(
id
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
form
=
response
.
data
;
if
(
this
.
form
.
storeIds
)
{
this
.
form
.
storeIds
=
this
.
form
.
storeIds
.
split
(
","
)
}
this
.
open
=
true
;
this
.
open
=
true
;
this
.
title
=
"修改活动"
;
this
.
title
=
"修改活动"
;
});
});
...
@@ -334,6 +479,7 @@ export default {
...
@@ -334,6 +479,7 @@ export default {
submitForm
()
{
submitForm
()
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
.
form
.
storeIds
=
this
.
form
.
storeIds
&&
this
.
form
.
storeIds
.
length
?
this
.
form
.
storeIds
.
join
()
:
''
if
(
this
.
form
.
id
!=
null
)
{
if
(
this
.
form
.
id
!=
null
)
{
updateActivity
(
this
.
form
).
then
(
response
=>
{
updateActivity
(
this
.
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
"修改成功"
);
this
.
$modal
.
msgSuccess
(
"修改成功"
);
...
...
src/views/system/balanceLog/index.vue
View file @
4657fc91
<
template
>
<
template
>
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<el-form
v-show=
"showSearch"
ref=
"queryForm"
:inline=
"true"
:model=
"queryParams"
label-width=
"68px"
size=
"small"
>
<el-form
v-show=
"showSearch"
ref=
"queryForm"
:inline=
"true"
:model=
"queryParams"
label-width=
"68px"
size=
"small"
>
<
el-form-item
label=
"用户id"
prop=
"consumerId"
>
<
!--
<el-form-item
label=
"用户id"
prop=
"consumerId"
>
--
>
<el-input
<!--
<el-input-->
v-model=
"queryParams.consumerId"
<!-- v-model="queryParams.consumerId"-->
clearable
<!-- clearable-->
placeholder=
"请输入用户id"
<!-- placeholder="请输入用户id"-->
@
keyup
.
enter
.
native=
"handleQuery"
<!-- @keyup.enter.native="handleQuery"-->
/
>
<!-- />--
>
<
/el-form-item
>
<
!--
</el-form-item>
--
>
<el-form-item
label=
"变动金额"
prop=
"variableAmount"
>
<el-form-item
label=
"变动金额"
prop=
"variableAmount"
>
<el-input
<el-input
v-model=
"queryParams.variableAmount"
v-model=
"queryParams.variableAmount"
...
@@ -33,14 +33,14 @@
...
@@ -33,14 +33,14 @@
value-format=
"yyyy-MM-dd"
>
value-format=
"yyyy-MM-dd"
>
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
<
el-form-item
label=
"是否删除"
prop=
"isDelete"
>
<
!--
<el-form-item
label=
"是否删除"
prop=
"isDelete"
>
--
>
<el-input
<!--
<el-input-->
v-model=
"queryParams.isDelete"
<!-- v-model="queryParams.isDelete"-->
clearable
<!-- clearable-->
placeholder=
"请输入是否删除"
<!-- placeholder="请输入是否删除"-->
@
keyup
.
enter
.
native=
"handleQuery"
<!-- @keyup.enter.native="handleQuery"-->
/
>
<!-- />--
>
<
/el-form-item
>
<
!--
</el-form-item>
--
>
<el-form-item>
<el-form-item>
<el-button
icon=
"el-icon-search"
size=
"mini"
type=
"primary"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-search"
size=
"mini"
type=
"primary"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
...
@@ -48,41 +48,41 @@
...
@@ -48,41 +48,41 @@
</el-form>
</el-form>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-row
:gutter=
"10"
class=
"mb8"
>
<
el-col
:span=
"1.5"
>
<
!--
<el-col
:span=
"1.5"
>
--
>
<el-button
<!--
<el-button-->
v-hasPermi=
"['system:balanceLog:add']"
<!-- v-hasPermi="['system:balanceLog:add']"-->
icon=
"el-icon-plus"
<!-- icon="el-icon-plus"-->
plain
<!-- plain-->
size=
"mini"
<!-- size="mini"-->
type=
"primary"
<!-- type="primary"-->
@
click=
"handleAdd"
<!-- @click="handleAdd"-->
>
新增
<!-- >新增-->
</el-button
>
<!--
</el-button>
--
>
<
/el-col
>
<
!--
</el-col>
--
>
<
el-col
:span=
"1.5"
>
<
!--
<el-col
:span=
"1.5"
>
--
>
<el-button
<!--
<el-button-->
v-hasPermi=
"['system:balanceLog:edit']"
<!-- v-hasPermi="['system:balanceLog:edit']"-->
:disabled=
"single"
<!-- :disabled="single"-->
icon=
"el-icon-edit"
<!-- icon="el-icon-edit"-->
plain
<!-- plain-->
size=
"mini"
<!-- size="mini"-->
type=
"success"
<!-- type="success"-->
@
click=
"handleUpdate"
<!-- @click="handleUpdate"-->
>
修改
<!-- >修改-->
</el-button
>
<!--
</el-button>
--
>
<
/el-col
>
<
!--
</el-col>
--
>
<
el-col
:span=
"1.5"
>
<
!--
<el-col
:span=
"1.5"
>
--
>
<el-button
<!--
<el-button-->
v-hasPermi=
"['system:balanceLog:remove']"
<!-- v-hasPermi="['system:balanceLog:remove']"-->
:disabled=
"multiple"
<!-- :disabled="multiple"-->
icon=
"el-icon-delete"
<!-- icon="el-icon-delete"-->
plain
<!-- plain-->
size=
"mini"
<!-- size="mini"-->
type=
"danger"
<!-- type="danger"-->
@
click=
"handleDelete"
<!-- @click="handleDelete"-->
>
删除
<!-- >删除-->
</el-button
>
<!--
</el-button>
--
>
<
/el-col
>
<
!--
</el-col>
--
>
<el-col
:span=
"1.5"
>
<el-col
:span=
"1.5"
>
<el-button
<el-button
v-hasPermi=
"['system:balanceLog:export']"
v-hasPermi=
"['system:balanceLog:export']"
...
@@ -99,7 +99,7 @@
...
@@ -99,7 +99,7 @@
<el-table
v-loading=
"loading"
:data=
"balanceLogList"
@
selection-change=
"handleSelectionChange"
>
<el-table
v-loading=
"loading"
:data=
"balanceLogList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
align=
"center"
type=
"selection"
width=
"55"
/>
<el-table-column
align=
"center"
type=
"selection"
width=
"55"
/>
<
el-table-column
align=
"center"
label=
"ID"
prop=
"id"
/
>
<
!--
<el-table-column
align=
"center"
label=
"ID"
prop=
"id"
/>
--
>
<el-table-column
align=
"center"
label=
"用户id"
prop=
"consumerId"
/>
<el-table-column
align=
"center"
label=
"用户id"
prop=
"consumerId"
/>
<el-table-column
align=
"center"
label=
"变动金额"
prop=
"variableAmount"
/>
<el-table-column
align=
"center"
label=
"变动金额"
prop=
"variableAmount"
/>
<el-table-column
align=
"center"
label=
"当前余额"
prop=
"currentBalance"
/>
<el-table-column
align=
"center"
label=
"当前余额"
prop=
"currentBalance"
/>
...
...
src/views/system/durationLog/index.vue
View file @
4657fc91
<
template
>
<
template
>
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<el-form
v-show=
"showSearch"
ref=
"queryForm"
:inline=
"true"
:model=
"queryParams"
label-width=
"68px"
size=
"small"
>
<el-form
v-show=
"showSearch"
ref=
"queryForm"
:inline=
"true"
:model=
"queryParams"
label-width=
"68px"
size=
"small"
>
<
el-form-item
label=
"用户id"
prop=
"consumerId"
>
<
!--
<el-form-item
label=
"用户id"
prop=
"consumerId"
>
--
>
<el-input
<!--
<el-input-->
v-model=
"queryParams.consumerId"
<!-- v-model="queryParams.consumerId"-->
clearable
<!-- clearable-->
placeholder=
"请输入用户id"
<!-- placeholder="请输入用户id"-->
@
keyup
.
enter
.
native=
"handleQuery"
<!-- @keyup.enter.native="handleQuery"-->
/
>
<!-- />--
>
<
/el-form-item
>
<
!--
</el-form-item>
--
>
<el-form-item
label=
"变动时长"
prop=
"variableDuration"
>
<el-form-item
label=
"变动时长"
prop=
"variableDuration"
>
<el-input
<el-input
v-model=
"queryParams.variableDuration"
v-model=
"queryParams.variableDuration"
...
@@ -33,14 +33,14 @@
...
@@ -33,14 +33,14 @@
value-format=
"yyyy-MM-dd"
>
value-format=
"yyyy-MM-dd"
>
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
<
el-form-item
label=
"是否删除"
prop=
"isDelete"
>
<
!--
<el-form-item
label=
"是否删除"
prop=
"isDelete"
>
--
>
<el-input
<!--
<el-input-->
v-model=
"queryParams.isDelete"
<!-- v-model="queryParams.isDelete"-->
clearable
<!-- clearable-->
placeholder=
"请输入是否删除"
<!-- placeholder="请输入是否删除"-->
@
keyup
.
enter
.
native=
"handleQuery"
<!-- @keyup.enter.native="handleQuery"-->
/
>
<!-- />--
>
<
/el-form-item
>
<
!--
</el-form-item>
--
>
<el-form-item>
<el-form-item>
<el-button
icon=
"el-icon-search"
size=
"mini"
type=
"primary"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-search"
size=
"mini"
type=
"primary"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
...
@@ -48,41 +48,41 @@
...
@@ -48,41 +48,41 @@
</el-form>
</el-form>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-row
:gutter=
"10"
class=
"mb8"
>
<
el-col
:span=
"1.5"
>
<
!--
<el-col
:span=
"1.5"
>
--
>
<el-button
<!--
<el-button-->
v-hasPermi=
"['system:durationLog:add']"
<!-- v-hasPermi="['system:durationLog:add']"-->
icon=
"el-icon-plus"
<!-- icon="el-icon-plus"-->
plain
<!-- plain-->
size=
"mini"
<!-- size="mini"-->
type=
"primary"
<!-- type="primary"-->
@
click=
"handleAdd"
<!-- @click="handleAdd"-->
>
新增
<!-- >新增-->
</el-button
>
<!--
</el-button>
--
>
<
/el-col
>
<
!--
</el-col>
--
>
<
el-col
:span=
"1.5"
>
<
!--
<el-col
:span=
"1.5"
>
--
>
<el-button
<!--
<el-button-->
v-hasPermi=
"['system:durationLog:edit']"
<!-- v-hasPermi="['system:durationLog:edit']"-->
:disabled=
"single"
<!-- :disabled="single"-->
icon=
"el-icon-edit"
<!-- icon="el-icon-edit"-->
plain
<!-- plain-->
size=
"mini"
<!-- size="mini"-->
type=
"success"
<!-- type="success"-->
@
click=
"handleUpdate"
<!-- @click="handleUpdate"-->
>
修改
<!-- >修改-->
</el-button
>
<!--
</el-button>
--
>
<
/el-col
>
<
!--
</el-col>
--
>
<
el-col
:span=
"1.5"
>
<
!--
<el-col
:span=
"1.5"
>
--
>
<el-button
<!--
<el-button-->
v-hasPermi=
"['system:durationLog:remove']"
<!-- v-hasPermi="['system:durationLog:remove']"-->
:disabled=
"multiple"
<!-- :disabled="multiple"-->
icon=
"el-icon-delete"
<!-- icon="el-icon-delete"-->
plain
<!-- plain-->
size=
"mini"
<!-- size="mini"-->
type=
"danger"
<!-- type="danger"-->
@
click=
"handleDelete"
<!-- @click="handleDelete"-->
>
删除
<!-- >删除-->
</el-button
>
<!--
</el-button>
--
>
<
/el-col
>
<
!--
</el-col>
--
>
<el-col
:span=
"1.5"
>
<el-col
:span=
"1.5"
>
<el-button
<el-button
v-hasPermi=
"['system:durationLog:export']"
v-hasPermi=
"['system:durationLog:export']"
...
@@ -99,7 +99,7 @@
...
@@ -99,7 +99,7 @@
<el-table
v-loading=
"loading"
:data=
"durationLogList"
@
selection-change=
"handleSelectionChange"
>
<el-table
v-loading=
"loading"
:data=
"durationLogList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
align=
"center"
type=
"selection"
width=
"55"
/>
<el-table-column
align=
"center"
type=
"selection"
width=
"55"
/>
<
el-table-column
align=
"center"
label=
"ID"
prop=
"id"
/
>
<
!--
<el-table-column
align=
"center"
label=
"ID"
prop=
"id"
/>
--
>
<el-table-column
align=
"center"
label=
"用户id"
prop=
"consumerId"
/>
<el-table-column
align=
"center"
label=
"用户id"
prop=
"consumerId"
/>
<el-table-column
align=
"center"
label=
"变动时长"
prop=
"variableDuration"
/>
<el-table-column
align=
"center"
label=
"变动时长"
prop=
"variableDuration"
/>
<el-table-column
align=
"center"
label=
"当前时长"
prop=
"currentDuration"
/>
<el-table-column
align=
"center"
label=
"当前时长"
prop=
"currentDuration"
/>
...
...
src/views/system/equityMembersOrderConfig/index.vue
View file @
4657fc91
...
@@ -9,14 +9,14 @@
...
@@ -9,14 +9,14 @@
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
/>
/>
</el-form-item>
</el-form-item>
<
el-form-item
label=
"会员配置id"
prop=
"memberConfigId"
>
<
!--
<el-form-item
label=
"会员配置id"
prop=
"memberConfigId"
>
--
>
<el-input
<!--
<el-input-->
v-model=
"queryParams.memberConfigId"
<!-- v-model="queryParams.memberConfigId"-->
clearable
<!-- clearable-->
placeholder=
"请输入会员配置id"
<!-- placeholder="请输入会员配置id"-->
@
keyup
.
enter
.
native=
"handleQuery"
<!-- @keyup.enter.native="handleQuery"-->
/
>
<!-- />--
>
<
/el-form-item
>
<
!--
</el-form-item>
--
>
<el-form-item
label=
"所需金额"
prop=
"requiredAmount"
>
<el-form-item
label=
"所需金额"
prop=
"requiredAmount"
>
<el-input
<el-input
v-model=
"queryParams.requiredAmount"
v-model=
"queryParams.requiredAmount"
...
@@ -99,9 +99,9 @@
...
@@ -99,9 +99,9 @@
<el-table
v-loading=
"loading"
:data=
"equityMembersOrderConfigList"
@
selection-change=
"handleSelectionChange"
>
<el-table
v-loading=
"loading"
:data=
"equityMembersOrderConfigList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
align=
"center"
type=
"selection"
width=
"55"
/>
<el-table-column
align=
"center"
type=
"selection"
width=
"55"
/>
<
el-table-column
align=
"center"
label=
"ID"
prop=
"id"
/
>
<
!--
<el-table-column
align=
"center"
label=
"ID"
prop=
"id"
/>
--
>
<el-table-column
align=
"center"
label=
"默认会员等级"
prop=
"defaultLevel"
/>
<el-table-column
align=
"center"
label=
"默认会员等级"
prop=
"defaultLevel"
/>
<
el-table-column
align=
"center"
label=
"会员配置id"
prop=
"memberConfigId"
/
>
<
!--
<el-table-column
align=
"center"
label=
"会员配置id"
prop=
"memberConfigId"
/>
--
>
<el-table-column
align=
"center"
label=
"所需金额"
prop=
"requiredAmount"
/>
<el-table-column
align=
"center"
label=
"所需金额"
prop=
"requiredAmount"
/>
<el-table-column
align=
"center"
label=
"会员有效期"
prop=
"validityPeriod"
/>
<el-table-column
align=
"center"
label=
"会员有效期"
prop=
"validityPeriod"
/>
<el-table-column
align=
"center"
label=
"是否删除"
prop=
"isDelete"
/>
<el-table-column
align=
"center"
label=
"是否删除"
prop=
"isDelete"
/>
...
...
src/views/system/member/index.vue
View file @
4657fc91
<
template
>
<
template
>
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<el-form
v-show=
"showSearch"
ref=
"queryForm"
:inline=
"true"
:model=
"queryParams"
label-width=
"68px"
size=
"small"
>
<el-form
v-show=
"showSearch"
ref=
"queryForm"
:inline=
"true"
:model=
"queryParams"
label-width=
"68px"
size=
"small"
>
<el-form-item
label=
"用户id"
prop=
"consumerId"
>
<el-input
v-model=
"queryParams.consumerId"
clearable
placeholder=
"请输入用户id"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"会员等级"
prop=
"membershipLevel"
>
<el-form-item
label=
"会员等级"
prop=
"membershipLevel"
>
<el-input
<el-input
v-model=
"queryParams.membershipLevel"
v-model=
"queryParams.membershipLevel"
...
@@ -17,14 +10,7 @@
...
@@ -17,14 +10,7 @@
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"会员配置id"
prop=
"memberConfigId"
>
<el-input
v-model=
"queryParams.memberConfigId"
clearable
placeholder=
"请输入会员配置id"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"会员有效期"
prop=
"expirationDate"
>
<el-form-item
label=
"会员有效期"
prop=
"expirationDate"
>
<el-date-picker
v-model=
"queryParams.expirationDate"
<el-date-picker
v-model=
"queryParams.expirationDate"
clearable
clearable
...
@@ -41,14 +27,6 @@
...
@@ -41,14 +27,6 @@
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"是否删除"
prop=
"isDelete"
>
<el-input
v-model=
"queryParams.isDelete"
clearable
placeholder=
"请输入是否删除"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
icon=
"el-icon-search"
size=
"mini"
type=
"primary"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-search"
size=
"mini"
type=
"primary"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
...
@@ -107,10 +85,15 @@
...
@@ -107,10 +85,15 @@
<el-table
v-loading=
"loading"
:data=
"memberList"
@
selection-change=
"handleSelectionChange"
>
<el-table
v-loading=
"loading"
:data=
"memberList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
align=
"center"
type=
"selection"
width=
"55"
/>
<el-table-column
align=
"center"
type=
"selection"
width=
"55"
/>
<
el-table-column
align=
"center"
label=
"ID"
prop=
"id"
/
>
<
!--
<el-table-column
align=
"center"
label=
"ID"
prop=
"id"
/>
--
>
<
el-table-column
align=
"center"
label=
"用户id"
prop=
"consumerId"
/
>
<
!--
<el-table-column
align=
"center"
label=
"用户id"
prop=
"consumerId"
/>
--
>
<el-table-column
align=
"center"
label=
"会员等级"
prop=
"membershipLevel"
/>
<el-table-column
align=
"center"
label=
"会员等级"
prop=
"membershipLevel"
/>
<el-table-column
align=
"center"
label=
"会员类型"
prop=
"memberType"
/>
<!--
<el-table-column
align=
"center"
label=
"会员类型"
prop=
"memberType"
/>
-->
<el-table-column
align=
"center"
label=
"会员类型"
prop=
"memberType"
width=
"100px"
>
<template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.member_type"
:value=
"scope.row.memberType"
/>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
label=
"会员配置id"
prop=
"memberConfigId"
/>
<el-table-column
align=
"center"
label=
"会员配置id"
prop=
"memberConfigId"
/>
<el-table-column
align=
"center"
label=
"会员有效期"
prop=
"expirationDate"
width=
"180"
>
<el-table-column
align=
"center"
label=
"会员有效期"
prop=
"expirationDate"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
...
@@ -156,6 +139,16 @@
...
@@ -156,6 +139,16 @@
<
el
-
form
-
item
label
=
"用户id"
prop
=
"consumerId"
>
<
el
-
form
-
item
label
=
"用户id"
prop
=
"consumerId"
>
<
el
-
input
v
-
model
=
"form.consumerId"
placeholder
=
"请输入用户id"
/>
<
el
-
input
v
-
model
=
"form.consumerId"
placeholder
=
"请输入用户id"
/>
<
/el-form-item
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"会员类型"
prop
=
"memberType"
>
<
el
-
select
v
-
model
=
"form.memberType"
placeholder
=
"请选择会员类型"
>
<
el
-
option
v
-
for
=
"dict in dict.type.member_type"
:
key
=
"dict.value"
:
label
=
"dict.label"
:
value
=
"parseInt(dict.value)"
><
/el-option
>
<
/el-select
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"会员等级"
prop
=
"membershipLevel"
>
<
el
-
form
-
item
label
=
"会员等级"
prop
=
"membershipLevel"
>
<
el
-
input
v
-
model
=
"form.membershipLevel"
placeholder
=
"请输入会员等级"
/>
<
el
-
input
v
-
model
=
"form.membershipLevel"
placeholder
=
"请输入会员等级"
/>
<
/el-form-item
>
<
/el-form-item
>
...
@@ -193,6 +186,7 @@ import {listMember, getMember, delMember, addMember, updateMember} from "@/api/s
...
@@ -193,6 +186,7 @@ import {listMember, getMember, delMember, addMember, updateMember} from "@/api/s
export
default
{
export
default
{
name
:
"Member"
,
name
:
"Member"
,
dicts
:
[
'store_is_use_coupon'
,
'member_type'
],
data
()
{
data
()
{
return
{
return
{
// 遮罩层
// 遮罩层
...
...
src/views/system/memberConfig/index.vue
View file @
4657fc91
...
@@ -33,30 +33,30 @@
...
@@ -33,30 +33,30 @@
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
/>
/>
</el-form-item>
</el-form-item>
<
el-form-item
label=
"会员有效期"
prop=
"validityPeriod"
>
<
!--
<el-form-item
label=
"会员有效期"
prop=
"validityPeriod"
>
--
>
<el-input
<!--
<el-input-->
v-model=
"queryParams.validityPeriod"
<!-- v-model="queryParams.validityPeriod"-->
clearable
<!-- clearable-->
placeholder=
"请输入会员有效期"
<!-- placeholder="请输入会员有效期"-->
@
keyup
.
enter
.
native=
"handleQuery"
<!-- @keyup.enter.native="handleQuery"-->
/
>
<!-- />--
>
<
/el-form-item
>
<
!--
</el-form-item>
--
>
<
el-form-item
label=
"会员进度"
prop=
"membershipProgress"
>
<
!--
<el-form-item
label=
"会员进度"
prop=
"membershipProgress"
>
--
>
<el-input
<!--
<el-input-->
v-model=
"queryParams.membershipProgress"
<!-- v-model="queryParams.membershipProgress"-->
clearable
<!-- clearable-->
placeholder=
"请输入会员进度"
<!-- placeholder="请输入会员进度"-->
@
keyup
.
enter
.
native=
"handleQuery"
<!-- @keyup.enter.native="handleQuery"-->
/
>
<!-- />--
>
<
/el-form-item
>
<
!--
</el-form-item>
--
>
<
el-form-item
label=
"是否删除"
prop=
"isDelete"
>
<
!--
<el-form-item
label=
"是否删除"
prop=
"isDelete"
>
--
>
<el-input
<!--
<el-input-->
v-model=
"queryParams.isDelete"
<!-- v-model="queryParams.isDelete"-->
clearable
<!-- clearable-->
placeholder=
"请输入是否删除"
<!-- placeholder="请输入是否删除"-->
@
keyup
.
enter
.
native=
"handleQuery"
<!-- @keyup.enter.native="handleQuery"-->
/
>
<!-- />--
>
<
/el-form-item
>
<
!--
</el-form-item>
--
>
<el-form-item>
<el-form-item>
<el-button
icon=
"el-icon-search"
size=
"mini"
type=
"primary"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-search"
size=
"mini"
type=
"primary"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
...
@@ -115,15 +115,20 @@
...
@@ -115,15 +115,20 @@
<el-table
v-loading=
"loading"
:data=
"memberConfigList"
@
selection-change=
"handleSelectionChange"
>
<el-table
v-loading=
"loading"
:data=
"memberConfigList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
align=
"center"
type=
"selection"
width=
"55"
/>
<el-table-column
align=
"center"
type=
"selection"
width=
"55"
/>
<
el-table-column
align=
"center"
label=
"ID"
prop=
"id"
/
>
<
!--
<el-table-column
align=
"center"
label=
"ID"
prop=
"id"
/>
--
>
<el-table-column
align=
"center"
label=
"会员等级"
prop=
"membershipLevel"
/>
<el-table-column
align=
"center"
label=
"会员等级"
prop=
"membershipLevel"
/>
<el-table-column
align=
"center"
label=
"会员类型"
prop=
"memberType"
/>
<!--
<el-table-column
align=
"center"
label=
"会员类型"
prop=
"memberType"
/>
-->
<el-table-column
align=
"center"
label=
"会员类型"
prop=
"memberType"
width=
"100px"
>
<template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.member_type"
:value=
"scope.row.memberType"
/>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
label=
"等级名称"
prop=
"levelName"
/>
<el-table-column
align=
"center"
label=
"等级名称"
prop=
"levelName"
/>
<el-table-column
align=
"center"
label=
"额度要求"
prop=
"limitRequirements"
/>
<el-table-column
align=
"center"
label=
"额度要求"
prop=
"limitRequirements"
/>
<el-table-column
align=
"center"
label=
"折扣比例"
prop=
"discountRatio"
/>
<el-table-column
align=
"center"
label=
"折扣比例"
prop=
"discountRatio"
/>
<el-table-column
align=
"center"
label=
"会员有效期"
prop=
"validityPeriod"
/>
<el-table-column
align=
"center"
label=
"会员有效期
(年)
"
prop=
"validityPeriod"
/>
<
el-table-column
align=
"center"
label=
"会员进度"
prop=
"membershipProgress"
/
>
<
!-- <el-table-column align="center" label="会员进度" prop="membershipProgress"/>--
>
<
el-table-column
align=
"center"
label=
"是否删除"
prop=
"isDelete"
/
>
<
!-- <el-table-column align="center" label="是否删除" prop="isDelete"/>--
>
<el-table-column
align=
"center"
label=
"备注"
prop=
"remark"
/>
<el-table-column
align=
"center"
label=
"备注"
prop=
"remark"
/>
<el-table-column
align=
"center"
class-name=
"small-padding fixed-width"
label=
"操作"
>
<el-table-column
align=
"center"
class-name=
"small-padding fixed-width"
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
...
@@ -164,6 +169,16 @@
...
@@ -164,6 +169,16 @@
<el-form-item
label=
"等级名称"
prop=
"levelName"
>
<el-form-item
label=
"等级名称"
prop=
"levelName"
>
<el-input
v-model=
"form.levelName"
placeholder=
"请输入等级名称"
/>
<el-input
v-model=
"form.levelName"
placeholder=
"请输入等级名称"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"会员类型"
prop=
"memberType"
>
<el-select
v-model=
"form.memberType"
placeholder=
"请选择会员类型"
>
<el-option
v-for=
"dict in dict.type.member_type"
:key=
"dict.value"
:label=
"dict.label"
:value=
"parseInt(dict.value)"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"额度要求"
prop=
"limitRequirements"
>
<el-form-item
label=
"额度要求"
prop=
"limitRequirements"
>
<el-input
v-model=
"form.limitRequirements"
placeholder=
"请输入额度要求"
/>
<el-input
v-model=
"form.limitRequirements"
placeholder=
"请输入额度要求"
/>
</el-form-item>
</el-form-item>
...
@@ -173,12 +188,12 @@
...
@@ -173,12 +188,12 @@
<el-form-item
label=
"会员有效期"
prop=
"validityPeriod"
>
<el-form-item
label=
"会员有效期"
prop=
"validityPeriod"
>
<el-input
v-model=
"form.validityPeriod"
placeholder=
"请输入会员有效期"
/>
<el-input
v-model=
"form.validityPeriod"
placeholder=
"请输入会员有效期"
/>
</el-form-item>
</el-form-item>
<
el-form-item
label=
"会员进度"
prop=
"membershipProgress"
>
<
!-- <el-form-item label="会员进度" prop="membershipProgress">--
>
<el-input
v-model=
"form.membershipProgress"
placeholder=
"请输入会员进度"
/
>
<!-- <el-input v-model="form.membershipProgress" placeholder="请输入会员进度"/>--
>
<
/el-form-item
>
<
!-- </el-form-item>--
>
<
el-form-item
label=
"是否删除"
prop=
"isDelete"
>
<
!-- <el-form-item label="是否删除" prop="isDelete">--
>
<el-input
v-model=
"form.isDelete"
placeholder=
"请输入是否删除"
/
>
<!-- <el-input v-model="form.isDelete" placeholder="请输入是否删除"/>--
>
<
/el-form-item
>
<
!-- </el-form-item>--
>
<el-form-item
label=
"备注"
prop=
"remark"
>
<el-form-item
label=
"备注"
prop=
"remark"
>
<el-input
v-model=
"form.remark"
placeholder=
"请输入内容"
type=
"textarea"
/>
<el-input
v-model=
"form.remark"
placeholder=
"请输入内容"
type=
"textarea"
/>
</el-form-item>
</el-form-item>
...
@@ -202,6 +217,7 @@ import {
...
@@ -202,6 +217,7 @@ import {
export
default
{
export
default
{
name
:
"MemberConfig"
,
name
:
"MemberConfig"
,
dicts
:
[
'store_is_use_coupon'
,
'member_type'
],
data
()
{
data
()
{
return
{
return
{
// 遮罩层
// 遮罩层
...
...
src/views/system/recharge/index.vue
View file @
4657fc91
...
@@ -9,39 +9,39 @@
...
@@ -9,39 +9,39 @@
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
/>
/>
</el-form-item>
</el-form-item>
<
el-form-item
label=
"充值金额"
prop=
"rechargeAmount"
>
<
!--
<el-form-item
label=
"充值金额"
prop=
"rechargeAmount"
>
--
>
<el-input
<!--
<el-input-->
v-model=
"queryParams.rechargeAmount"
<!-- v-model="queryParams.rechargeAmount"-->
clearable
<!-- clearable-->
placeholder=
"请输入充值金额"
<!-- placeholder="请输入充值金额"-->
@
keyup
.
enter
.
native=
"handleQuery"
<!-- @keyup.enter.native="handleQuery"-->
/
>
<!-- />--
>
<
/el-form-item
>
<
!--
</el-form-item>
--
>
<
el-form-item
label=
"充值满送金额"
prop=
"giveAmount"
>
<
!--
<el-form-item
label=
"充值满送金额"
prop=
"giveAmount"
>
--
>
<el-input
<!--
<el-input-->
v-model=
"queryParams.giveAmount"
<!-- v-model="queryParams.giveAmount"-->
clearable
<!-- clearable-->
placeholder=
"请输入充值满送金额"
<!-- placeholder="请输入充值满送金额"-->
@
keyup
.
enter
.
native=
"handleQuery"
<!-- @keyup.enter.native="handleQuery"-->
/
>
<!-- />--
>
<
/el-form-item
>
<
!--
</el-form-item>
--
>
<
el-form-item
label=
"充值配置表id"
prop=
"rechargeConfId"
>
<
!--
<el-form-item
label=
"充值配置表id"
prop=
"rechargeConfId"
>
--
>
<el-input
<!--
<el-input-->
v-model=
"queryParams.rechargeConfId"
<!-- v-model="queryParams.rechargeConfId"-->
clearable
<!-- clearable-->
placeholder=
"请输入充值配置表id"
<!-- placeholder="请输入充值配置表id"-->
@
keyup
.
enter
.
native=
"handleQuery"
<!-- @keyup.enter.native="handleQuery"-->
/
>
<!-- />--
>
<
/el-form-item
>
<
!--
</el-form-item>
--
>
<
el-form-item
label=
"充值用户ID"
prop=
"consumerId"
>
<
!--
<el-form-item
label=
"充值用户ID"
prop=
"consumerId"
>
--
>
<el-input
<!--
<el-input-->
v-model=
"queryParams.consumerId"
<!-- v-model="queryParams.consumerId"-->
clearable
<!-- clearable-->
placeholder=
"请输入充值用户ID"
<!-- placeholder="请输入充值用户ID"-->
@
keyup
.
enter
.
native=
"handleQuery"
<!-- @keyup.enter.native="handleQuery"-->
/
>
<!-- />--
>
<
/el-form-item
>
<
!--
</el-form-item>
--
>
<el-form-item
label=
"
充值
用户手机号"
prop=
"phone"
>
<el-form-item
label=
"用户手机号"
prop=
"phone"
>
<el-input
<el-input
v-model=
"queryParams.phone"
v-model=
"queryParams.phone"
clearable
clearable
...
@@ -57,30 +57,30 @@
...
@@ -57,30 +57,30 @@
value-format=
"yyyy-MM-dd"
>
value-format=
"yyyy-MM-dd"
>
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
<
el-form-item
label=
"删除标记:1-删除,0-正常"
prop=
"isDelete"
>
<
!--
<el-form-item
label=
"删除标记:1-删除,0-正常"
prop=
"isDelete"
>
--
>
<el-input
<!--
<el-input-->
v-model=
"queryParams.isDelete"
<!-- v-model="queryParams.isDelete"-->
clearable
<!-- clearable-->
placeholder=
"请输入删除标记:1-删除,0-正常"
<!-- placeholder="请输入删除标记:1-删除,0-正常"-->
@
keyup
.
enter
.
native=
"handleQuery"
<!-- @keyup.enter.native="handleQuery"-->
/
>
<!-- />--
>
<
/el-form-item
>
<
!--
</el-form-item>
--
>
<
el-form-item
label=
"商户平台唯一订单号"
prop=
"outTradeNo"
>
<
!--
<el-form-item
label=
"商户平台唯一订单号"
prop=
"outTradeNo"
>
--
>
<el-input
<!--
<el-input-->
v-model=
"queryParams.outTradeNo"
<!-- v-model="queryParams.outTradeNo"-->
clearable
<!-- clearable-->
placeholder=
"请输入商户平台唯一订单号"
<!-- placeholder="请输入商户平台唯一订单号"-->
@
keyup
.
enter
.
native=
"handleQuery"
<!-- @keyup.enter.native="handleQuery"-->
/
>
<!-- />--
>
<
/el-form-item
>
<
!--
</el-form-item>
--
>
<
el-form-item
label=
"终端流水号"
prop=
"terminalTrace"
>
<
!--
<el-form-item
label=
"终端流水号"
prop=
"terminalTrace"
>
--
>
<el-input
<!--
<el-input-->
v-model=
"queryParams.terminalTrace"
<!-- v-model="queryParams.terminalTrace"-->
clearable
<!-- clearable-->
placeholder=
"请输入终端流水号"
<!-- placeholder="请输入终端流水号"-->
@
keyup
.
enter
.
native=
"handleQuery"
<!-- @keyup.enter.native="handleQuery"-->
/
>
<!-- />--
>
<
/el-form-item
>
<
!--
</el-form-item>
--
>
<el-form-item
label=
"支付时间"
prop=
"payTime"
>
<el-form-item
label=
"支付时间"
prop=
"payTime"
>
<el-date-picker
v-model=
"queryParams.payTime"
<el-date-picker
v-model=
"queryParams.payTime"
clearable
clearable
...
@@ -96,41 +96,41 @@
...
@@ -96,41 +96,41 @@
</el-form>
</el-form>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-row
:gutter=
"10"
class=
"mb8"
>
<
el-col
:span=
"1.5"
>
<
!--
<el-col
:span=
"1.5"
>
--
>
<el-button
<!--
<el-button-->
v-hasPermi=
"['system:recharge:add']"
<!-- v-hasPermi="['system:recharge:add']"-->
icon=
"el-icon-plus"
<!-- icon="el-icon-plus"-->
plain
<!-- plain-->
size=
"mini"
<!-- size="mini"-->
type=
"primary"
<!-- type="primary"-->
@
click=
"handleAdd"
<!-- @click="handleAdd"-->
>
新增
<!-- >新增-->
</el-button
>
<!--
</el-button>
--
>
<
/el-col
>
<
!--
</el-col>
--
>
<
el-col
:span=
"1.5"
>
<
!--
<el-col
:span=
"1.5"
>
--
>
<el-button
<!--
<el-button-->
v-hasPermi=
"['system:recharge:edit']"
<!-- v-hasPermi="['system:recharge:edit']"-->
:disabled=
"single"
<!-- :disabled="single"-->
icon=
"el-icon-edit"
<!-- icon="el-icon-edit"-->
plain
<!-- plain-->
size=
"mini"
<!-- size="mini"-->
type=
"success"
<!-- type="success"-->
@
click=
"handleUpdate"
<!-- @click="handleUpdate"-->
>
修改
<!-- >修改-->
</el-button
>
<!--
</el-button>
--
>
<
/el-col
>
<
!--
</el-col>
--
>
<
el-col
:span=
"1.5"
>
<
!--
<el-col
:span=
"1.5"
>
--
>
<el-button
<!--
<el-button-->
v-hasPermi=
"['system:recharge:remove']"
<!-- v-hasPermi="['system:recharge:remove']"-->
:disabled=
"multiple"
<!-- :disabled="multiple"-->
icon=
"el-icon-delete"
<!-- icon="el-icon-delete"-->
plain
<!-- plain-->
size=
"mini"
<!-- size="mini"-->
type=
"danger"
<!-- type="danger"-->
@
click=
"handleDelete"
<!-- @click="handleDelete"-->
>
删除
<!-- >删除-->
</el-button
>
<!--
</el-button>
--
>
<
/el-col
>
<
!--
</el-col>
--
>
<el-col
:span=
"1.5"
>
<el-col
:span=
"1.5"
>
<el-button
<el-button
v-hasPermi=
"['system:recharge:export']"
v-hasPermi=
"['system:recharge:export']"
...
@@ -147,13 +147,13 @@
...
@@ -147,13 +147,13 @@
<el-table
v-loading=
"loading"
:data=
"rechargeList"
@
selection-change=
"handleSelectionChange"
>
<el-table
v-loading=
"loading"
:data=
"rechargeList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
align=
"center"
type=
"selection"
width=
"55"
/>
<el-table-column
align=
"center"
type=
"selection"
width=
"55"
/>
<
el-table-column
align=
"center"
label=
"主键"
prop=
"id"
/
>
<
!--
<el-table-column
align=
"center"
label=
"主键"
prop=
"id"
/>
--
>
<el-table-column
align=
"center"
label=
"充值记录编号"
prop=
"rechargeNo"
/>
<el-table-column
align=
"center"
label=
"充值记录编号"
prop=
"rechargeNo"
/>
<el-table-column
align=
"center"
label=
"充值金额"
prop=
"rechargeAmount"
/>
<el-table-column
align=
"center"
label=
"充值金额"
prop=
"rechargeAmount"
/>
<el-table-column
align=
"center"
label=
"支付方式"
prop=
"payType"
/>
<el-table-column
align=
"center"
label=
"支付方式"
prop=
"payType"
/>
<el-table-column
align=
"center"
label=
"充值满送金额"
prop=
"giveAmount"
/>
<el-table-column
align=
"center"
label=
"充值满送金额"
prop=
"giveAmount"
/>
<el-table-column
align=
"center"
label=
"充值赠送方式
;1-不送,2-送金额,3-送优惠券,4-送金额及优惠券
"
prop=
"giveType"
/>
<el-table-column
align=
"center"
label=
"充值赠送方式"
prop=
"giveType"
/>
<el-table-column
align=
"center"
label=
"状态
:0-待支付,1-支付成功,2-退款中,3-退款完成
"
prop=
"status"
/>
<el-table-column
align=
"center"
label=
"状态"
prop=
"status"
/>
<el-table-column
align=
"center"
label=
"充值赠送优惠券ID"
prop=
"consumerCouponIds"
/>
<el-table-column
align=
"center"
label=
"充值赠送优惠券ID"
prop=
"consumerCouponIds"
/>
<el-table-column
align=
"center"
label=
"充值配置表id"
prop=
"rechargeConfId"
/>
<el-table-column
align=
"center"
label=
"充值配置表id"
prop=
"rechargeConfId"
/>
<el-table-column
align=
"center"
label=
"充值用户ID"
prop=
"consumerId"
/>
<el-table-column
align=
"center"
label=
"充值用户ID"
prop=
"consumerId"
/>
...
@@ -163,7 +163,7 @@
...
@@ -163,7 +163,7 @@
<span>
{{
parseTime
(
scope
.
row
.
rechargeDate
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<span>
{{
parseTime
(
scope
.
row
.
rechargeDate
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
align
=
"center"
label
=
"删除标记:1-删除,0-正常"
prop
=
"isDelete"
/
>
<
!--
<
el
-
table
-
column
align
=
"center"
label
=
"删除标记:1-删除,0-正常"
prop
=
"isDelete"
/>--
>
<
el
-
table
-
column
align
=
"center"
label
=
"备注"
prop
=
"remark"
/>
<
el
-
table
-
column
align
=
"center"
label
=
"备注"
prop
=
"remark"
/>
<
el
-
table
-
column
align
=
"center"
label
=
"商户平台唯一订单号"
prop
=
"outTradeNo"
/>
<
el
-
table
-
column
align
=
"center"
label
=
"商户平台唯一订单号"
prop
=
"outTradeNo"
/>
<
el
-
table
-
column
align
=
"center"
label
=
"终端流水号"
prop
=
"terminalTrace"
/>
<
el
-
table
-
column
align
=
"center"
label
=
"终端流水号"
prop
=
"terminalTrace"
/>
...
@@ -172,26 +172,26 @@
...
@@ -172,26 +172,26 @@
<
span
>
{{
parseTime
(
scope
.
row
.
payTime
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<
span
>
{{
parseTime
(
scope
.
row
.
payTime
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
align
=
"center"
class
-
name
=
"small-padding fixed-width"
label
=
"操作"
>
<
!--
<
el
-
table
-
column
align
=
"center"
class
-
name
=
"small-padding fixed-width"
label
=
"操作"
>--
>
<
template
slot
-
scope
=
"scope"
>
<!--
<
template
slot
-
scope
=
"scope"
>--
>
<
el
-
button
<!--
<
el
-
button
-->
v
-
hasPermi
=
"['system:recharge:edit']"
<!--
v
-
hasPermi
=
"['system:recharge:edit']"
-->
icon
=
"el-icon-edit"
<!--
icon
=
"el-icon-edit"
-->
size
=
"mini"
<!--
size
=
"mini"
-->
type
=
"text"
<!--
type
=
"text"
-->
@
click
=
"handleUpdate(scope.row)"
<!--
@
click
=
"handleUpdate(scope.row)"
-->
>
修改
<!--
>
修改
-->
<
/el-button
>
<!--
<
/el-button>--
>
<
el
-
button
<!--
<
el
-
button
-->
v
-
hasPermi
=
"['system:recharge:remove']"
<!--
v
-
hasPermi
=
"['system:recharge:remove']"
-->
icon
=
"el-icon-delete"
<!--
icon
=
"el-icon-delete"
-->
size
=
"mini"
<!--
size
=
"mini"
-->
type
=
"text"
<!--
type
=
"text"
-->
@
click
=
"handleDelete(scope.row)"
<!--
@
click
=
"handleDelete(scope.row)"
-->
>
删除
<!--
>
删除
-->
<
/el-button
>
<!--
<
/el-button>--
>
<
/template
>
<!--
<
/template>--
>
<
/el-table-column
>
<
!--
<
/el-table-column>--
>
<
/el-table
>
<
/el-table
>
<
pagination
<
pagination
...
...
src/views/system/rechargeConf/index.vue
View file @
4657fc91
...
@@ -25,22 +25,32 @@
...
@@ -25,22 +25,32 @@
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"启用禁用:1-启用,0-禁用"
prop=
"enable"
>
<!--
<el-form-item
label=
"启用禁用:1-启用,0-禁用"
prop=
"enable"
>
-->
<el-input
<!--
<el-input-->
v-model=
"queryParams.enable"
<!-- v-model="queryParams.enable"-->
clearable
<!-- clearable-->
placeholder=
"请输入启用禁用:1-启用,0-禁用"
<!-- placeholder="请输入启用禁用:1-启用,0-禁用"-->
@
keyup
.
enter
.
native=
"handleQuery"
<!-- @keyup.enter.native="handleQuery"-->
/>
<!-- />-->
</el-form-item>
<!--
</el-form-item>
-->
<el-form-item
label=
"充值适用门店id"
prop=
"storeIds"
>
<el-form-item
label=
"启用禁用"
prop=
"enable"
>
<el-input
<el-select
v-model=
"queryParams.enable"
clearable
placeholder=
"请选择是否开启"
>
v-model=
"queryParams.storeIds"
<el-option
clearable
v-for=
"dict in dict.type.store_is_use_coupon"
placeholder=
"请输入充值适用门店id"
:key=
"dict.value"
@
keyup
.
enter
.
native=
"handleQuery"
:label=
"dict.label"
/>
:value=
"dict.value"
/>
</el-select>
</el-form-item>
</el-form-item>
<!--
<el-form-item
label=
"充值适用门店id"
prop=
"storeIds"
>
-->
<!--
<el-input-->
<!-- v-model="queryParams.storeIds"-->
<!-- clearable-->
<!-- placeholder="请输入充值适用门店id"-->
<!-- @keyup.enter.native="handleQuery"-->
<!-- />-->
<!--
</el-form-item>
-->
<el-form-item>
<el-form-item>
<el-button
icon=
"el-icon-search"
size=
"mini"
type=
"primary"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-search"
size=
"mini"
type=
"primary"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
...
@@ -99,12 +109,18 @@
...
@@ -99,12 +109,18 @@
<el-table
v-loading=
"loading"
:data=
"rechargeConfList"
@
selection-change=
"handleSelectionChange"
>
<el-table
v-loading=
"loading"
:data=
"rechargeConfList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
align=
"center"
type=
"selection"
width=
"55"
/>
<el-table-column
align=
"center"
type=
"selection"
width=
"55"
/>
<
el-table-column
align=
"center"
label=
"主键"
prop=
"id"
/
>
<
!--
<el-table-column
align=
"center"
label=
"主键"
prop=
"id"
/>
--
>
<el-table-column
align=
"center"
label=
"配置名称"
prop=
"name"
/>
<el-table-column
align=
"center"
label=
"配置名称"
prop=
"name"
/>
<el-table-column
align=
"center"
label=
"充值金额"
prop=
"rechargeAmount"
/>
<el-table-column
align=
"center"
label=
"充值金额"
prop=
"rechargeAmount"
/>
<el-table-column
align=
"center"
label=
"充值赠送方式;1-不送,2-送金额,3-送优惠券,4-送金额及优惠券"
prop=
"giveType"
/>
<!--
<el-table-column
align=
"center"
label=
"充值赠送方式;1-不送,2-送金额,3-送优惠券,4-送金额及优惠券"
prop=
"giveType"
/>
-->
<el-table-column
align=
"center"
label=
"充值赠送方式"
prop=
"giveType"
/>
<el-table-column
align=
"center"
label=
"充值满送金额"
prop=
"giveAmount"
/>
<el-table-column
align=
"center"
label=
"充值满送金额"
prop=
"giveAmount"
/>
<el-table-column
align=
"center"
label=
"启用禁用:1-启用,0-禁用"
prop=
"enable"
/>
<!--
<el-table-column
align=
"center"
label=
"启用禁用:1-启用,0-禁用"
prop=
"enable"
/>
-->
<el-table-column
align=
"center"
label=
"启用禁用"
prop=
"enable"
>
<template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.store_is_use_coupon"
:value=
"scope.row.enable"
/>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
label=
"充值适用类型:1-平台通用,2-单门店"
prop=
"suitType"
/>
<el-table-column
align=
"center"
label=
"充值适用类型:1-平台通用,2-单门店"
prop=
"suitType"
/>
<el-table-column
align=
"center"
label=
"充值适用门店id"
prop=
"storeIds"
/>
<el-table-column
align=
"center"
label=
"充值适用门店id"
prop=
"storeIds"
/>
<el-table-column
align=
"center"
label=
"备注"
prop=
"remark"
/>
<el-table-column
align=
"center"
label=
"备注"
prop=
"remark"
/>
...
@@ -182,6 +198,7 @@ import {
...
@@ -182,6 +198,7 @@ import {
export
default
{
export
default
{
name
:
"RechargeConf"
,
name
:
"RechargeConf"
,
dicts
:
[
'store_is_use_coupon'
],
data
()
{
data
()
{
return
{
return
{
// 遮罩层
// 遮罩层
...
...
src/views/system/rechargeCouponConf/index.vue
View file @
4657fc91
<
template
>
<
template
>
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<el-form
v-show=
"showSearch"
ref=
"queryForm"
:inline=
"true"
:model=
"queryParams"
label-width=
"68px"
size=
"small"
>
<el-form
v-show=
"showSearch"
ref=
"queryForm"
:inline=
"true"
:model=
"queryParams"
label-width=
"68px"
size=
"small"
>
<
el-form-item
label=
"充值配置表id"
prop=
"rechargeConfId"
>
<
!--
<el-form-item
label=
"充值配置表id"
prop=
"rechargeConfId"
>
--
>
<el-input
<!--
<el-input-->
v-model=
"queryParams.rechargeConfId"
<!-- v-model="queryParams.rechargeConfId"-->
clearable
<!-- clearable-->
placeholder=
"请输入充值配置表id"
<!-- placeholder="请输入充值配置表id"-->
@
keyup
.
enter
.
native=
"handleQuery"
<!-- @keyup.enter.native="handleQuery"-->
/
>
<!-- />--
>
<
/el-form-item
>
<
!--
</el-form-item>
--
>
<
el-form-item
label=
"充值赠送优惠券配置ID"
prop=
"couponId"
>
<
!--
<el-form-item
label=
"充值赠送优惠券配置ID"
prop=
"couponId"
>
--
>
<el-input
<!--
<el-input-->
v-model=
"queryParams.couponId"
<!-- v-model="queryParams.couponId"-->
clearable
<!-- clearable-->
placeholder=
"请输入充值赠送优惠券配置ID"
<!-- placeholder="请输入充值赠送优惠券配置ID"-->
@
keyup
.
enter
.
native=
"handleQuery"
<!-- @keyup.enter.native="handleQuery"-->
/
>
<!-- />--
>
<
/el-form-item
>
<
!--
</el-form-item>
--
>
<
el-form-item
label=
"赠送券数量"
prop=
"couponNum"
>
<
!--
<el-form-item
label=
"赠送券数量"
prop=
"couponNum"
>
--
>
<el-input
<!--
<el-input-->
v-model=
"queryParams.couponNum"
<!-- v-model="queryParams.couponNum"-->
clearable
<!-- clearable-->
placeholder=
"请输入赠送券数量"
<!-- placeholder="请输入赠送券数量"-->
@
keyup
.
enter
.
native=
"handleQuery"
<!-- @keyup.enter.native="handleQuery"-->
/
>
<!-- />--
>
<
/el-form-item
>
<
!--
</el-form-item>
--
>
<
el-form-item
label=
"送券价值金额:元/每张"
prop=
"couponAmount"
>
<
!--
<el-form-item
label=
"送券价值金额:元/每张"
prop=
"couponAmount"
>
--
>
<el-input
<!--
<el-input-->
v-model=
"queryParams.couponAmount"
<!-- v-model="queryParams.couponAmount"-->
clearable
<!-- clearable-->
placeholder=
"请输入送券价值金额:元/每张"
<!-- placeholder="请输入送券价值金额:元/每张"-->
@
keyup
.
enter
.
native=
"handleQuery"
<!-- @keyup.enter.native="handleQuery"-->
/
>
<!-- />--
>
<
/el-form-item
>
<
!--
</el-form-item>
--
>
<el-form-item>
<el-form-item>
<el-button
icon=
"el-icon-search"
size=
"mini"
type=
"primary"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-search"
size=
"mini"
type=
"primary"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
...
@@ -91,7 +91,7 @@
...
@@ -91,7 +91,7 @@
<el-table
v-loading=
"loading"
:data=
"rechargeCouponConfList"
@
selection-change=
"handleSelectionChange"
>
<el-table
v-loading=
"loading"
:data=
"rechargeCouponConfList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
align=
"center"
type=
"selection"
width=
"55"
/>
<el-table-column
align=
"center"
type=
"selection"
width=
"55"
/>
<
el-table-column
align=
"center"
label=
"主键"
prop=
"id"
/
>
<
!--
<el-table-column
align=
"center"
label=
"主键"
prop=
"id"
/>
--
>
<el-table-column
align=
"center"
label=
"充值配置表id"
prop=
"rechargeConfId"
/>
<el-table-column
align=
"center"
label=
"充值配置表id"
prop=
"rechargeConfId"
/>
<el-table-column
align=
"center"
label=
"充值赠送优惠券配置ID"
prop=
"couponId"
/>
<el-table-column
align=
"center"
label=
"充值赠送优惠券配置ID"
prop=
"couponId"
/>
<el-table-column
align=
"center"
label=
"赠送券数量"
prop=
"couponNum"
/>
<el-table-column
align=
"center"
label=
"赠送券数量"
prop=
"couponNum"
/>
...
...
src/views/system/rechargeRefund/index.vue
View file @
4657fc91
<
template
>
<
template
>
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<el-form
v-show=
"showSearch"
ref=
"queryForm"
:inline=
"true"
:model=
"queryParams"
label-width=
"68px"
size=
"small"
>
<el-form
v-show=
"showSearch"
ref=
"queryForm"
:inline=
"true"
:model=
"queryParams"
label-width=
"68px"
size=
"small"
>
<
el-form-item
label=
"充值记录表ID"
prop=
"rechargeId"
>
<
!--
<el-form-item
label=
"充值记录表ID"
prop=
"rechargeId"
>
--
>
<el-input
<!--
<el-input-->
v-model=
"queryParams.rechargeId"
<!-- v-model="queryParams.rechargeId"-->
clearable
<!-- clearable-->
placeholder=
"请输入充值记录表ID"
<!-- placeholder="请输入充值记录表ID"-->
@
keyup
.
enter
.
native=
"handleQuery"
<!-- @keyup.enter.native="handleQuery"-->
/
>
<!-- />--
>
<
/el-form-item
>
<
!--
</el-form-item>
--
>
<el-form-item
label=
"系统计算退款金额"
prop=
"refundAmount"
>
<el-form-item
label=
"系统计算退款金额"
prop=
"refundAmount"
>
<el-input
<el-input
v-model=
"queryParams.refundAmount"
v-model=
"queryParams.refundAmount"
...
@@ -17,22 +17,22 @@
...
@@ -17,22 +17,22 @@
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
/>
/>
</el-form-item>
</el-form-item>
<
el-form-item
label=
"已使用优惠券ID"
prop=
"usedCouponIds"
>
<
!--
<el-form-item
label=
"已使用优惠券ID"
prop=
"usedCouponIds"
>
--
>
<el-input
<!--
<el-input-->
v-model=
"queryParams.usedCouponIds"
<!-- v-model="queryParams.usedCouponIds"-->
clearable
<!-- clearable-->
placeholder=
"请输入已使用优惠券ID"
<!-- placeholder="请输入已使用优惠券ID"-->
@
keyup
.
enter
.
native=
"handleQuery"
<!-- @keyup.enter.native="handleQuery"-->
/
>
<!-- />--
>
<
/el-form-item
>
<
!--
</el-form-item>
--
>
<
el-form-item
label=
"未使用优惠券ID"
prop=
"notusedCouponIds"
>
<
!--
<el-form-item
label=
"未使用优惠券ID"
prop=
"notusedCouponIds"
>
--
>
<el-input
<!--
<el-input-->
v-model=
"queryParams.notusedCouponIds"
<!-- v-model="queryParams.notusedCouponIds"-->
clearable
<!-- clearable-->
placeholder=
"请输入未使用优惠券ID"
<!-- placeholder="请输入未使用优惠券ID"-->
@
keyup
.
enter
.
native=
"handleQuery"
<!-- @keyup.enter.native="handleQuery"-->
/
>
<!-- />--
>
<
/el-form-item
>
<
!--
</el-form-item>
--
>
<el-form-item
label=
"实际退款金额"
prop=
"actualRefundAmount"
>
<el-form-item
label=
"实际退款金额"
prop=
"actualRefundAmount"
>
<el-input
<el-input
v-model=
"queryParams.actualRefundAmount"
v-model=
"queryParams.actualRefundAmount"
...
@@ -65,14 +65,14 @@
...
@@ -65,14 +65,14 @@
value-format=
"yyyy-MM-dd"
>
value-format=
"yyyy-MM-dd"
>
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
<
el-form-item
label=
"退款短信通知运维人员:1-已发送短信通知,0-未发送短信通知"
prop=
"isSendSms"
>
<
!--
<el-form-item
label=
"退款短信通知运维人员:1-已发送短信通知,0-未发送短信通知"
prop=
"isSendSms"
>
--
>
<el-input
<!--
<el-input-->
v-model=
"queryParams.isSendSms"
<!-- v-model="queryParams.isSendSms"-->
clearable
<!-- clearable-->
placeholder=
"请输入退款短信通知运维人员:1-已发送短信通知,0-未发送短信通知"
<!-- placeholder="请输入退款短信通知运维人员:1-已发送短信通知,0-未发送短信通知"-->
@
keyup
.
enter
.
native=
"handleQuery"
<!-- @keyup.enter.native="handleQuery"-->
/
>
<!-- />--
>
<
/el-form-item
>
<
!--
</el-form-item>
--
>
<el-form-item>
<el-form-item>
<el-button
icon=
"el-icon-search"
size=
"mini"
type=
"primary"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-search"
size=
"mini"
type=
"primary"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
...
@@ -80,41 +80,41 @@
...
@@ -80,41 +80,41 @@
</el-form>
</el-form>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-row
:gutter=
"10"
class=
"mb8"
>
<
el-col
:span=
"1.5"
>
<
!--
<el-col
:span=
"1.5"
>
--
>
<el-button
<!--
<el-button-->
v-hasPermi=
"['system:rechargeRefund:add']"
<!-- v-hasPermi="['system:rechargeRefund:add']"-->
icon=
"el-icon-plus"
<!-- icon="el-icon-plus"-->
plain
<!-- plain-->
size=
"mini"
<!-- size="mini"-->
type=
"primary"
<!-- type="primary"-->
@
click=
"handleAdd"
<!-- @click="handleAdd"-->
>
新增
<!-- >新增-->
</el-button
>
<!--
</el-button>
--
>
<
/el-col
>
<
!--
</el-col>
--
>
<
el-col
:span=
"1.5"
>
<
!--
<el-col
:span=
"1.5"
>
--
>
<el-button
<!--
<el-button-->
v-hasPermi=
"['system:rechargeRefund:edit']"
<!-- v-hasPermi="['system:rechargeRefund:edit']"-->
:disabled=
"single"
<!-- :disabled="single"-->
icon=
"el-icon-edit"
<!-- icon="el-icon-edit"-->
plain
<!-- plain-->
size=
"mini"
<!-- size="mini"-->
type=
"success"
<!-- type="success"-->
@
click=
"handleUpdate"
<!-- @click="handleUpdate"-->
>
修改
<!-- >修改-->
</el-button
>
<!--
</el-button>
--
>
<
/el-col
>
<
!--
</el-col>
--
>
<
el-col
:span=
"1.5"
>
<
!--
<el-col
:span=
"1.5"
>
--
>
<el-button
<!--
<el-button-->
v-hasPermi=
"['system:rechargeRefund:remove']"
<!-- v-hasPermi="['system:rechargeRefund:remove']"-->
:disabled=
"multiple"
<!-- :disabled="multiple"-->
icon=
"el-icon-delete"
<!-- icon="el-icon-delete"-->
plain
<!-- plain-->
size=
"mini"
<!-- size="mini"-->
type=
"danger"
<!-- type="danger"-->
@
click=
"handleDelete"
<!-- @click="handleDelete"-->
>
删除
<!-- >删除-->
</el-button
>
<!--
</el-button>
--
>
<
/el-col
>
<
!--
</el-col>
--
>
<el-col
:span=
"1.5"
>
<el-col
:span=
"1.5"
>
<el-button
<el-button
v-hasPermi=
"['system:rechargeRefund:export']"
v-hasPermi=
"['system:rechargeRefund:export']"
...
@@ -131,13 +131,15 @@
...
@@ -131,13 +131,15 @@
<el-table
v-loading=
"loading"
:data=
"rechargeRefundList"
@
selection-change=
"handleSelectionChange"
>
<el-table
v-loading=
"loading"
:data=
"rechargeRefundList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
align=
"center"
type=
"selection"
width=
"55"
/>
<el-table-column
align=
"center"
type=
"selection"
width=
"55"
/>
<
el-table-column
align=
"center"
label=
"主键"
prop=
"id"
/
>
<
!--
<el-table-column
align=
"center"
label=
"主键"
prop=
"id"
/>
--
>
<el-table-column
align=
"center"
label=
"充值记录表ID"
prop=
"rechargeId"
/>
<el-table-column
align=
"center"
label=
"充值记录表ID"
prop=
"rechargeId"
/>
<el-table-column
align=
"center"
label=
"系统计算退款金额"
prop=
"refundAmount"
/>
<el-table-column
align=
"center"
label=
"系统计算退款金额"
prop=
"refundAmount"
/>
<el-table-column
align=
"center"
label=
"已使用优惠券ID"
prop=
"usedCouponIds"
/>
<el-table-column
align=
"center"
label=
"已使用优惠券ID"
prop=
"usedCouponIds"
/>
<el-table-column
align=
"center"
label=
"未使用优惠券ID"
prop=
"notusedCouponIds"
/>
<el-table-column
align=
"center"
label=
"未使用优惠券ID"
prop=
"notusedCouponIds"
/>
<el-table-column
align=
"center"
label=
"实际退款金额"
prop=
"actualRefundAmount"
/>
<el-table-column
align=
"center"
label=
"实际退款金额"
prop=
"actualRefundAmount"
/>
<el-table-column
align=
"center"
label=
"审核状态:0-待审核,2-审核通过,3-审核不通过"
prop=
"status"
/>
<!--
<el-table-column
align=
"center"
label=
"审核状态:0-待审核,2-审核通过,3-审核不通过"
prop=
"status"
/>
-->
<el-table-column
align=
"center"
label=
"审核状态"
prop=
"status"
/>
<el-table-column
align=
"center"
label=
"退款审核说明"
prop=
"description"
/>
<el-table-column
align=
"center"
label=
"退款审核说明"
prop=
"description"
/>
<el-table-column
align=
"center"
label=
"退款原因"
prop=
"reason"
/>
<el-table-column
align=
"center"
label=
"退款原因"
prop=
"reason"
/>
<el-table-column
align=
"center"
label=
"申请时间"
prop=
"applyForDate"
width=
"180"
>
<el-table-column
align=
"center"
label=
"申请时间"
prop=
"applyForDate"
width=
"180"
>
...
@@ -145,28 +147,29 @@
...
@@ -145,28 +147,29 @@
<span>
{{
parseTime
(
scope
.
row
.
applyForDate
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<span>
{{
parseTime
(
scope
.
row
.
applyForDate
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
align
=
"center"
label
=
"退款短信通知运维人员:1-已发送短信通知,0-未发送短信通知"
prop
=
"isSendSms"
/>
<!--
<
el
-
table
-
column
align
=
"center"
label
=
"退款短信通知运维人员:1-已发送短信通知,0-未发送短信通知"
prop
=
"isSendSms"
/>-->
<
el
-
table
-
column
align
=
"center"
label
=
"退款短信通知运维人员"
prop
=
"isSendSms"
/>
<
el
-
table
-
column
align
=
"center"
label
=
"备注"
prop
=
"remark"
/>
<
el
-
table
-
column
align
=
"center"
label
=
"备注"
prop
=
"remark"
/>
<
el
-
table
-
column
align
=
"center"
class
-
name
=
"small-padding fixed-width"
label
=
"操作"
>
<
!--
<
el
-
table
-
column
align
=
"center"
class
-
name
=
"small-padding fixed-width"
label
=
"操作"
>--
>
<
template
slot
-
scope
=
"scope"
>
<!--
<
template
slot
-
scope
=
"scope"
>--
>
<
el
-
button
<!--
<
el
-
button
-->
v
-
hasPermi
=
"['system:rechargeRefund:edit']"
<!--
v
-
hasPermi
=
"['system:rechargeRefund:edit']"
-->
icon
=
"el-icon-edit"
<!--
icon
=
"el-icon-edit"
-->
size
=
"mini"
<!--
size
=
"mini"
-->
type
=
"text"
<!--
type
=
"text"
-->
@
click
=
"handleUpdate(scope.row)"
<!--
@
click
=
"handleUpdate(scope.row)"
-->
>
修改
<!--
>
修改
-->
<
/el-button
>
<!--
<
/el-button>--
>
<
el
-
button
<!--
<
el
-
button
-->
v
-
hasPermi
=
"['system:rechargeRefund:remove']"
<!--
v
-
hasPermi
=
"['system:rechargeRefund:remove']"
-->
icon
=
"el-icon-delete"
<!--
icon
=
"el-icon-delete"
-->
size
=
"mini"
<!--
size
=
"mini"
-->
type
=
"text"
<!--
type
=
"text"
-->
@
click
=
"handleDelete(scope.row)"
<!--
@
click
=
"handleDelete(scope.row)"
-->
>
删除
<!--
>
删除
-->
<
/el-button
>
<!--
<
/el-button>--
>
<
/template
>
<!--
<
/template>--
>
<
/el-table-column
>
<
!--
<
/el-table-column>--
>
<
/el-table
>
<
/el-table
>
<
pagination
<
pagination
...
...
src/views/system/wallet/index.vue
View file @
4657fc91
<
template
>
<
template
>
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<el-form
v-show=
"showSearch"
ref=
"queryForm"
:inline=
"true"
:model=
"queryParams"
label-width=
"68px"
size=
"small"
>
<el-form
v-show=
"showSearch"
ref=
"queryForm"
:inline=
"true"
:model=
"queryParams"
label-width=
"68px"
size=
"small"
>
<el-form-item
label=
"用户id"
prop=
"consumerId"
>
<el-input
v-model=
"queryParams.consumerId"
clearable
placeholder=
"请输入用户id"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"余额"
prop=
"balance"
>
<el-form-item
label=
"余额"
prop=
"balance"
>
<el-input
<el-input
v-model=
"queryParams.balance"
v-model=
"queryParams.balance"
...
@@ -33,14 +25,7 @@
...
@@ -33,14 +25,7 @@
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"是否删除"
prop=
"isDelete"
>
<el-input
v-model=
"queryParams.isDelete"
clearable
placeholder=
"请输入是否删除"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
icon=
"el-icon-search"
size=
"mini"
type=
"primary"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-search"
size=
"mini"
type=
"primary"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
...
@@ -99,8 +84,8 @@
...
@@ -99,8 +84,8 @@
<el-table
v-loading=
"loading"
:data=
"walletList"
@
selection-change=
"handleSelectionChange"
>
<el-table
v-loading=
"loading"
:data=
"walletList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
align=
"center"
type=
"selection"
width=
"55"
/>
<el-table-column
align=
"center"
type=
"selection"
width=
"55"
/>
<
el-table-column
align=
"center"
label=
"ID"
prop=
"id"
/
>
<
!--
<el-table-column
align=
"center"
label=
"ID"
prop=
"id"
/>
--
>
<
el-table-column
align=
"center"
label=
"用户id"
prop=
"consumerId"
/
>
<
!--
<el-table-column
align=
"center"
label=
"用户id"
prop=
"consumerId"
/>
--
>
<el-table-column
align=
"center"
label=
"余额"
prop=
"balance"
/>
<el-table-column
align=
"center"
label=
"余额"
prop=
"balance"
/>
<el-table-column
align=
"center"
label=
"时长"
prop=
"remainingDuration"
/>
<el-table-column
align=
"center"
label=
"时长"
prop=
"remainingDuration"
/>
<el-table-column
align=
"center"
label=
"积分"
prop=
"remainingIntegral"
/>
<el-table-column
align=
"center"
label=
"积分"
prop=
"remainingIntegral"
/>
...
@@ -139,9 +124,9 @@
...
@@ -139,9 +124,9 @@
<!-- 添加或修改会员钱包对话框 -->
<!-- 添加或修改会员钱包对话框 -->
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
append-to-body
width=
"500px"
>
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
append-to-body
width=
"500px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"80px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"80px"
>
<
el-form-item
label=
"用户id"
prop=
"consumerId"
>
<
!-- <el-form-item label="用户id" prop="consumerId">--
>
<el-input
v-model=
"form.consumerId"
placeholder=
"请输入用户id"
/
>
<!-- <el-input v-model="form.consumerId" placeholder="请输入用户id"/>--
>
<
/el-form-item
>
<
!-- </el-form-item>--
>
<el-form-item
label=
"余额"
prop=
"balance"
>
<el-form-item
label=
"余额"
prop=
"balance"
>
<el-input
v-model=
"form.balance"
placeholder=
"请输入余额"
/>
<el-input
v-model=
"form.balance"
placeholder=
"请输入余额"
/>
</el-form-item>
</el-form-item>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment