<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>验收报告</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="${ctxPlugin}/lib/layuiAdmin/dist/layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="${ctxPlugin}/lib/layuiAdmin/dist/layuiadmin/dist/viewer.css" media="all">
    <style>
        * {
            padding: 0;
            margin: 0;
        }

        table {
            text-align: left;
        }

        .tableHeader {
            height: 38px;
            /*line-height: 38px;*/
            background-color: #d2b790 !important;
            color: #FFF;
        }



        td {
            padding: 0 5px;
        }

        .add {
            width: 60px;
            height: 60px;
            bordeR: 1px solid #dddddd;
            position: relative;
            /*float: left;*/
            margin: 5px auto;
        }

        .add span {
            position: absolute;
            left: 0;
            top: 0;
            z-index: 0;
            width: 100%;
            height: 100%;
            font-size: 20px;
            text-align: center;
            line-height: 60px;
            font-weight: normal;
        }

        .add input {
            width: 100%;
            height: 100%;
            opacity: 0;
            position: absolute;
            z-index: 10;
            left: 0;
            top: 0;
        }

        .bj-img > span {
            position: absolute;
            right: 0;
            top: 0;
            background-color: #f00;
            width: 20px;
            height: 20px;
            line-height: 20px;
            text-align: center;
            color: #fff;
            cursor: pointer;
            display: none;
        }

        .bj-img:hover span {
            display: block;
        }

        .img {
            overflow: hidden;
            padding: 5px 0;
            display: flex;
            justify-content: center;
        }

        .img > ul {
            float: left;
            list-style: none;
        }

        .img li {
            width: 60px;
            height: 60px;
            bordeR: 1px solid #dddddd;
            position: relative;
            float: left;
            margin-right: 10px;
        }

        .img li img {
            object-fit: scale-down;
            width: 100%;
            height: 100%;
        }

        .img + span {
            line-height: 30px;
            font-size: 12px;
            color: red;
        }

        .pd-20 {
            padding: 20px;
        }

        .form-input {
            width: 100%;
            padding: 5px 0;
            border: none;
            outline: none;
        }

        .unit {
            position: absolute;
            right: 30px;
            top: 8px;
            font-weight: bold;
        }

        .pos-r {
            position: relative;
        }

        .form-textarea {
            line-height: 80px;
        }

        .no-resize {
            resize: none;
        }

        .operate-footer {
            width: 100%;
            position: fixed;
            bottom: 0;
            z-index: 30000;
            background: #F8F8F8;
            padding: 10px 0;
            text-align: center;
        }

        .footer-btn {
            height: 27px;
            line-height: 27px;
            padding: 0 18px;
            border-radius: 2px;
            font-size: 14px;
            cursor: pointer;
            border: 1px solid #C9C9C9;
            background-color: #fff;
            outline: none;
        }

        .normal-btn {
            border: 1px solid #D9B589;
            background-color: #D9B589 !important;
            color: #fff;
        }

        .report-table {
            background: #fff
        }

        .report-table td {
            border: 1px solid #dddddd;
            padding: 5px 10px
        }

        .report-table tr:nth-child(even) {
            background-color: #f7f7f7;
        }

        .report-table tr:nth-child(odd) {
            background-color: #ffffff;
        }

        .blank-img {
            background: url('${ctxPlugin}/static/imgs/blankImg.png') center center no-repeat;
            width: 62px;
            height: 62px;
            display: inline-block;
        }
    </style>
</head>
<body>

