<%@ 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-tab-content1{
            margin: 0 0 0 20px;
        }

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

        .link-blue{ color: #1b6073; cursor: pointer;}

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

        .download-link:hover {
            color: #0056b3;
        }
        input[disabled]{
            color: white !important;
            background-color: rgb(188, 188, 188) !important;
        }
        .disabled-radio {
            background-color: transparent; !important; /* 设置背景颜色为透明 */
        }

        .layui-form-item .layui-input-inline {
            float: left;
            width: 300px;
            margin-right: 10px;
        }
    </style>
</head>
<script>
</script>
<body>
<div class="layui-fluid pd-10">
    <div class="order-win layui-form" id="LAY_app">
        <blockquote class="layui-elem-quote">项目信息</blockquote>
        <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.powerStationCode}
                </span>
            </div>
            <div class="layui-col-sm4 layui-col-md4">
                <label class="layui-form-label">电站名称：</label>
                <span class="form-span" >${stationName}</span>
            </div>
            <div class="layui-col-sm4 layui-col-md4">
                <label class="layui-form-label">产品编号：</label>
                <span class="form-span">
                    ${customerEntry.projectId}
                </span>
            </div>
            <div class="layui-col-sm4 layui-col-md4">
                <label class="layui-form-label">代理商：</label>
                <span class="form-span">${customerEntry.createTraderName}</span>
            </div>
            <div class="layui-col-sm4 layui-col-md4">
                <label class="layui-form-label">项目公司：</label>
                <span class="form-span"> ${customerEntry.projectCompanyName}</span>
            </div>
            <div class="layui-col-sm4 layui-col-md4">
                <label class="layui-form-label">电站状态：</label>
                <span class="form-span">
                    <c:choose>
                        <c:when test="${customerEntry.status eq '0'}">
                            <c:if test="${customerEntry.credit eq '0'}">暂存</c:if>
                            <c:if test="${customerEntry.credit eq '1'}">待预审</c:if>
                            <c:if test="${customerEntry.credit eq '2'}">预审待审批</c:if>
                            <c:if test="${customerEntry.credit eq '3'}">预审审批中</c:if>
                            <c:if test="${customerEntry.credit eq '4' && customerEntry.designAuditFlag eq '3'}">自审驳回</c:if>
                            <c:if test="${customerEntry.credit eq '4' && customerEntry.designAuditFlag eq 'a'}">待设计</c:if>
                            <c:if test="${customerEntry.credit eq '4' && customerEntry.designAuditFlag ne '3' && customerEntry.designAuditFlag ne 'a'}">待踏勘</c:if>
                            <c:if test="${customerEntry.credit eq '5'}">预审拒绝</c:if>
                        </c:when>
                        <c:when test="${customerEntry.status eq '1'}">
                            <c:if test="${customerEntry.designAuditFlag eq '1'}">待踏勘</c:if>
                            <c:if test="${customerEntry.designAuditFlag eq 'a'}">待设计</c:if>
                            <c:if test="${customerEntry.designAuditFlag eq '2'}">待自审</c:if>
                            <c:if test="${customerEntry.designAuditFlag eq '3'}">自审驳回</c:if>
                            <c:if test="${customerEntry.designAuditFlag eq '4'}">自审通过</c:if>
                            <c:if test="${customerEntry.designAuditFlag eq '5'}">设计审核驳回</c:if>
                            <c:if test="${customerEntry.designAuditFlag eq '6'}">设计审核通过</c:if>
                            <c:if test="${customerEntry.designAuditFlag eq '7'}">进件审核驳回</c:if>
                            <c:if test="${customerEntry.designAuditFlag eq '8'}">进件审核中</c:if>
                            <c:if test="${customerEntry.designAuditFlag eq '9'}">进件审核通过</c:if>
                        </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 '4'}">
                            <c:if test="${customerEntry.installFlag eq '1'}">待派工</c:if>
                            <c:if test="${customerEntry.installFlag eq '2'}">待安装</c:if>
                            <c:if test="${customerEntry.installFlag eq '3'}">自审驳回</c:if>
                            <c:if test="${customerEntry.installFlag eq '4'}">安装完成</c:if>
                        </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 'e'}">
                            待签署合同
                        </c:when>
                        <c:when test="${customerEntry.status eq 'w'}">
                            信息登记
                        </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 'h'}">
                            勘测设计自审
                        </c:when>
                        <c:when test="${customerEntry.status eq 'i'}">
                            安装自审
                        </c:when>
                        <c:otherwise>
                            --
                        </c:otherwise>
                    </c:choose>
                </span>
            </div>
            <div class="layui-col-sm4 layui-col-md4">
                <label class="layui-form-label">业务员：</label>
                <span class="form-span">${customerEntry.creator}</span>
            </div>
            <div class="layui-col-sm4 layui-col-md4">
                <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>
                <c:if test="${not empty 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">
                <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">
                                    ${customerEntry.province}${customerEntry.city}${customerEntry.area}${customerEntry.address}
                            </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="${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="${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-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.residenceBooklet}">
                                            <c:forEach var="quaim" items="${customerEntry.residenceBooklet.split(',')}" varStatus="vs">
                                                <div class="bj-img imgSpan">
                                                    <img src="${quaim}" height="700" width="1200"/>
                                                    <input type="hidden" class="residenceBooklet" value="${quaim}"/>
                                                </div>
                                            </c:forEach>
                                        </c:if>
                                        <div class="upload-container <c:if test="${not empty customerEntry.residenceBooklet}">hide</c:if>" >
                                            <img src="" alt="img placeholder" >
                                        </div>

                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="layui-row layui-col-space12 layui-form-item" 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="${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-xs12"></div>
                        <div class="layui-col-lg3 layui-col-sm3" 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="${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.tenantName}
                            </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-lg6 layui-col-sm6">
                            <label class="layui-form-label">开户行：</label>
                            <span class="form-span">
                                    ${customerEntry.bankName}
                            </span>
                        </div>
                    </div>
                </c:if>
                <c:if test="${not empty report.discloseDocImg}">
                    <div class="layui-col-lg4 layui-col-sm4">
                        <label class="layui-form-label">农户合同：</label>
                        <span class="form-span" style="color: blue;cursor: pointer"  onclick="previewUrl('${report.discloseDocImg}')">查看</span>
                    </div>
                </c:if>
            </div>
            <c:if test="${not empty customerEntry.designAuditFlag  && '0' ne customerEntry.designAuditFlag}">
                <div class="layui-tab-content layui-hide">
                    <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">${customerEntry.province}${customerEntry.city}${customerEntry.area}${customerEntry.address}</span>
                        </div>
                        <div class="layui-col-lg3 layui-col-sm3">
                            <label class="layui-form-label">是否封屋顶：</label>
                            <span class="form-span">${'1' eq surveyRecord.sealRoof ?'是':'否'}</span>
                        </div>

                        <div class="layui-col-sm3 layui-col-md3">
                            <label class="layui-form-label">方位角：</label>
                            <div class="form-span" style="display: flex">
                                <c:if test="${surveyRecord.azimuth eq '0'}">
                                    正南
                                </c:if>
                                <c:if test="${surveyRecord.azimuth eq '1'}">
                                    南偏西
                                </c:if>
                                <c:if test="${surveyRecord.azimuth eq '2'}">
                                    南偏东
                                </c:if>
                                <c:if test="${not empty sur.columns.zj_direc_degree}">
                                    <div style="flex: 1" >&nbsp;&nbsp;${sur.columns.zj_direc_degree}度</div>
                                </c:if>
                            </div>
                        </div>

                        <div class="layui-col-sm3 layui-col-md3">
                            <label class="layui-form-label">房屋建成年份：</label>
                            <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>
                        <div class="layui-col-sm3 layui-col-md3">
                            <label class="layui-form-label">经度：</label>
                            <span class="form-span">${sur.columns.longitude}</span>
                        </div>

                        <div class="layui-col-sm3 layui-col-md3">
                            <label class="layui-form-label">纬度：</label>
                            <span class="form-span">${sur.columns.latitude}</span>
                        </div>

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

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

                        <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>

                        <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>

                        <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>

                        <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>

                        <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>
                        <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;">
                                <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="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="${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>

                                <tr style="height: 100px">
                                    <td width="15%">${indexNum}、房屋周边照片（4个方位角）</td>
                                    <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="${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>
                                <tr style="height: 100px">
                                    <td width="15%">${indexNum}、踏勘记录表</td>
                                    <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="${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>
                                <tr style="height: 100px">
                                    <td width="15%">${indexNum}、房产证图片(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:choose>
                                                        <c:when test="${not empty surveyRecord.houseOwnership}">
                                                            <c:forEach items="${surveyRecord.houseOwnership}" var="file"
                                                                       varStatus="vs">
                                                                <div <c:if test="${vs.count eq 0}">style="margin-top: 5px"</c:if>>
                                                                    <a href="${file}" download="${file}"
                                                                       class="download-link">${fns:substringAfterLast(file, '/')}</a>
                                                                    <a onclick="previewUrl('${file}')"
                                                                       class="download-link">查看</a>
                                                                </div>
                                                            </c:forEach>
                                                        </c:when>
                                                    </c:choose>
                                                </div>
                                            </div>
                                        </div>
                                    </td>
                                    <c:set var="indexNum" value="${indexNum+1}"/>
                                </tr>
                            </table>
                        </div>
                    </div>
                </div>
            </c:if>

            <c:if test="${customerEntry.schemeType eq '2' || not empty customerEntry.schemeId}">
                <div class="layui-tab-content layui-hide">
                    <iframe class="page-iframe"
                            src="${ctx}/planManage/viewMatchedPlan?&readOnly=1&entryId=${customerEntry.id}"></iframe>
                </div>
            </c:if>
            <c:if test="${!fn:contains('0123wh', customerEntry.status)}">
                <div class="layui-tab-content layui-hide">
                    <div class="layui-tab layui-tab-brief">
                        <ul class="layui-tab-title">
                            <li class="layui-this" onclick="openFinish('1')">安装物料</li>
                            <li onclick="openFinish('2')">完工资料</li>
                        </ul>
                        <div style="display: flex;padding: 20px 0">
                            <div style="margin-left: 170px">物料安装状态：<input type="checkbox" name="materialFixFlag" title="安装已完成"
                                                                                lay-skin="primary" <c:if test="${customerEntry.materialFixFlag eq '1'}">checked</c:if> disabled/>
                            </div>
                            <div style="margin-left: 20px">实际安装容量(W)：${customerEntry.actualCapacity * 1000}</div>
                        </div>
                        <div class="layui-tab-content1 anzwl">
                            <div style="display: flex;">
                                <div style="width: 10%">
                                    <div class="layui-form-item" style="width: 10%; margin-bottom: 5px;">
                                        <button type="button" style="width: 80px;" class="layui-btn layui-btn-primary"
                                                onclick="changeMaterialTab(0)">组件
                                        </button>
                                    </div>
                                    <div class="layui-form-item" style="width: 10%; margin-bottom: 5px;">
                                        <button type="button" style="width: 80px;" class="layui-btn layui-btn-primary"
                                                onclick="changeMaterialTab(1)">逆变器
                                        </button>
                                    </div>
                                    <div class="layui-form-item" style="width: 10%; margin-bottom: 5px;">
                                        <button type="button" style="width: 80px;" class="layui-btn layui-btn-primary"
                                                onclick="changeMaterialTab(2)">其它
                                        </button>
                                    </div>
                                </div>
                                <div style="width: 90%;">
                                    <table class="layui-table materialTable" style="margin: 0 10px 0 0;">
                                        <thead>
                                        <tr>
                                            <th>序号</th>
                                            <th>物料代码</th>
                                            <th>物料名称</th>
                                            <th>物料规格</th>
                                            <th>品牌</th>
                                            <th>物料条码</th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        <c:forEach items="${zjList}" varStatus="vs" var="material">
                                            <tr>
                                                <td>${vs.count}</td>
                                                <td>${material.columns.code}</td>
                                                <td>${material.columns.name}</td>
                                                <td>${material.columns.spec}</td>
                                                <td>${material.columns.brand}</td>
                                                <td>${material.columns.barcode}</td>
                                            </tr>
                                        </c:forEach>
                                        </tbody>
                                    </table>
                                    <table class="layui-table materialTable layui-hide" style="margin: 0 10px 0 0;">
                                        <thead>
                                        <tr>
                                            <th>序号</th>
                                            <th>物料代码</th>
                                            <th>物料名称</th>
                                            <th>物料规格</th>
                                            <th>品牌</th>
                                            <th>物料条码</th>
                                            <th>SN码</th>
                                            <th>通讯棒SN码</th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        <c:forEach items="${nbqList}" varStatus="vs" var="material">
                                            <tr>
                                                <td>${vs.count}</td>
                                                <td>${material.columns.code}</td>
                                                <td>${material.columns.name}</td>
                                                <td>${material.columns.spec}</td>
                                                <td>${material.columns.brand}</td>
                                                <td>${material.columns.barcode}</td>
                                                <td>${material.columns.nbq_sn}</td>
                                                <td>${material.columns.sn}</td>
                                            </tr>
                                        </c:forEach>
                                        </tbody>
                                    </table>
                                    <table class="layui-table materialTable layui-hide" style="margin: 0 10px 0 0;">
                                        <thead>
                                        <tr>
                                            <th>序号</th>
                                            <th>物料代码</th>
                                            <th>物料名称</th>
                                            <th>物料规格</th>
                                            <th>物料型号</th>
                                            <th>品牌</th>
                                            <th>数量</th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        <c:forEach items="${otherList}" varStatus="vs" var="material">
                                            <tr>
                                                <td>${vs.count}</td>
                                                <td>${material.columns.code}</td>
                                                <td>${material.columns.name}</td>
                                                <td>${material.columns.spec}</td>
                                                <td>${material.columns.material_model}</td>
                                                <td>${material.columns.brand}</td>
                                                <td>${material.columns.amount}</td>
                                            </tr>
                                        </c:forEach>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                        <div class="layui-tab-content1 wgzl layui-hide">
                            <c:set var="indexNum" value="1"/>
                            <table class="layui-table" style="margin: 0 10px 0 0;">
                                <tr style="height: 100px">
                                    <td width="15%">${indexNum}、项目备案证</td>
                                    <td width="80%">
                                        <div class="layui-input-inline img-box" style="margin-left: 20px;">
                                            <div>
                                                <div>
                                                    <c:if test="${not empty report.otherFiles}">
                                                        <c:forEach items="${report.otherFiles}" var="file">
                                                            <div class="file-name" style="display: flex">
                                                                <a href="${file}" download="${file}" class="download-link" >${file.substring(file.lastIndexOf('/') + 1)}</a>
                                                                <a  target="_blank" onclick="previewUrl('${file}')"  class="download-link" >查看</a>
                                                            </div>
                                                        </c:forEach>
                                                    </c:if>
                                                </div>
                                            </div>
                                        </div>
<%--                                        <c:if test="${info3.columns.filing_document_code.status eq '1'}">--%>
<%--                                            <span>备案代码：${surveyRecord.filingDocumentCode}</span>--%>
<%--                                        </c:if>--%>
                                    </td>
                                    <c:set var="indexNum" value="${indexNum+1}"/>
                                </tr>
                                <tr style="height: 100px">
                                    <td width="15%">${indexNum}、农户合同</td>
                                    <td width="80%">
                                        <div class="layui-input-inline img-box" style="margin-left: 20px;">
                                            <div>
                                                <div>
                                                    <c:if test="${not empty report.discloseDocImg}">
                                                        <c:forEach items="${report.discloseDocImg}" var="file" varStatus="vs">
                                                            <div class="file-name" style="display: flex">
                                                                <a href="${file}" download="${file}" class="download-link" >${file.substring(file.lastIndexOf('/') + 1)}</a>
                                                                <a  target="_blank" onclick="previewUrl('${file}')"  class="download-link" >查看</a>
                                                            </div>
                                                        </c:forEach>
                                                    </c:if>
                                                </div>
                                            </div>
                                        </div>
                                    </td>
                                    <c:set var="indexNum" value="${indexNum+1}"/>
                                </tr>
                                <tr style="height: 100px">
                                    <td width="15%">${indexNum}、工程安装一切险</td>
                                    <td width="80%">
                                        <div class="layui-input-inline img-box" style="margin-left: 20px;">
                                            <div>
                                                <div>
                                                    <c:if test="${not empty customerEntry.insuranceFiles}">
                                                        <c:forEach items="${customerEntry.insuranceFiles}" var="file" varStatus="vs">
                                                            <div class="file-name" style="display: flex">
                                                                <a href="${file}" download="${file}" class="download-link" >${file.substring(file.lastIndexOf('/') + 1)}</a>
                                                                <a  target="_blank" onclick="previewUrl('${file}')"  class="download-link" >查看</a>
                                                            </div>
                                                        </c:forEach>
                                                    </c:if>
                                                </div>
                                            </div>
                                        </div>
                                    </td>
                                    <c:set var="indexNum" value="${indexNum+1}"/>
                                </tr>
                                <tr style="height: 100px">
                                    <td width="15%">${indexNum}、组件铭牌照片</td>
                                    <td width="80%">
                                        <div class="layui-input-block img-box" style="margin-left: 20px;">
                                            <div>
                                                <div>
                                                    <c:if test="${not empty report.zjPlateImg}">
                                                        <c:forEach items="${report.zjPlateImg}" var="img">
                                                            <div class="bj-img imgSpan array">
                                                                <img src="${img}" height="700" width="1200"/>
                                                            </div>
                                                        </c:forEach>
                                                    </c:if>
                                                    <c:if test="${empty report.zjPlateImg}">
                                                        <div class="bj-img imgSpan">
                                                            <i class="blank-img"></i>
                                                        </div>
                                                    </c:if>
                                                </div>
                                            </div>
                                        </div>
                                    </td>
                                    <c:set var="indexNum" value="${indexNum+1}"/>
                                </tr>
                                <tr style="height: 100px">
                                    <td width="15%">${indexNum}、组件航拍俯视图</td>
                                    <td width="80%">
                                        <div class="layui-input-block img-box" style="margin-left: 20px;">
                                            <div>
                                                <div>
                                                    <c:if test="${not empty report.zjImg5}">
                                                        <c:forEach items="${report.zjImg5}" var="img">
                                                            <div class="bj-img imgSpan array">
                                                                <img src="${img}" height="700" width="1200"/>
                                                            </div>
                                                        </c:forEach>
                                                    </c:if>
                                                    <c:if test="${empty report.zjImg5}">
                                                        <div class="bj-img imgSpan">
                                                            <i class="blank-img"></i>
                                                        </div>
                                                    </c:if>
                                                </div>
                                            </div>
                                        </div>
                                    </td>
                                    <c:set var="indexNum" value="${indexNum+1}"/>
                                </tr>
                                <tr style="height: 100px">
                                    <td width="15%">${indexNum}、逆变器安装图-整体外观及走线及采集器（离地高度）</td>
                                    <td width="80%">
                                        <div class="layui-input-block img-box" style="margin-left: 20px;">
                                            <div>
                                                <div>
                                                    <c:if test="${not empty report.dcImgs}">
                                                        <c:forEach items="${report.dcImgs}" var="img">
                                                            <div class="bj-img imgSpan array">
                                                                <img src="${img}" height="700" width="1200"/>
                                                            </div>
                                                        </c:forEach>
                                                    </c:if>
                                                    <c:if test="${empty report.dcImgs}">
                                                        <div class="bj-img imgSpan">
                                                            <i class="blank-img"></i>
                                                        </div>
                                                    </c:if>
                                                </div>
                                            </div>
                                        </div>
                                    </td>
                                    <c:set var="indexNum" value="${indexNum+1}"/>
                                </tr>
                                <tr style="height: 100px">
                                    <td width="15%">${indexNum}、逆变器安装图-铭牌</td>
                                    <td width="80%">
                                        <div class="layui-input-block img-box" style="margin-left: 20px;">
                                            <div>
                                                <div>
                                                    <c:if test="${not empty report.nbqPlateImg}">
                                                        <c:forEach items="${report.nbqPlateImg}" var="img">
                                                            <div class="bj-img imgSpan array">
                                                                <img src="${img}" height="700" width="1200"/>
                                                            </div>
                                                        </c:forEach>
                                                    </c:if>
                                                    <c:if test="${empty report.nbqPlateImg}">
                                                        <div class="bj-img imgSpan">
                                                            <i class="blank-img"></i>
                                                        </div>
                                                    </c:if>
                                                </div>
                                            </div>
                                        </div>
                                    </td>
                                    <c:set var="indexNum" value="${indexNum+1}"/>
                                </tr>
                                <tr style="height: 100px">
                                    <td width="15%">${indexNum}、并网箱安装图-外观及走线（离地高度）</td>
                                    <td width="80%">
                                        <div class="layui-input-block img-box" style="margin-left: 20px;">
                                            <div>
                                                <div>
                                                    <c:if test="${not empty report.nbqZbImg}">
                                                        <c:forEach items="${report.nbqZbImg}" var="img">
                                                            <div class="bj-img imgSpan array">
                                                                <img src="${img}" height="700" width="1200"/>
                                                            </div>
                                                        </c:forEach>
                                                    </c:if>
                                                    <c:if test="${empty report.nbqZbImg}">
                                                        <div class="bj-img imgSpan">
                                                            <i class="blank-img"></i>
                                                        </div>
                                                    </c:if>
                                                </div>
                                            </div>
                                        </div>
                                    </td>
                                    <c:set var="indexNum" value="${indexNum+1}"/>
                                </tr>
                                <tr style="height: 100px">
                                    <td width="15%">${indexNum}、并网箱安装图-并网箱内部全景</td>
                                    <td width="80%">
                                        <div class="layui-input-block img-box" style="margin-left: 20px;">
                                            <div>
                                                <div>
                                                    <c:if test="${not empty report.bwInnerImg}">
                                                        <c:forEach items="${report.bwInnerImg}" var="img">
                                                            <div class="bj-img imgSpan array">
                                                                <img src="${img}" height="700" width="1200"/>
                                                            </div>
                                                        </c:forEach>
                                                    </c:if>
                                                    <c:if test="${empty report.bwInnerImg}">
                                                        <div class="bj-img imgSpan">
                                                            <i class="blank-img"></i>
                                                        </div>
                                                    </c:if>
                                                </div>
                                            </div>
                                        </div>
                                    </td>
                                    <c:set var="indexNum" value="${indexNum+1}"/>
                                </tr>
                                <tr style="height: 100px">
                                    <td width="15%">${indexNum}、支架类</td>
                                    <td width="80%">
                                        <div class="layui-input-block img-box" style="margin-left: 20px;">
                                            <div>
                                                <div>
                                                    <c:if test="${not empty report.zjImg1}">
                                                        <c:forEach items="${report.zjImg1}" var="img">
                                                            <div class="bj-img imgSpan array">
                                                                <img src="${NHFileUrl}${img}" height="700" width="1200"/>
                                                            </div>
                                                        </c:forEach>
                                                    </c:if>
                                                    <c:if test="${empty report.zjImg1}">
                                                        <div class="bj-img imgSpan">
                                                            <i class="blank-img"></i>
                                                        </div>
                                                    </c:if>
                                                </div>
                                            </div>
                                        </div>
                                    </td>
                                    <c:set var="indexNum" value="${indexNum+1}"/>
                                </tr>
                                <tr style="height: 100px">
                                    <td width="15%">${indexNum}、线缆走向（屋顶、下墙）、线缆保护管（或桥架）敷设及固定照片</td>
                                    <td width="80%">
                                        <div class="layui-input-block img-box" style="margin-left: 20px;">
                                            <div>
                                                <div>
                                                    <c:if test="${not empty report.sizeMeasureImgs}">
                                                        <c:forEach items="${report.sizeMeasureImgs}" var="img">
                                                            <div class="bj-img imgSpan array">
                                                                <img src="${img}" height="700" width="1200"/>
                                                            </div>
                                                        </c:forEach>
                                                    </c:if>
                                                    <c:if test="${empty report.sizeMeasureImgs}">
                                                        <div class="bj-img imgSpan">
                                                            <i class="blank-img"></i>
                                                        </div>
                                                    </c:if>
                                                </div>
                                            </div>
                                        </div>
                                    </td>
                                    <c:set var="indexNum" value="${indexNum+1}"/>
                                </tr>
                                <tr style="height: 100px">
                                    <td width="15%">${indexNum}、接地极图-并网箱、逆变器安装接地极</td>
                                    <td width="80%">
                                        <div class="layui-input-block img-box" style="margin-left: 20px;">
                                            <div>
                                                <div>
                                                    <c:if test="${not empty report.componentImg3}">
                                                        <c:forEach items="${report.componentImg3}" var="img">
                                                            <div class="bj-img imgSpan array">
                                                                <img src="${img}" height="700" width="1200"/>
                                                            </div>
                                                        </c:forEach>
                                                    </c:if>
                                                    <c:if test="${empty report.componentImg3}">
                                                        <div class="bj-img imgSpan">
                                                            <i class="blank-img"></i>
                                                        </div>
                                                    </c:if>
                                                </div>
                                            </div>
                                        </div>
                                    </td>
                                    <c:set var="indexNum" value="${indexNum+1}"/>
                                </tr>
                                <tr style="height: 100px">
                                    <td width="15%">${indexNum}、接地极图-接地电阻阻值</td>
                                    <td width="80%">
                                        <div class="layui-input-block img-box" style="margin-left: 20px;">
                                            <div>
                                                <div>
                                                    <c:if test="${not empty report.jdImg6}">
                                                        <c:forEach items="${report.jdImg6}" var="img">
                                                            <div class="bj-img imgSpan array">
                                                                <img src="${img}" height="700" width="1200"/>
                                                            </div>
                                                        </c:forEach>
                                                    </c:if>
                                                    <c:if test="${empty report.jdImg6}">
                                                        <div class="bj-img imgSpan">
                                                            <i class="blank-img"></i>
                                                        </div>
                                                    </c:if>
                                                </div>
                                            </div>
                                        </div>
                                    </td>
                                    <c:set var="indexNum" value="${indexNum+1}"/>
                                </tr>
                                <tr style="height: 100px">
                                    <td width="15%">${indexNum}、防水措施图-其他图片</td>
                                    <td width="80%">
                                        <div class="layui-input-block img-box" style="margin-left: 20px;">
                                            <div>
                                                <div>
                                                    <c:if test="${not empty report.zjImg2}">
                                                        <c:forEach items="${report.zjImg2}" var="img">
                                                            <div class="bj-img imgSpan array">
                                                                <img src="${img}" height="700" width="1200"/>
                                                            </div>
                                                        </c:forEach>
                                                    </c:if>
                                                    <c:if test="${empty report.zjImg2}">
                                                        <div class="bj-img imgSpan">
                                                            <i class="blank-img"></i>
                                                        </div>
                                                    </c:if>
                                                </div>
                                            </div>
                                        </div>
                                    </td>
                                    <c:set var="indexNum" value="${indexNum+1}"/>
                                </tr>
                                <c:if test="${info3.columns.other_files.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>
                                                    <c:choose>
                                                        <c:when test="${not empty report.otherFiles}">
                                                            <c:forEach items="${report.otherFiles}" var="file">
                                                                <div class="file-name" style="display: flex">
                                                                    <a href="${commonStaticImgPath}${file}" download="${file}" class="download-link" >${file.substring(file.lastIndexOf('/') + 1)}</a>
                                                                    <a  target="_blank" 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>
                            </table>
                        </div>
                    </div>
                </div>
            </c:if>
            <div class="layui-tab-content 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>
                        <div class="layui-col-sm4 layui-col-md4">
                            <label class="layui-form-label" style="width: 140px">保险单号：</label>
                            <span class="form-span">${customerEntry.insuranceNumber}</span>
                        </div>
<%--                        <c:if test="${info4.columns.province_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">${powerCompany}</span>--%>
<%--                            </div>--%>
<%--                        </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>
                    <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>
                    <div class="layui-col-lg4 layui-col-sm4">
                        <label class="layui-form-label" style="width: 200px">三天发电量截图：</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="${report.powerCapacityUrl}" height="700" width="1200"/>
                                                <input type="hidden" value="${report.powerCapacityUrl}"/>
                                            </div>
                                        </c:if>
                                    </div>
                                </div>
                            </c:if>
                        </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">
                            <c:if test="${not empty report}">
                                <div>
                                    <div>
                                        <c:if test="${not empty report.dbImgs}">
                                            <c:forEach items="${report.dbImgs}" var="img">
                                                <div class="bj-img imgSpan array">
                                                    <img src="${img}" height="700" width="1200"/>
                                                </div>
                                            </c:forEach>
                                        </c:if>
                                    </div>
                                    <div class="upload-container <c:if test="${not empty report.dbImgs}">hide</c:if>">
                                        <img src="" alt="img placeholder">
                                    </div>
                                    <div style="width: 85px; text-align: center;">电表照片</div>
                                </div>
                            </c:if>
                        </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">
                            <c:if test="${not empty report}">
                                <div>
                                    <div>
                                        <c:if test="${not empty report.safetyWarningImg}">
                                            <c:forEach items="${report.safetyWarningImg}" var="img">
                                                <div class="bj-img imgSpan array">
                                                    <img src="${img}" height="700" width="1200"/>
                                                </div>
                                            </c:forEach>
                                        </c:if>
                                    </div>
                                </div>
                            </c:if>
                        </div>
                    </div>
                </div>
                <c:if test="${info4.columns.address_consistent.status eq '1'}">
                    <div>
                        <div class="layui-col-lg3 layui-col-sm3" style="margin-top: 10px">
                            <label class="layui-form-label" style="width: 140px;">购售电地址是否一致：</label>
                            <div style="padding: 9px 0">
                                <input type="checkbox"  lay-skin="primary" name="addressConsistent" value="Y" title="是" <c:if test="${customerEntry.addressConsistent eq 'Y'}">checked</c:if> disabled/>
                                <input type="checkbox"   lay-skin="primary" name="addressConsistent" value="N" title="否" <c:if test="${customerEntry.addressConsistent eq 'N'}">checked</c:if> disabled />
                            </div>
                        </div>
                        <div class="layui-col-lg6 layui-col-sm6">
                            <label class="layui-form-label" style="width: 290px">购售电地址：</label>
                            <span class="form-span">
                        <c:if test="${customerEntry.addressConsistent eq 'Y'}">
                            ${customerEntry.province}${customerEntry.city}${customerEntry.area}${customerEntry.street}${customerEntry.address}
                        </c:if>
                        <c:if test="${customerEntry.addressConsistent eq 'N'}">
                            ${customerEntry.electricProvince}${customerEntry.electricCity}${customerEntry.electricArea}${customerEntry.electricAddress}
                        </c:if>
                    </span>
                        </div>
                    </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 report.fixConclusion}"> <a class="h-32 lh-32 layui-span-unit lookBtn" target="_blank" href="${report.fixConclusion}" style="color: #2890ac;">下载</a></c:if>--%>
                        <c:if test="${not empty report.fixConclusion}"> <a class="h-32 lh-32 ml-10 layui-span-unit lookBtn" target="_blank" onclick="previewUrl('${report.fixConclusion}')"  style="color: #2890ac;">查看</a></c:if>
                    </div>
                </div>
<%--                <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">--%>
<%--                        <div style="padding: 7px 0;"> <input type="checkbox" name="materialMergeFlag" title="并网已完成"--%>
<%--                                                             lay-skin="primary" <c:if test="${customerEntry.materialMergeFlag eq '1'}">checked</c:if> disabled/></div>--%>
<%--                    </div>--%>
<%--                </div>--%>
            </div>
        </div>
    </div>
</div>
<div class="layui-form-item text-c operate-footer">
    <c:if test="${opt eq 'inDoc'}">
        <button type="button" class="layui-btn" id="refuseInDoc">退回</button>
        <button type="button" class="layui-btn" id="inDoc">归档</button>
    </c:if>
    <button class="layui-btn layui-btn-primary" onclick="closeSelf()">取消</button>
</div>
<div class="hide pd-10" id="ideaDiv">
    <p class="msg-title">确认退回？</p>
    <p class="f-l"><span class="red">*</span>退回原因：</p>
    <textarea id="idea" class="idea-text f-l"></textarea>
</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'));
    layui.config({
        base: '${ctxPlugin}/lib/layuiAdmin/dist/layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'element', 'tableExt', 'jquery', 'layer', 'laypage', 'laydate', 'form'], function () {
        //layui.use(['table','layer','laypage','laydate','form'], function(){
        $ = layui.$;
        tableExt = layui.tableExt;
        layer = layui.layer;
        laypage = layui.laypage;
        laydate = layui.laydate;
        form = layui.form;
        table = tableExt.getLayTable();
        var element = layui.element;


        if('${basic.leaseType}'=='2' && ('${user.userType}'=='6' || '${user.userType}'=='7')){
            $(".jingyingzulin").hide();
        }

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

        var refuseFlag = true;
        $('#refuseInDoc').click(function(){
            if(!refuseFlag){
                return;
            }
            layer.open({
                type:1,
                title:'退回',
                area:['450px','280px'],
                content:$("#ideaDiv"),
                btn: ['确认', '取消'],
                btnAlign: 'c',
                yes: function(){
                    var idea = $('#idea').val();
                    if(isBlank(idea)){
                        layer.msg('请输入退回原因', {icon: 2});
                        return;
                    }
                    refuseFlag = false;
                    $.ajax({
                        type: 'post',
                        url: '${ctx}/customerEntry/refuseInDoc',
                        dataType: 'json',
                        data: {
                            id: '${customerEntry.id}',
                            reason: idea
                        },
                        success: function(data){
                            if (data.code == '200') {
                                parent.layer.msg('操作成功', {icon: 1});
                                closeSelf();
                                parent.searchOrder();
                            } else if (data.code == '501') {
                                layer.msg(data.errMsg, {icon: 2});
                            } else {
                                layer.msg('操作失败', {icon: 2});
                            }
                        },
                        complete: function(){
                            refuseFlag = true;
                        }
                    });
                }
            })
        });

        $('#inDoc').click(function(){
            parent.layer.confirm('确认归档？', {icon: 3}, function(){
                $.ajax({
                    type: 'post',
                    url: '${ctx}/customerEntry/sureInDoc',
                    data: {id: '${customerEntry.id}'},
                    success: function(data){
                        if(data.code == '200'){
                            parent.layer.msg('操作成功', {icon: 1});
                            closeSelf();
                            parent.searchOrder();
                        }else {
                            layer.msg('操作失败', {icon: 2});
                        }
                    }
                });
            });
        });

        /*$('.imgSpan img').on('click', function () {
            layer.photos({
                photos: '.imgSpan',
                shadeClose: false,
                closeBtn: 2,
                anim: 0
            });
        });*/

    })


    function searchOrder() {
        //执行重载
        table.reload('test', {
            where: function () {
                return _serializeJson($("#searchForm"));
            }
        });
    }
    function openFinish(type){
        if(type =='1'){
            $('.anzwl').removeClass('layui-hide')
            $('.wgzl').addClass('layui-hide')
        }else{
            $('.anzwl').addClass('layui-hide')
            $('.wgzl').removeClass('layui-hide')
        }
    }
    function changeMaterialTab(type) {
        $('.materialTable').eq(type).removeClass('layui-hide').siblings('.materialTable').addClass('layui-hide');
    }
    function viewContract(id){
        var index= layer.load(2, {shade: [0.5,'#fff'], content:''});
        $.ajax({
            type: 'post',
            url: '${ctx}/main/yueXiuContract/getContractUrlToLook',
            data: {
                entryId: id
            },
            success: function (data) {
                if ('200' == data.code) {
                    let url = data.data.url;
                    console.log(url);
                    window.open('${commonStaticImgPath}'+url);
                } else {
                    layer.msg(data.errMsg, {icon: 2});
                }
            },
            complete: function () {
                layer.close(index);
            }
        });
    }
    function viewContract2(url){
        <%--var index= layer.load(2, {shade: [0.5,'#fff'], content:''});--%>
        <%--$.ajax({--%>
        <%--    type: 'post',--%>
        <%--    url: '${ctx}/main/HuaRongContract/getContractUrl',--%>
        <%--    data: {--%>
        <%--        entryId: id--%>
        <%--    },--%>
        <%--    success: function (data) {--%>
        <%--        if ('200' == data.code) {--%>
        <%--            let url = data.data.url;--%>
        <%--            console.log(url);--%>
                    window.open(url);
        //         } else {
        //             layer.msg(data.errMsg, {icon: 2});
        //         }
        //     },
        //     complete: function () {
        //         layer.close(index);
        //     }
        // });
    }

    function viewContractDetail(id,type) {
        var index= layer.load(2, {shade: [0.5,'#fff'], content:''});
        $.ajax({
            type: 'post',
            url: '${ctx}/main/yueXiuContract/getContractUrlForPC',
            data: {
                entryId: id,
                type: type
            },
            success: function (data) {
                if ('200' == data.code) {
                    let url = data.data.contractUrl;
                    layer.alert(url);
                } else {
                    layer.msg(data.errMsg, {icon: 2});
                }
            },
            complete: function () {
                layer.close(index);
            }
        });
    }

    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}'
        })
    }

    window.closeSelf = function () {
        var index = parent.layer.getFrameIndex(window.name);
        // window.parent.location.reload();//刷新父级页面
        parent.layer.close(index);//关闭当前页
    }
    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 isBlank(val) {
        if (val == null || val == '' || val == undefined) {
            return true;
        }
        return false;
    }
</script>
</body>
</html>

