<template> 
 | 
    <GlobalWindow 
 | 
        :title="title" 
 | 
        width="60%" 
 | 
        :visible.sync="visible" 
 | 
        :confirm-working="isWorking" 
 | 
        @confirm="confirm" 
 | 
    > 
 | 
        <div class="list"> 
 | 
            <div class="list_item"> 
 | 
                <div class="list_item_label">拜访信息</div> 
 | 
                <div class="list_item_val" v-if="info"> 
 | 
                    <div class="list_item_val_item">拜访对方:{{info.receptMemberName}} - {{info.receptMemberDepartment}}</div> 
 | 
                    <div class="list_item_val_item">拜访时间:{{info.starttime}} 至 {{info.endtime}}</div> 
 | 
                    <div class="list_item_val_item">拜访事由:{{info.reason}}</div> 
 | 
                    <div class="list_item_val_item">申请人员:{{info.name}} {{info.companyName}}</div> 
 | 
                    <div class="list_item_val_item">申请门禁:{{info.deviceList ? info.deviceList.map(item => item.name).join(',') : ''}}</div> 
 | 
                    <div class="list_item_val_item">创建时间:{{info.createDate}}</div> 
 | 
                </div> 
 | 
            </div> 
 | 
            <div class="list_item"> 
 | 
                <div class="list_item_label">访客信息</div> 
 | 
                <div class="list_item_info" v-if="info">随访车辆:{{info.carNos}}</div> 
 | 
                <div class="list_item_table" v-if="info"> 
 | 
                    <el-table 
 | 
                        :data="info.lwWithUserList ? info.lwWithUserList : []" 
 | 
                        border 
 | 
                        :header-cell-style="{background: '#dcdde2', color: 'rgb(51, 51, 51)'}" 
 | 
                        style="width: 100%"> 
 | 
                        <el-table-column 
 | 
                            prop="name" 
 | 
                            label="姓名"> 
 | 
                        </el-table-column> 
 | 
                        <el-table-column 
 | 
                            label="性别"> 
 | 
                            <template slot-scope="{row}"> 
 | 
                                <span v-if="row.sex === 1">男</span> 
 | 
                                <span v-if="row.sex === 2">女</span> 
 | 
                            </template> 
 | 
                        </el-table-column> 
 | 
                        <el-table-column 
 | 
                            prop="birthday" 
 | 
                            label="年龄"> 
 | 
                        </el-table-column> 
 | 
                        <el-table-column 
 | 
                            prop="phone" 
 | 
                            label="手机号"> 
 | 
                        </el-table-column> 
 | 
                        <el-table-column 
 | 
                            label="证件类型"> 
 | 
                            <template slot-scope="{row}"> 
 | 
                                <span v-if="row.idcardType === 0">身份证</span> 
 | 
                                <span v-if="row.idcardType === 1">港澳证件</span> 
 | 
                                <span v-if="row.idcardType === 2">护照</span> 
 | 
                            </template> 
 | 
                        </el-table-column> 
 | 
                        <el-table-column 
 | 
                            prop="idcardNo" 
 | 
                            label="身份证号码"> 
 | 
                        </el-table-column> 
 | 
                        <el-table-column 
 | 
                            prop="companyName" 
 | 
                            label="公司"> 
 | 
                        </el-table-column> 
 | 
                        <el-table-column 
 | 
                            prop="faceImg" 
 | 
                            label="人脸照片"> 
 | 
                        </el-table-column> 
 | 
                        <el-table-column 
 | 
                            prop="imgurl" 
 | 
                            label="健康证"> 
 | 
                        </el-table-column> 
 | 
                    </el-table> 
 | 
                </div> 
 | 
            </div> 
 | 
<!--            <div class="list_item">--> 
 | 
<!--                <div class="list_item_label">审批流程</div>--> 
 | 
<!--                <div class="list_item_status">--> 
 | 
<!--                    <div class="list_item_status_item" v-for="(item, index) in 3" :key="index">--> 
 | 
<!--                        <div class="dian"></div>--> 
 | 
<!--                        <div class="xian"></div>--> 
 | 
<!--                        <div class="status_info">--> 
 | 
<!--                            <span class="status_info_a">张三提交的劳务入厂申请</span>--> 
 | 
<!--                            <span class="status_info_b">王经理(已同意)</span>--> 
 | 
<!--                            <div class="status_info_c">来访参观工厂,望领导批准</div>--> 
 | 
<!--                        </div>--> 
 | 
<!--                    </div>--> 
 | 