<div class="layui-fluid pd-20" id="LAY_app" style="padding-bottom: 70px;">
    <table border cellpadding="0" cellspacing="0" width="100%" class="report-table">
        <tr class="tableHeader">
            <td colspan="8">一、电站基本信息</td>
        </tr>

        <tr>
            <td width="25%" colspan="2">产品名称</td>
            <td width="25%" colspan="2"><input type="text" class="form-input" disabled value="${project.name}"/></td>
            <td width="25%" colspan="2">产品编号</td>
            <td width="25%" colspan="2"><input type="text" class="form-input" value="${project.code}" disabled/></td>

        </tr>
        <%--  电站信息新增【项目名称】字段，字段命名规则为【省+县+业主姓名+实际安装容量+光伏电站】，需要在项目管理下全菜单的电站列表上展示。--%>
        <tr>
            <td width="25%" colspan="2">项目名称</td>
            <td width="25%" colspan="2"><input type="text" class="form-input" disabled
                                               value="${entry.province}${entry.area}${entry.street}${entry.tenantName}${entry.actualCapacity==0.00?(entry.designCapacity/1000):(entry.actualCapacity/1000)}KW光伏电站"/>
            </td>
            <td width="25%" colspan="2">电站编号</td>
            <td width="25%" colspan="2"><input type="text" class="form-input" value="${entry.powerStationCode}"
                                               disabled/></td>

        </tr>
        <tr>
            <td colspan="2">代理商名称</td>
            <td colspan="2"><input type="text" class="form-input" disabled value="${trader.name}"/></td>
            <td colspan="2">代理商电话</td>
            <td colspan="2"><input type="text" class="form-input" disabled value="${trader.telephone}"/></td>
        </tr>
        <tr>
            <td colspan="2">业主姓名</td>
            <td colspan="2"><input type="text" class="form-input" disabled value="${entry.tenantName}"/></td>
            <td colspan="2">身份证号码</td>
            <td colspan="2"><input type="text" class="form-input" disabled value="${entry.idCode}"/></td>
        </tr>

        <tr>
            <td width="25%" colspan="2">开户银行</td>
            <td width="25%" colspan="2"><input type="text" class="form-input" disabled value="${entry.bankName}"/></td>
            <td width="25%" colspan="2">银行账号</td>
            <td width="25%" colspan="2"><input type="text" class="form-input" disabled value="${entry.bankCode}"/></td>
        </tr>
        <tr>
            <td width="25%" colspan="2">业主联系电话</td>
            <td width="25%" colspan="2"><input type="text" class="form-input" disabled value="${entry.mobile}"/>
            </td>
            <td width="25%" colspan="2">安装方案</td>
            <td width="25%" colspan="2"><input type="text" class="form-input" disabled value="${entry.schemeName}"/>
            </td>
        </tr>
        <%--        <tr>--%>
        <tr>
            <td width="25%" colspan="2">安装地址</td>
            <td width="75%" colspan="6"><input type="text" class="form-input" disabled
                                               value="${entry.province}${entry.city}${entry.area}${entry.street}${entry.address}"/>
            </td>


        </tr>

        <tr class="tableHeader">
            <td colspan="8">二、电站设备信息</td>
        </tr>
        <tr>
            <td width="25%" colspan="2">组件品牌</td>
            <td width="25%" colspan="2"><input type="text" class="form-input" value="${map.zujBrand}" disabled/></td>
            <td width="25%" colspan="2">组件规格</td>
            <td width="25%" colspan="2" class="pos-r"><input type="text" class="form-input" disabled
                                                             value="${report.componentSpec}"/><span
                    class="unit">W</span></td>
        </tr>
        <tr>
            <td width="25%" colspan="2">安装组件数量</td>
            <td width="25%" colspan="2" class="pos-r"><input type="text" value="${report.componentNum}" disabled
                                                             id="componentNum" class="form-input changeInput"/><span
                    class="unit">块</span></td>
            <td width="25%" colspan="2">安装组件容量</td>
            <td width="25%" colspan="2" class="pos-r"><input type="text" id="capacity" value="${report.capacity}"
                                                             class="form-input" disabled/><span
                    class="unit">W</span></td>
        </tr>
        <tr>
            <td colspan="2">逆变器1品牌</td>
            <td colspan="2"><input type="text" class="form-input" disabled value="${map.nbqBrandOne}"/></td>
            <td colspan="2">逆变器1-SN码</td>
            <td colspan="2"><input type="text" class="form-input" disabled
                                   value="${empty map.nbqSnOne?'无':map.nbqSnOne}"/></td>
        </tr>

        <tr>
            <td width="25%" colspan="2">逆变器1规格</td>
            <td width="25%" colspan="2" class="pos-r"><input type="text" class="form-input" disabled
                                                             value="${map.nbqSpecOne}"/>
            </td>
            <td width="25%" colspan="2">通讯棒1-SN码</td>
            <td width="25%" colspan="2"><input type="text" class="form-input" disabled
                                               value="${empty map.snOne?'无':map.snOne}"/></td>
        </tr>
        <tr>
            <td width="25%" colspan="2">逆变器2品牌</td>
            <td width="25%" colspan="2"><input type="text" class="form-input" disabled
                                               value="${empty map.nbqBrandTwo?'无':map.nbqBrandTwo}"/></td>
            <td width="25%" colspan="2">逆变器2-SN码</td>
            <td width="25%" colspan="2"><input type="text" class="form-input" disabled
                                               value="${empty map.nbqSnTwo ?'无':map.nbqSnTwo}"/></td>
        </tr>
        <tr>
            <td width="25%" colspan="2">逆变器2规格</td>
            <td width="25%" colspan="2" class="pos-r"><input type="text" class="form-input" disabled
                                                             value="${empty map.nbqSpecTwo? '无':map.nbqSpecTwo}"/>
            </td>
            <td width="25%" colspan="2">通讯棒2-SN码</td>
            <td width="25%" colspan="2" class="pos-r"><input type="text" value="${empty map.snTwo?'无':map.snTwo}"
                                                             disabled class="form-input "/></td>
        </tr>
        <tr>
            <td width="25%" colspan="2">并网箱品牌</td>
            <td width="25%" colspan="2" class="pos-r"><input type="text"
                                                             value="${empty map.bwxBrand?'无':map.bwxBrand}" disabled
                                                             class="form-input "/></td>
            <td width="25%" colspan="2">并网箱规格</td>
            <td width="25%" colspan="2" class="pos-r"><input type="text"
                                                             value="${empty map.bwxSpec?'无':map.bwxSpec}"
                                                             class="form-input" disabled/></td>
        </tr>
        <tr>
            <td width="25%" colspan="2">并网箱数量</td>
            <td width="25%" colspan="2" class="pos-r"><input type="text"
                                                             value="${empty map.bwxCOunt?0:map.bwxCOunt} "
                                                             disabled class="form-input "/><span
                    class="unit">${map.bwxUnit}</span></td>
            <td width="25%" colspan="2">支架品牌</td>
            <td width="25%" colspan="2" class="pos-r"><input type="text"
                                                             value="${empty map.zjBrand?'无':map.zjBrand}"
                                                             class="form-input" disabled/></td>
        </tr>
        <c:forEach items="${map.zhijialist}" var="zj" varStatus="sta">
            <tr>
                <c:if test="${sta.first}">
                    <td width="25%" colspan="2" rowspan="${map.zjCount}">支架规格</td>
                </c:if>
                <td width="25%" colspan="2" class="pos-r"><input type="text"
                                                                 value="${empty zj.columns.spec?'无':zj.columns.spec}"
                                                                 disabled class="form-input "/></td>
                <td width="25%" colspan="2">数量</td>
                <td width="25%" colspan="2" class="pos-r"><input type="text"
                                                                 value="${empty zj.columns.amount?0:zj.columns.amount} "
                                                                 class="form-input" disabled/><span
                        class="unit">${zj.columns.unit_name}</span></td>
            </tr>
        </c:forEach>

        <tr class="tableHeader">
            <td colspan="8">三、电站安装完成验收条款项</td>
        </tr>
        <tr>
            <td rowspan="4" colspan="2">1.设备信息照片</td>
            <td colspan="2">①序列号</td>
            <td colspan="2">②序列号</td>
            <td colspan="2">③组件铭牌照片</td>
        </tr>
        <tr>
            <td colspan="2">
                <ul class="img">
                    <li class="imgsLi bj-img ">
                        <img src="${commonStaticImgPaths}${report.nbqPlateImg}" alt="">
                    </li>
                </ul>
            </td>
            <td colspan="2">
                <ul class="img">
                    <li class="imgsLi bj-img ">
                        <img src="${commonStaticImgPaths}${report.txPlateImg}" alt="">
                    </li>
                </ul>
            </td>
            <td colspan="2">
                <ul class="img">
                    <li class="imgsLi bj-img ">
                        <img src="${commonStaticImgPaths}${report.zjPlateImg}" alt="">
                    </li>
                </ul>
            </td>
        </tr>
        <tr>
            <td colspan="6">④组件SN</td>
        </tr>
        <tr>
            <td colspan="6">
                <ul class="img">
                    <c:if test="${not empty report.zjSnImgs}">
                        <c:forEach items="${report.zjSnImgs}" var="zjSnImg">
                            <li class="imgsLi bj-img ">
                                <img src="${commonStaticImgPaths}${zjSnImg}" alt="">
                            </li>
                        </c:forEach>
                    </c:if>
                    <c:if test="${empty report.zjSnImgs}">
                        <i class="blank-img"></i>
                    </c:if>
                </ul>
            </td>
        </tr>
        <tr>
            <td rowspan="12" colspan="2">2.支架及组件安装照片</td>
            <td colspan="2">①膨胀螺栓</td>
            <td colspan="2">②基座安装固定</td>
            <td colspan="2">③底座防水</td>
        </tr>
        <tr>
            <td colspan="2">
                <ul class="img">
                    <li class="imgsLi bj-img ">
                        <img src="${commonStaticImgPaths}${report.zjImg1}" alt="">
                    </li>
                </ul>
            </td>
            <td colspan="2">
                <ul class="img">
                    <li class="imgsLi bj-img ">
                        <img src="${commonStaticImgPaths}${report.zjImg2}" alt="">
                    </li>
                </ul>
            </td>
            <td colspan="2">
                <ul class="img">
                    <li class="imgsLi bj-img ">
                        <img src="${commonStaticImgPaths}${report.zjImg3}" alt="">
                    </li>
                </ul>
            </td>
        </tr>
        <tr>
            <td colspan="2">④支架基础距离房檐的距离</td>
            <td colspan="2">⑤支架东向西拍摄</td>
            <td colspan="2">⑥支架西向东拍摄</td>
        </tr>
        <tr>
            <td colspan="2">
                <ul class="img">
                    <li class="imgsLi bj-img ">
                        <c:if test="${not empty report.zjImg4}">
                            <img src="${commonStaticImgPaths}${report.zjImg4}" alt="">
                        </c:if>
                        <c:if test="${empty report.zjImg4}">
                            <i class="blank-img"></i>
                        </c:if>
                    </li>
                </ul>
            </td>
            <td colspan="2">
                <ul class="img">
                    <li class="imgsLi bj-img ">
                        <c:if test="${not empty report.zjImg5}">
                            <img src="${commonStaticImgPaths}${report.zjImg5}" alt="">
                        </c:if>
                        <c:if test="${empty report.zjImg5}">
                            <i class="blank-img"></i>
                        </c:if>
                    </li>
                </ul>
            </td>
            <td colspan="2">
                <ul class="img">
                    <c:if test="${not empty report.zjImg6}">
                        <li class="imgsLi bj-img ">
                            <img src="${commonStaticImgPaths}${report.zjImg6}" alt="">
                        </li>
                    </c:if>
                    <c:if test="${empty report.zjImg6}">
                        <i class="blank-img"></i>
                    </c:if>
                </ul>
            </td>
        </tr>
        <tr>
            <td colspan="2">⑦支架南向北拍摄</td>
            <td colspan="2">⑧支架北向南拍摄</td>
            <td colspan="2">⑨支架角度</td>
        </tr>
        <tr>
            <td colspan="2">
                <ul class="img">
                    <li class="imgsLi bj-img ">
                        <c:if test="${not empty report.zjImg7}">
                            <img src="${commonStaticImgPaths}${report.zjImg7}" alt="">
                        </c:if>
                        <c:if test="${empty report.zjImg7}">
                            <i class="blank-img"></i>
                        </c:if>
                    </li>
                </ul>
            </td>
            <td colspan="2">
                <ul class="img">
                    <li class="imgsLi bj-img ">
                        <c:if test="${not empty report.zjImg8}">
                            <img src="${commonStaticImgPaths}${report.zjImg8}" alt="">
                        </c:if>
                        <c:if test="${empty report.zjImg8}">
                            <i class="blank-img"></i>
                        </c:if>
                    </li>
                </ul>
            </td>
            <td colspan="2">
                <ul class="img">
                    <li class="imgsLi bj-img ">
                        <c:if test="${not empty report.zjImg9}">
                            <img src="${commonStaticImgPaths}${report.zjImg9}" alt="">
                        </c:if>
                        <c:if test="${empty report.zjImg9}">
                            <i class="blank-img"></i>
                        </c:if>
                    </li>
                </ul>
            </td>
        </tr>

        <tr>
            <td colspan="2">⑩支架节点（斜支撑）</td>
            <td colspan="2">⑪支架距照片（南北）</td>
            <td colspan="2">⑫支架距照片（东西）</td>
        </tr>
        <tr>
            <td colspan="2">
                <ul class="img">
                    <li class="imgsLi bj-img ">
                        <c:if test="${not empty report.componentImg1}">
                            <img src="${commonStaticImgPaths}${report.componentImg1}" alt="">
                        </c:if>
                        <c:if test="${empty report.componentImg1}">
                            <i class="blank-img"></i>
                        </c:if>
                    </li>
                </ul>
            </td>
            <td colspan="2">
                <ul class="img">
                    <li class="imgsLi bj-img ">
                        <c:if test="${not empty report.componentImg2}">
                            <img src="${commonStaticImgPaths}${report.componentImg2}" alt="">
                        </c:if>
                        <c:if test="${empty report.componentImg2}">
                            <i class="blank-img"></i>
                        </c:if>
                    </li>
                </ul>
            </td>
            <td colspan="2">
                <ul class="img">
                    <li class="imgsLi bj-img ">
                        <c:if test="${not empty report.componentImg3}">
                            <img src="${commonStaticImgPaths}${report.componentImg3}" alt="">
                        </c:if>
                        <c:if test="${empty report.componentImg3}">
                            <i class="blank-img"></i>
                        </c:if>
                    </li>
                </ul>
            </td>
        </tr>

        <tr>
            <td colspan="6">⑬防风加固</td>
        </tr>
        <tr>
            <td colspan="6">
                <ul class="img">
                    <c:if test="${not empty report.componentImg4}">
                        <c:forEach items="${report.componentImg4}" var="img4">
                            <li class="imgsLi bj-img ">
                                <img src="${commonStaticImgPaths}${img4}" alt="">
                            </li>
                        </c:forEach>
                    </c:if>
                    <c:if test="${empty report.componentImg4}">
                        <i class="blank-img"></i>
                    </c:if>
                </ul>
            </td>

        </tr>
        <tr>
            <td colspan="6">⑭方管尺寸测量</td>
        </tr>
        <tr>
            <td colspan="6">
                <ul class="img">
                    <c:if test="${not empty report.sizeMeasureImgs}">
                        <c:forEach items="${report.sizeMeasureImgs}" var="img4">
                            <li class="imgsLi bj-img ">
                                <img src="${commonStaticImgPaths}${img4}" alt="">
                            </li>
                        </c:forEach>
                    </c:if>
                    <c:if test="${empty report.sizeMeasureImgs}">
                        <i class="blank-img"></i>
                    </c:if>
                </ul>
            </td>

        </tr>

        <tr>
            <td rowspan="4" colspan="2">3.电气设备安装照片</td>
            <td colspan="2">①并网箱、逆变器外部安装照片、接地引下线</td>
            <td colspan="2">②并网箱内部</td>
            <td colspan="2">③直流线缆保护</td>
        </tr>
        <tr>
            <td colspan="2">
                <ul class="img">
                    <li class="imgsLi bj-img ">
                        <c:if test="${not empty report.totalImgs}">
                            <img src="${commonStaticImgPaths}${report.totalImgs}" alt="">
                        </c:if>
                        <c:if test="${empty report.totalImgs}">
                            <i class="blank-img"></i>
                        </c:if>
                    </li>
                </ul>
            </td>
            <td colspan="2">
                <ul class="img">
                    <li class="imgsLi bj-img ">
                        <c:if test="${not empty report.bwInnerImg}">
                            <img src="${commonStaticImgPaths}${report.bwInnerImg}" alt="">
                        </c:if>
                        <c:if test="${empty report.bwInnerImg}">
                            <i class="blank-img"></i>
                        </c:if>
                    </li>
                </ul>
            </td>
            <td colspan="2">
                <ul class="img">
                    <li class="imgsLi bj-img ">
                        <c:if test="${not empty report.dqsbAnImgOne}">
                            <img src="${commonStaticImgPaths}${report.dqsbAnImgOne}" alt="">
                        </c:if>
                        <c:if test="${empty report.dqsbAnImgOne}">
                            <i class="blank-img"></i>
                        </c:if>
                    </li>
                </ul>
            </td>
        </tr>
        <tr>
            <td colspan="2">④直流线缆固定</td>
            <td colspan="2"></td>
            <td colspan="2"></td>
        </tr>
        <tr>
            <td colspan="2">
                <ul class="img">
                    <li class="imgsLi bj-img ">
                        <c:if test="${not empty report.dqsbAnImgTwo}">
                            <img src="${commonStaticImgPaths}${report.dqsbAnImgTwo}" alt="">
                        </c:if>
                        <c:if test="${empty report.dqsbAnImgTwo}">
                            <i class="blank-img"></i>
                        </c:if>
                    </li>
                </ul>
            </td>
            <td colspan="2">
            </td>
            <td colspan="2">
            </td>
        </tr>
        <tr>
            <td rowspan="2" colspan="2">4.接地系统照片</td>
            <td colspan="2">①引下线与支架连接点、南北坡接地连接点</td>
            <td colspan="2">②接地电阻</td>
            <td colspan="2">③组件边框接地</td>
        </tr>
        <tr>
            <td colspan="2">
                <ul class="img">
                    <c:if test="${not empty report.zjJdImgs}">
                        <c:forEach var="img" items="${report.zjJdImgs}">
                            <li class="imgsLi bj-img ">
                                <img src="${commonStaticImgPaths}${img}" alt="">
                            </li>
                        </c:forEach>
                    </c:if>
                    <c:if test="${empty report.zjJdImgs}">
                        <i class="blank-img"></i>
                    </c:if>
                </ul>
            </td>
            <td colspan="2">
                <ul class="img">
                    <c:if test="${not empty report.groundResistanceImgs}">
                        <c:forEach var="img" items="${report.groundResistanceImgs}">
                            <li class="imgsLi bj-img ">
                                <img src="${commonStaticImgPaths}${img}" alt="">
                            </li>
                        </c:forEach>
                    </c:if>
                    <c:if test="${empty report.groundResistanceImgs}">
                        <i class="blank-img"></i>
                    </c:if>
                </ul>
            </td>
            <td colspan="2">
                <ul class="img">
                    <li class="imgsLi bj-img ">
                        <c:if test="${not empty report.zujianJdImg}">
                            <img src="${commonStaticImgPaths}${report.zujianJdImg}" alt="">
                        </c:if>
                        <c:if test="${empty report.zujianJdImg}">
                            <i class="blank-img"></i>
                        </c:if>
                    </li>
                </ul>
            </td>
        </tr>

        <tr>
            <td rowspan="2" colspan="2">5.调试记录照片</td>
            <td colspan="6">①开路电压</td>
        </tr>
        <tr>
            <td colspan="6">
                <ul class="img">
                    <c:if test="${not empty report.openWayVoltageImgs}">
                        <c:forEach var="img" items="${report.openWayVoltageImgs}">
                            <li class="imgsLi bj-img ">
                                <img src="${commonStaticImgPaths}${img}" alt="">
                            </li>
                        </c:forEach>
                    </c:if>
                    <c:if test="${empty report.openWayVoltageImgs}">
                        <i class="blank-img"></i>
                    </c:if>
                </ul>
            </td>
        </tr>

        <tr>
            <td colspan="2" rowspan="10">6.方阵安装完毕整体照片</td>
            <td colspan="2">①东向西航拍</td>
            <td colspan="2">②西向东航拍</td>
            <td colspan="2">③南向北航拍</td>
        </tr>
        <tr>
            <td colspan="2">
                <ul class="img">
                    <li class="imgsLi bj-img ">
                        <c:if test="${not empty report.directionAirImg1}">
                            <img src="${commonStaticImgPaths}${report.directionAirImg1}" alt="">
                        </c:if>
                        <c:if test="${empty report.directionAirImg1}">
                            <i class="blank-img"></i>
                        </c:if>
                    </li>
                </ul>
            </td>
            <td colspan="2">
                <ul class="img">
                    <li class="imgsLi bj-img ">
                        <c:if test="${not empty report.directionAirImg2}">
                            <img src="${commonStaticImgPaths}${report.directionAirImg2}" alt="">
                        </c:if>
                        <c:if test="${empty report.directionAirImg2}">
                            <i class="blank-img"></i>
                        </c:if>
                    </li>
                </ul>
            </td>
            <td colspan="2">
                <ul class="img">
                    <li class="imgsLi bj-img ">
                        <c:if test="${not empty report.directionAirImg3}">
                            <img src="${commonStaticImgPaths}${report.directionAirImg3}" alt="">
                        </c:if>
                        <c:if test="${empty report.directionAirImg3}">
                            <i class="blank-img"></i>
                        </c:if>
                    </li>
                </ul>
            </td>
        </tr>

        <tr>
            <td colspan="2">④北向南航拍</td>
            <td colspan="2">⑤组件近景</td>
            <td colspan="2">⑥组件角度</td>
        </tr>
        <tr>
            <td colspan="2">
                <ul class="img">
                    <li class="imgsLi bj-img ">
                        <c:if test="${not empty report.directionAirImg4}">
                            <img src="${commonStaticImgPaths}${report.directionAirImg4}" alt="">
                        </c:if>
                        <c:if test="${empty report.directionAirImg4}">
                            <i class="blank-img"></i>
                        </c:if>
                    </li>
                </ul>
            </td>
            <td colspan="2">
                <ul class="img">
                    <li class="imgsLi bj-img ">
                        <c:if test="${not empty report.zjNearImg}">
                            <img src="${commonStaticImgPaths}${report.zjNearImg}" alt="">
                        </c:if>
                        <c:if test="${empty report.zjNearImg}">
                            <i class="blank-img"></i>
                        </c:if>
                    </li>
                </ul>
            </td>
            <td colspan="2">
                <ul class="img">
                    <li class="imgsLi bj-img ">
                        <c:if test="${not empty report.zjAngleImg}">
                            <img src="${commonStaticImgPaths}${report.zjAngleImg}" alt="">
                        </c:if>
                        <c:if test="${empty report.zjAngleImg}">
                            <i class="blank-img"></i>
                        </c:if>
                    </li>
                </ul>
            </td>
        </tr>

        <tr>
            <td colspan="2">⑦檩条出组件照片</td>
            <td colspan="2">⑧水槽照片</td>
            <td colspan="2">⑨中压固定照片</td>
        </tr>
        <tr>
            <td colspan="2">
                <ul class="img">
                    <li class="imgsLi bj-img ">
                        <c:if test="${not empty report.zjItemImg}">
                            <img src="${commonStaticImgPaths}${report.zjItemImg}" alt="">
                        </c:if>
                        <c:if test="${empty report.zjItemImg}">
                            <i class="blank-img"></i>
                        </c:if>
                    </li>
                </ul>
            </td>
            <td colspan="2">
                <ul class="img">
                    <li class="imgsLi bj-img ">
                        <c:if test="${not empty report.waterChannelImg}">
                            <img src="${commonStaticImgPaths}${report.waterChannelImg}" alt="">
                        </c:if>
                        <c:if test="${empty report.waterChannelImg}">
                            <i class="blank-img"></i>
                        </c:if>
                    </li>
                </ul>
            </td>
            <td colspan="2">
                <ul class="img">
                    <li class="imgsLi bj-img ">
                        <c:if test="${not empty report.mediumFixImg}">
                            <img src="${commonStaticImgPaths}${report.mediumFixImg}" alt="">
                        </c:if>
                        <c:if test="${empty report.mediumFixImg}">
                            <i class="blank-img"></i>
                        </c:if>
                    </li>
                </ul>
            </td>
        </tr>
        <tr>
            <td colspan="2">⑩安全警示牌</td>
            <td colspan="2">⑪现场安全交底文件</td>
            <td colspan="2">⑫现场交底照片</td>
        </tr>
        <tr>
            <td colspan="2">
                <ul class="img">
                    <li class="imgsLi bj-img ">
                        <c:if test="${not empty report.safetyWarningImg}">
                            <img src="${commonStaticImgPaths}${report.safetyWarningImg}" alt="">
                        </c:if>
                        <c:if test="${empty report.safetyWarningImg}">
                            <i class="blank-img"></i>
                        </c:if>
                    </li>
                </ul>
            </td>
            <td colspan="2">
                <ul class="img">
                    <li class="imgsLi bj-img ">
                        <c:if test="${not empty report.safetyDiscloseDocImg}">
                            <img src="${commonStaticImgPaths}${report.safetyDiscloseDocImg}" alt="">
                        </c:if>
                        <c:if test="${empty report.safetyDiscloseDocImg}">
                            <i class="blank-img"></i>
                        </c:if>
                    </li>
                </ul>
            </td>
            <td colspan="2">
                <ul class="img">
                    <li class="imgsLi bj-img ">
                        <c:if test="${not empty report.discloseDocImg}">
                            <img src="${commonStaticImgPaths}${report.discloseDocImg}" alt="">
                        </c:if>
                        <c:if test="${empty report.discloseDocImg}">
                            <i class="blank-img"></i>
                        </c:if>
                    </li>
                </ul>
            </td>
        </tr>
        <tr>
            <td colspan="2">⑬记录表</td>
            <td colspan="2"></td>
            <td colspan="2"></td>
        </tr>
        <tr>
            <td colspan="2">
                <ul class="img">
                    <li class="imgsLi bj-img ">
                        <c:if test="${not empty report.recordDocImg}">
                            <img src="${commonStaticImgPaths}${report.recordDocImg}" alt="">
                        </c:if>
                        <c:if test="${empty report.recordDocImg}">
                            <i class="blank-img"></i>
                        </c:if>
                    </li>
                </ul>
            </td>
            <td colspan="2">
                <ul class="img">

                </ul>
            </td>
            <td colspan="2">
                <ul class="img">

                </ul>
            </td>
        </tr>
        <tr class="tableHeader">
            <td colspan="8">四
                、验收结论
            </td>
        </tr>
        <tr>
            <td >踏勘设计审核意见</td>
            <td colspan="2">${examine.examineTwo}</td>
            <td>审核人</td>
            <td>${examine.operatorTwo}</td>
            <td>审核时间</td>
            <td><fmt:formatDate value="${examine.examineTimeTwo}" pattern="yyyy-MM-dd HH:mm"/></td>

        </tr>
        <tr>
            <td >完工验收审核意见</td>
            <td colspan="2">${examine.examineFive}</td>
            <td>审核人</td>
            <td>${examine.operatorFive}</td>
            <td>审核时间</td>
            <td><fmt:formatDate value="${examine.examineTimeFive}" pattern="yyyy-MM-dd HH:mm"/></td>

        </tr>
        <tr>
            <td >并网验收审核意见</td>
            <td colspan="2">${examine.examineEight}</td>
            <td>审核人</td>
            <td>${examine.operatorEight}</td>
            <td>审核时间</td>
            <td><fmt:formatDate value="${examine.examineTimeEight}" pattern="yyyy-MM-dd HH:mm"/></td>

        </tr>

        <%--<tr class="form-textarea">
            <td>备注</td>
            <td colspan="7"><textarea class="form-input no-resize" id="fixConclusionSh"
                                      name="fixConclusionSh"></textarea></td>
        </tr>--%>
    </table>
