Commit 9fd22d9c by huyue

提交卡券发放记录

1 parent 4a145e08
...@@ -105,3 +105,9 @@ export function pointStaffQuery(data) { ...@@ -105,3 +105,9 @@ export function pointStaffQuery(data) {
data.method = `${path}resident.point.staff.query` data.method = `${path}resident.point.staff.query`
return request(data, RequestMethods.POST) 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 \ No newline at end of file
...@@ -826,7 +826,31 @@ export const routerName = { ...@@ -826,7 +826,31 @@ export const routerName = {
false: "启用" 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") component: _import("residentManage/growUpGrade/indexControl")
}, },
......
...@@ -6,11 +6,14 @@ ...@@ -6,11 +6,14 @@
<el-tabs v-model="activeName"> <el-tabs v-model="activeName">
<el-tab-pane label="成长等级记录" <el-tab-pane label="成长等级记录"
name="record" /> name="record" />
<el-tab-pane label="卡券发放记录"
name="issue" />
<el-tab-pane label="成长等级管理" <el-tab-pane label="成长等级管理"
name="manage" /> name="manage" />
</el-tabs> </el-tabs>
<div> <div>
<record v-if="activeName === 'record'" /> <record v-if="activeName === 'record'" />
<issue v-if="activeName === 'issue'" />
<manage v-if="activeName === 'manage'" /> <manage v-if="activeName === 'manage'" />
</div> </div>
</div> </div>
...@@ -20,20 +23,22 @@ ...@@ -20,20 +23,22 @@
<script> <script>
import record from './record' import record from './record'
import manage from './manage' import manage from './manage'
import issue from './issue'
// import { deepClone } from '@/common/util' // import { deepClone } from '@/common/util'
export default { export default {
name: 'StaffIndex', name: 'StaffIndex',
data() { data() {
return { return {
userInfo: this.$store.state.d2admin.user.info, userInfo: this.$store.state.d2admin.user.info,
activeName: 'record', activeName: 'issue',
recordInfo: {} recordInfo: {}
} }
}, },
components: { components: {
record, record,
manage manage,
issue
}, },
mounted() { mounted() {
......
<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 \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!