| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353 |
- <div id="app" v-cloak>
- <el-card shadow="never" style="border:0;min-width: 1000px;" body-style="background-color: #f3f3f3;padding: 10px 0 0;">
- <div slot="header">
- <span>申请列表</span>
- </div>
- <div class="table-body">
- <el-form size="small" :inline="true">
- <el-form-item>
- <el-input style="width: 200px" v-model="searchData.user_id" placeholder="请输入用户ID进行搜索" clearable></el-input>
- </el-form-item>
- <el-form-item>
- <el-input style="width: 200px" v-model="searchData.keyword" placeholder="请输入用户昵称/手机号进行搜索" clearable></el-input>
- </el-form-item>
- <el-form-item>
- <el-input style="width: 200px" v-model="searchData.name" placeholder="请输入名称进行搜索" clearable></el-input>
- </el-form-item>
- <el-form-item>
- <el-input style="width: 200px" v-model="searchData.mobile" placeholder="请输入手机号进行搜索" clearable></el-input>
- </el-form-item>
- <el-form-item>
- <el-date-picker size="small" v-model="searchData.date" type="datetimerange" style="float: left" value-format="yyyy-MM-dd HH:mm:ss" range-separator="至" start-placeholder="开始日期" @change="selectDateTime" end-placeholder="结束日期">
- </el-date-picker>
- </el-form-item>
- <el-form-item>
- <el-button type="primary" @click="searchs" style="padding: 9px 15px !important">搜索</el-button>
- </el-form-item>
- </el-form>
- <el-tabs v-model="activeName" >
- <el-table :data="list" stripe v-loading="loading" size="small" style="margin-bottom: 15px;" >
- <el-table-column prop="user_id" label="会员ID" align="center"></el-table-column>
- <el-table-column label="会员信息" width="200">
- <template slot-scope="scope">
- <div class="table-info-img-text">
- <el-image class="table-info-img circle" :src="scope.row.user.avatar_url">
- <div slot="error" class="image-slot">
- <com-image src="/resources/img/common/default-avatar.png"></com-image>
- </div>
- </el-image>
- <div class="table-info-text">
- <div style="color:#000;">{{scope.row.user.nickname}}</div>
- <div style="font-size: 12px;">{{scope.row.user.mobile}}</div>
- </div>
- </div>
- </template>
- </el-table-column>
- <el-table-column prop="mobile" label="手机号" align="center">
- <template slot-scope="scope">
- <span>{{scope.row.mobile ? scope.row.mobile : '--'}}</span>
- </template>
- </el-table-column>
- <el-table-column label="姓名" prop="name" align="center" ></el-table-column>
- <el-table-column label="服务地址" prop="address" align="left"></el-table-column>
- <el-table-column label="资格证书" align="center">
- <template slot-scope="scope">
- <el-image
- v-for="(img, index) in scope.row.qualification_certificate"
- :key="index"
- style="width: 50px; height: 50px; margin-left: 5px"
- :src="img"
- :preview-src-list="scope.row.qualification_certificate">
- </el-image>
- </template>
- </el-table-column>
- <el-table-column label="身份证信息" align="center" prop="idcard"></el-table-column>
- <el-table-column prop="idcard" label="身份证" align="center">
- <template slot-scope="scope">
- <el-image
- v-for="(img, index) in scope.row.idcard_images"
- :key="index"
- style="width: 50px; height: 50px; margin-left: 5px"
- :src="img"
- :preview-src-list="scope.row.idcard_images">
- </el-image>
- </template>
- </el-table-column>
- <el-table-column label="申请时间" align="center">
- <template slot-scope="scope">
- {{scope.row.created_at|dateTimeFormat('Y-m-d H:i:s')}}
- </template>
- </el-table-column>
- <el-table-column label="审核状态" align="center">
- <template slot-scope="scope">
- <el-tag size="mini" :type="status[scope.row.settle.check_status].type">{{status[scope.row.settle.check_status].title}}</el-tag>
- </template>
- </el-table-column>
- <el-table-column label="审核备注" align="left">
- <template slot-scope="scope">
- {{scope.row.settle.check_remark ? scope.row.settle.check_remark : '--'}}
- </template>
- </el-table-column>
- <el-table-column label="操作" align="center">
- <template slot-scope="scope">
- <template v-if="scope.row.settle.check_status == 0">
- <el-button type="text" @click="onShowAudit(scope.row, 1)" class="all_text">通过</el-button>
- <el-button type="text" @click="onShowAudit(scope.row, 2)" class="all_text" style="margin-left: 10px">驳回</el-button>
- </template>
- <template v-else>-</template>
- </template>
- </el-table-column>
- </el-table>
- </el-tabs>
- <div flex="box:last cross:center">
- <div></div>
- <div>
- <el-pagination v-if="pagination" :page-size="page_size"
- style="float: right;" background @current-change="pageChange"
- layout="prev, pager, next" :total="pagination.totalCount">
- </el-pagination>
- </div>
- </div>
- </div>
- </el-card>
- <el-dialog
- title="审核"
- :visible.sync="dialogVisible"
- width="30%">
- <el-form :model="auditForm">
- <el-form-item label="审核备注" prop="remark" :rules="[{required: true, message: '审核备注不能为空'}]">
- <el-input type="textarea" :rows="3" v-model="auditForm.remark"></el-input>
- </el-form-item>
- </el-form>
- <span slot="footer" class="dialog-footer">
- <el-button @click="dialogVisible = false">取 消</el-button>
- <el-button type="primary" :disabled="btnLoading" :loading="btnLoading" @click="onAudit">确 定</el-button>
- </span>
- </el-dialog>
- </div>
- <script>
- const app = new Vue({
- el: '#app',
- data: {
- searchData: {
- user_id: '',
- keyword: '', //会员昵称/手机号
- name: '',//用户来源
- mobile: '',//注册开始时间
- address: '',//注册结束时间
- date_start: '',
- date_end: '',
- date: '',
- },
- list: [],
- loading: false,
- btnLoading: false,
- activeName: '-1',
- pagination: null,
- page_size: 10,
- currentItem: null,
- status: [
- {
- title: '待审核',
- type: 'warning'
- },
- {
- title: '审核已通过',
- type: 'success'
- },
- {
- title: '审核被拒绝',
- type: 'danger'
- }
- ],
- auditForm: {
- id: 0,
- status: 1,
- remark: ''
- },
- dialogVisible: false,
- },
- computed: {
- },
- mounted() {
- this.loadData();
- },
- methods: {
- selectDateTime(e) {
- if (e != null) {
- this.searchData.date_start = e[0];
- this.searchData.date_end = e[1];
- } else {
- this.searchData.date_start = '';
- this.searchData.date_end = '';
- }
- this.searchs();
- },
- loadData() {
- this.loading = true;
- let params = {
- r: 'store/client/reserve-apply/index'
- };
- params = Object.assign(params, this.searchData);
- request({
- params: params,
- method: 'get',
- }).then(e => {
- this.loading = false;
- if (e.data.code == 0) {
- this.list = e.data.data.list;
- this.pagination = e.data.data.pagination;
- this.page_size = e.data.data.page_size;
- } else {
- this.$message.error(e.data.msg);
- }
- }).catch(e => {
- this.loading = false;
- });
- },
- searchs() {
- this.page = 1;
- this.loadData();
- },
- pageChange(page) {
- this.search.page = page;
- this.loadData();
- },
- onShowAudit(item, status) {
- this.currentItem = item
- this.auditForm = {
- id: item.settle.id,
- status: status,
- }
- this.dialogVisible = true
- },
- onAudit() {
- this.btnLoading = true;
- request({
- params: {
- r: 'store/client/reserve-apply/audit'
- },
- method: 'post',
- data: this.auditForm,
- }).then(e => {
- this.btnLoading = false;
- if (e.data.code == 0) {
- this.loadData();
- this.dialogVisible = false
- this.$message.success(e.data.msg);
- } else {
- this.$message.error(e.data.msg);
- }
- }).catch(e => {
- this.btnLoading = false;
- });
- }
- }
- });
- </script>
- <style>
- .el-tabs__header {
- font-size: 16px;
- }
- .table-body {
- padding: 20px;
- background-color: #fff;
- }
- .table-body .el-button {
- padding: 0 !important;
- border: 0;
- margin: 0 5px;
- }
- .input-item {
- width: 250px;
- margin: 0 0 20px;
- display: inline-block;
- }
- /*.input-item .el-input__inner {*/
- /* border-right: 0;*/
- /*}*/
- .input-item .el-input__inner:hover {
- border: 1px solid #dcdfe6;
- /*border-right: 0;*/
- outline: 0;
- }
- .input-item .el-input__inner:focus {
- border: 1px solid #dcdfe6;
- /*border-right: 0;*/
- outline: 0;
- }
- .input-item .el-input-group__append {
- background-color: #fff;
- border-left: 0;
- width: 10%;
- padding: 0;
- }
- .input-item .el-input-group__append .el-button {
- padding: 0;
- }
- .input-item .el-input-group__append .el-button {
- margin: 0;
- }
- .batch {
- margin: 0 0 20px;
- display: inline-block;
- }
- .batch .el-button {
- padding: 9px 15px !important;
- }
- .el-table th>.cell{
- color: #333;
- font-weight: bold;
- font-size: 14px;
- }
- .el-table__footer-wrapper, .el-table__header-wrapper{
- border-bottom: 1.4px solid #D6D6D6;
- }
- .el-table th>.cell {
- color: #333;
- font-weight: bold;
- font-size: 14px;
- }
- .table1 .el-table__footer-wrapper,
- .table1 .el-table__header-wrapper {
- border-bottom: 1.4px solid #D6D6D6;
- }
- .user_img{
- position: relative;
- margin-right: 8px;
- height: 50px;
- width: 50px;
- }
- .default-avatar{
- width: 50px;
- height: 50px;
- border-radius: 50%;
- margin-right: 8px;
- }
- .uer-nickname {
- flex: 1;
- }
- </style>
|