</div>

<!-- 安装自审 -->
<div class="operate-footer">
    <button class="footer-btn normal-btn TwoAcceptPassBtn">通过</button>
    <button class="footer-btn normal-btn fixAcceptRefuseBtn">退回</button>
    <button class="footer-btn" onclick="closeSelf();">取消</button>
</div>


<script src="https://cdn.bootcss.com/html2canvas/0.5.0-beta4/html2canvas.min.js"></script>
<script src="${ctxPlugin}/lib/layuiAdmin/dist/layuiadmin/layui/layui.js"></script>
<script src="${ctxPlugin}/lib/factory.js"></script>
<script src="${ctxPlugin}/lib/layuiAdmin/dist/layuiadmin/dist/viewer.js"></script>
<script>
    //图片查看效果
    var viewer = new Viewer(document.getElementById('LAY_app'));
    layui.config({
        base: '${ctxPlugin}/lib/layuiAdmin/dist/layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'tableExt', 'jquery', 'layer', 'laypage', 'laydate', 'form'], function () {
        //layui.use(['table','layer','laypage','laydate','form'], function(){
        $ = layui.$;
        tableExt = layui.tableExt;
        layer = layui.layer;
        laypage = layui.laypage;
        laydate = layui.laydate;
        form = layui.form;
        table = tableExt.getLayTable();

        function afterSuccess(data) {
            if (data.code === '200') {
                parent.layer.msg('操作成功', {icon: 1});
                closeSelf();
                parent.searchOrder();
            } else if (data.code === '500') {
                layer.msg(data.errMsg, {icon: 2});
            } else if (data.code === '501') {
                layer.msg(data.errMsg, {icon: 2});
            } else {
                layer.msg('操作失败', {icon: 2});
            }
        }


        //安装验收退回
        $('.fixAcceptRefuseBtn').click(function () {
            var $this = $(this);

            $this.prop('disabled', true);
            $.ajax({
                type: 'post',
                url: '${ctx}/customerEntry/acceptZSRefuse',
                data: {
                    id: '${entry.id}',
                },
                success: function (data) {
                    afterSuccess(data);
                },
                complete: function () {
                    $this.prop('disabled', false);
                }
            })
        });

        //安装验收通过
        $('.TwoAcceptPassBtn').click(function () {
            var index = layer.load(2, {shade: [0.5, '#fff'], content: ''});
            var $this = $(this);
            //二次安装验收意见

            $this.prop('disabled', true);
            $.ajax({
                type: 'post',
                url: '${ctx}/customerEntry/acceptZS',
                data: {
                    id: '${entry.id}',
                },
                success: function (data) {
                    afterSuccess(data);
                },
                complete: function () {
                    layer.close(index);
                    $this.prop('disabled', false);
                }
            })
        });

    })

    window.closeSelf = function () {
        var index = parent.layer.getFrameIndex(window.name);
        // window.parent.location.reload();//刷新父级页面
        parent.layer.close(index);//关闭当前页
    }

    function isBlank(val) {
        if (val == null || val == '' || val == undefined) {
            return true;
        }
        return false;
    }

</script>
</body>
</html>

