<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <script th:replace="common/head"></script>
    <style>
        .layui-form-item .layui-input-inline{
            padding: 7px 15px;
        }
        .layui-table table{width: 80%;text-align: center;}
        .layui-card-header{color: #999999;font-size: 12px;}
        .layui-card-body{padding: 0 15px !important;}
        .layui-table th, .layui-table td{text-align: center;}
        .layui-table td .layui-icon{ font-size: 14px;color: #1E9FFF;border: 2px solid #1E9FFF;border-radius: 50%;padding: 2px;font-weight: 700;}
        .layui-table td .layui-icon-close{ color: #da2b14;border: 2px solid #da2b14;}
    </style>
</head>
<body>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body" pad15>
                    <div class="layui-form" lay-filter="entity_form">
                        <div class="layui-form-item layui-form">
                            <label class="layui-form-label">安装楼盘：</label>
                            <div class="layui-input-inline">
                                <span th:text="${bean.residentialName}"></span>
                            </div>
                            <label class="layui-form-label">检测人：</label>
                            <div class="layui-input-inline">
                                <span th:text="${bean.createName}"></span>
                            </div>
                        </div>
                        <div class="layui-form-item layui-form">
                            <label class="layui-form-label">具体位置：</label>
                            <div class="layui-input-inline">
                                <span th:text="${bean.unitName + bean.installPath}"></span>
                            </div>
                            <label class="layui-form-label">检测时间：</label>
                            <div class="layui-input-inline">
                                <span th:text="${#dates.format(bean.createDate, 'yyyy-MM-dd HH:mm:ss')}"></span>
                            </div>
                        </div>
                        <div class="layui-form-item layui-form">
                            <label class="layui-form-label">设备编号：</label>
                            <div class="layui-input-inline">
                                <span th:text="${bean.serialNumber}"></span>
                            </div>
                            <label class="layui-form-label">审核状态：</label>
                            <div class="layui-input-inline">
                                <span th:if="${bean.checkState == 0}">待审核</span>
                                <span th:if="${bean.checkState == 1}">审核通过</span>
                                <span th:if="${bean.checkState == 2}">审核不通过</span>
                            </div>
                        </div>
                        <div class="layui-form-item layui-form">
                            <label class="layui-form-label">设备类型：</label>
                            <div class="layui-input-inline">
                                <span th:if="${bean.deviceType==0}">立柱机</span>
                                <span th:if="${bean.deviceType==1}">壁挂机</span>
                                <span th:if="${bean.deviceType==2}">雨罩壁挂机</span>
                            </div>
                            <label class="layui-form-label">审核人：</label>
                            <div class="layui-input-inline">
                                <span th:text="${bean.checkName}"></span>
                            </div>
                        </div>
                        <div class="layui-form-item layui-form">
                            <label class="layui-form-label"></label>
                            <div class="layui-input-inline">
                                <span></span>
                            </div>
                            <label class="layui-form-label">审核日期：</label>
                            <div class="layui-input-inline">
                                <span th:text="${#dates.format(bean.checkDate, 'yyyy-MM-dd HH:mm:ss')}"></span>
                            </div>
                        </div>
                        <div class="layui-form-item layui-form">
                            <label class="layui-form-label"></label>
                            <div class="layui-input-inline">
                                <span></span>
                            </div>
                            <label class="layui-form-label">审核意见：</label>
                            <div class="layui-input-inline">
                                <span th:text="${bean.checkOpinion}"></span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-card">
                <div class="layui-card-header">硬件检测</div>
                <div class="layui-card-body" pad15>
                    <table class="layui-table" lay-size="sm"style="width: 70%;">
                        <colgroup>
                            <col width="120">
                            <col>
                            <col width="120">
                        </colgroup>
                        <thead>
                        <tr>
                            <th>序号</th>
                            <th>项目</th>
                            <th>内容</th>
                            <th>结果</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <td>1</td>
                            <td>外观检测</td>
                            <td>面板不出现划伤、缺口，面板不出现残留胶水等杂物</td>
                            <td>
                                <i th:if="${bean.isAppearance==0}" class="layui-icon layui-icon-ok"></i>
                                <i th:if="${bean.isAppearance==1}" class="layui-icon layui-icon-close"></i>
                            </td>
                        </tr>
                        <tr>
                            <td>2</td>
                            <td>液晶屏检测</td>
                            <td>液晶屏不出现色差、液晶面板不出现开裂</td>
                            <td>
                                <i th:if="${bean.isScreen==0}" class="layui-icon layui-icon-ok"></i>
                                <i th:if="${bean.isScreen==1}" class="layui-icon layui-icon-close"></i>
                            </td>
                        </tr>
                        <tr>
                            <td>3</td>
                            <td>立柱外观</td>
                            <td>立柱外观是否完整，不倾斜、不出现划伤、缺口</td>
                            <td>
                                <i th:if="${bean.isExterior==0}" class="layui-icon layui-icon-ok"></i>
                                <i th:if="${bean.isExterior==1}" class="layui-icon layui-icon-close"></i>
                            </td>
                        </tr>
                        <tr>
                            <td>4</td>
                            <td>控锁检测</td>
                            <td>控锁开门是否正常</td>
                            <td>
                                <i th:if="${bean.isLock==0}" class="layui-icon layui-icon-ok"></i>
                                <i th:if="${bean.isLock==1}" class="layui-icon layui-icon-close"></i>
                            </td>
                        </tr>
                        <tr>
                            <td>5</td>
                            <td>按键检测</td>
                            <td>按键每个按键按一遍，有提示音并正常，按*和按#提示内容正常，不出现按不动/太松动，按键不出现没有灯光或者灯光暗</td>
                            <td>
                                <i th:if="${bean.isButton==0}" class="layui-icon layui-icon-ok"></i>
                                <i th:if="${bean.isButton==1}" class="layui-icon layui-icon-close"></i>
                            </td>
                        </tr>
                        <tr>
                            <td>6</td>
                            <td>序列号检测</td>
                            <td>进入管理账号，查询的序列号和安装位置是否一致（和后台导出表格比对）</td>
                            <td>
                                <i th:if="${bean.isSerialNumber==0}" class="layui-icon layui-icon-ok"></i>
                                <i th:if="${bean.isSerialNumber==1}" class="layui-icon layui-icon-close"></i>
                            </td>
                        </tr>
                        <tr>
                            <td>7</td>
                            <td>摄像头检测</td>
                            <td>人脸靠近摄像头调出、遮住摄像头不出、识别框在左上角</td>
                            <td>
                                <i th:if="${bean.isCamera==0}" class="layui-icon layui-icon-ok"></i>
                                <i th:if="${bean.isCamera==1}" class="layui-icon layui-icon-close"></i>
                            </td>
                        </tr>
                        <tr>
                            <td>8</td>
                            <td>声音检测</td>
                            <td>按键音、提示音音量适中</td>
                            <td>
                                <i th:if="${bean.isSound==0}" class="layui-icon layui-icon-ok"></i>
                                <i th:if="${bean.isSound==1}" class="layui-icon layui-icon-close"></i>
                            </td>
                        </tr>
                        <tr>
                            <td>9</td>
                            <td>补光灯检测</td>
                            <td>走进则亮灯，走后则不亮灯，两个补光灯灯光亮度正常</td>
                            <td>
                                <i th:if="${bean.isLight==0}" class="layui-icon layui-icon-ok"></i>
                                <i th:if="${bean.isLight==1}" class="layui-icon layui-icon-close"></i>
                            </td>
                        </tr>
                        <tr>
                            <td>10</td>
                            <td>体感检测</td>
                            <td>遮住摄像头，走进亮灯，固定不动15秒，灯熄灭</td>
                            <td>
                                <i th:if="${bean.isFeel==0}" class="layui-icon layui-icon-ok"></i>
                                <i th:if="${bean.isFeel==1}" class="layui-icon layui-icon-close"></i>
                            </td>
                        </tr>
                        <tr>
                            <td>11</td>
                            <td>信号检测</td>
                            <td>4G信号成功识别（面板有信号图标）、4G信号超过16并保持稳定不断线（超过15秒）、应用服务器正常，并记录信号数值</td>
                            <td>
                                <i th:if="${bean.isSignal==0}" class="layui-icon layui-icon-ok"></i>
                                <i th:if="${bean.isSignal==1}" class="layui-icon layui-icon-close"></i>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
            <div class="layui-card">
                <div class="layui-card-header">性能检测</div>
                <div class="layui-card-body" pad15>
                    <table class="layui-table" lay-size="sm" style="width: 70%;">
                        <colgroup>
                            <col width="120">
                            <col>
                            <col width="120">
                        </colgroup>
                        <thead>
                        <tr>
                            <th>序号</th>
                            <th>项目</th>
                            <th>内容</th>
                            <th>结果</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <td>1</td>
                            <td>人脸识别开门</td>
                            <td>后台或者APP或者小程序上传一张人脸，测试3次，置于500人脸环境，分别于0.5米/1米/1.5米距离测试，能够人脸识别开门，每次开门时间小于1.5秒，正常情况下，人脸照片无法开门</td>
                            <td>
                                <i th:if="${bean.isFace==0}" class="layui-icon layui-icon-ok"></i>
                                <i th:if="${bean.isFace==1}" class="layui-icon layui-icon-close"></i>
                            </td>
                        </tr>
                        <tr>
                            <td>2</td>
                            <td>访客密码开门</td>
                            <td>APP、小程序访客密码生成正常，设置2次当前时间访客开门密码，访客密码开门正常，使用次数与设置相符，使用时间与设置相符</td>
                            <td>
                                <i th:if="${bean.isPassword==0}" class="layui-icon layui-icon-ok"></i>
                                <i th:if="${bean.isPassword==1}" class="layui-icon layui-icon-close"></i>
                            </td>
                        </tr>
                        <tr>
                            <td>3</td>
                            <td>APP一键开门</td>
                            <td>APP、小程序一键开门正常</td>
                            <td>
                                <i th:if="${bean.isOneButton==0}" class="layui-icon layui-icon-ok"></i>
                                <i th:if="${bean.isOneButton==1}" class="layui-icon layui-icon-close"></i>
                            </td>
                        </tr>
                        <tr>
                            <td>4</td>
                            <td>磁卡开门</td>
                            <td>磁卡开门正常</td>
                            <td>
                                <i th:if="${bean.isCard==0}" class="layui-icon layui-icon-ok"></i>
                                <i th:if="${bean.isCard==1}" class="layui-icon layui-icon-close"></i>
                            </td>
                        </tr>
                        <tr>
                            <td>5</td>
                            <td>设备拨手机</td>
                            <td>设备上房间号拨号手机正常收到，接通后有视频，连续测试3次，每次成功接通视频并一键开门</td>
                            <td>
                                <i th:if="${bean.isDial==0}" class="layui-icon layui-icon-ok"></i>
                                <i th:if="${bean.isDial==1}" class="layui-icon layui-icon-close"></i>
                            </td>
                        </tr>
                        <tr>
                            <td>6</td>
                            <td>广告播放</td>
                            <td>人脸靠近，广告正常播放</td>
                            <td>
                                <i th:if="${bean.isPlay==0}" class="layui-icon layui-icon-ok"></i>
                                <i th:if="${bean.isPlay==1}" class="layui-icon layui-icon-close"></i>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<!-- javascript -->
<script type="text/javascript" th:src="@{'/layui/layui.js'}" charset="utf-8"></script>
<script type="text/javascript">
    layui.config({
        base: '/' //静态资源所在路径
    });
</script>
<script type="text/javascript" th:src="@{'/js/implement/position-detail.js'}" charset="utf-8"></script>
</html>