|
@@ -10,12 +10,12 @@
|
|
|
<el-form-item prop="lastExpireTime">
|
|
|
<el-date-picker v-model="queryParams.lastExpireTime" style="width: 240px" value-format="yyyy-MM-dd" type="daterange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
|
|
|
</el-form-item>
|
|
|
- <el-form-item prop="lastUseLevel">
|
|
|
+ <!-- <el-form-item prop="lastUseLevel">
|
|
|
<el-radio-group v-model="queryParams.lastUseLevel">
|
|
|
<el-radio-button :key="0" :label="0">正常</el-radio-button>
|
|
|
<el-radio-button :key="1" :label="1">优先扣款</el-radio-button>
|
|
|
</el-radio-group>
|
|
|
- </el-form-item>
|
|
|
+ </el-form-item> -->
|
|
|
<el-form-item>
|
|
|
<el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
|
|
|
<el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
|
@@ -68,35 +68,35 @@
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
</el-row>
|
|
|
|
|
|
- <el-table v-loading="loading" fit highlight-current-row border stripe :data="batchRecordList" @selection-change="handleSelectionChange">
|
|
|
+ <Page uri="/mapi/recharge/card/batchRecord/findPage" :request-params="queryParams" ref="pagination">
|
|
|
<!-- <el-table-column type="selection" width="55" align="center" fixed="left"/>-->
|
|
|
<el-table-column label="编号" align="center" prop="id" />
|
|
|
<el-table-column label="批次号" align="center" prop="batchNo" />
|
|
|
<el-table-column label="批次名称" align="center" prop="batchName" />
|
|
|
+ <el-table-column label="备注" align="center" prop="remark" />
|
|
|
<el-table-column label="到期时间" align="center" prop="lastExpireTime" width="180" />
|
|
|
- <el-table-column label="优先消费" align="center" prop="lastUseLevel">
|
|
|
+ <!-- <el-table-column label="优先消费" align="center" prop="lastUseLevel">
|
|
|
<template slot-scope="scope">
|
|
|
<el-switch v-model="scope.row.lastUseLevel" :active-value="1" :inactive-value="0" @change="handleUpdateUseLevel(scope.row)"></el-switch>
|
|
|
</template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="客户星级" align="center" prop="starLevel" width="150">
|
|
|
+ </el-table-column> -->
|
|
|
+ <!-- <el-table-column label="客户星级" align="center" prop="starLevel" width="150">
|
|
|
<template slot-scope="scope">
|
|
|
<el-rate v-model="scope.row.starLevel" disabled disabled-void-color="#DCDFE6"></el-rate>
|
|
|
</template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="创建时间" align="center" prop="createTime" width="180" />
|
|
|
+ </el-table-column> -->
|
|
|
<el-table-column label="创建人" align="center" prop="createBy" width="120" />
|
|
|
+ <el-table-column label="创建时间" align="center" prop="createTime" width="180" />
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="150">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button type="text" icon="el-icon-edit" @click="handleUpdateExpireTime(scope.row)" v-hasPermi="['recharge:batchRecord:edit']">修改过期时间</el-button>
|
|
|
- <el-button type="text" icon="el-icon-edit" @click="handleUseRecord(scope.row)" v-hasPermi="['recharge:batchRecord:edit']">充值卡使用记录</el-button>
|
|
|
+ <!-- <el-button type="text" icon="el-icon-edit" @click="handleUpdateExpireTime(scope.row)" v-hasPermi="['recharge:batchRecord:edit']">修改过期时间</el-button> -->
|
|
|
<el-button type="text" icon="el-icon-edit" @click="handleCardDetail(scope.row)" v-hasPermi="['recharge:batchRecord:edit']">充值卡明细</el-button>
|
|
|
+ <el-button type="text" icon="el-icon-edit" @click="handleUseRecord(scope.row)" v-hasPermi="['recharge:batchRecord:edit']">充值卡使用记录</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- </el-table>
|
|
|
-
|
|
|
- <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" />
|
|
|
+ </Page>
|
|
|
|
|
|
+
|
|
|
<!-- 添加或修改充值批次记录对话框 -->
|
|
|
<el-dialog :title="title" :visible.sync="open" size="30%" append-to-body>
|
|
|
<el-row :gutter="15" style="margin-bottom: 80px; margin-left: 20px; width: calc(100% - 20px)">
|
|
@@ -204,8 +204,6 @@ export default {
|
|
|
open: false,
|
|
|
// 查询参数
|
|
|
queryParams: {
|
|
|
- pageNum: 1,
|
|
|
- pageSize: 10,
|
|
|
batchNo: null,
|
|
|
batchName: null,
|
|
|
lastExpireTime: null,
|
|
@@ -225,12 +223,8 @@ export default {
|
|
|
methods: {
|
|
|
/** 查询充值批次记录列表 */
|
|
|
getList() {
|
|
|
- this.loading = true
|
|
|
- findBatchRecordPage(this.queryParams).then((response) => {
|
|
|
- console.log(response)
|
|
|
- this.batchRecordList = response.data.records
|
|
|
- this.total = response.data.total
|
|
|
- this.loading = false
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.pagination.handleSearch(true)
|
|
|
})
|
|
|
},
|
|
|
// 取消按钮
|