Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
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 9fd22d9c
authored
Feb 27, 2025
by
huyue
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交卡券发放记录
1 parent
4a145e08
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
245 additions
and
3 deletions
src/api/inStorePoints.js
src/router/modules/912_residentManage.js
src/views/residentManage/growUpGrade/indexControl.vue
src/views/residentManage/growUpGrade/issue.vue
src/api/inStorePoints.js
View file @
9fd22d9
...
...
@@ -105,3 +105,9 @@ export function pointStaffQuery(data) {
data
.
method
=
`
${
path
}
resident.point.staff.query`
return
request
(
data
,
RequestMethods
.
POST
)
}
// 驻店人员卡券发发放记录
export
function
getCouponRecord
(
data
)
{
data
.
method
=
'dj.api.smartcarlife.resident.coupon.grant.record'
return
request
(
data
,
RequestMethods
.
POST
)
}
\ No newline at end of file
src/router/modules/912_residentManage.js
View file @
9fd22d9
...
...
@@ -826,7 +826,31 @@ export const routerName = {
false
:
"启用"
}
}
}
},
{
authId
:
"9121406"
,
parentId
:
"91214"
,
label
:
"启用"
,
handle
:
"handleUp"
},
{
authId
:
"9121407"
,
parentId
:
"91214"
,
label
:
"禁用"
,
handle
:
"handleDown"
},
{
authId
:
"9121408"
,
parentId
:
"91214"
,
label
:
"查看"
,
handle
:
"handleView"
},
{
authId
:
"9121409"
,
parentId
:
"91214"
,
label
:
"删除"
,
handle
:
"handleDelete"
},
],
component
:
_import
(
"residentManage/growUpGrade/indexControl"
)
},
...
...
src/views/residentManage/growUpGrade/indexControl.vue
View file @
9fd22d9
...
...
@@ -6,11 +6,14 @@
<el-tabs
v-model=
"activeName"
>
<el-tab-pane
label=
"成长等级记录"
name=
"record"
/>
<el-tab-pane
label=
"卡券发放记录"
name=
"issue"
/>
<el-tab-pane
label=
"成长等级管理"
name=
"manage"
/>
</el-tabs>
<div>
<record
v-if=
"activeName === 'record'"
/>
<issue
v-if=
"activeName === 'issue'"
/>
<manage
v-if=
"activeName === 'manage'"
/>
</div>
</div>
...
...
@@ -20,20 +23,22 @@
<
script
>
import
record
from
'./record'
import
manage
from
'./manage'
import
issue
from
'./issue'
// import { deepClone } from '@/common/util'
export
default
{
name
:
'StaffIndex'
,
data
()
{
return
{
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
activeName
:
'
record
'
,
activeName
:
'
issue
'
,
recordInfo
:
{}
}
},
components
:
{
record
,
manage
manage
,
issue
},
mounted
()
{
...
...
src/views/residentManage/growUpGrade/issue.vue
0 → 100644
View file @
9fd22d9
<
template
>
<d2-container
class=
"points-config"
>
<div
class=
"header"
slot=
"header"
>
<d2-search
ref=
"showSearch"
class=
"show-search"
:search-form=
"searchForm"
:form-data=
"showFormData"
label-width=
"100px"
/>
<div
class=
"up-btns"
>
<el-button
:id=
"tableParams.btnId"
size=
"small"
type=
"primary"
>
查询
</el-button>
<el-button
size=
"small"
@
click=
"handleReset"
>
重置
</el-button>
</div>
</div>
<div
class=
"d2-container-content"
>
<d2-table-header>
<span
slot=
"left"
>
<span
class=
"table-title"
>
发放记录列表
</span>
</span>
<span
style=
"display: inline-block;margin-left: 10px;"
>
<el-button
type=
"primary"
size=
"mini"
>
导出
</el-button>
</span>
</d2-table-header>
<d2-table
ref=
"detailListTable"
:search-form=
"searchForm"
:table-params=
"tableParams"
:get-list-api=
"getListApi"
:before-search-fn=
"beforeSearchFn"
>
<div
slot=
"auth-button"
slot-scope=
"scope"
>
<!-- 查看 -->
<span
style=
"margin-right: 10px;"
>
<el-button
type=
"text"
size=
"mini"
>
查看
</el-button>
</span>
<!-- 启用/停用 -->
<span
style=
"margin-right: 10px;"
>
<el-button
type=
"text"
size=
"mini"
>
启用
</el-button>
</span>
<span
style=
"margin-right: 10px;"
>
<el-button
type=
"text"
size=
"mini"
>
禁用
</el-button>
</span>
<!-- 删除 -->
<span
style=
"margin-right: 10px;"
>
<el-button
type=
"text"
size=
"mini"
>
删除
</el-button>
</span>
</div>
</d2-table>
</div>
</d2-container>
</
template
>
<
script
>
import
{
getCouponRecord
}
from
'@api/inStorePoints'
export
default
{
data
()
{
return
{
searchForm
:
{
levelName
:
''
,
staffPhone
:
''
,
openState
:
''
},
showFormData
:
[{
label
:
'员工姓名'
,
name
:
'staffName'
,
type
:
'input'
,
maxlength
:
'20'
,
isClear
:
true
},
{
label
:
'电话号码'
,
name
:
'staffPhone'
,
type
:
'input'
,
maxlength
:
'20'
,
isClear
:
true
},
{
label
:
'等级名称'
,
name
:
'levelType'
,
type
:
'select'
,
isClear
:
true
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confValue'
,
optionsName
:
'levelTypeOpt'
},
{
label
:
'卡券名称'
,
name
:
'levelName'
,
type
:
'input'
,
maxlength
:
'20'
,
isClear
:
true
},
{
label
:
'使用状态'
,
name
:
'openState'
,
type
:
'select'
,
isClear
:
true
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confValue'
,
optionsName
:
'openStateOpt'
},
{
label
:
"发放时间"
,
name
:
"searchdate"
,
type
:
"datePicker"
,
isClear
:
false
,
pickerOptions
:
"rangePickerOptions"
},
{
label
:
"领取时间"
,
name
:
"searchdate"
,
type
:
"datePicker"
,
isClear
:
false
,
pickerOptions
:
"rangePickerOptions"
},
{
label
:
"有效时间"
,
name
:
"searchdate"
,
type
:
"datePicker"
,
isClear
:
false
,
pickerOptions
:
"rangePickerOptions"
}],
getListApi
:
getCouponRecord
,
tableParams
:
{
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
listName
:
'list'
,
// tableOption: true,
tableOption
:
{
width
:
'150px'
},
tableColumns
:
[
{
label
:
'姓名'
,
prop
:
'levelType'
,
width
:
'150'
},
{
label
:
'电话号码'
,
prop
:
'levelName'
},
{
label
:
'等级名称'
,
prop
:
"ratingProjectType"
},
{
label
:
'卡券名称'
,
prop
:
'minRanking'
,
width
:
'150'
},
{
label
:
'价值'
,
prop
:
'highRanking'
,
width
:
'150'
},
{
label
:
'发放时间'
,
prop
:
'ratingCycle'
,
width
:
'150'
,
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
ratingCycle
?
cellValue
.
ratingCycle
+
'个月'
:
'--'
}
},
{
label
:
'有效期'
,
prop
:
'highRanking'
,
width
:
'150'
},
{
label
:
'状态'
,
prop
:
'openState'
,
width
:
'150'
,
className
:
(
cellValue
)
=>
{
return
{
true
:
'greenSpot'
,
false
:
'redSpot'
}[
cellValue
.
openState
]
}
},
{
label
:
'领取时间'
,
prop
:
'updatedDate'
,
width
:
'150'
,
}
]
},
}
},
methods
:
{
beforeSearchFn
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
resolve
()
})
},
handleReset
()
{
this
.
searchForm
=
{
levelName
:
''
,
staffPhone
:
''
,
openState
:
''
}
this
.
$refs
.
detailListTable
.
refreshTable
()
},
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.points-config
{
margin-top
:
40px
;
.m-l-md
{
margin-left
:
20px
;
}
}
.table-title
{
color
:
#1D1D1D
;
font-size
:
16px
;
font-weight
:
500
;
}
</
style
>
\ No newline at end of file
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