<style lang='scss'>
    .signup_mannage{
        .bh{
            font-size: 14px;
            color: #666;
            line-height: 27px;
            margin-bottom: 10px;
            label{
                color:#333;
                font-size: 16px;
                display: inline-block;
                padding-right: 10px;
            }
        }
        .hotel{
            .el-dialog{
                margin-top: 30px !important;
                .el-form-item{
                    margin-bottom: 10px;
                }
            }
        }
    }
</style>
<template>
    <section class="signup_mannage">
        <p><span>会议管理></span>报名管理</p>
        <div class="content">
            <div class="filter">
                <el-form size="small" label-width="70px" :inline="true"  label-position="left">
                    <el-form-item label="">
                            <el-input clearable placeholder="请输入姓名" v-model="form.name"></el-input>
                    </el-form-item>
                    <el-form-item label="">
                            <el-select v-model="form.id" clearable placeholder="请选择会议"></el-select>
                    </el-form-item>
                    <el-form-item label="">
                            <el-select v-model="form.id" clearable placeholder="请选择酒店"></el-select>
                    </el-form-item>
                    <el-form-item>
                        <el-button  type="primary">搜索</el-button>
                    </el-form-item>
                    <el-form-item style="float:right" >
                        <el-button plain icon="el-icon-download" type="primary">导出Excel</el-button>
                    </el-form-item>
                </el-form>
            </div>
            <el-tabs v-model="order_status" @tab-click="tabClick">
                <el-tab-pane name="-3" label="待审核"></el-tab-pane>
                <el-tab-pane name="-1" label="待缴费"></el-tab-pane>
                <el-tab-pane name="0" label="待上传凭证"></el-tab-pane>
                <el-tab-pane name="-2" label="待选酒店"></el-tab-pane>
                <el-tab-pane name="1" label="待核销"></el-tab-pane>
                <el-tab-pane name="2" label="已核销"></el-tab-pane>
            </el-tabs>
             <el-table
                    class="table"
                    :data="list"
                    height='50vh'
                    border  v-loading="loading"
                    default-expand-all row-key="id"
                    style="width: 100%">
                    <el-table-column
                    prop="name"  
                    label="会议名称">
                    </el-table-column>
                    <el-table-column
                    prop="username"  
                    label="真实姓名">
                    </el-table-column>
                    <el-table-column
                    prop="username"  
                    label="昵称">
                    </el-table-column>
                    <el-table-column
                    prop="username"  
                    label="头像">
                    </el-table-column>
                    <el-table-column
                    prop=""  
                    label="性别">
                    </el-table-column>
                    <el-table-column
                    prop=""  
                    label="手机号">
                    </el-table-column>
                    <el-table-column
                    prop=""  
                    label="邮箱">
                    </el-table-column>
                    <el-table-column
                    prop=""  
                    label="单位">
                    </el-table-column>
                    <el-table-column
                    prop=""  
                    label="已选酒店">
                    </el-table-column>
                    <el-table-column
                    prop=""  
                    label="已选房型">
                    </el-table-column>
                    <el-table-column
                    prop=""  
                    label="入住天数">
                    </el-table-column>
                    <el-table-column
                    prop=""  
                    label="入住时间">
                    </el-table-column>
                    <el-table-column
                    prop=""  
                    label="离开时间">
                    </el-table-column>
                    <el-table-column
                    prop=""  
                    label="状态">
                    </el-table-column>
                    <el-table-column  
                    prop="zip"  width="260" fixed="right"
                    label="操作">
                    <template slot-scope="">
                        <el-button  @click="dialogVisible2=true" class="edit"  type="text" >审核</el-button>
                        <el-button @click="dialogVisible=true"  type="text">发票详情</el-button>
                        <el-button    type="text" >入住凭证</el-button>
                        <el-button @click="dialogVisible1=true"   type="text" >驳回原因</el-button>
                    </template>
                    </el-table-column>
            </el-table>
            <Page  ref="pageButton" :current='form.page' :page_size='form.page_size' :total='total' @pageChange='gopage'/>
        </div>
        <el-dialog class="hotel"
        title="发票详情" :close-on-click-modal='false'
        :visible.sync="dialogVisible">
           <el-form>
                    <el-form-item label="用户姓名：">
                        {{invoice.name}}
                    </el-form-item>
                    <el-form-item label="手机号：">
                        {{invoice.name}}
                    </el-form-item>
                    <el-form-item label="支付方式：">
                        {{invoice.name}}
                    </el-form-item>
                    <el-form-item label="发票种类：">
                        {{invoice.name}}
                    </el-form-item>
                    <el-form-item label="纳税人识别号：">
                        {{invoice.name}}
                    </el-form-item>
                    <el-form-item label="注册地址">
                        {{invoice.name}}
                    </el-form-item>
                    <el-form-item label="注册电话：">
                        {{invoice.name}}
                    </el-form-item>
                    <el-form-item label="开户行：">
                        {{invoice.name}}
                    </el-form-item>
                    <el-form-item label="银行帐号：">
                        {{invoice.name}}
                    </el-form-item>
           </el-form>
        </el-dialog>
        <el-dialog width="70%"
        title="驳回原因" :close-on-click-modal='false'
        :visible.sync="dialogVisible1">
           <div class="bh">
               <label>会议名称</label>
               建设世界一流科技期刊的思考与探索 ——中国科学院自然科学期刊编辑研究会 第29次年会暨研讨班 正式通知
                <br>
                <label>用户姓名</label>张三
           </div>
           <el-table
                    class="table"
                    :data="reason"
                    default-expand-all 
                    style="width: 100%">
                    <el-table-column
                    prop="name"  
                    label="驳回时间">
                    </el-table-column>
                    <el-table-column
                    prop="name"  
                    label="驳回人">
                    </el-table-column>
                    <el-table-column
                    prop="name"  
                    label="驳回原因">
                    </el-table-column>
           </el-table>
        </el-dialog>
        <el-dialog class="hotel"
        title="审核" :close-on-click-modal='false'
        :visible.sync="dialogVisible2">
           <el-form label-width="80px" size='small'>
                    <el-form-item label="会议名称">
                        {{invoice.name}}
                    </el-form-item>
                    <el-form-item label="用户姓名">
                        {{invoice.name}}
                    </el-form-item>
                    <el-form-item label="手机号">
                        {{invoice.name}}
                    </el-form-item>
                    <el-form-item label="所在城市">
                        {{invoice.name}}
                    </el-form-item>
                    <el-form-item label="所属单位">
                        {{invoice.name}}
                    </el-form-item>
                    <el-form-item label="入住天数">
                        {{invoice.name}}
                    </el-form-item>
                    <el-form-item label="入住时间">
                        {{invoice.name}}
                    </el-form-item>
                    <el-form-item label="离开时间">
                        {{invoice.name}}
                    </el-form-item>
                    <el-form-item label="报名时间">
                        {{invoice.name}}
                    </el-form-item>
                    <el-form-item label="入住凭证">
                        {{invoice.name}}
                    </el-form-item>
                    <el-form-item label="驳回原因">
                        <el-input  type="textarea" v-model="form.name"></el-input>
                    </el-form-item>
                    <el-form-item label="">
                        <el-button type="primary">通过</el-button>
                        <el-button type="danger">驳回</el-button>
                    </el-form-item>
           </el-form>
        </el-dialog>
    </section>
</template>
<script>
import Page from '../../components/Page';
export default {
    components:{
        Page
    },
    data(){
        return{
            form:{},
            order_status:'-3',
            list:[{}],
            reason:[],
            invoice:{},
            total:0,
            loading:false,
            dialogVisible:false,
            dialogVisible1:false,
            dialogVisible2:false
        }
    },
    methods:{
        gopage(size){
            if(size){
                this.form.page_size=size
            }
            this.form.page=this.$refs.pageButton.page
            this.getData()
        },
        tabClick(){

        }
    }
}
</script>