<%@ 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">
    <meta name="decorator" content="base"/>
    <link rel="stylesheet" type="text/css" href="${ctxPlugin}/static/css/reset.css"/>
    <link rel="stylesheet" href="${ctxPlugin}/lib/layuiAdmin/dist/layuiadmin/dist/viewer.css" media="all">
    <style>
        html {
            background-color: #fff;
            padding-bottom: 50px;
        }
        .form-span {
            display: block;
            padding: 8px 0;
            margin-left: 110px;
        }

        .page-iframe {
            border: none;
            width: 100%;
            min-height: calc(100vh - 250px);
        }
        .mb-10{
            margin-bottom: 10px !important;
        }
        .pd-10{
            padding: 10px;
        }
        .idea-text{
            width: 320px; height: 100px;outline: none; padding: 3px
        }
        .msg-title{
            text-align: center;
            margin: 10px 0;
            font-size: 16px;
        }
        .title1 {
            border-left: 4px solid #1b6073;
            padding-left: 20px;
            font-size: 14px;
            margin: 10px auto;
            font-weight: 600;
            height: 34px;
            line-height: 34px;
            background-color: #f4f6f9;
            color: #666666;
        }
        .layui-input-block {
            margin-left: 110px;
        }

        .layui-form-label {
            width: 110px;
        }
        .clearfix{*zoom:1;}
        .clearfix:before,.clearfix:after{display:table; line-height:0; content:"";}
        .clearfix:after{clear:both;}

        .layui-tab-title{
            margin: 0 0 0 20px;
        }
        .layui-tab-content{
            margin: 0 0 0 20px;
        }

        .layui-btn{
            height: 27px;
            line-height: 27px;
        }

        .blank-img {
            background: url('${ctxPlugin}/static/imgs/blankImg.png') center center no-repeat;
            width: 80px;
            height: 80px;
            display: inline-block;
        }
        .normal-btn{
            border: 1px solid #D9B589;
            background-color: #D9B589 !important;
            color: #fff;
        }

        .download-link {
            display: inline-block;
            padding-top: 5px;
            padding-right: 16px;
            color: #007bff;
            text-decoration: none;
            border-radius: 4px;
        }

        .download-link:hover {
            color: #0056b3;
        }
        input[type="text"]:disabled, textarea:disabled, .layui-disabled {
            background-color: #FFFFFF;
        }
        .link-blue{ color: #1b6073; cursor: pointer;}
    </style>
</head>
<body>
<div class="layui-fluid pd-10">
    <div class="order-win layui-form" id="LAY_app">
        <button class="layui-btn" style="margin-left: 92.5%;" onclick="approvalRecord()">审批记录</button>
        <blockquote class="layui-elem-quote">项目信息</blockquote>
        <div class="layui-form-item layui-row">
            <div class="layui-col-sm3 layui-col-md3">
                <label class="layui-form-label">电站编码：</label>
                <span class="form-span">
                    ${customerEntry.powerStationCode}
                </span>
            </div>
            <div class="layui-col-sm3 layui-col-md3">
                <label class="layui-form-label">电站名称：</label>
                <span class="form-span">
                    ${stationName}
                </span>
            </div>
            <div class="layui-col-sm3 layui-col-md3">
                <label class="layui-form-label">产品名称：</label>
                <span class="form-span">
                    ${project.name}
                </span>
            </div>
            <div class="layui-col-sm3 layui-col-md3">
                <label class="layui-form-label">代理商：</label>
                <span class="form-span">${customerEntry.createTraderName}</span>
            </div>
            <div class="layui-col-sm3 layui-col-md3">
                <label class="layui-form-label">项目公司：</label>
                <span class="form-span"> ${customerEntry.projectCompanyName}</span>
            </div>
            <div class="layui-col-sm3 layui-col-md3">
                <label class="layui-form-label">电站状态：</label>
                <span class="form-span">
                    <c:choose>
                        <c:when test="${customerEntry.status eq '0'}">
                            暂存
                        </c:when>
                        <c:when test="${customerEntry.status eq '1'}">
                            待审核
                        </c:when>
                        <c:when test="${customerEntry.status eq '2'}">
                            审核驳回
                        </c:when>
                        <c:when test="${customerEntry.status eq '3'}">
                            待下单
                        </c:when>
                        <c:when test="${customerEntry.status eq '5'}">
                            待安装验收
                        </c:when>
                        <c:when test="${customerEntry.status eq 'f'}">
                            安装验收退回
                        </c:when>
                        <c:when test="${customerEntry.status eq '6'}">
                            待并网
                        </c:when>
                        <c:when test="${customerEntry.status eq '7'}">
                            待并网验收
                        </c:when>
                        <c:when test="${customerEntry.status eq '8'}">
                            待交付
                        </c:when>
                        <c:when test="${customerEntry.status eq '9'}">
                            待归档
                        </c:when>
                        <c:when test="${customerEntry.status eq '10'}">
                            验收驳回
                        </c:when>
                        <c:when test="${customerEntry.status eq '11'}">
                            归档驳回
                        </c:when>
                        <c:when test="${customerEntry.status eq 'a'}">
                            已完成
                        </c:when>
                        <c:when test="${customerEntry.status eq 'c'}">
                            待代理商确认
                        </c:when>
                        <c:when test="${customerEntry.status eq 'g'}">
                            设计审核
                        </c:when>
                        <c:when test="${customerEntry.status eq 'AN'}">
                            待安装确认
                        </c:when>
                        <c:when test="${customerEntry.status eq 'AT'}">
                            安装确认驳回
                        </c:when>
                        <c:when test="${customerEntry.status eq 'BW'}">
                            待并网确认
                        </c:when>
                        <c:when test="${customerEntry.status eq 'BN'}">
                            并网确认驳回
                        </c:when>
                        <c:when test="${customerEntry.status eq 'e'}">
                            待签署合同
                        </c:when>
                        <c:when test="${customerEntry.status eq 'h'}">
                            勘测设计自审
                        </c:when>
                        <c:when test="${customerEntry.status eq 'i'}">
                            安装自审
                        </c:when>
                        <c:otherwise>
                            --
                        </c:otherwise>
                    </c:choose>
                </span>
            </div>
            <div class="layui-col-sm3 layui-col-md3">
                <label class="layui-form-label">备案类型：</label>
                <span class="form-span">
                    <c:choose>
                        <c:when test="${customerEntry.filingType eq '1'}">
                            农户备案
                        </c:when>
                        <c:when test="${customerEntry.filingType eq '2'}">
                            项目公司备案
                        </c:when>
                    </c:choose>
                </span>
            </div>
            <div class="layui-col-sm3 layui-col-md3">
                <label class="layui-form-label">业务员：</label>
                <span class="form-span">${customerEntry.creator}</span>
            </div>
            <div class="layui-col-sm3 layui-col-md3">
                <label class="layui-form-label">创建时间：</label>
                <span class="form-span"><fmt:formatDate value="${customerEntry.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/></span>
            </div>
        </div>
        <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
            <ul class="layui-tab-title">
                <li class="layui-this">审核意见</li>
                <li>并网信息</li>
                <li>业主信息</li>
                <c:if test="${not empty customerEntry.designAuditFlag && '1' ne customerEntry.designAuditFlag && '0' ne customerEntry.designAuditFlag}">
                    <li>勘测信息</li>
                </c:if>
                <c:if test="${customerEntry.schemeType eq '2' || not empty customerEntry.schemeId}">
                    <li>设计方案</li>
                </c:if>
                <li>完工信息</li>
                <li>过程信息</li>
            </ul>
            <div class="layui-tab-content scrollDiv">
                <div class="layui-form-item layui-row">
                    <div class="layui-col-lg12 layui-col-sm12">
                        <label class="layui-form-label">物料并网状态：</label>
                        <div class="layui-input-block">
                            <input type="checkbox" name="materialMergeFlag" title="并网已完成"
                                   lay-skin="primary" <c:if test="${customerEntry.materialMergeFlag eq '1' || customerEntry.materialMergeFlag == null}">checked</c:if>/>
                        </div>
                    </div>
                    <div class="layui-col-sm12 layui-col-md12">
                        <label class="layui-form-label">验收意见：</label>
                        <div class="layui-input-block">
                        <textarea id="fixConclusionSh" name="fixConclusionSh" class="idea-text f-l layui-textarea"
                              style="margin: 0;width: 520px;height: 100px;">${report.mergeConclusion}</textarea>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-tab-content scrollDiv layui-hide">
                    <div class="layui-form-item layui-row">
                        <div  class="layui-col-sm12 layui-col-md12">
                        <div class="layui-col-sm4 layui-col-md4">
                            <label class="layui-form-label" style="width: 140px">发电户号：</label>
                            <span class="form-span">${customerEntry.generatorNo}</span>
                        </div>
                    <c:if test="${info4.columns.province_code.status eq '1'}">
                        <c:if test="${customerEntry.gridInstitution eq '0'}">
                        <div class="layui-col-sm6 layui-col-md4">
                            <label class="layui-form-label" style="width: 140px">电力公司：</label>
                            <span class="form-span">${powerCompany}</span>
                        </div>
                        </c:if>
                    </c:if>
                    <c:if test="${info4.columns.province_code_hand.status eq '1'}">
                        <c:if test="${customerEntry.gridInstitution eq '1'}">
                            <div class="layui-col-sm6 layui-col-md4">
                                <label class="layui-form-label" style="width: 140px">电力公司：</label>
                                <span class="form-span">${customerEntry.provinceCodeHand}</span>
                            </div>
                        </c:if>
                    </c:if>
                        <div class="layui-col-sm2 layui-col-md2">
                            <span class="link-blue" onclick="viewPowerGeneration()">查看发电量</span>
                        </div>
                        <div class="layui-col-sm2 layui-col-md2">
                            <span class="link-blue" onclick="viewMonitor()">查看监控信息</span>
                        </div>
                        </div>
                        <div  class="layui-col-sm12 layui-col-md12">
                            <c:if test="${info4.columns.grid_institution.status eq '1'}">
                                <div class="layui-col-sm4 layui-col-md4">
                                    <label class="layui-form-label" style="width: 140px">并网机构：</label>
                                    <span class="form-span">
                            <c:if test="${customerEntry.gridInstitution eq '0'}">
                                国网
                            </c:if>
                            <c:if test="${customerEntry.gridInstitution eq '1'}">
                                南网
                            </c:if>
                        </span>
                                </div>
                            </c:if>
                            <c:if test="${customerEntry.gridInstitution eq '1'}">
                                <c:if test="${info4.columns.power_plant_code.status eq '1'}">
                                    <div class="layui-col-sm4 layui-col-md4">
                                        <label class="layui-form-label" style="width: 140px">电厂编码：</label>
                                        <span class="form-span">${customerEntry.powerPlantCode}</span>
                                    </div>
                                </c:if>
                                <c:if test="${info4.columns.archives_img.status eq '1'}">
                                    <div class="layui-col-lg4 layui-col-sm5">
                                        <label class="layui-form-label" style="width: 48%;">南网营销系统档案截图（三户）：</label>
                                        <div class="layui-input-block img-box" style="margin-left: 140px">
                                            <c:if test="${not empty report}">
                                                <div>
                                                    <div>
                                                        <c:if test="${not empty report.archivesImg}">
                                                            <div class="bj-img imgSpan">
                                                                <img src="${commonStaticImgPath}${report.archivesImg}" height="700" width="1200"/>
                                                                <input type="hidden" value="${report.archivesImg}"/>
                                                            </div>
                                                        </c:if>
                                                    </div>
                                                </div>
                                            </c:if>
                                        </div>
                                    </div>

                                </c:if>
                            </c:if>
                        </div>
                        <c:if test="${info4.columns.yx_img.status eq '1'}">
                        <div class="layui-col-lg4 layui-col-sm4">
                            <label class="layui-form-label" style="width: 140px">发电并网照片：</label>
                            <%--                        yx_img 近3天发电量 geb_img 补充--%>
                            <div class="layui-input-block img-box" style="margin-left: 140px">
                                <c:if test="${not empty report}">
                                    <div>
                                        <div>
                                            <c:if test="${not empty report.yxImg}">
                                                <div class="bj-img imgSpan">
                                                    <img src="${commonStaticImgPath}${report.yxImg}" height="700" width="1200"/>
                                                    <input type="hidden" value="${report.yxImg}"/>
                                                </div>
                                            </c:if>
                                        </div>
                                        <div class="upload-container <c:if test="${not empty report.yxImg}">hide</c:if>">
                                            <img src="" alt="img placeholder">
                                        </div>
                                        <div style="width: 85px; text-align: center;">近3天发电量</div>
                                    </div>
                                    <c:if test="${not empty report.gebImg}">
                                        <div>
                                            <div>
                                                <div class="bj-img imgSpan">
                                                    <img src="${commonStaticImgPath}${report.gebImg}" height="700" width="1200"/>
                                                    <input type="hidden" value="${report.gebImg}"/>
                                                </div>
                                            </div>
                                            <div style="width: 80px; text-align: center;">补充信息</div>
                                        </div>
                                    </c:if>
                                    <c:if test="${not empty report.gebImg2}">
                                        <div>
                                            <div>
                                                <div class="bj-img imgSpan">
                                                    <img src="${commonStaticImgPath}${report.gebImg2}" height="700" width="1200"/>
                                                    <input type="hidden" value="${report.gebImg2}"/>
                                                </div>
                                            </div>
                                            <div style="width: 80px; text-align: center;">补充信息2</div>
                                        </div>
                                    </c:if>
                                </c:if>
                            </div>
                        </div>
                        </c:if>
                        <c:if test="${info4.columns.power_capacity_url.status eq '1'}">
                            <div class="layui-col-lg4 layui-col-sm4">
                                <label class="layui-form-label" style="width: 140px">发电并网照片：</label>
                                <div class="layui-input-block img-box" style="margin-left: 140px">
                                    <c:if test="${not empty report}">
                                        <div>
                                            <div>
                                                <c:if test="${not empty report.powerCapacityUrl}">
                                                    <div class="bj-img imgSpan">
                                                        <img src="${commonStaticImgPath}${report.powerCapacityUrl}" height="700" width="1200"/>
                                                        <input type="hidden" value="${report.powerCapacityUrl}"/>
                                                    </div>
                                                </c:if>
                                            </div>
                                            <div style="width: 98px; text-align: center;">三天发电量截图</div>
                                        </div>
                                    </c:if>
                                    <div>
                                        <div>
                                            <c:if test="${not empty report.gebImg}">
                                                <div class="bj-img imgSpan">
                                                    <img src="${commonStaticImgPath}${report.gebImg}" height="700" width="1200"/>
                                                    <input type="hidden" value="${report.gebImg}"/>
                                                </div>
                                            </c:if>
                                            <c:if test="${empty report.gebImg}">
                                                <i class="blank-img"></i>
                                            </c:if>
                                        </div>
                                        <div style="width: 80px; text-align: center;">补充信息</div>
                                    </div>
                                        <div>
                                            <div>
                                                <c:if test="${not empty report.gebImg2}">
                                                    <div class="bj-img imgSpan">
                                                        <img src="${commonStaticImgPath}${report.gebImg2}" height="700"
                                                             width="1200"/>
                                                        <input type="hidden" value="${report.gebImg2}"/>
                                                    </div>
                                                </c:if>
                                                <c:if test="${empty report.gebImg2}">
                                                    <i class="blank-img"></i>
                                                </c:if>
                                            </div>
                                            <div style="width: 80px; text-align: center;">补充信息2</div>
                                        </div>
                                </div>
                            </div>
                        </c:if>
                        <div class="layui-col-lg2 layui-col-sm2">
                            <label class="layui-form-label" style="width: 140px">电表照片：</label>
                            <div class="layui-input-block img-box" style="margin-left: 140px">
                                <c:if test="${not empty report}">
                                    <div>
                                        <div>
                                            <c:if test="${not empty report.dbImgs}">
                                                <div class="bj-img imgSpan">
                                                    <img src="${commonStaticImgPath}${report.dbImgs}" height="700" width="1200"/>
                                                    <input type="hidden" value="${report.dbImgs}"/>
                                                </div>
                                            </c:if>
                                        </div>
                                        <div style="width: 85px; text-align: center;">电表照片</div>
                                    </div>
                                </c:if>
                            </div>
                        </div>
                        <c:if test="${info4.columns.dbx_imgs.status eq '1'}">
                            <div class="layui-col-lg2 layui-col-sm2">
                                <label class="layui-form-label" style="width: 140px">电表箱照片：</label>
                                <div class="layui-input-block img-box" style="margin-left: 140px">
                                    <c:if test="${not empty report}">
                                        <div>
                                            <div>
                                                <c:if test="${not empty report.dbxImgs}">
                                                    <div class="bj-img imgSpan">
                                                        <img src="${commonStaticImgPath}${report.dbxImgs}" height="700" width="1200"/>
                                                        <input type="hidden" value="${report.dbxImgs}"/>
                                                    </div>
                                                </c:if>
                                            </div>
                                        </div>
                                    </c:if>
                                </div>
                            </div>
                        </c:if>
                        <c:if test="${info4.columns.tlzhjk_imgs.status eq '1'}">
                            <div class="layui-col-lg4 layui-col-sm4">
                                <label class="layui-form-label" style="width: 140px">铜铝转换接头照片：</label>
                                <div class="layui-input-block img-box" style="margin-left: 140px">
                                    <c:if test="${not empty report}">
                                        <div>
                                            <div>
                                                <c:if test="${not empty report.tlzhjkImgs}">
                                                    <div class="bj-img imgSpan">
                                                        <img src="${commonStaticImgPath}${report.tlzhjkImgs}" height="700" width="1200"/>
                                                        <input type="hidden" value="${report.tlzhjkImgs}"/>
                                                    </div>
                                                </c:if>
                                            </div>
                                        </div>
                                    </c:if>
                                </div>
                            </div>
                        </c:if>
                        <c:if test="${info4.columns.address_consistent.status eq '1'}">
                        <div class="layui-col-lg8 layui-col-sm8">
                            <label class="layui-form-label" style="width: 140px">购售电地址是否一致：</label>
                            <input type="radio" name="addressConsistent" value="Y" title="是" <c:if test="${customerEntry.addressConsistent eq 'Y'}">checked</c:if> disabled/>
                            <input type="radio" name="addressConsistent" value="N" title="否" <c:if test="${customerEntry.addressConsistent eq 'N'}">checked</c:if> disabled/>
                        </div>
                        <div class="layui-col-lg8 layui-col-sm8">
                            <label class="layui-form-label" style="width: 140px">购售电地址：</label>
                            <span class="form-span">
                            <c:if test="${customerEntry.addressConsistent eq 'Y'}">
                                <c:choose>
                                    <c:when test="${customerEntry.province eq customerEntry.city}">
                                        ${customerEntry.province}${customerEntry.area}${customerEntry.address}
                                    </c:when>
                                    <c:otherwise>
                                        ${customerEntry.province}${customerEntry.city}${customerEntry.area}${customerEntry.address}
                                    </c:otherwise>
                                </c:choose>
                            </c:if>
                            <c:if test="${customerEntry.addressConsistent eq 'N'}">
                                <c:choose>
                                    <c:when test="${customerEntry.electricProvince eq customerEntry.electricCity}">
                                        ${customerEntry.electricProvince}${customerEntry.electricArea}${customerEntry.electricAddress}
                                    </c:when>
                                    <c:otherwise>
                                        ${customerEntry.electricProvince}${customerEntry.electricCity}${customerEntry.electricArea}${customerEntry.electricAddress}
                                    </c:otherwise>
                                </c:choose>
                            </c:if>
                        </span>
                        </div>
                        </c:if>
                        <c:if test="${customerEntry.partnerId ne '01'}">
                            <div class="layui-col-lg11 layui-col-sm11">
                                <label class="layui-form-label" style="width: 140px">购售电合同：</label>
                                <div class="layui-input-block pos-r view-attachment">
                                    <c:if test="${not empty customerEntry.contract}"> <a class="h-32 lh-32 layui-span-unit lookBtn" target="_blank" href="${commonStaticImgPath}${customerEntry.contract}" style="color: #2890ac;">下载</a></c:if>
                                    <c:if test="${not empty customerEntry.contract}"> <a class="h-32 lh-32 ml-10 layui-span-unit lookBtn" target="_blank" onclick="previewUrl('${commonStaticImgPath}${customerEntry.contract}')"  style="color: #2890ac;">查看</a></c:if>
                                </div>
                            </div>
                        </c:if>
                        <c:if test="${customerEntry.partnerId eq '01'}">
                            <div class="layui-col-lg11 layui-col-sm6">
                                <label class="layui-form-label" style="width: 140px">购售电合同文件：</label>
                                <div class="layui-input-block pos-r view-attachment">
                                    <c:if test="${not empty customerEntry.contract}">
                                        <c:forEach items="${customerEntry.contract}" var="file" varStatus="vs">
                                            <div style="margin-top: 5px">
                                                <a style="color:#2890ac;" target="_blank" onclick="previewUrl('${commonStaticImgPath}${file}')" class="download-link">${fns:substringAfterLast(file, '/')}</a>
                                                <a class="h-32 lh-32 layui-span-unit lookBtn" target="_blank" href="${commonStaticImgPath}${file}" style="color: #2890ac;">下载</a>
                                            </div>
                                        </c:forEach>
                                    </c:if>
                                </div>
                            </div>
                            <c:if test="${info4.columns.contract_video_url.status eq '1'}">
                                <div class="layui-col-lg11 layui-col-sm6">
                                    <label class="layui-form-label" style="width: 140px">购售电合同视频：</label>
                                    <div class="layui-input-block pos-r view-attachment">
                                        <c:if test="${not empty customerEntry.contractVideoUrl}">
                                            <c:forEach items="${customerEntry.contractVideoUrl}" var="file" varStatus="vs">
                                                <div class="bj-img imgSpan" style="margin-bottom: 5px;">
                                                    <video controls
                                                           src="${commonStaticImgPath}${file}"
                                                           height="80px" width="80px"></video>
                                                    <input type="hidden" name="contractVideoUrl"
                                                           value="${file}">
                                                </div>
                                            </c:forEach>
                                        </c:if>
                                    </div>
                                </div>
                            </c:if>
                            <c:if test="${info4.columns.other_attachment.status eq '1'}">
                                <div class="layui-col-lg11 layui-col-sm6">
                                    <label class="layui-form-label" style="width: 140px">资方审查补充资料：</label>
                                    <div class="layui-input-block pos-r view-attachment">
                                        <div id="otherFilesDiv">
                                            <div class="imgsDiv  otherAttaImg" style="width: 40%;float:left;">
                                                <c:if test="${not empty customerEntry.otherAttachment}">

                                                    <c:forEach items="${fn:split(customerEntry.otherAttachment,',')}" var="img">
                                                        <c:if test="${img.contains('jpg') || img.contains('jpeg') || img.contains('png')}">
                                                            <div class="bj-img imgSpan" style="float:left;">
                                                                <img src="${commonStaticImgPath}${img}" width="80px" height="80px">
                                                                <input type="hidden" name="otherAttachment" class="otherAttachment" value="${img}"/>
                                                            </div>
                                                        </c:if>
                                                        <c:if test="${img.contains('mp3') || img.contains('mp4')}">
                                                            <div class="bj-img imgSpan" style="float:left;">
                                                                <video controls src="${commonStaticImgPath}${img}" width="80px" height="80px"></video>
                                                                <input type="hidden" name="otherAttachment" class="otherAttachment" value="${img}"/>
                                                            </div>
                                                        </c:if>
                                                    </c:forEach>
                                                </c:if>
                                            </div>
                                        </div>

                                    </div>
                                    <div class="otherAtta" style="float:left;">
                                        <c:forEach items="${fn:split(customerEntry.otherAttachment,',')}" var="img">
                                            <c:if test="${!img.contains('jpg') && !img.contains('jpeg') && !img.contains('mp3') && !img.contains('mp4')&& !img.contains('png')}">
                                                <div class="layui-input-block pos-r" style="display: flex;align-items: center;">
                                                    <a style="color:#2890ac;cursor: pointer;" target="_blank"
                                                       onclick="previewUrl('${commonStaticImgPath}${img}')"
                                                       class="download-link">${fn:substring(img,img.lastIndexOf("/")+1 ,img.length() )}</a>
                                                    <a class="h-32 lh-32 layui-span-unit lookBtn" target="_blank" href="${commonStaticImgPath}${img}" style="color: #2890ac;">下载</a>

                                                </div>
                                            </c:if>
                                        </c:forEach>
                                    </div>
                                </div>

                            </c:if>
                        </c:if>
                        <c:if test="${info4.columns.insurance_policy.status eq '1'}">
                        <div style="width: 90%;">
                            <table class="layui-table insurancesTable" style="margin: 0 10px 0 0;">
                                <thead>
                                <tr>
                                    <th>保险名称</th>
                                    <th>保险公司</th>
                                    <th>第一受益人</th>
                                    <th>保险编号</th>
                                    <th>投保金额</th>
                                    <th>保险开始时间</th>
                                    <th>保险结束时间</th>
                                    <th>保险单</th>
                                </tr>
                                </thead>
                                <tbody>
                                <c:forEach items="${insurances}" varStatus="vs" var="insurance">
                                    <tr>
                                        <td>${insurance.insuranceName}</td>
                                        <td>${insurance.insuranceCompany}</td>
                                        <td>${insurance.firstBeneficiary}</td>
                                        <td>${insurance.insuranceNumber}</td>
                                        <td>${insurance.insuranceAmount}</td>
                                        <td>${insurance.insuranceDateFrom}</td>
                                        <td>${insurance.insuranceDateTo}</td>
                                        <td>
                                            <c:if test="${not empty insurance.insurancePolicy}">
                                                <c:forEach var="insurancePolicy" items="${insurance.insurancePolicy.split(',')}" varStatus="vs">
                                                    <a class="h-32 lh-32 ml-10 layui-span-unit lookBtn" onclick="previewUrl('${commonStaticImgPath}${insurancePolicy}')"target="_blank"  style="color: #2890ac;">${insurance.insurancePolicyName}</a>
                                                </c:forEach>
                                            </c:if>
                                        </td>
                                    </tr>
                                </c:forEach>
                                </tbody>
                            </table>
                        </div>
                        </c:if>
                        <div class="layui-col-lg11 layui-col-sm11">
                            <label class="layui-form-label" style="width: 140px">并网调试报告：</label>
                            <div class="layui-input-block pos-r view-attachment">
                                <c:if test="${not empty insurances && not empty not empty insurances[0].bwtsFile}">
                                    <a class="h-32 lh-32 layui-span-unit lookBtn" target="_blank" href="${commonStaticImgPath}${insurances[0].bwtsFile}" style="color: #2890ac;">下载</a>
                                    <a class="h-32 lh-32 ml-10 layui-span-unit lookBtn" onclick="previewUrl('${commonStaticImgPath}${insurances[0].bwtsFile}')"target="_blank"  style="color: #2890ac;">查看</a>
                                </c:if>
                            </div>
                        </div>
                        <div class="layui-col-lg2 layui-col-sm2">
                            <label class="layui-form-label" style="width: 140px">物料并网状态：</label>
                            <div class="layui-input-block">
                                <input type="checkbox" title="并网已完成"
                                       lay-skin="primary" <c:if test="${customerEntry.materialMergeFlag eq '1'}">checked</c:if> disabled/>
                            </div>
                        </div>
                </div>
            </div>
            <div class="layui-tab-content scrollDiv layui-hide">
                <c:if test="${empty customerEntry.tenantType or customerEntry.tenantType eq '1'}">
                    <div class="layui-form-item layui-row ">
                        <div class="layui-col-sm3 layui-col-md3">
                            <label class="layui-form-label">业主姓名：</label>
                            <span class="form-span">
                                    ${customerEntry.tenantName}
                            </span>
                        </div>
                        <div class="layui-col-sm3 layui-col-md3">
                            <label class="layui-form-label">性别：</label>
                            <span class="form-span">
                             <c:choose>
                                 <c:when test="${customerEntry.gender eq 'MALE'}">
                                     男
                                 </c:when>
                                 <c:when test="${customerEntry.gender eq 'FEMALE'}">
                                     女
                                 </c:when>
                                 <c:when test="${customerEntry.gender eq 'UNKNOW'}">
                                     未知
                                 </c:when>
                             </c:choose>
                        </span>
                        </div>
                        <div class="layui-col-sm3 layui-col-md3">
                            <label class="layui-form-label">年龄：</label>
                            <span class="form-span">
                                    ${customerEntry.age}
                            </span>
                        </div>
                        <div class="layui-col-sm3 layui-col-md3">
                            <label class="layui-form-label">联系方式：</label>
                            <span class="form-span">
                                    ${mobile}
                            </span>
                        </div>
                        <div class="layui-col-sm3 layui-col-md3">
                            <label class="layui-form-label">身份证号：</label>
                            <span class="form-span">
                                    ${idCode}
                            </span>
                        </div>

                        <div class="layui-col-sm9 layui-col-md9">
                            <label class="layui-form-label">安装地址：</label>
                            <span class="form-span">
                                <c:choose>
                                    <c:when test="${customerEntry.province eq customerEntry.city}">
                                        ${customerEntry.province}${customerEntry.area}${customerEntry.address}
                                    </c:when>
                                    <c:otherwise>
                                        ${customerEntry.province}${customerEntry.city}${customerEntry.area}${customerEntry.address}
                                    </c:otherwise>
                                </c:choose>
                            </span>
                        </div>



                        <div class="layui-col-xs12"></div>


                        <div class="layui-col-lg3 layui-col-sm3">
                            <label class="layui-form-label">身份证：</label>
                            <div class="layui-input-block img-box">
                                <div>
                                    <div id="imgsDiv14">
                                        <c:if test="${not empty customerEntry.idCardFront}">
                                            <div class="bj-img imgSpan">
                                                <img src="${commonStaticImgPath}${customerEntry.idCardFront}" height="700" width="1200"/>
                                                <input type="hidden" class="id-card-front" value="${customerEntry.idCardFront}"/>
                                            </div>
                                        </c:if>
                                    </div>
                                    <div class="upload-container <c:if test="${not empty customerEntry.idCardFront}">hide</c:if>" id="uploader14">
                                        <img src="" alt="img placeholder" id="imgsAdd14">
                                    </div>
                                    <div style="width: 80px; text-align: center; color: #FF0000">正面</div>
                                </div>
                                <div>
                                    <div id="imgsDiv15">
                                        <c:if test="${not empty customerEntry.idCardBack}">
                                            <div class="bj-img imgSpan">
                                                <img src="${commonStaticImgPath}${customerEntry.idCardBack}" height="700" width="1200"/>
                                                <input type="hidden" class="id-card-back" value="${customerEntry.idCardBack}"/>
                                            </div>
                                        </c:if>
                                    </div>
                                    <div class="upload-container <c:if test="${not empty customerEntry.idCardBack}">hide</c:if>" id="uploader15">
                                        <img src="" alt="img placeholder" id="imgsAdd15">
                                    </div>
                                    <div style="width: 80px; text-align: center; color: #FF0000">反面</div>
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-lg3 layui-col-sm3" style="margin-bottom: 24px">
                            <label class="layui-form-label" style="width: 140px">户口本复印件：</label>
                            <div class="layui-input-block img-box" style="margin-left: 140px">
                                <div>
                                    <div>
                                        <c:if test="${not empty customerEntry.residenceBooklet}">
                                            <c:forEach var="quaim" items="${customerEntry.residenceBooklet.split(',')}" varStatus="vs">
                                                <div class="bj-img imgSpan">
                                                    <img src="${commonStaticImgPath}${quaim}" height="700" width="1200"/>
                                                    <input type="hidden" class="residenceBooklet" value="${quaim}"/>
                                                </div>
                                            </c:forEach>
                                        </c:if>
                                    </div>
                                    <div class="upload-container <c:if test="${not empty customerEntry.residenceBooklet}">hide</c:if>">
                                        <img src="" alt="img placeholder" >
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="layui-col-lg9 layui-col-sm9" style="margin-bottom: 24px">
                            <label class="layui-form-label">房产证明：</label>
                            <div class="layui-input-block img-box">
                                <div>
                                    <div>
                                        <c:if test="${not empty surveyRecord.houseOwnership}">
                                            <c:forEach items="${surveyRecord.houseOwnership}" var="img">
                                                <div class="bj-img imgSpan">
                                                    <img src="${commonStaticImgPath}${img}" height="700" width="1200"/>
                                                </div>
                                            </c:forEach>
                                        </c:if>
                                    </div>
                                    <div class="upload-container <c:if test="${not empty surveyRecord.houseOwnership}">hide</c:if>">
                                        <img src="" alt="img placeholder">
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="layui-col-lg9 layui-col-sm9" style="margin-bottom: 24px">
                            <label class="layui-form-label">银行卡照片：</label>
                            <div class="layui-input-block img-box">
                                <div>
                                    <div>
                                        <c:if test="${not empty customerEntry.bankCard}">
                                            <div class="bj-img imgSpan">
                                                <img src="${commonStaticImgPath}${customerEntry.bankCard}" height="700" width="1200"/>
                                                <input type="hidden" class="bankCard" value="${customerEntry.bankCard}"/>
                                            </div>
                                        </c:if>
                                    </div>
                                    <div class="upload-container <c:if test="${not empty customerEntry.bankCard}">hide</c:if>">
                                        <img src="" alt="img placeholder">
                                    </div>
                                </div>
                            </div>
                        </div>



                        <div class="layui-col-xs12"></div>
                        <div class="layui-col-lg3 layui-col-sm3">
                            <label class="layui-form-label">银行账户名：</label>
                            <span class="form-span">
                                    ${customerEntry.bankName}
                            </span>
                        </div>
                        <div class="layui-col-lg3 layui-col-sm3">
                            <label class="layui-form-label">银行账户：</label>
                            <span class="form-span">
                                    ${customerEntry.bankCode}
                            </span>
                        </div>
                        <div class="layui-col-xs12"></div>
                        <div class="layui-col-lg3 layui-col-sm3">
                            <label class="layui-form-label">开户行：</label>
                            <span class="form-span">
                                    ${customerEntry.tssBankNumName}
                            </span>
                        </div>

                        <div class="layui-col-xs12"></div>
                        <div class="layui-col-sm3 layui-col-md3">
                            <label class="layui-form-label">划转方式：</label>
                            <span class="form-span">
                             <c:if test="${surveyRecord.repaymentMethod eq '1'}">二类卡</c:if>
                            <c:if test="${surveyRecord.repaymentMethod eq '2'}">光E宝</c:if>
                            <c:if test="${surveyRecord.repaymentMethod eq '0'}">其他</c:if>
                        </span>
                        </div>


                        <c:if test="${surveyRecord.repaymentMethod ne '0'}">
                            <div class="layui-col-lg3 layui-col-sm3">
                                <label class="layui-form-label">账号名称：</label>
                                <span class="form-span">
                                <c:if test="${not empty card}">${card.name}</c:if>
                            </span>

                            </div>
                            <c:if test="${surveyRecord.repaymentMethod ne '0'}">
                                <div class="layui-col-lg3 layui-col-sm3">
                                    <label class="layui-form-label">二类卡号：</label>
                                    <span class="form-span">
                                <c:if test="${not empty card}">${card.accountCode}</c:if>
                            </span>

                                </div>
                            </c:if>
                            <div class="layui-col-lg3 layui-col-sm3">
                                <label class="layui-form-label">联行号：</label>
                                <span class="form-span">
                                    <c:if test="${not empty card}">${card.openBankNumber}</c:if>
                                </span>


                            </div>
                        </c:if>


                        <c:if test="${customerEntry.age>=65}">
                            <div class="layui-col-lg3 layui-col-sm3">
                                <label class="layui-form-label">共签人名称：</label>
                                <span class="form-span">
                                        ${customerEntry.bpName}
                                </span>
                            </div>
                            <div class="layui-col-lg3 layui-col-sm3">
                                <label class="layui-form-label">证件号码：</label>
                                <span class="form-span">
                                        ${customerEntry.bpIdCard}
                                </span>
                            </div>
                            <div class="layui-col-lg3 layui-col-sm3">
                                <label class="layui-form-label">手机号：</label>
                                <span class="form-span">
                                        ${customerEntry.bpMobile}
                                </span>
                            </div>
                        </c:if>

                        <c:if test="${customerEntry.age>=65}">
                            <div class="layui-col-lg4 layui-col-sm4">
                                <label class="layui-form-label">共签人身份证：</label>
                                <div class="layui-input-block img-box">
                                    <div>
                                        <div>
                                            <c:if test="${not empty customerEntry.bpCardFront}">
                                                <div class="bj-img imgSpan">
                                                    <img src="${commonStaticImgPath}${customerEntry.bpCardFront}" height="700" width="1200"/>
                                                    <input type="hidden" value="${customerEntry.bpCardFront}"/>
                                                </div>
                                            </c:if>
                                        </div>
                                        <div class="upload-container <c:if test="${not empty customerEntry.bpCardFront}">hide</c:if>" >
                                            <img src="" alt="img placeholder" >
                                        </div>
                                        <div style="width: 80px; text-align: center; color: #FF0000">正面</div>
                                    </div>
                                    <div>
                                        <div>
                                            <c:if test="${not empty customerEntry.bpCardBack}">
                                                <div class="bj-img imgSpan">
                                                    <img src="${commonStaticImgPath}${customerEntry.bpCardBack}" height="700" width="1200"/>
                                                    <input type="hidden" value="${customerEntry.bpCardBack}"/>
                                                </div>
                                            </c:if>
                                        </div>
                                        <div class="upload-container <c:if test="${not empty customerEntry.bpCardBack}">hide</c:if>" >
                                            <img src="" alt="img placeholder" >
                                        </div>
                                        <div style="width: 80px; text-align: center; color: #FF0000">反面</div>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-lg4 layui-col-sm4">
                                <label class="layui-form-label" style="width: 140px">共签人子女证明材料：</label>
                                <div class="layui-input-block img-box" style="margin-left: 140px">
                                    <div>
                                        <div>
                                            <c:if test="${not empty customerEntry.bpFile}">
                                                <c:forEach var="quaim" items="${customerEntry.bpFile.split(',')}" varStatus="vs">
                                                    <div class="bj-img imgSpan">
                                                            <%--                          <span class="layui-icon-close layui-icon" onclick="delImg(this,'uploader32')"></span>--%>
                                                        <img src="${commonStaticImgPath}${quaim}" height="700" width="1200"/>
                                                        <input type="hidden" class="bpFile" value="${quaim}"/>
                                                    </div>
                                                </c:forEach>
                                            </c:if>
                                        </div>
                                        <div class="upload-container <c:if test="${not empty customerEntry.bpFile}">hide</c:if>">
                                            <img src="" alt="img placeholder">
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </c:if>

                    </div>
                </c:if>
                <c:if test="${customerEntry.tenantType eq '2'}">
                    <div class="layui-form-item layui-row">
                        <div class="layui-col-sm4 layui-col-md4">
                            <label class="layui-form-label">单位名称：</label>
                            <span class="form-span">
                                    ${customerEntry.tenantName}
                            </span>
                        </div>
                        <div class="layui-col-sm4 layui-col-md4">
                            <label class="layui-form-label">信用代码：</label>
                            <span class="form-span">
                                    ${customerEntry.regno}
                            </span>
                        </div>
                        <div class="layui-col-sm4 layui-col-md4">
                            <label class="layui-form-label">联系方式：</label>
                            <span class="form-span">
                                    ${mobile}
                            </span>
                        </div>
                        <div class="layui-col-sm4 layui-col-md4">
                            <label class="layui-form-label">负责人姓名：</label>
                            <span class="form-span">
                                    ${customerEntry.corp}
                            </span>
                        </div>
                        <div class="layui-col-sm4 layui-col-md4">
                            <label class="layui-form-label">证件号码：</label>
                            <span class="form-span">
                                    ${idCode}
                            </span>
                        </div>
                        <div class="layui-col-lg12 layui-col-sm12"></div>
                        <div class="layui-col-lg4 layui-col-sm4">
                            <label class="layui-form-label w-120">负责人身份证：</label>
                            <div class="layui-input-block img-box ml-120">
                                <div>
                                    <div>
                                        <c:if test="${not empty customerEntry.idCardFront}">
                                            <div class="bj-img imgSpan">
                                                <img src="${commonStaticImgPath}${customerEntry.idCardFront}" height="700" width="1200"/>
                                            </div>
                                        </c:if>
                                    </div>
                                    <div class="upload-container <c:if test="${not empty customerEntry.idCardFront}">hide</c:if>">
                                        <img src="" alt="img placeholder">
                                    </div>
                                    <div style="width: 80px; text-align: center; color: #FF0000">正面</div>
                                </div>
                                <div>
                                    <div>
                                        <c:if test="${not empty customerEntry.idCardBack}">
                                            <div class="bj-img imgSpan">
                                                <img src="${commonStaticImgPath}${customerEntry.idCardBack}" height="700" width="1200"/>
                                            </div>
                                        </c:if>
                                    </div>
                                    <div class="upload-container <c:if test="${not empty customerEntry.idCardBack}">hide</c:if>">
                                        <img src="" alt="img placeholder">
                                    </div>
                                    <div style="width: 80px; text-align: center; color: #FF0000">反面</div>
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-lg4 layui-col-sm4" style="margin-bottom: 24px">
                            <label class="layui-form-label" style="width: 140px">营业执照：</label>
                            <div class="layui-input-block img-box" style="margin-left: 140px">
                                <div>
                                    <div>
                                        <c:if test="${not empty orgFiles and not empty orgFiles.regnoUrl}">
                                            <div class="bj-img imgSpan">
                                                <img src="${commonStaticImgPath}${orgFiles.regnoUrl}" height="700" width="1200"/>
                                            </div>
                                        </c:if>
                                    </div>
                                    <div class="upload-container <c:if test="${not empty orgFiles.regnoUrl}">hide</c:if>">
                                        <img src="" alt="img placeholder" >
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </c:if>

            </div>
            <c:if test="${not empty customerEntry.designAuditFlag && '1' ne customerEntry.designAuditFlag && '0' ne customerEntry.designAuditFlag}">
                <div class="layui-tab-content scrollDiv layui-hide">
                    <c:if test="${info2.columns.box_group_set.status eq '1'}">
                        <div class="layui-form-item layui-row">
                            <div class="layui-col-sm3 layui-col-md3">
                                <label class="layui-form-label">并网方式：</label>
                                <span class="form-span">
                               <c:choose>
                                   <c:when test="${'1' eq recordBox.columns.type}">一户多站</c:when>
                                   <c:when test="${'2' eq recordBox.columns.type}">整村汇流</c:when>
                                   <c:otherwise>单户并网</c:otherwise>
                               </c:choose>
                               </span>
                            </div>

                            <c:if test="${'1' eq recordBox.columns.type || '2' eq recordBox.columns.type}">
                                <div class="layui-col-sm3 layui-col-md3">
                                    <label class="layui-form-label">本组电站个数：</label>
                                    <span class="form-span">${recordBox.columns.total_count}</span>
                                </div>
                                <div class="layui-col-sm3 layui-col-md3">
                                    <label class="layui-form-label">汇流组编号：</label>
                                    <span class="form-span">${recordBox.columns.group_number}</span>
                                </div>
                                <div class="layui-col-sm3 layui-col-md3">
                                    <label class="layui-form-label">汇流组名称：</label>
                                    <span class="form-span">${recordBox.columns.group_name}</span>
                                </div>
                            </c:if>
                        </div>
                    </c:if>
                    <div class="layui-form-item layui-row">
                        <div class="layui-col-sm6 layui-col-md6">
                            <label class="layui-form-label">安装地址：</label>
                            <span class="form-span">
                              <c:choose>
                                  <c:when test="${customerEntry.province eq customerEntry.city}">
                                      ${customerEntry.province}${customerEntry.area}${customerEntry.address}
                                  </c:when>
                                  <c:otherwise>
                                      ${customerEntry.province}${customerEntry.city}${customerEntry.area}${customerEntry.address}
                                  </c:otherwise>
                              </c:choose>
                          </span>
                        </div>

                        <div class="layui-col-sm3 layui-col-md3">
                            <label class="layui-form-label">屋顶类型：</label>
                            <span class="form-span">${surveyRecord.roofType}</span>
                        </div>

                        <c:if test="${info2.columns.seal_roof.status eq '1'}">
                            <div class="layui-col-lg3 layui-col-sm3">
                                <label class="layui-form-label">是否封屋顶：</label>
                                <span class="form-span">${'1' eq surveyRecord.sealRoof ?'是':'否'}</span>
                            </div>
                        </c:if>

                        <c:if test="${info2.columns.angle_azimuth.status eq '1'}">
                            <div class="layui-col-sm3 layui-col-md3">
                                <label class="layui-form-label">方位角：</label>
                                <div class="form-span" style="display: flex">
                                    <c:forEach items="${angleAzimuthList}" var="angleAzimuth" >
                                        <option value="${angleAzimuth.columns.dict_key}"><c:if test="${surveyRecord.azimuth eq angleAzimuth.columns.dict_key}">${angleAzimuth.columns.dict_value}</c:if></option>
                                    </c:forEach>
                                    <c:if test="${partner.id ne '03' && not empty surveyRecord.angle}">
                                        <div style="flex: 1" >&nbsp;&nbsp;${surveyRecord.angle}度</div>
                                    </c:if>
                                </div>
                            </div>
                        </c:if>

                        <div class="layui-col-sm3 layui-col-md3">
                            <c:choose>
                                <c:when test="${info2.columns.completion_year_03.status eq '1'}">
                                    <label class="layui-form-label">建筑年限：</label>
                                </c:when>
                                <c:when test="${info2.columns.completion_year.status eq '1'}">
                                    <label class="layui-form-label">房屋建成年份：</label>
                                </c:when>
                            </c:choose>
                            <span class="form-span">${surveyRecord.completionYear}</span>
                        </div>

                        <div class="layui-col-sm3 layui-col-md3">
                            <label class="layui-form-label">建筑高度：</label>
                            <span class="form-span">
                                ${surveyRecord.buildingHeight} ${empty surveyRecord.buildingHeight ? "" : "米"}
                            </span>
                        </div>

                        <c:if test="${surveyRecord.roofType eq '斜屋顶'}">
                            <c:if test="${info2.columns.slope_gradient.status eq '1'}">
                                <div class="layui-col-lg3 layui-col-sm3">
                                    <label class="layui-form-label">屋面坡度：</label>
                                    <span class="form-span">${surveyRecord.slopeGradient}${empty surveyRecord.slopeGradient ? "" : "度"}</span>
                                </div>
                            </c:if>

                            <c:if test="${info2.columns.purline_interval.status eq '1'}">
                                <div class="layui-col-lg3 layui-col-sm3">
                                    <label class="layui-form-label">檩条间距：</label>
                                    <span class="form-span">${surveyRecord.purlineInterval}${empty surveyRecord.purlineInterval ? "" : "米"}</span>
                                </div>
                            </c:if>
                        </c:if>

                        <c:if test="${info2.columns.waterproof.status eq '1'}">
                            <div class="layui-col-lg3 layui-col-sm3">
                                <label class="layui-form-label">屋顶防水情况：</label>
                                <span class="form-span">${'1' eq surveyRecord.waterproof ?'一般':'良好'}</span>
                            </div>
                        </c:if>

                        <c:if test="${info2.columns.source_pollution.status eq '1'}">
                            <div class="layui-col-lg3 layui-col-sm3">
                                <label class="layui-form-label">是否有污染源：</label>
                                <span class="form-span">${'1' eq surveyRecord.sourcePollution ?'有':'没有'}</span>
                            </div>
                        </c:if>

                        <c:if test="${info2.columns.ops_condition.status eq '1'}">
                            <div class="layui-col-lg3 layui-col-sm3">
                                <label class="layui-form-label" style="width: 140px">是否具备运维空间：</label>
                                <span class="form-span">${'1' eq surveyRecord.opsCondition ?'具备':'不具备'}</span>
                            </div>
                        </c:if>

                        <c:if test="${info2.columns.voltage_classes.status eq '1'}">
                            <div class="layui-col-lg3 layui-col-sm3">
                                <label class="layui-form-label">并网电压等级：</label>
                                <span class="form-span"><fmt:formatNumber value="${surveyRecord.voltageClasses}"></fmt:formatNumber>${empty surveyRecord.voltageClasses?'':'V'}</span>
                            </div>
                        </c:if>

                        <c:if test="${info2.columns.transformer_capacity.status eq '1'}">
                            <div class="layui-col-lg3 layui-col-sm3">
                                <label class="layui-form-label">变压器容量：</label>
                                <span class="form-span">${surveyRecord.transformerCapacity}${empty surveyRecord.transformerCapacity?'':'kVA'}</span>
                            </div>
                        </c:if>

                        <c:if test="${info2.columns.restrict_flag.status eq '1'}">
                            <div class="layui-col-lg3 layui-col-sm3">
                                <label class="layui-form-label" style="width: 210px">是否符合变压器容量限制要求：</label>
                                <span class="form-span">${'1' eq surveyRecord.restrictFlag?'符合':'不符合'}</span>
                            </div>
                        </c:if>

                        <c:if test="${info2.columns.distance.status eq '1'}">
                            <div class="layui-col-sm3 layui-col-md3">
                                <label class="layui-form-label">并网距离：</label>
                                <span class="form-span">${surveyRecord.distance} ${empty surveyRecord.distance ? "" : "米"}</span>
                            </div>
                        </c:if>

                        <div class="layui-col-lg3 layui-col-sm3">
                            <c:choose>
                                <c:when test="${info2.columns.dip_angle.status eq '1'}">
                                    <label class="layui-form-label">组件倾角：</label>
                                </c:when>
                                <c:when test="${info2.columns.dip_angle_03.status eq '1'}">
                                    <label class="layui-form-label">倾角：</label>
                                </c:when>
                            </c:choose>
                            <span class="form-span">${surveyRecord.dipAngle} ${empty surveyRecord.dipAngle ? "" : "度"}</span>
                        </div>

                        <c:if test="${info2.columns.remarks.status eq '1'}">
                            <div class="layui-col-xs12">
                                <label class="layui-form-label">备注：</label>
                                <span class="form-span">
                                        ${customerEntry.remarks}
                                </span>
                            </div>
                        </c:if>

                        <c:if test="${info2.columns.ew_length.status eq '1'}">
                            <div class="layui-col-sm3 layui-col-md3">
                                <label class="layui-form-label">东西长：</label>
                                <span class="form-span">${surveyRecord.ewLength} ${empty surveyRecord.ewLength ? "" : "米"}</span>
                            </div>
                        </c:if>

                        <c:if test="${info2.columns.ns_wide.status eq '1'}">
                            <div class="layui-col-sm3 layui-col-md3">
                                <label class="layui-form-label">南北宽：</label>
                                <span class="form-span">${surveyRecord.nsWide} ${empty surveyRecord.nsWide ? "" : "米"}</span>
                            </div>
                        </c:if>

                        <c:if test="${info2.columns.roof_area.status eq '1'}">
                            <div class="layui-col-sm3 layui-col-md3">
                                <label class="layui-form-label">屋顶面积：</label>
                                <span class="form-span">${surveyRecord.roofArea} ${empty surveyRecord.roofArea ? "" : "㎡"}</span>
                            </div>
                        </c:if>

                        <c:if test="${info2.columns.longitude.status eq '1'}">
                            <div class="layui-col-sm3 layui-col-md3">
                                <label class="layui-form-label">经度：</label>
                                <span class="form-span">${customerEntry.longitude}</span>
                            </div>
                        </c:if>

                        <c:if test="${info2.columns.latitude.status eq '1'}">
                            <div class="layui-col-sm3 layui-col-md3">
                                <label class="layui-form-label">纬度：</label>
                                <span class="form-span">${customerEntry.latitude}</span>
                            </div>
                        </c:if>

                        <div class="layui-col-lg12 layui-col-sm12"></div>

                        <div class="layui-col-lg12 ">
                            <c:set var="indexNum" value="1"/>
                            <table class="layui-table" style="margin: 0 10px 0 0;">
                                <c:if test="${info2.columns.fly_imgs.status eq '1' || info2.columns.fly_imgs_04.status eq '1'}">
                                    <tr style="height: 100px">
                                        <td width="15%">${indexNum}、
                                            <c:choose>
                                                <c:when test="${info2.columns.fly_imgs.status eq '1'}">
                                                    无人机航拍图
                                                </c:when>
                                                <c:when test="${info2.columns.fly_imgs_04.status eq '1'}">
                                                    屋顶高空俯视照片
                                                </c:when>
                                            </c:choose>
                                        </td>
                                        <td width="80%">
                                            <div class="layui-input-block img-box" style="margin-left: 20px;">
                                                <div style="display: flex;flex-wrap: wrap;">
                                                    <div id="flyImgsDiv">
                                                        <c:if test="${not empty surveyRecord.flyImgs}">
                                                            <c:forEach var="quaim" items="${surveyRecord.flyImgs.split(',')}"
                                                                       varStatus="vs">
                                                                <div class="bj-img imgSpan">
                                                                    <img src="${commonStaticImgPath}${quaim}" height="700"
                                                                         width="1200">
                                                                    <input type="hidden" class="flyImgs" value="${quaim}">
                                                                </div>
                                                            </c:forEach>
                                                        </c:if>
                                                        <c:if test="${empty surveyRecord.flyImgs}">
                                                            <i class="blank-img"></i>
                                                        </c:if>
                                                    </div>
                                                </div>
                                            </div>
                                        </td>
                                        <c:set var="indexNum" value="${indexNum+1}"/>
                                    </tr>
                                </c:if>

                                <c:if test="${info2.columns.roof_photo_one.status eq '1' || info2.columns.roof_photo_one_03.status eq '1'}">
                                    <tr style="height: 100px">
                                        <c:choose>
                                            <c:when test="${info2.columns.roof_photo_one.status eq '1'}">
                                                <td width="15%">${indexNum}、整体照片</td>
                                            </c:when>
                                            <c:when test="${info2.columns.roof_photo_one_03.status eq '1'}">
                                                <td width="15%">${indexNum}、房屋屋顶照片</td>
                                            </c:when>
                                        </c:choose>
                                        <td width="80%">
                                            <div class="layui-input-block img-box" style="margin-left: 20px;">
                                                <div style="display: flex;flex-wrap: wrap;">
                                                    <div id="roofPhotoOneDiv">
                                                        <c:if test="${not empty surveyRecord.roofPhotoOne}">
                                                            <c:forEach var="quaim"
                                                                       items="${surveyRecord.roofPhotoOne.split(',')}"
                                                                       varStatus="vs">
                                                                <div class="bj-img imgSpan">
                                                                    <img src="${commonStaticImgPath}${quaim}" height="700"
                                                                         width="1200">
                                                                    <input type="hidden" class="roofPhotoOne" value="${quaim}">
                                                                </div>
                                                            </c:forEach>
                                                        </c:if>
                                                        <c:if test="${empty surveyRecord.roofPhotoOne}">
                                                            <i class="blank-img"></i>
                                                        </c:if>
                                                    </div>
                                                </div>
                                            </div>
                                        </td>
                                        <c:set var="indexNum" value="${indexNum+1}"/>
                                    </tr>
                                </c:if>

                                <c:if test="${info2.columns.roof_photo_two.status eq '1' || info2.columns.roof_photo_two_03.status eq '1' || info2.columns.roof_photo_two_04.status eq '1'}">
                                    <tr style="height: 100px">
                                        <c:choose>
                                            <c:when test="${info2.columns.roof_photo_two.status eq '1'}">
                                                <td width="15%">${indexNum}、东南角照片</td>
                                            </c:when>
                                            <c:when test="${info2.columns.roof_photo_two_03.status eq '1'}">
                                                <td width="15%">${indexNum}、房屋屋顶东侧图片</td>
                                            </c:when>
                                            <c:when test="${info2.columns.roof_photo_two_04.status eq '1'}">
                                                <td width="15%">${indexNum}、屋顶东南照片</td>
                                            </c:when>
                                        </c:choose>
                                        <td width="80%">

                                            <div class="layui-input-block img-box" style="margin-left: 20px;">
                                                <div style="display: flex;flex-wrap: wrap;">
                                                    <div id="roofPhotoTwoDiv">
                                                        <c:if test="${not empty surveyRecord.roofPhotoTwo}">
                                                            <c:forEach var="quaim"
                                                                       items="${surveyRecord.roofPhotoTwo.split(',')}"
                                                                       varStatus="vs">
                                                                <div class="bj-img imgSpan">
                                                                    <img src="${commonStaticImgPath}${quaim}" height="700"
                                                                         width="1200">
                                                                    <input type="hidden" class="roofPhotoTwo" value="${quaim}">
                                                                </div>
                                                            </c:forEach>
                                                        </c:if>
                                                        <c:if test="${empty surveyRecord.roofPhotoTwo}">
                                                            <i class="blank-img"></i>
                                                        </c:if>
                                                    </div>
                                                </div>
                                            </div>
                                        </td>
                                        <c:set var="indexNum" value="${indexNum+1}"/>
                                    </tr>

                                </c:if>

                                <c:if test="${info2.columns.roof_photo_four.status eq '1' || info2.columns.roof_photo_four_03.status eq '1' || info2.columns.roof_photo_four_04.status eq '1'}">
                                    <tr style="height: 100px">
                                        <c:choose>
                                            <c:when test="${info2.columns.roof_photo_four.status eq '1'}">
                                                <td width="15%">${indexNum}、正南照片</td>
                                            </c:when>
                                            <c:when test="${info2.columns.roof_photo_four_03.status eq '1'}">
                                                <td width="15%">${indexNum}、房屋屋顶南侧图片</td>
                                            </c:when>
                                            <c:when test="${info2.columns.roof_photo_four_04.status eq '1'}">
                                                <td width="15%">${indexNum}、屋顶正南照片</td>
                                            </c:when>
                                        </c:choose>
                                        <td width="80%">
                                            <div class="layui-input-block img-box" style="margin-left: 20px;">
                                                <div style="display: flex;flex-wrap: wrap;">
                                                    <div id="roofPhotoFourDiv">
                                                        <c:if test="${not empty surveyRecord.roofPhotoFour}">
                                                            <c:forEach var="quaim"
                                                                       items="${surveyRecord.roofPhotoFour.split(',')}"
                                                                       varStatus="vs">
                                                                <div class="bj-img imgSpan">
                                                                    <img src="${commonStaticImgPath}${quaim}" height="700"
                                                                         width="1200">
                                                                    <input type="hidden" class="roofPhotoFour" value="${quaim}">
                                                                </div>
                                                            </c:forEach>
                                                        </c:if>
                                                        <c:if test="${empty surveyRecord.roofPhotoFour}">
                                                            <i class="blank-img"></i>
                                                        </c:if>
                                                    </div>
                                                </div>
                                            </div>
                                        </td>
                                        <c:set var="indexNum" value="${indexNum+1}"/>
                                    </tr>
                                </c:if>

                                <c:if test="${info2.columns.roof_photo_three.status eq '1' || info2.columns.roof_photo_three_03.status eq '1' || info2.columns.roof_photo_three_04.status eq '1'}">
                                    <tr style="height: 100px">
                                        <c:choose>
                                            <c:when test="${info2.columns.roof_photo_three.status eq '1'}">
                                                <td width="15%">${indexNum}、西南角照片</td>
                                            </c:when>
                                            <c:when test="${info2.columns.roof_photo_three_03.status eq '1'}">
                                                <td width="15%">${indexNum}、房屋屋顶西侧图片</td>
                                            </c:when>
                                            <c:when test="${info2.columns.roof_photo_three_04.status eq '1'}">
                                                <td width="15%">${indexNum}、屋顶西南照片</td>
                                            </c:when>
                                        </c:choose>
                                        <td width="80%">
                                            <div class="layui-input-block img-box" style="margin-left: 20px;">
                                                <div style="display: flex;flex-wrap: wrap;">
                                                    <div id="roofPhotoThreeDiv">
                                                        <c:if test="${not empty surveyRecord.roofPhotoThree}">
                                                            <c:forEach var="quaim"
                                                                       items="${surveyRecord.roofPhotoThree.split(',')}"
                                                                       varStatus="vs">
                                                                <div class="bj-img imgSpan">
                                                                    <img src="${commonStaticImgPath}${quaim}" height="700"
                                                                         width="1200">
                                                                    <input type="hidden" class="roofPhotoThree"
                                                                           value="${quaim}">
                                                                </div>
                                                            </c:forEach>
                                                        </c:if>
                                                        <c:if test="${empty surveyRecord.roofPhotoThree}">
                                                            <i class="blank-img"></i>
                                                        </c:if>
                                                    </div>
                                                </div>
                                            </div>
                                        </td>
                                        <c:set var="indexNum" value="${indexNum+1}"/>
                                    </tr>
                                </c:if>
                                <c:if test="${info2.columns.fw_img3.status eq '1'}">
                                    <tr style="height: 100px">
                                        <td width="15%">${indexNum}、房屋屋顶东南侧照片</td>
                                        <td width="80%">
                                            <div class="layui-input-block img-box" style="margin-left: 20px;">
                                                <div style="display: flex;flex-wrap: wrap;">
                                                    <div id="fwImg3Div">
                                                        <c:if test="${not empty surveyRecord.fwImg3}">
                                                            <c:forEach var="quaim"  items="${surveyRecord.fwImg3.split(',')}"  varStatus="vs">
                                                                <div class="bj-img imgSpan">
                                                                    <img src="${commonStaticImgPath}${quaim}" height="700"  width="1200">
                                                                    <input type="hidden" class="fwImg3" value="${quaim}">
                                                                </div>
                                                            </c:forEach>
                                                        </c:if>
                                                        <c:if test="${empty surveyRecord.fwImg3}">
                                                            <i class="blank-img"></i>
                                                        </c:if>
                                                    </div>
                                                </div>
                                            </div>
                                        </td>
                                        <c:set var="indexNum" value="${indexNum+1}"/>
                                    </tr>
                                </c:if>
                                <c:if test="${info2.columns.fw_img4.status eq '1'}">
                                    <tr style="height: 100px">
                                        <td width="15%">${indexNum}、房屋屋顶西南侧照片</td>
                                        <td width="80%">
                                            <div class="layui-input-block img-box" style="margin-left: 20px;">
                                                <div style="display: flex;flex-wrap: wrap;">
                                                    <div id="fwImg4Div">
                                                        <c:if test="${not empty surveyRecord.fwImg4}">
                                                            <c:forEach var="quaim"  items="${surveyRecord.fwImg4.split(',')}"  varStatus="vs">
                                                                <div class="bj-img imgSpan">
                                                                    <img src="${commonStaticImgPath}${quaim}" height="700"  width="1200">
                                                                    <input type="hidden" class="fwImg4" value="${quaim}">
                                                                </div>
                                                            </c:forEach>
                                                        </c:if>
                                                        <c:if test="${empty surveyRecord.fwImg4}">
                                                            <i class="blank-img"></i>
                                                        </c:if>
                                                    </div>
                                                </div>
                                            </div>
                                        </td>
                                        <c:set var="indexNum" value="${indexNum+1}"/>
                                    </tr>
                                </c:if>
                                <c:if test="${info2.columns.fw_img5.status eq '1'}">
                                    <tr style="height: 100px">
                                        <td width="15%">${indexNum}、遮阴物与房屋距离、高度</td>
                                        <td width="80%">
                                            <div class="layui-input-block img-box" style="margin-left: 20px;">
                                                <div style="display: flex;flex-wrap: wrap;">
                                                    <div id="fwImg5Div">
                                                        <c:if test="${not empty surveyRecord.fwImg5}">
                                                            <c:forEach var="quaim"  items="${surveyRecord.fwImg5.split(',')}"  varStatus="vs">
                                                                <div class="bj-img imgSpan">
                                                                    <img src="${commonStaticImgPath}${quaim}" height="700"  width="1200">
                                                                    <input type="hidden" class="fwImg5" value="${quaim}">
                                                                </div>
                                                            </c:forEach>
                                                        </c:if>
                                                        <c:if test="${empty surveyRecord.fwImg5}">
                                                            <i class="blank-img"></i>
                                                        </c:if>
                                                    </div>
                                                </div>
                                            </div>
                                        </td>
                                        <c:set var="indexNum" value="${indexNum+1}"/>
                                    </tr>
                                </c:if>
                                <c:if test="${info2.columns.roof_photo_five.status eq '1'}">
                                    <tr style="height: 100px">
                                        <td width="15%">${indexNum}、细节照片</td>
                                        <td width="80%">
                                            <div class="layui-input-block img-box" style="margin-left: 20px;">
                                                <div style="display: flex;flex-wrap: wrap;">
                                                    <div id="roofPhotoFiveDiv">
                                                        <c:if test="${not empty surveyRecord.roofPhotoFive}">
                                                            <c:forEach var="quaim"
                                                                       items="${surveyRecord.roofPhotoFive.split(',')}"
                                                                       varStatus="vs">
                                                                <div class="bj-img imgSpan">
                                                                    <img src="${commonStaticImgPath}${quaim}" height="700"
                                                                         width="1200">
                                                                    <input type="hidden" class="roofPhotoFive" value="${quaim}">
                                                                </div>
                                                            </c:forEach>
                                                        </c:if>
                                                        <c:if test="${empty surveyRecord.roofPhotoFive}">
                                                            <i class="blank-img"></i>
                                                        </c:if>
                                                    </div>
                                                </div>
                                            </div>
                                        </td>
                                        <c:set var="indexNum" value="${indexNum+1}"/>
                                    </tr>
                                </c:if>

                                <c:if test="${info2.columns.roof_photo_interior.status eq '1'}">
                                    <tr style="height: 100px">
                                        <td width="15%">${indexNum}、内部环境照片</td>
                                        <td width="80%">
                                            <div class="layui-input-block img-box" style="margin-left: 20px;">
                                                <div style="display: flex;flex-wrap: wrap;">
                                                    <div id="roofPhotoInteriorDiv">
                                                        <c:if test="${not empty surveyRecord.roofPhotoInterior}">
                                                            <c:forEach var="quaim"
                                                                       items="${surveyRecord.roofPhotoInterior.split(',')}"
                                                                       varStatus="vs">
                                                                <div class="bj-img imgSpan">
                                                                    <img src="${commonStaticImgPath}${quaim}" height="700"
                                                                         width="1200">
                                                                    <input type="hidden" class="roofPhotoInterior"
                                                                           value="${quaim}">
                                                                </div>
                                                            </c:forEach>
                                                        </c:if>
                                                        <c:if test="${empty surveyRecord.roofPhotoInterior}">
                                                            <i class="blank-img"></i>
                                                        </c:if>
                                                    </div>
                                                </div>
                                            </div>
                                        </td>
                                        <c:set var="indexNum" value="${indexNum+1}"/>
                                    </tr>
                                </c:if>

                                <c:if test="${info2.columns.roof_photo_facade.status eq '1'}">
                                    <tr style="height: 100px">
                                        <td width="15%">${indexNum}、内部结构照片</td>
                                        <td width="80%">
                                            <div class="layui-input-block img-box" style="margin-left: 20px;">
                                                <div style="display: flex;flex-wrap: wrap;">
                                                    <div id="roofPhotoFacadeDiv">
                                                        <c:if test="${not empty surveyRecord.roofPhotoFacade}">
                                                            <c:forEach var="quaim"
                                                                       items="${surveyRecord.roofPhotoFacade.split(',')}"
                                                                       varStatus="vs">
                                                                <div class="bj-img imgSpan">
                                                                    <img src="${commonStaticImgPath}${quaim}" height="700"
                                                                         width="1200">
                                                                    <input type="hidden" class="roofPhotoFacade"
                                                                           value="${quaim}">
                                                                </div>
                                                            </c:forEach>
                                                        </c:if>
                                                        <c:if test="${empty surveyRecord.roofPhotoFacade}">
                                                            <i class="blank-img"></i>
                                                        </c:if>
                                                    </div>
                                                </div>
                                            </div>
                                        </td>
                                        <c:set var="indexNum" value="${indexNum+1}"/>
                                    </tr>
                                </c:if>

                                <c:if test="${info2.columns.detail_supplement_one.status eq '1'}">
                                    <tr style="height: 100px">
                                        <td width="15%">${indexNum}、逆变器、配电箱预安装位置照片</td>
                                        <td width="80%">
                                            <div class="layui-input-block img-box" style="margin-left: 20px;">
                                                <div style="display: flex;flex-wrap: wrap;">
                                                    <div id="detailSupplementOneDiv">
                                                        <c:if test="${not empty surveyRecord.detailSupplementOne}">
                                                            <c:forEach var="quaim"
                                                                       items="${surveyRecord.detailSupplementOne.split(',')}"
                                                                       varStatus="vs">
                                                                <div class="bj-img imgSpan">
                                                                    <img src="${commonStaticImgPath}${quaim}" height="700"
                                                                         width="1200">
                                                                    <input type="hidden" class="detailSupplementOne"
                                                                           value="${quaim}">
                                                                </div>
                                                            </c:forEach>
                                                        </c:if>
                                                        <c:if test="${empty surveyRecord.detailSupplementOne}">
                                                            <i class="blank-img"></i>
                                                        </c:if>
                                                    </div>
                                                </div>
                                            </div>
                                        </td>
                                        <c:set var="indexNum" value="${indexNum+1}"/>
                                    </tr>
                                </c:if>

                                <c:if test="${info2.columns.house_supplement_one.status eq '1'}">
                                    <tr style="height: 100px">
                                        <td width="15%">${indexNum}、其他障碍物照片</td>
                                        <td width="80%">
                                            <div class="layui-input-block img-box" style="margin-left: 20px;">
                                                <div style="display: flex;flex-wrap: wrap;">
                                                    <div id="houseSupplementOneDiv">
                                                        <c:if test="${not empty surveyRecord.houseSupplementOne}">
                                                            <c:forEach var="quaim"
                                                                       items="${surveyRecord.houseSupplementOne.split(',')}"
                                                                       varStatus="vs">
                                                                <div class="bj-img imgSpan">
                                                                    <img src="${commonStaticImgPath}${quaim}" height="700"
                                                                         width="1200">
                                                                    <input type="hidden" class="houseSupplementOne"
                                                                           value="${quaim}">
                                                                </div>
                                                            </c:forEach>
                                                        </c:if>
                                                        <c:if test="${empty surveyRecord.houseSupplementOne}">
                                                            <i class="blank-img"></i>
                                                        </c:if>
                                                    </div>
                                                </div>
                                            </div>
                                        </td>
                                        <c:set var="indexNum" value="${indexNum+1}"/>
                                    </tr>
                                </c:if>


                                <c:if test="${info2.columns.house_outline_photo.status eq '1'}">
                                    <tr style="height: 100px">
                                        <td width="15%">${indexNum}、房屋轮廓照片</td>
                                        <td width="80%">
                                            <div class="layui-input-block img-box" style="margin-left: 20px;">
                                                <div style="display: flex;flex-wrap: wrap;">
                                                    <div id="houseOutlinePhotoDiv">
                                                        <c:if test="${not empty surveyRecord.houseOutlinePhoto}">
                                                            <c:forEach var="quaim"
                                                                       items="${surveyRecord.houseOutlinePhoto.split(',')}"
                                                                       varStatus="vs">
                                                                <div class="bj-img imgSpan">
                                                                    <img src="${commonStaticImgPath}${quaim}" height="700"
                                                                         width="1200">
                                                                    <input type="hidden" class="houseOutlinePhoto"
                                                                           value="${quaim}">
                                                                </div>
                                                            </c:forEach>
                                                        </c:if>
                                                        <c:if test="${empty surveyRecord.houseOutlinePhoto}">
                                                            <i class="blank-img"></i>
                                                        </c:if>
                                                    </div>
                                                </div>
                                            </div>
                                        </td>
                                        <c:set var="indexNum" value="${indexNum+1}"/>
                                    </tr>
                                </c:if>

                                <c:if test="${info2.columns.survey_video.status eq '1'}">
                                    <tr style="height: 100px">
                                        <td width="15%">${indexNum}、踏勘补充证明视频</td>
                                        <td width="80%">
                                            <div class="layui-input-block img-box" style="margin-left: 20px;">
                                                <div style="display: flex;flex-wrap: wrap;">
                                                    <div>
                                                        <c:if test="${not empty surveyRecord.surveyVideo}">
                                                            <c:forEach var="quaim" items="${surveyRecord.surveyVideo.split(',')}"  varStatus="vs">
                                                                <div class="bj-img imgSpan">
                                                                    <video controls
                                                                           src="${commonStaticImgPath}${quaim}"
                                                                           height="80px" width="80px"></video>
                                                                </div>
                                                            </c:forEach>
                                                        </c:if>
                                                    </div>
                                                </div>
                                            </div>
                                        </td>
                                        <c:set var="indexNum" value="${indexNum+1}"/>
                                    </tr>
                                </c:if>

                                <c:if test="${info2.columns.house_ownership.status eq '1'}">
                                    <tr style="height: 100px">
                                        <td width="15%">${indexNum}、<c:if test="${info2.columns.house_ownership.mustFillFlag eq '1'}"><i class="mark">*</i></c:if>房产证图片(1-8张)</td>
                                        <td width="80%">
                                            <div class="layui-input-block img-box" style="margin-left: 20px;">
                                                <div style="display: flex;flex-wrap: wrap;">
                                                    <div id="houseOwnershipDiv">
                                                        <c:if test="${not empty surveyRecord.houseOwnership}">
                                                            <c:forEach var="quaim"
                                                                       items="${surveyRecord.houseOwnership.split(',')}"
                                                                       varStatus="vs">
                                                                <div class="bj-img imgSpan">
                                                                    <img src="${commonStaticImgPath}${quaim}" height="700"
                                                                         width="1200">
                                                                    <input type="hidden" class="houseOwnership"
                                                                           value="${quaim}">
                                                                </div>
                                                            </c:forEach>
                                                        </c:if>
                                                        <c:if test="${empty surveyRecord.houseOwnership}">
                                                            <i class="blank-img"></i>
                                                        </c:if>
                                                    </div>
                                                </div>
                                            </div>
                                        </td>
                                        <c:set var="indexNum" value="${indexNum+1}"/>
                                    </tr>
                                </c:if>

                                <c:if test="${info2.columns.survey_files.status eq '1' || info2.columns.survey_files_03.status eq '1' || info2.columns.survey_files_04.status eq '1'}">
                                    <tr style="height: 100px">
                                        <c:choose>
                                            <c:when test="${info2.columns.survey_files.status eq '1'}">
                                                <td width="15%">${indexNum}、踏勘记录表</td>
                                            </c:when>
                                            <c:when test="${info2.columns.survey_files_03.status eq '1'}">
                                                <td width="15%">${indexNum}、户用勘察记录表（附平面草图）</td>
                                            </c:when>
                                            <c:when test="${info2.columns.survey_files_04.status eq '1'}">
                                                <td width="15%">${indexNum}、现场勘测表</td>
                                            </c:when>
                                        </c:choose>
                                        <td width="80%">
                                            <div class="layui-input-inline img-box" style="margin-left: 20px;">
                                                <div style="display: flex;flex-wrap: wrap;">
                                                    <c:choose>
                                                        <c:when test="${not empty surveyRecord.surveyFiles}">
                                                            <c:forEach items="${surveyRecord.surveyFiles}" var="file"
                                                                       varStatus="vs">
                                                                <div <c:if test="${vs.count eq 0}">style="margin-top: 5px"</c:if>>
                                                                    <a href="${commonStaticImgPath}${file}" download="${file}"
                                                                       class="download-link">${fns:substringAfterLast(file, '/')}</a>
                                                                    <a onclick="previewUrl('${commonStaticImgPath}${file}')"
                                                                       class="download-link">查看</a>
                                                                </div>
                                                            </c:forEach>
                                                        </c:when>
                                                    </c:choose>
                                                </div>
                                            </div>
                                        </td>
                                        <c:set var="indexNum" value="${indexNum+1}"/>
                                    </tr>
                                </c:if>
                                <c:if test="${info2.columns.fw_img1.status eq '1'}">
                                    <tr style="height: 100px">
                                        <td width="15%">${indexNum}、房屋整体图</td>
                                        <td width="80%">
                                            <div class="layui-input-block img-box" style="margin-left: 20px;">
                                                <div style="display: flex;flex-wrap: wrap;">
                                                    <div id="fwImg1Div">
                                                        <c:if test="${not empty surveyRecord.fwImg1}">
                                                            <c:forEach var="quaim"  items="${surveyRecord.fwImg1.split(',')}"  varStatus="vs">
                                                                <div class="bj-img imgSpan">
                                                                    <img src="${commonStaticImgPath}${quaim}" height="700"  width="1200">
                                                                    <input type="hidden" class="fwImg1" value="${quaim}">
                                                                </div>
                                                            </c:forEach>
                                                        </c:if>
                                                        <c:if test="${empty surveyRecord.fwImg1}">
                                                            <i class="blank-img"></i>
                                                        </c:if>
                                                    </div>
                                                </div>
                                            </div>
                                        </td>
                                        <c:set var="indexNum" value="${indexNum+1}"/>
                                    </tr>
                                </c:if>
                                <c:if test="${info2.columns.vr_roof_one.status eq '1'}">
                                    <tr style="height: 100px">
                                        <td width="15%">${indexNum}、房屋整体图（VR全景）</td>
                                        <td width="80%">
                                            <div  style="margin-left: 20px;">
                                                <div style="display: flex;flex-wrap: wrap;">
                                                    <c:if test="${not empty surveyRecord.vrRoofOne}">
                                                        <c:forEach var="quaim"  items="${surveyRecord.vrRoofOne.split(',')}"  varStatus="vs">
                                                            <div class="bj-img imgSpan">
                                                                <img src="${commonStaticImgPath}${quaim}" height="700" width="1200">
                                                                <input type="hidden" class="vrRoofOne"  value="${quaim}">
                                                            </div>
                                                        </c:forEach>
                                                    </c:if>
                                                    <c:if test="${empty surveyRecord.vrRoofOne}">
                                                        <i class="blank-img"></i>
                                                    </c:if>
                                                </div>
                                            </div>
                                        </td>
                                        <c:set var="indexNum" value="${indexNum+1}"/>
                                    </tr>
                                </c:if>

                                <c:if test="${info2.columns.vr_roof_two.status eq '1'}">
                                    <tr style="height: 100px">
                                        <td width="15%">${indexNum}、房屋整体俯视图（无人机）</td>
                                        <td width="80%">
                                            <div  style="margin-left: 20px;">
                                                <div style="display: flex;flex-wrap: wrap;">
                                                    <c:if test="${not empty surveyRecord.vrRoofTwo}">
                                                        <c:forEach var="quaim"  items="${surveyRecord.vrRoofTwo.split(',')}"  varStatus="vs">
                                                            <div class="bj-img imgSpan">
                                                                <img src="${commonStaticImgPath}${quaim}" height="700" width="1200">
                                                                <input type="hidden" class="vrRoofTwo"  value="${quaim}">
                                                            </div>
                                                        </c:forEach>
                                                    </c:if>
                                                    <c:if test="${empty surveyRecord.vrRoofTwo}">
                                                        <i class="blank-img"></i>
                                                    </c:if>
                                                </div>
                                            </div>
                                        </td>
                                        <c:set var="indexNum" value="${indexNum+1}"/>
                                    </tr>
                                </c:if>

                                <c:if test="${info2.columns.vr_roof_three.status eq '1'}">
                                    <tr style="height: 100px">
                                        <td width="15%">${indexNum}、房屋内部结构图（VR）</td>
                                        <td width="80%">
                                            <div  style="margin-left: 20px;">
                                                <div style="display: flex;flex-wrap: wrap;">
                                                    <c:if test="${not empty surveyRecord.vrRoofThree}">
                                                        <c:forEach var="quaim"  items="${surveyRecord.vrRoofThree.split(',')}"  varStatus="vs">
                                                            <div class="bj-img imgSpan">
                                                                <img src="${commonStaticImgPath}${quaim}" height="700" width="1200">
                                                                <input type="hidden" class="vrRoofThree"  value="${quaim}">
                                                            </div>
                                                        </c:forEach>
                                                    </c:if>
                                                    <c:if test="${empty surveyRecord.vrRoofThree}">
                                                        <i class="blank-img"></i>
                                                    </c:if>
                                                </div>
                                            </div>
                                        </td>
                                        <c:set var="indexNum" value="${indexNum+1}"/>
                                    </tr>
                                </c:if>
                                <c:if test="${info2.columns.fw_img2.status eq '1'}">
                                <tr style="height: 100px">
                                    <td width="15%">${indexNum}、房屋内部结构图</td>
                                    <td width="80%">
                                        <div class="layui-input-block img-box" style="margin-left: 20px;">
                                            <div style="display: flex;flex-wrap: wrap;">
                                                <div id="fwImg2Div">
                                                    <c:if test="${not empty surveyRecord.fwImg2}">
                                                        <c:forEach var="quaim"  items="${surveyRecord.fwImg2.split(',')}"  varStatus="vs">
                                                            <div class="bj-img imgSpan">
                                                                <img src="${commonStaticImgPath}${quaim}" height="700"  width="1200">
                                                                <input type="hidden" class="fwImg2" value="${quaim}">
                                                            </div>
                                                        </c:forEach>
                                                    </c:if>
                                                    <c:if test="${empty surveyRecord.fwImg2}">
                                                        <i class="blank-img"></i>
                                                    </c:if>
                                                </div>
                                            </div>
                                        </div>
                                    </td>
                                    <c:set var="indexNum" value="${indexNum+1}"/>
                                </tr>
                            </c:if>
                                <c:if test="${info2.columns.vr_roof_four.status eq '1'}">
                                    <tr style="height: 100px">
                                        <td width="15%">${indexNum}、 入户全景照片（VR）</td>
                                        <td width="80%">
                                            <div class="layui-input-inline img-box" style="margin-left: 20px;">
                                                <div style="display: flex;flex-wrap: wrap;">
                                                    <c:if test="${not empty surveyRecord.vrRoofFour}">
                                                        <c:forEach var="quaim"  items="${surveyRecord.vrRoofFour.split(',')}"  varStatus="vs">
                                                            <div class="bj-img imgSpan">
                                                                <img src="${commonStaticImgPath}${quaim}" height="700" width="1200">
                                                                <input type="hidden" class="vrRoofFour"  value="${quaim}">
                                                            </div>
                                                        </c:forEach>
                                                    </c:if>
                                                    <c:if test="${empty surveyRecord.vrRoofFour}">
                                                        <i class="blank-img"></i>
                                                    </c:if>
                                                </div>
                                            </div>
                                        </td>
                                        <c:set var="indexNum" value="${indexNum+1}"/>
                                    </tr>
                                </c:if>

                                <c:if test="${info2.columns.vr_roof_four_04.status eq '1'}">
                                    <tr style="height: 100px">
                                        <td width="15%">${indexNum}、入户全景照片</td>
                                        <td width="80%">
                                            <div class="layui-input-block img-box" style="margin-left: 20px;">
                                                <div style="display: flex;flex-wrap: wrap;">
                                                    <div id="vrRoofFourDiv">
                                                        <c:if test="${not empty surveyRecord.vrRoofFour}">
                                                            <c:forEach var="quaim"
                                                                       items="${surveyRecord.vrRoofFour.split(',')}"
                                                                       varStatus="vs">
                                                                <div class="bj-img imgSpan">
                                                                    <img src="${commonStaticImgPath}${quaim}" height="700"
                                                                         width="1200">
                                                                    <input type="hidden" class="vrRoofFour"
                                                                           value="${quaim}">
                                                                </div>
                                                            </c:forEach>
                                                        </c:if>
                                                        <c:if test="${empty surveyRecord.vrRoofFour}">
                                                            <i class="blank-img"></i>
                                                        </c:if>
                                                    </div>
                                                </div>
                                            </div>
                                        </td>
                                        <c:set var="indexNum" value="${indexNum+1}"/>
                                    </tr>
                                </c:if>
                            </table>
                        </div>


                    </div>
                </div>
            </c:if>

            <c:if test="${customerEntry.schemeType eq '2' || not empty customerEntry.schemeId}">
                <div class="layui-tab-content scrollDiv layui-hide">
                    <iframe class="page-iframe"
                            src="${ctx}/planManage/viewMatchedPlan?&readOnly=1&entryId=${customerEntry.id}"></iframe>
                </div>
            </c:if>
            <div class="layui-tab-content scrollDiv layui-hide">
                <iframe class="page-iframe" src="${ctx}/customerEntry/toCompleteInfoPage?id=${customerEntry.id}"></iframe>
            </div>
            <div class="layui-tab-content scrollDiv layui-hide">
                <c:forEach items="${optList}" var="opt">
                    <p class="layui-form-item mb-10">
                    <div class="layui-col-sm3 layui-col-md2"><fmt:formatDate value="${opt.columns.operate_time}" pattern="yyyy-MM-dd HH:mm" /></div>
                    <div class="layui-col-sm3 layui-col-md5">${opt.columns.operator}</div>
                    <div class="layui-col-sm6 layui-col-md5">${opt.columns.content}</div>
                    </p>
                </c:forEach>
            </div>
        </div>
    </div>
</div>
<div class="layui-form-item text-c operate-footer">
    <c:if test="${'view' ne opt}">
        <button class="layui-btn TwomergeAcceptTempBtn">暂存</button>
        <button class="layui-btn layui-bg-red TwomergeAcceptRefuseBtn">驳回</button>
        <button class="layui-btn TwomergeAcceptPassBtn">通过</button>
    </c:if>
    <button class="layui-btn layui-btn-primary" onclick="closeSelf()">取消</button>
</div>
<script src="${ctxPlugin}/lib/layuiAdmin/dist/layuiadmin/layui/layui.js"></script>
<script src="${ctxPlugin}/lib/layuiAdmin/dist/layuiadmin/dist/viewer.js"></script>
<script src="${ctxPlugin}/lib/base64.js"></script>
<script>
    //图片查看效果
    var viewer = new Viewer(document.getElementById('LAY_app'));
    var layer1;
    layui.config({
        base: '${ctxPlugin}/lib/layuiAdmin/dist/layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'element', 'tableExt', 'jquery', 'layer', 'laypage', 'laydate', 'form', 'upload'], 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();
        var element = layui.element;
        var upload = layui.upload;



        element.on('tab(docDemoTabBrief)', function (data) {
            $('.scrollDiv').eq(data.index).removeClass('layui-hide').siblings('.scrollDiv').addClass('layui-hide');
        });

        upload.render({
            elem: '#uploader1' //绑定元素
            , url: '${ctx}/common/uploadFile' //上传接口
            , before: function (obj) {
                //预读本地文件示例，不支持ie8
                obj.preview(function (index, file, result) {
                });
            }
            , done: function (res) {
                //上传完毕回调
                addImg(res.path, "uploader1", "imgsDiv1", "powerCapacityUrl");
            }
            , error: function () {
                //请求异常回调
            }
        });

        //并网验收审核通过
        $('.TwomergeAcceptPassBtn').click(function(){
            var $this = $(this);

            var finalConclusion = $('textarea[name="fixConclusionSh"]').val();
            let flag = $("input[name='materialMergeFlag']").is(":checked");
            let materialMergeFlag = "0";
            if (flag) {
                materialMergeFlag = "1";
            } else {
                layer.msg('验收通过请勾选并网已完成')
                return;
            }
            // // 近三天发电量
            // let powerCapacityUrl = $(".powerCapacityUrl").val();
            // if (isBlank(powerCapacityUrl)) {
            //     layer.msg("请上传近三天发电量图片");
            //     return;
            // }
            var index= layer.load(2, {shade: [0.5,'#fff'], content:''});

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


        //并网验收审核暂存
        $('.TwomergeAcceptTempBtn').click(function(){
            var $this = $(this);
            var fixConclusionSh = $('textarea[name="fixConclusionSh"]').val();
            if (isBlank(fixConclusionSh)) {
                layer.msg('请填写验收意见');
                return;
            }
            let flag = $("input[name='materialMergeFlag']").is(":checked");
            let materialMergeFlag = "0";
            if (flag) {
                materialMergeFlag = "1";
            }
            $this.prop('disabled', true);
            $.ajax({
                type: 'post',
                url: '${ctx}/customerEntry/twoMergeAcceptTemp',
                data: {
                    id: '${customerEntry.id}',
                    finalConclusion: fixConclusionSh,
                    materialMergeFlag: materialMergeFlag,
                },
                success: function(data){
                    if (data.code === '200') {
                        layer.msg("暂存成功，请处理下一条数据！", {icon: 1, time: 1000}, function () {
                            parent.layer.close(index);
                            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 if (data.code === '400' && !isBlank(data.errMsg)) {
                        layer.msg(data.errMsg, {icon: 2});
                    } else {
                        layer.msg('操作失败', {icon: 2});
                    }
                },
                complete: function(){
                    $this.prop('disabled', false);
                    //layer.close(index);
                }
            });
        });

        //并网验收审核退回
        $('.TwomergeAcceptRefuseBtn').click(function(){
            var $this = $(this);

            var fixConclusionSh = $('textarea[name="fixConclusionSh"]').val();
            if (isBlank(fixConclusionSh)) {
                layer.msg('请填写验收意见');
                return;
            }
            let flag = $("input[name='materialMergeFlag']").is(":checked");
            let materialMergeFlag = "0";
            if (flag) {
                materialMergeFlag = "1";
            }
            // // 近三天发电量
            // let powerCapacityUrl = $(".powerCapacityUrl").val();
            $this.prop('disabled', true);
            $.ajax({
                type: 'post',
                url: '${ctx}/customerEntry/twoMergeAcceptRefuse',
                data: {
                    id: '${customerEntry.id}',
                    type:'2',
                    finalConclusion: fixConclusionSh,
                    materialMergeFlag: materialMergeFlag,
                    powerCapacityUrl: ''
                },
                success: function(data){
                    afterSuccess(data);
                },
                complete: function(){
                    $this.prop('disabled', false);
                }
            });
        });
    })

    function afterSuccess(data) {
        if (data.code === '200') {
            layer.msg("操作成功！", {icon: 1, time: 1000}, function () {
                parent.parent.layer.closeAll();
                parent.layer.close(index);
                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 if (data.code === '400' && !isBlank(data.errMsg)) {
            layer.msg(data.errMsg, {icon: 2});
        } else {
            layer.msg('操作失败', {icon: 2});
        }
    }

    function addImg(data, id, imgsDiv, classimg) {
        $("#" + id).hide();
        var html = '<div class="bj-img imgSpan"><span class="layui-icon-close layui-icon" onclick="delImg(this,\'' + id + '\')"></span>';
        html += '<img src="${commonStaticImgPath}' + data + '" height="700" width="1200"/>';
        html += '<input type="hidden" class="' + classimg + '" value="' + data + '"/> </div>';
        $("#" + imgsDiv).append(html);
        //图片查看效果
        viewer.update();
    }

    function delImg(that, id) {
        $("#" + id).show();
        $(that).parent().remove();
        if('uploader20'==id){
            quaimgsCount--;
            $("#uploader20").show();
        }
    }

    function searchOrder() {
        //执行重载
        table.reload('test', {
            where: function () {
                return _serializeJson($("#searchForm"));
            }
        });
    }

    function viewPowerGeneration() {
        layer.open({
            title: '近三天发电量',
            type: 2,
            area: ['50%', '50%'],
            content: '${ctx}/monitor/collect/data/toviewPowerGenerationPage?id=${customerEntry.id}'
        })
    }

    function viewMonitor() {
        layer.open({
            title: '电站监控详情',
            type: 2,
            area: ['80%', '90%'],
            content: '${ctx}/monitor/collect/data/toViewMonitorPage?id=${customerEntry.id}'
        })
    }

    function closeSelf() {
        let index = parent.layer.getFrameIndex(window.name);
        parent.layer.close(index);//关闭当前页
        parent.parent.layer.closeAll();
    }
    function previewUrl(_url) {
        if (!checkUrl(_url)) {
            return false;
        }
        var base = new Base64();
        var b64Encoded = base.encode(_url);
        if(_url.endsWith('pdf')){
            window.open('http://47.98.203.224:8012/onlinePreview?url=' + encodeURIComponent(b64Encoded)+'&officePreviewType=pdf');
        }else{
            window.open('http://47.98.203.224:8012/onlinePreview?url=' + encodeURIComponent(b64Encoded));
        }
    }

    function checkUrl(url) {
        //url= 协议://(ftp的登录信息)[IP|域名](:端口号)(/或?请求参数)
        var strRegex = '^((https|http|ftp)://)'//(https或http或ftp)
            + '(([\\w_!~*\'()\\.&=+$%-]+: )?[\\w_!~*\'()\\.&=+$%-]+@)?' //ftp的user@  可有可无
            + '(([0-9]{1,3}\\.){3}[0-9]{1,3}' // IP形式的URL- 3位数字.3位数字.3位数字.3位数字
            + '|' // 允许IP和DOMAIN（域名）
            + '(localhost)|'	//匹配localhost
            + '([\\w_!~*\'()-]+\\.)*' // 域名- 至少一个[英文或数字_!~*\'()-]加上.
            + '\\w+\\.' // 一级域名 -英文或数字  加上.
            + '[a-zA-Z]{1,6})' // 顶级域名- 1-6位英文
            + '(:[0-9]{1,5})?' // 端口- :80 ,1-5位数字
            + '((/?)|' // url无参数结尾 - 斜杆或这没有
            + '(/[\\w_!~*\'()\\.;?:@&=+$,%#-]+)+/?)$';//请求参数结尾- 英文或数字和[]内的各种字符
        var re = new RegExp(strRegex, 'i');//i不区分大小写
        //将url做uri转码后再匹配，解除请求参数中的中文和空字符影响
        if (re.test(encodeURI(url))) {
            return (true);
        } else {
            return (false);
        }
    }
    function closeDiv() {
        layer.close(layer1);
    }

    function isBlank(val) {
        if (val == null || val == '' || val == undefined) {
            return true;
        }
        return false;
    }
    function approvalRecord(){
        layer.open({
            title: '审批记录',
            type: 2,
            area: ['35%', '100%'],
            offset: 'rt',
            content: '${ctx}/customerEntry/approvalRecordPage?entryId=${customerEntry.id}'
        })
    }
</script>
</body>
</html>