<!--                </div>--> 
 | 
<!--            </div>--> 
 | 
        </div> 
 | 
    </GlobalWindow> 
 | 
</template> 
 | 
  
 | 
<script> 
 | 
import BaseOpera from '@/components/base/BaseOpera' 
 | 
import GlobalWindow from '@/components/common/GlobalWindow' 
 | 
import { queryById } from '@/api/business/visits' 
 | 
export default { 
 | 
  name: 'OperaVisitsWindow', 
 | 
  extends: BaseOpera, 
 | 
  components: { GlobalWindow }, 
 | 
  data () { 
 | 
    return { 
 | 
      list: [], 
 | 
      info: null 
 | 
    } 
 | 
  }, 
 | 
  methods: { 
 | 
    open (title, id) { 
 | 
      this.title = title 
 | 
      this.visible = true 
 | 
      queryById(id) 
 | 
        .then(res => { 
 | 
          console.log(res) 
 | 
          this.info = res 
 | 
        }) 
 | 
    } 
 | 
  } 
 | 
} 
 | 
</script> 
 | 
  
 | 
<style lang="scss" scoped> 
 | 
    .list { 
 | 
        width: 100%; 
 | 
        display: flex; 
 | 
        flex-direction: column; 
 | 
        .list_item { 
 | 
            width: 100%; 
 | 
            margin-bottom: 30px; 
 | 
            &:last-child { 
 | 
                margin-bottom: 0 !important; 
 | 
            } 
 | 
            .list_item_label { 
 | 
                font-size: 18px; 
 | 
                font-weight: 600; 
 | 
                color: #000000; 
 | 
                margin-bottom: 15px; 
 | 
            } 
 | 
            .list_item_info { 
 | 
                font-size: 14px; 
 | 
                color: #222222; 
 | 
                margin-bottom: 10px; 
 | 
            } 
 | 
            .list_item_status { 
 | 
                width: 100%; 
 | 
                display: flex; 
 | 
                flex-direction: column; 
 | 
                .list_item_status_item { 
 | 
                    width: 100%; 
 | 
                    max-height: 100px; 
 | 
                    position: relative; 
 | 
                    margin-bottom: 30px; 
 | 
                    .dian { 
 | 
                        width: 15px; 
 | 
                        height: 15px; 
 | 
                        border-radius: 50%; 
 | 
                        background: #ffb447; 
 | 
                        position: absolute; 
 | 
                        left: 0; 
 | 
                        top: 50%; 
 | 
                        transform: translate(0, -50%); 
 | 
                    } 
 | 
                    .xian { 
 | 
                        width: 1px; 
 | 
                        height: calc(100% + 30px); 
 | 
                        background: #ffb447; 
 | 
                        position: absolute; 
 | 
                        top: 50%; 
 | 
                        left: 7px; 
 | 
                        transform: translate(-50%, 0); 
 | 
                    } 
 | 
                    .status_info { 
 | 
                        /*width: 100%;*/ 
 | 
                        height: 100%; 
 | 
                        display: flex; 
 | 
                        flex-direction: column; 
 | 
                        margin-left: 30px; 
 | 
                        box-sizing: border-box; 
 | 
                        .status_info_a { 
 | 
                            font-size: 16px; 
 | 
                            color: black; 
 | 
                            margin-bottom: 10px; 
 | 
                        } 
 | 
                        .status_info_b { 
 | 
                            font-size: 13px; 
 | 
                            color: #666666; 
 | 
                            margin-bottom: 10px; 
 | 
                        } 
 | 
                        .status_info_c { 
 | 
                            padding: 5px 10px; 
 | 
                            background: #ececec; 
 | 
                            font-size: 13px; 
 | 
                            color: black; 
 | 
                            border-radius: 5px; 
 | 
                            box-sizing: border-box; 
 | 
                        } 
 | 
                    } 
 | 
                } 
 | 
            } 
 | 
            .list_item_val { 
 | 
                width: 100%; 
 | 
                margin-bottom: 15px; 
 | 
                &:last-child { 
 | 
                    margin-bottom: 0 !important; 
 | 
                } 
 | 
                .list_item_val_item { 
 | 
                    font-size: 14px; 
 | 
                    color: #222222; 
 | 
                    margin-bottom: 5px; 
 | 
                    &:last-child { 
 | 
                        margin-bottom: 0 !important; 
 | 
                    } 
 | 
                } 
 | 
            } 
 | 
        } 
 | 
    } 
 | 
</style> 
 |