230 行
10 KiB
HTML
可执行文件
230 行
10 KiB
HTML
可执行文件
<!--[1.8.50]-->
|
|
<div id="vipRecordApp" v-cloak style="width: 100%">
|
|
<el-form :inline="true" size="small">
|
|
<el-form-item>
|
|
<date-picker-range :date-time.sync="searchForm.time_slot"></date-picker-range>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<select-store :store-id.sync="searchForm.store_id"
|
|
:show-status="true"
|
|
:placeholder="'操作门店'"></select-store>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-input v-model="searchForm.keyword" placeholder="手机号/实体卡号/姓名/昵称" clearable
|
|
style="width: 220px;"></el-input>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-button type="primary" @click="rechargeCurrentChange(1)" size="small">查询</el-button>
|
|
<el-button type="primary" plain @click="reset" size="small">重置</el-button>
|
|
<el-button v-if="operate.change_export" @click="exportExcel" size="small">导出</el-button>
|
|
</el-form-item>
|
|
</el-form>
|
|
|
|
<div v-loading="loading" element-loading-text="数据加载中,请等待" element-loading-spinner="el-icon-loading">
|
|
<el-table :data="change_list" :highlight-current-row="true"
|
|
:header-cell-style="{background:'#F5F7FA',color:'#606266'}"
|
|
border size="small">
|
|
<el-table-column type="index" label="序号" width="60" align="center"></el-table-column>
|
|
<el-table-column label="会员" align="center">
|
|
<el-table-column prop="name" label="名称" :show-overflow-tooltip="true"></el-table-column>
|
|
<el-table-column prop="nickname" label="昵称" :show-overflow-tooltip="true"></el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="操作" align="center">
|
|
<el-table-column prop="store_name" label="门店" :show-overflow-tooltip="true"></el-table-column>
|
|
<el-table-column prop="operator_type" label="类型" :show-overflow-tooltip="true"></el-table-column>
|
|
<el-table-column prop="operator_name" label="人员" :show-overflow-tooltip="true"></el-table-column>
|
|
<el-table-column prop="add_time" label="时间" width="140" :show-overflow-tooltip="true"></el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="手机号" align="center">
|
|
<el-table-column label="变更前" :show-overflow-tooltip="true">
|
|
<template slot-scope="scope">
|
|
<span class="danger">{{ scope.row.before_phone }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="变更后" :show-overflow-tooltip="true">
|
|
<template slot-scope="scope">
|
|
<span class="danger">{{ scope.row.after_phone }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="实体卡" align="center">
|
|
<el-table-column label="变更前" :show-overflow-tooltip="true">
|
|
<template slot-scope="scope">
|
|
<span class="danger">{{ scope.row.before_card_key }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="变更后" :show-overflow-tooltip="true">
|
|
<template slot-scope="scope">
|
|
<span class="danger">{{ scope.row.after_card_key }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="余额" align="center">
|
|
<el-table-column label="变更前" :show-overflow-tooltip="true">
|
|
<template slot-scope="scope">
|
|
<span class="danger">{{ scope.row.before_balance }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="变更后" :show-overflow-tooltip="true">
|
|
<template slot-scope="scope">
|
|
<span class="danger">{{ scope.row.after_balance }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="等级" align="center">
|
|
<el-table-column label="变更前" :show-overflow-tooltip="true">
|
|
<template slot-scope="scope">
|
|
<span class="danger">{{ scope.row.before_grade }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="变更后" :show-overflow-tooltip="true">
|
|
<template slot-scope="scope">
|
|
<span class="danger">{{ scope.row.after_grade }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="积分" align="center">
|
|
<el-table-column label="变更前" :show-overflow-tooltip="true">
|
|
<template slot-scope="scope">
|
|
<span class="danger">{{ scope.row.before_integral }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="变更后" :show-overflow-tooltip="true">
|
|
<template slot-scope="scope">
|
|
<span class="danger">{{ scope.row.after_integral }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="PLUS会员结束时间" align="center">
|
|
<el-table-column label="变更前" :show-overflow-tooltip="true">
|
|
<template slot-scope="scope">
|
|
<span class="danger">{{ scope.row.before_plus_end_time }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="变更后" :show-overflow-tooltip="true">
|
|
<template slot-scope="scope">
|
|
<span class="danger">{{ scope.row.after_plus_end_time }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="密码" width="80" :show-overflow-tooltip="true">
|
|
<template slot-scope="scope">
|
|
<span class="danger">{{ scope.row.password }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table>
|
|
<el-pagination
|
|
@size-change="rechargeSizeChange"
|
|
@current-change="rechargeCurrentChange"
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
:current-page="page"
|
|
:pager-count="5"
|
|
:page-sizes="[10,20,30,40,50,60,70,80,90]"
|
|
:page-size="10"
|
|
:total="count">
|
|
</el-pagination>
|
|
</div>
|
|
</div>
|
|
<script src="/Public/Retail/common/js/select-store.js"></script>
|
|
<script>
|
|
var vipRecordApp = new Vue({
|
|
el: '#vipRecordApp',
|
|
data () {
|
|
return {
|
|
seek_store: [], // 门店搜索条件
|
|
searchForm: {
|
|
time_slot: '', // 时间段
|
|
keyword: '', // 姓名,昵称
|
|
store_id: '', // 操作门店
|
|
},
|
|
change_list: [], // 变更记录列表
|
|
page: 1, // 分页
|
|
limit: 10, // 每页显示条数
|
|
count: 0, // 总数 int类型
|
|
loading: false, // 加载
|
|
operate: {},
|
|
};
|
|
},
|
|
|
|
methods: {
|
|
/**
|
|
* 获取变更操作记录
|
|
*/
|
|
getVipChangeList() {
|
|
this.loading = true;
|
|
this.sendRequest('Retail/Vip/getVipChangeList', {
|
|
data: {
|
|
page: this.page,
|
|
limit: this.limit,
|
|
...this.searchForm,
|
|
},
|
|
success: (res) => {
|
|
this.loading = false;
|
|
if (res.status == 1) {
|
|
this.change_list = res.data.list;
|
|
this.count = res.data.count;
|
|
} else {
|
|
this.change_list = [];
|
|
this.count = 0;
|
|
}
|
|
}
|
|
});
|
|
},
|
|
|
|
/**
|
|
* 分页
|
|
* @param int val 当前选择的页数
|
|
*/
|
|
rechargeCurrentChange(val) {
|
|
this.page = val;
|
|
this.getVipChangeList();
|
|
},
|
|
|
|
/**
|
|
* 每页显示数量
|
|
* @param int val 数量
|
|
*/
|
|
rechargeSizeChange(val) {
|
|
this.limit = val;
|
|
this.page = 1;
|
|
this.getVipChangeList();
|
|
},
|
|
|
|
/**
|
|
* 重置表单
|
|
*/
|
|
reset() {
|
|
this.searchForm = {
|
|
time_slot: '',
|
|
keyword: '',
|
|
store_id: '',
|
|
};
|
|
this.getVipChangeList();
|
|
},
|
|
|
|
// 导出
|
|
exportExcel() {
|
|
if (!this.searchForm.time_slot.length) {
|
|
this.$confirm('确定导出所有数据吗?', '提示?', {
|
|
confirmButtonText: '确定',
|
|
cancelButtonText: '取消',
|
|
type: 'warning'
|
|
}).then(() => {
|
|
window.location.href = "{:U('vipChangeExport')}?data=" + JSON.stringify(this.searchForm);
|
|
}).catch(()=>{});
|
|
} else {
|
|
window.location.href = "{:U('vipChangeExport')}?data=" + JSON.stringify(this.searchForm);
|
|
}
|
|
},
|
|
},
|
|
|
|
created() {
|
|
this.getVipChangeList();
|
|
this.checkOperateAuth({
|
|
change_export: '/index.php/Retail/Vip/change_export',
|
|
}, (data) => {
|
|
this.operate = data;
|
|
})
|
|
},
|
|
})
|
|
</script> |