<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<!DOCTYPE HTML>
<html>
<head>
    <meta name="decorator" content="base"/>
    <link rel="stylesheet" href="${ctxPlugin}/lib/layuiAdmin/dist/layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="${ctxPlugin}/lib/layuiAdmin/dist/layuiadmin/style/admin.css" media="all">
    <link rel="stylesheet" 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: inline-block;
            padding: 8px 0;
        }

        .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-item .layui-input-inline {
            float: left;
            width: 300px;
            margin-right: 10px;
        }

        .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;
        }
       /* .bj-img {
            margin-right: 0px;
        }*/
        .blank-img {
            background: url('${ctxPlugin}/static/imgs/blankImg.png') center center no-repeat;
            width: 80px;
            height: 80px;
            display: inline-block;
        }

        input[type="radio"]:disabled, textarea:disabled, .layui-disabled {
            background-color: #ffffff;
        }

        .layui-select-title .layui-disabled{
            background-color: #eee !important;
        }

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

        .download-link:hover {
            color: #0056b3;
        }
    </style>
</head>
<body>
<div class="layui-form">
    <div class="layui-card">
        <button class="layui-btn" style="margin-left: 92.5%;" onclick="approvalRecord()">审批记录</button>
        <div class="layui-card-body layui-col-xs12" id="LAY_app">
            <div class="layui-card">
                <blockquote class="layui-elem-quote">项目信息</blockquote>
                <div class="layui-card-body">
                    <div class="layui-row layui-col-space12 layui-form-item">
                        <div class="layui-col-lg3 layui-col-sm3">
                            <label class="layui-form-label"><i class="mark">*</i>产品编号：</label>
                            <div class="layui-input-block">
                                <input type="text" id="projectCode" disabled class="layui-input " value="${entry.projectCode}"
                                       disabled>
                            </div>
                        </div>
                        <div class="layui-col-lg3 layui-col-sm3">
                            <label class="layui-form-label"><i class="mark">*</i>产品名称：</label>
                            <div class="layui-input-block">
                                <select name="projectId" id="projectId" lay-filter="projectId" disabled>
                                    <option value="">请选择</option>
                                    <c:forEach items="${project}" var="ject">
                                        <option value="${ject.columns.id}" title="${ject.columns.code}" <c:if
                                                test="${ject.columns.id eq entry.projectId}"> selected</c:if>
                                                >${ject.columns.name}</option>
                                    </c:forEach>
                                </select>
                            </div>
                        </div>
                        <div class="layui-col-lg3 layui-col-sm3">
                            <label class="layui-form-label"><i class="mark">*</i>代理商：</label>
                            <div class="layui-input-block">
                                <input type="text" disabled class="layui-input " value="${entry.traderName}">
                            </div>
                        </div>
                        <div class="layui-col-lg3 layui-col-sm3">
                            <label class="layui-form-label"><i class="mark">*</i>项目公司：</label>
                            <div class="layui-input-block">
                                <input type="text" disabled class="layui-input " value="${entry.projectCompanyName}">
                            </div>
                        </div>
                    </div>
                    <div class="layui-row layui-col-space12 layui-form-item">
                        <div class="layui-col-lg3 layui-col-sm3">
                            <label class="layui-form-label"><i class="mark">*</i>电站状态：</label>
                            <div class="layui-input-block">
                                <input type="text" disabled class="layui-input"
                                <c:choose>
                                <c:when test="${entry.status eq '0'}">
                                       <c:if test="${entry.credit eq '0'}">value="暂存"</c:if>
                                       <c:if test="${entry.credit eq '1'}">value="待预审"</c:if>
                                       <c:if test="${entry.credit eq '2'}">value="预审待审批"</c:if>
                                       <c:if test="${entry.credit eq '3'}">value="预审审批中"</c:if>
                                       <c:if test="${entry.credit eq '4' && entry.designAuditFlag eq '3'}">value="自审驳回"</c:if>
                                       <c:if test="${entry.credit eq '4' && entry.designAuditFlag eq 'a'}">value="待设计"</c:if>
                                       <c:if test="${entry.credit eq '4' && entry.designAuditFlag ne '3' && entry.designAuditFlag ne 'a'}">value="待踏勘"</c:if>
                                       <c:if test="${entry.credit eq '5'}">value="预审拒绝"</c:if>
                                </c:when>
                                <c:when test="${entry.status eq '1'}">
                                       <c:if test="${entry.designAuditFlag eq '1'}">value="待踏勘"</c:if>
                                       <c:if test="${entry.designAuditFlag eq 'a'}">value="待设计"</c:if>
                                       <c:if test="${entry.designAuditFlag eq '2'}">value="待自审"</c:if>
                                       <c:if test="${entry.designAuditFlag eq '3'}">value="自审驳回"</c:if>
                                       <c:if test="${entry.designAuditFlag eq '4'}">value="自审通过"</c:if>
                                       <c:if test="${entry.designAuditFlag eq '5'}">value="设计审核驳回"</c:if>
                                       <c:if test="${entry.designAuditFlag eq '6'}">value="设计审核通过"</c:if>
                                       <c:if test="${entry.designAuditFlag eq '7'}">value="进件审核驳回"</c:if>
                                       <c:if test="${entry.designAuditFlag eq '8'}">value="进件审核中"</c:if>
                                       <c:if test="${entry.designAuditFlag eq '9'}">value="进件审核通过"</c:if>
                                </c:when>
                                <c:when test="${entry.status eq '2'}">
                                       value="审核驳回"
                                </c:when>
                                </c:choose>
                                >
                            </div>
                        </div>
                        <div class="layui-col-lg3 layui-col-sm3">
                            <label class="layui-form-label"><i class="mark">*</i>备案类型：</label>
                            <div class="layui-input-block">
                                <input type="text" id="filingType" disabled class="layui-input"
                                <c:choose>
                                    <c:when test="${entry.filingType eq '1'}">
                                           value="农户备案"
                                    </c:when>
                                    <c:when test="${entry.filingType eq '2'}">
                                           value="项目公司备案"
                                    </c:when>
                                </c:choose>>
                            </div>
                        </div>
                        <div class="layui-col-lg3 layui-col-sm3">
                            <label class="layui-form-label"><i class="mark">*</i>保险购买情况：</label>
                            <div class="layui-input-block">
                                <input type="text" id="insuranceFlag" name="insuranceFlag" disabled class="layui-input"
                                       <c:if test="${entry.insuranceFlag eq '1'}">value="控制投放及续保"</c:if>
                                       <c:if test="${entry.insuranceFlag eq '2'}">value="控制投放"</c:if>
                                       <c:if test="${entry.insuranceFlag eq '3'}">value="其他"</c:if>>
                            </div>
                        </div>
                        <div class="layui-col-lg3 layui-col-sm3">
                            <label class="layui-form-label"><i class="mark">*</i>预计投放日：</label>
                            <div class="layui-input-block">
                                <input type="text" disabled class="layui-input " value="<fmt:formatDate value="${entry.leaseDate}" pattern="yyyy-MM-dd"/>">
                            </div>
                        </div>
                    </div>
                    <div class="layui-row layui-col-space12 layui-form-item">
                        <div class="layui-col-lg3 layui-col-sm3">
                            <label class="layui-form-label"><i class="mark">*</i>业务员：</label>
                            <div class="layui-input-block">
                                <input type="text" disabled class="layui-input " value="${entry.creator}">
                            </div>
                        </div>
                        <div class="layui-col-lg3 layui-col-sm3">
                            <label class="layui-form-label"><i class="mark">*</i>创建时间：</label>
                            <div class="layui-input-block">
                                <input type="text" disabled class="layui-input " value="<fmt:formatDate value="${entry.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/>">
                            </div>
                        </div>

                        <div class="layui-col-sm3 layui-col-md3">
                            <label class="layui-form-label">电站名称：</label>
                            <div class="layui-input-block">
                                <input type="text" disabled class="layui-input " value="${stationName}">
                            </div>
                        </div>

                    </div>

                </div>
            </div>
            <div class="layui-card jibenxinxi ">
                <blockquote class="layui-elem-quote">业主信息</blockquote>
                <div class="layui-card-body ">
                    <%--个人--%>
                    <c:if test="${empty entry.tenantType || ('1' eq entry.tenantType)}">
                        <div class="layui-row layui-col-space12 layui-form-item">

                            <c:if test="${info.columns.tenant_name.status eq '1'}">
                                <div class="layui-col-lg3 layui-col-sm3">
                                    <label class="layui-form-label"><i class="mark">*</i>业主姓名：</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="tenantName" class="layui-input" disabled value="${entry.tenantName}">
                                    </div>
                                </div>
                            </c:if>

                            <c:if test="${info.columns.gender.status eq '1'}">
                                <div class="layui-col-lg3 layui-col-sm3">
                                    <label class="layui-form-label"><i class="mark">*</i>性别：</label>
                                    <div class="layui-input-block">
                                        <input type="radio" name="gender" disabled title="男"
                                               value="MALE" ${entry.gender eq 'MALE' ? 'checked' : ''}/>
                                        <input type="radio" name="gender" disabled title="女"
                                               value="FEMALE" ${entry.gender eq 'FEMALE' ? 'checked' : ''}/>
                                    </div>
                                </div>
                            </c:if>

                            <c:if test="${info.columns.age.status eq '1'}">
                                <div class="layui-col-lg3 layui-col-sm3">
                                    <div>
                                        <label class="layui-form-label"><i class="mark">*</i>年龄：</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="age" id="age" class="layui-input" value="${entry.age}" disabled>
                                        </div>
                                    </div>
                                </div>
                            </c:if>

                            <c:if test="${info.columns.mobile.status eq '1'}">
                                <div class="layui-col-lg3 layui-col-sm3" style="position:relative;">
                                    <div>
                                        <label class="layui-form-label"><i class="mark">*</i>联系电话：</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="mobile"
                                                   disabled class="layui-input" value="${entry.mobile}">
                                        </div>
                                    </div>
                                </div>
                            </c:if>

                            <c:if test="${info.columns.id_code.status eq '1'}">
                                <div class="layui-col-lg3 layui-col-sm3">
                                    <label class="layui-form-label"><i class="mark">*</i>身份证号：</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="idCode" disabled class="layui-input" value="${entry.idCode}">
                                    </div>
                                </div>
                            </c:if>
                        <c:if test="${entry.tenantType eq '1'}">
                            <c:if test="${info.columns.birthday_date.status eq '1'}">
                                <div class="layui-col-lg3 layui-col-sm3">
                                    <label class="layui-form-label">出生日期：</label>
                                    <div class="layui-input-block">
                                        <input type="text" id="birthdayDate" name="birthdayDate" disabled class="layui-input" value="<fmt:formatDate value="${entry.birthdayDate}" pattern="yyyy-MM-dd"/>">
                                    </div>
                                </div>
                            </c:if>

                            <c:if test="${info.columns.ic_validity_begin.status eq '1'}">
                                <div class="layui-col-lg3 layui-col-sm3">
                                    <label class="layui-form-label">身份证生效日：</label>
                                    <div class="layui-input-block">
                                        <input type="text" id="icValidityBegin" name="icValidityBegin" disabled class="layui-input" value="<fmt:formatDate value="${entry.icValidityBegin}" pattern="yyyy-MM-dd"/>">
                                    </div>
                                </div>
                            </c:if>

                            <c:if test="${info.columns.ic_validity_end.status eq '1'}">
                                <div class="layui-col-lg3 layui-col-sm3">
                                    <label class="layui-form-label">身份证到期日：</label>
                                    <div class="layui-input-block">
                                        <input type="text" id="icValidityEnd" name="icValidityEnd" disabled class="layui-input" value="<fmt:formatDate value="${entry.icValidityEnd}" pattern="yyyy-MM-dd"/>">
                                    </div>
                                </div>
                            </c:if>
                        </c:if>

                            <div class="layui-row layui-col-space12 layui-form-item">
                                <c:if test="${info.columns.id_card_front.status eq '1'}">
                                    <div class="layui-col-lg4 layui-col-sm4">
                                        <label class="layui-form-label"><i class="mark">*</i>身份证：</label>
                                        <div class="layui-input-block img-box">
                                            <div>
                                                <div id="imgsDiv1">
                                                    <c:if test="${not empty entry.idCardFront}">
                                                        <div class="bj-img imgSpan">
                                                                <%--<span class="layui-icon-close layui-icon" onclick="delImg(this,'uploader1')"></span>--%>
                                                            <img src="${commonStaticImgPath}${entry.idCardFront}" height="700" width="1200"/>
                                                            <input type="hidden" class="idCardFront" value="${entry.idCardFront}"/>
                                                        </div>
                                                    </c:if>
                                                </div>
                                                <div class="upload-container <c:if test="${not empty entry.idCardFront}">hide</c:if>" id="uploader1">
                                                    <img src="" alt="img placeholder" id="imgsAdd1">
                                                </div>
                                                <div style="width: 80px; text-align: center; color: #FF0000">正面</div>
                                            </div>
                                            <div>
                                                <div id="imgsDiv2">
                                                    <c:if test="${not empty entry.idCardBack}">
                                                        <div class="bj-img imgSpan">
                                                                <%--<span class="layui-icon-close layui-icon" onclick="delImg(this,'uploader2')"></span>--%>
                                                            <img src="${commonStaticImgPath}${entry.idCardBack}" height="700" width="1200"/>
                                                            <input type="hidden" class="idCardBack" value="${entry.idCardBack}"/>
                                                        </div>
                                                    </c:if>
                                                </div>
                                                <div class="upload-container <c:if test="${not empty entry.idCardBack}">hide</c:if>" id="uploader2">
                                                    <img src="" alt="img placeholder" id="imgsAdd2">
                                                </div>
                                                <div style="width: 80px; text-align: center; color: #FF0000">反面</div>
                                            </div>
                                        </div>
                                    </div>
                                </c:if>

                                <c:if test="${info.columns.residence_booklet.status eq '1'}">
                                    <div class="layui-col-lg4 layui-col-sm4">
                                        <label class="layui-form-label w-120"><c:if test="${info.columns.residence_booklet.mustFillFlag eq '1'}"><i class="mark">*</i></c:if>户口本复印件：</label>
                                        <div class="layui-input-block img-box ml-120">
                                            <div>
                                                <div id="imgsDiv3">
                                                    <c:if test="${not empty entry.residenceBooklet}">
                                                        <c:forEach var="quaim" items="${entry.residenceBooklet.split(',')}" varStatus="vs">
                                                            <div class="bj-img imgSpan">
                                                                <img src="${commonStaticImgPath}${quaim}" height="700" width="1200"/>
                                                                <input type="hidden" class="residenceBooklet" value="${quaim}"/>
                                                            </div>
                                                        </c:forEach>
                                                    </c:if>
                                                </div>
                                                   <div class="upload-container <c:if test="${not empty entry.residenceBooklet}">hide</c:if>" id="uploader3">
                                                    <img src="" alt="img placeholder" id="imgsAdd3">
                                                </div>

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

                            </div>
                            <div class="layui-row layui-col-space12 layui-form-item">
                                <div class="layui-col-lg11 layui-col-sm11">
                                    <label class="layui-form-label">房产证明：</label>
                                    <div class="layui-input-block img-box">
                                        <div>
                                            <div>
                                                <c:if test="${not empty surveyRecord.houseOwnership}">
                                                    <c:forEach items="${surveyRecord.houseOwnership}" var="img">
                                                        <div class="bj-img imgSpan">
                                                            <img src="${commonStaticImgPath}${img}" height="700" width="1200"/>
                                                        </div>
                                                    </c:forEach>
                                                </c:if>
                                            </div>
                                            <div class="upload-container <c:if test="${not empty surveyRecord.houseOwnership}">hide</c:if>" id="uploader5">
                                                <img src="" alt="img placeholder" id="imgsAdd5">
                                            </div>
                                        </div>

                                        </div>
                                    </div>
                                </div>
                            <c:if test="${ not empty  entry.exigenceName}">
                                <c:if test="${info.columns.exigence_name.status eq '1'}">
                                    <div class="layui-col-lg3 layui-col-sm3">
                                        <label class="layui-form-label"><c:if test="${info.columns.exigence_name.mustFillFlag eq '1'}"><i class="mark">*</i></c:if>紧急联系人：</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="tenantName" class="layui-input" disabled value="${entry.exigenceName}">
                                        </div>
                                    </div>
                                </c:if>
                                <c:if test="${info.columns.exigence_phone.status eq '1'}">
                                    <div class="layui-col-lg3 layui-col-sm3">
                                        <label class="layui-form-label"><c:if test="${info.columns.exigence_phone.mustFillFlag eq '1'}"><i class="mark">*</i></c:if>联系方式：</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="tenantName" class="layui-input" disabled value="${entry.exigencePhone}">
                                        </div>
                                    </div>
                                </c:if>
                            </c:if>

                            <c:if test="${info.columns.bank_card.status eq '1'}">
                                <div class="layui-col-lg11 layui-col-sm11">
                                    <label class="layui-form-label"><c:if test="${info.columns.bank_card.mustFillFlag eq '1'}"><i class="mark">*</i></c:if>银行卡照片：</label>
                                    <div class="layui-input-block img-box">
                                        <div>
                                            <div id="imgsDiv4">
                                                <c:if test="${not empty entry.bankCard}">
                                                    <div class="bj-img imgSpan">
                                                        <img src="${commonStaticImgPath}${entry.bankCard}" height="700" width="1200"/>
                                                        <input type="hidden" class="bankCard" value="${entry.bankCard}"/>
                                                    </div>
                                                    <div class="upload-container <c:if test="${not empty entry.bankCard}">hide</c:if>" id="uploader4">
                                                        <img src="" alt="img placeholder" id="imgsAdd4">
                                                    </div>
                                                </c:if>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </c:if>



                            <c:if test="${info.columns.bank_name.status eq '1'}">
                                <div class="layui-col-lg3 layui-col-sm3">
                                    <label class="layui-form-label"><c:if test="${info.columns.bank_name.mustFillFlag eq '1'}"><i class="mark">*</i></c:if>银行账户名：</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="bankName" id="bankName" disabled class="layui-input" value="${entry.bankName}">
                                    </div>
                                </div>
                            </c:if>

                            <c:if test="${info.columns.bank_code.status eq '1'}">
                                <div class="layui-col-lg3 layui-col-sm3">
                                    <label class="layui-form-label"><c:if test="${info.columns.bank_code.mustFillFlag eq '1'}"><i class="mark">*</i></c:if>银行账户：</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="bankCode" id="bankCode" disabled class="layui-input" value="${entry.bankCode}">
                                    </div>
                                </div>
                            </c:if>

                            <c:if test="${info.columns.tss_bank_num_name.status eq '1'}">
                                <div class="layui-col-xs12"></div>
                                <div class="layui-col-lg6 layui-col-sm6">
                                    <label class="layui-form-label"><c:if test="${info.columns.tss_bank_num_name.mustFillFlag eq '1'}"><i class="mark">*</i></c:if>开户行：</label>
                                    <div class="layui-input-block">
                                        <select name="tssBankNum" id="tssBankNum" lay-verify="required" disabled>
                                            <option value="${entry.tssBankNum}" selected>${entry.tssBankNumName}</option>
                                        </select>
                                    </div>
                                </div>
                            </c:if>


                            <div class="layui-row layui-col-space12 layui-form-item">
                                <div class="layui-col-lg3 layui-col-sm3">
                                    <label class="layui-form-label">划转方式：</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="repaymentMethod" id="repaymentMethod" disabled class="layui-input"
                                               <c:if test="${surveyRecord.repaymentMethod eq '1'}">value="二类卡"</c:if>
                                               <c:if test="${surveyRecord.repaymentMethod eq '2'}">value="光E宝"</c:if>
                                               <c:if test="${surveyRecord.repaymentMethod eq '0'}">value="其他"</c:if>
                                               lay-data="${surveyRecord.repaymentMethod}" >
                                    </div>
                                </div>
                                <c:if test="${surveyRecord.repaymentMethod ne '0'}">
                                    <div class="layui-col-lg3 layui-col-sm3">
                                        <label class="layui-form-label">账号名称：</label>
                                        <div class="layui-input-block">
                                            <input type="text" disabled class="layui-input" value="${card.name}">
                                        </div>
                                    </div>
                                    <c:if test="${surveyRecord.repaymentMethod ne '0'}">
                                    <div class="layui-col-lg3 layui-col-sm3">
                                        <label class="layui-form-label">二类卡号：</label>
                                        <div class="layui-input-block">
                                            <input type="text" disabled class="layui-input" value="${card.accountCode}">
                                        </div>
                                    </div>
                                    </c:if>
                                    <div class="layui-col-lg3 layui-col-sm3">
                                        <label class="layui-form-label">联行号：</label>
                                        <div class="layui-input-block">
                                            <input type="text" disabled class="layui-input" value="${card.openBankNumber}">
                                        </div>
                                    </div>
                                </c:if>
                            </div>
                            <div class="layui-col-lg3 layui-col-sm3">
                                <label class="layui-form-label">信息授权书：</label>
                                <div class="layui-input-block pos-r view-attachment">
                                    <c:if test="${not empty authorizationUrl && ('1' eq entry.tenantType)}">
                                        <a class="h-32 lh-32 layui-span-unit lookBtn" target="_blank" href="${commonStaticImgPath}${authorizationUrl}" style="color: #2890ac;">下载</a>
                                        <a class="h-32 lh-32 ml-10 layui-span-unit lookBtn" onclick="previewUrl('${commonStaticImgPath}${authorizationUrl}')"target="_blank"  style="color: #2890ac;">查看</a>
                                    </c:if>
                                </div>
                            </div>
                        </div>
                    </c:if>
                    <%--单位--%>
                    <c:if test="${entry.tenantType eq '2'}">

                        <c:if test="${info.columns.tenant_name.status eq '1'}">
                            <div class="layui-col-lg3 layui-col-sm3">
                                <label class="layui-form-label"><i class="mark">*</i>单位名称：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="tenantNameAnother" disabled class="layui-input" value="${entry.tenantName}">
                                </div>
                            </div>
                        </c:if>
                        <c:if test="${info.columns.regno.status eq '1'}">
                            <div class="layui-col-lg3 layui-col-sm3">
                                <label class="layui-form-label"><i class="mark">*</i>信用代码：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="regno" id="regno" disabled class="layui-input layui-bg-gray" value="${entry.regno}">
                                </div>
                            </div>
                        </c:if>
                        <c:if test="${info.columns.mobile.status eq '1'}">
                            <div class="layui-col-lg3 layui-col-sm3" style="position:relative;">
                                <div>
                                    <label class="layui-form-label"><i class="mark">*</i>联系方式：</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="mobileAnother" disabled class="layui-input layui-bg-gray"  value="${entry.mobile}">
                                    </div>
                                </div>
                            </div>
                        </c:if>
                        <c:if test="${info.columns.corp.status eq '1'}">
                            <div class="layui-col-lg3 layui-col-sm3" style="position:relative;">
                                <div>
                                    <label class="layui-form-label"><i class="mark">*</i>负责人姓名：</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="corp" id="corp" disabled class="layui-input"  value="${entry.corp}">
                                    </div>
                                </div>
                            </div>
                        </c:if>
                        <c:if test="${info.columns.id_code.status eq '1'}">
                            <div class="layui-col-lg3 layui-col-sm3">
                                <label class="layui-form-label"><i class="mark">*</i>身份证号：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="idCodeAnother" disabled class="layui-input" value="${entry.idCode}">
                                </div>
                            </div>
                        </c:if>

                        <div class="layui-row layui-col-space12 layui-form-item">
                            <c:if test="${info.columns.id_card_front.status eq '1'}">
                                <div class="layui-col-lg4 layui-col-sm4">
                                    <label class="layui-form-label w-120"><i class="mark">*</i>负责人身份证：</label>
                                    <div class="layui-input-block img-box ml-120">
                                        <div>
                                            <div id="imgsDiv33">
                                                <c:if test="${not empty entry.idCardFront}">
                                                    <div class="bj-img imgSpan">
                                                            <%--  <span class="layui-icon-close layui-icon" onclick="delImg(this,'uploader33')"></span>--%>
                                                        <img src="${commonStaticImgPath}${entry.idCardFront}" height="700" width="1200"/>
                                                        <input type="hidden" class="idCardFrontAnother" value="${entry.idCardFront}"/>
                                                    </div>
                                                </c:if>
                                            </div>
                                            <div class="upload-container <c:if test="${not empty entry.idCardFront}">hide</c:if>" id="uploader33">
                                                <img src="" alt="img placeholder" id="imgsAdd33">
                                            </div>
                                            <div style="width: 80px; text-align: center; color: #FF0000">正面</div>
                                        </div>
                                        <div>
                                            <div id="imgsDiv34">
                                                <c:if test="${not empty entry.idCardBack}">
                                                    <div class="bj-img imgSpan">
                                                            <%--  <span class="layui-icon-close layui-icon" onclick="delImg(this,'uploader34')"></span>--%>
                                                        <img src="${commonStaticImgPath}${entry.idCardBack}" height="700" width="1200"/>
                                                        <input type="hidden" class="idCardBackAnother" value="${entry.idCardBack}"/>
                                                    </div>
                                                </c:if>
                                            </div>
                                            <div class="upload-container <c:if test="${not empty entry.idCardBack}">hide</c:if>" id="uploader34">
                                                <img src="" alt="img placeholder" id="imgsAdd34">
                                            </div>
                                            <div style="width: 80px; text-align: center; color: #FF0000">反面</div>
                                        </div>
                                    </div>
                                </div>
                            </c:if>

                            <c:if test="${info.columns.regno_url.status eq '1'}">
                                <div class="layui-col-lg4 layui-col-sm4">
                                    <label class="layui-form-label"><i class="mark">*</i>营业执照：</label>
                                    <div class="layui-input-block img-box">
                                        <div>
                                            <div>
                                                <div id="imgsDiv35">
                                                    <c:if test="${not empty tenant and not empty tenant.regnoUrl}">
                                                        <div class="bj-img imgSpan">
                                                                <%--<span class="layui-icon-close layui-icon" onclick="delImg(this,'uploader35')"></span>--%>
                                                            <img src="${commonStaticImgPath}${tenant.regnoUrl}" height="700" width="1200"/>
                                                            <input type="hidden" class="regnoUrl" value="${tenant.regnoUrl}"/>
                                                        </div>
                                                    </c:if>
                                                </div>
                                                <div class="upload-container <c:if test="${not empty tenant and not empty tenant.regnoUrl}">hide</c:if>" id="uploader35">
                                                    <img src="" alt="img placeholder" id="imgsAdd35">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </c:if>
                        </div>

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


            <c:if test="${entry.age >= 65}">
                <div class="layui-card">
                    <blockquote class="layui-elem-quote">补充信息</blockquote>
                    <div class="layui-card-body ">
                        <div class="layui-row layui-col-space12 layui-form-item">
                            <div class="layui-col-lg3 layui-col-sm3">
                                <label class="layui-form-label"><i class="mark">*</i>共签人名称：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="bpName" id="bpName" disabled lay-verify="required" class="layui-input " value="${entry.bpName}" >
                                </div>
                            </div>
                            <div class="layui-col-lg3 layui-col-sm3">
                                <label class="layui-form-label"><i class="mark">*</i>证件号码：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="bpIdCard" id="bpIdCard" disabled lay-verify="required" class="layui-input " value="${entry.bpIdCard}" >
                                </div>
                            </div>
                            <div class="layui-col-lg3 layui-col-sm3">
                                <label class="layui-form-label"><i class="mark">*</i>手机号：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="bpMobile" id="bpMobile" disabled lay-verify="required" class="layui-input " value="${entry.bpMobile}" >
                                </div>
                            </div>

                            <div class="layui-col-lg4 layui-col-sm4">
                                <label class="layui-form-label"><i class="mark">*</i>身份证：</label>
                                <div class="layui-input-block img-box">
                                    <div>
                                        <div id="imgsDiv30">
                                            <c:if test="${not empty entry.bpCardFront}">
                                                <div class="bj-img imgSpan">
                                                    <%--<span class="layui-icon-close layui-icon" onclick="delImg(this,'uploader30')"></span>--%>
                                                    <img src="${commonStaticImgPath}${entry.bpCardFront}" height="700" width="1200"/>
                                                    <input type="hidden" class="bpCardFront" value="${entry.bpCardFront}"/>
                                                </div>
                                            </c:if>
                                        </div>
                                       <div class="upload-container <c:if test="${not empty entry.bpCardFront}">hide</c:if>" id="uploader30">
                                            <img src="" alt="img placeholder" id="imgsAdd30">
                                        </div>
                                        <div style="width: 80px; text-align: center; color: #FF0000">正面</div>
                                    </div>
                                    <div>
                                        <div id="imgsDiv31">
                                            <c:if test="${not empty entry.bpCardBack}">
                                                <div class="bj-img imgSpan">
                                                    <%--<span class="layui-icon-close layui-icon" onclick="delImg(this,'uploader31')"></span>--%>
                                                    <img src="${commonStaticImgPath}${entry.bpCardBack}" height="700" width="1200"/>
                                                    <input type="hidden" class="bpCardBack" value="${entry.bpCardBack}"/>
                                                </div>
                                            </c:if>
                                        </div>
                                      <div class="upload-container <c:if test="${not empty entry.bpCardBack}">hide</c:if>" id="uploader31">
                                            <img src="" alt="img placeholder" id="imgsAdd31">
                                        </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"><i class="mark">*</i>子女证明材料：</label>
                                <div class="layui-input-block img-box ml-120">
                                    <div>
                                        <div id="imgsDiv32">

                                            <c:if test="${not empty entry.bpFile}">
                                                <c:forEach var="quaim" items="${entry.bpFile.split(',')}" varStatus="vs">
                                                    <div class="bj-img imgSpan">
                                                            <%--                          <span class="layui-icon-close layui-icon" onclick="delImg(this,'uploader32')"></span>--%>
                                                        <img src="${commonStaticImgPath}${quaim}" height="700" width="1200"/>
                                                        <input type="hidden" class="bpFile" value="${quaim}"/>
                                                    </div>
                                                </c:forEach>
                                            </c:if>
                                      <%--      <c:if test="${not empty entry.bpFile}">
                                                <div class="bj-img imgSpan">
                                                    &lt;%&ndash;<span class="layui-icon-close layui-icon" onclick="delImg(this,'uploader32')"></span>&ndash;%&gt;
                                                    <img src="${commonStaticImgPath}${entry.bpFile}" height="700" width="1200"/>
                                                    <input type="hidden" class="bpFile" value="${entry.bpFile}"/>
                                                </div>
                                            </c:if>--%>
                                        </div>
                                       <div class="upload-container <c:if test="${not empty entry.bpFile}">hide</c:if>" id="uploader32">
                                            <img src="" alt="img placeholder" id="imgsAdd32">
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

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

            <div class="layui-card jibenxinxi ">
                <blockquote class="layui-elem-quote">勘测信息</blockquote>
                <div class="layui-card-body ">
                    <c:if test="${info2.columns.box_group_set.status eq '1'}">
                        <div class="layui-row layui-col-space12 layui-form-item">
                            <div class="layui-col-lg12 layui-col-sm12">
                                <label class="layui-form-label"><i class="mark">*</i>并网方式：</label>
                                <div class="layui-input-block">

                                    <input type="radio" name="mergeType" title="单户并网" lay-filter="mergeTypeFilter" disabled value="0" <c:if test="${empty recordBox || '0' eq recordBox.columns.type}">checked</c:if>/>
                                    <input type="radio" name="mergeType" title="一户多站" lay-filter="mergeTypeFilter" disabled value="1" <c:if test="${'1' eq recordBox.columns.type}">checked</c:if>/>
                                    <input type="radio" name="mergeType" title="整村汇流" lay-filter="mergeTypeFilter" disabled value="2" <c:if test="${'2' eq recordBox.columns.type}">checked</c:if>/>
                                </div>
                            </div>

                            <div id="boxDiv" class="<c:if test="${empty recordBox || '0' eq recordBox.columns.type}">hide</c:if>">
                                <div class="layui-col-lg3 layui-col-sm3">
                                    <label class="layui-form-label">本组电站个数：</label>
                                    <div class="layui-input-block">
                                        <input type="text" id="boxTotalCount" class="layui-input layui-bg-gray" disabled value="${recordBox.columns.total_count}">
                                    </div>
                                </div>

                                <div class="layui-col-lg3 layui-col-sm3">
                                    <label class="layui-form-label">汇流组编号：</label>
                                    <div class="layui-input-block">
                                        <input type="text" id="groupNumber" class="layui-input layui-bg-gray" disabled value="${recordBox.columns.group_number}">
                                        <input hidden id="boxGroupId" value="${recordBox.columns.box_group_id}">
                                    </div>
                                </div>

                                <div class="layui-col-lg3 layui-col-sm3">
                                    <label class="layui-form-label">汇流组名称：</label>
                                    <div class="layui-input-block">
                                        <input type="text" id="groupName" class="layui-input layui-bg-gray" disabled value="${recordBox.columns.group_name}">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <hr>
                    </c:if>

                    <div class="layui-row layui-col-space12 layui-form-item">
                        <c:if test="${info.columns.pca_address.status eq '1'}">
                            <div class="layui-col-lg9 layui-col-sm9">
                                <label class="layui-form-label"><i class="mark">*</i>安装地址：</label>
                                <div class="layui-input-block">
                                    <c:choose>
                                        <c:when test="${entry.province eq entry.city}">
                                            <input type="text" class="layui-input" value="${entry.province}${entry.area}${entry.address}" disabled>
                                        </c:when>
                                        <c:otherwise>
                                            <input type="text" class="layui-input" value="${entry.province}${entry.city}${entry.area}${entry.address}" disabled>
                                        </c:otherwise>
                                    </c:choose>
                                </div>
                            </div>
                            <div class="layui-col-lg3 layui-col-sm3">
                                <label class="layui-form-label">风压：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="windPressure" id="windPressure"  value="${entry.windPressure}" disabled
                                           autocomplete="off" class="layui-input ">
                                    <span class="pos-a h-32 lh-32 layui-span-unit">kN/㎡</span>
                                </div>
                            </div>
                            <div class="layui-col-lg3 layui-col-sm3">
                                <label class="layui-form-label">雪压：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="snowPressure" id="snowPressure" value="${entry.snowPressure}"  disabled
                                           autocomplete="off" class="layui-input ">
                                    <span class="pos-a h-32 lh-32 layui-span-unit">kN/㎡</span>
                                </div>
                            </div>
                            <div class="layui-col-lg3 layui-col-sm3">
                                <label class="layui-form-label">风雪压等级：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="pressureLevel" id="pressureLevel" value="${entry.pressureLevel}"  disabled
                                           autocomplete="off" class="layui-input ">
                                </div>
                            </div>
                        </c:if>

                        <c:if test="${info2.columns.roof_type.status eq '1'}">
                            <div class="layui-col-lg3 layui-col-sm3">
                                <label class="layui-form-label"><i class="mark">*</i>屋顶类型：</label>
                                <div class="layui-input-block">
                                    <input type="text" class="layui-input" value="${surveyRecord.roofType}" disabled>
                                </div>
                            </div>
                        </c:if>

                        <c:if test="${info2.columns.seal_roof.status eq '1'}">
                            <div class="layui-col-lg3 layui-col-sm3">
                                <label class="layui-form-label"><c:if test="${info2.columns.seal_roof.mustFillFlag eq '1'}"><i class="mark">*</i></c:if>是否封屋顶：</label>
                                <div class="layui-input-block">
                                    <input type="text" class="layui-input" value="${'1' eq surveyRecord.sealRoof ?'是':'否'}" disabled>
                                </div>
                            </div>
                        </c:if>

                        <c:if test="${info2.columns.angle_azimuth.status eq '1'}">
                            <div class="layui-col-lg3 layui-col-sm3 rfType" data-value="angle_azimuth" style="position:relative;">
                                <div class="layui-inline">
                                    <label class="layui-form-label"><i class="mark">*</i>方位角：</label>
                                    <div class="layui-inline" style="width: 100px;">
                                        <select name="azimuth" id="azimuth" lay-verify="required" disabled>
                                            <c:forEach items="${angleAzimuthList}" var="angleAzimuth" >
                                                <option value="${angleAzimuth.columns.dict_key}" <c:if test="${surveyRecord.azimuth eq angleAzimuth.columns.dict_key}">selected</c:if>>${angleAzimuth.columns.dict_value}</option>
                                            </c:forEach>
                                        </select>
                                    </div>
<%--                                    <c:if test="${entry.partnerId ne '03'}">--%>
                                        <div class="layui-inline" style="width: 90px">
                                            <input type="text" name="angle" class="layui-input" maxlength="2" oninput="value=value.replace(/[^\d]/g,'')" value="${surveyRecord.angle}" disabled/>
                                            <span class="pos-a h-32 lh-32 layui-span-unit">度</span>
                                        </div>
<%--                                    </c:if>--%>
                                </div>
                            </div>
                        </c:if>

                        <c:if test="${info2.columns.completion_year.status eq '1' || info2.columns.completion_year_03.status eq '1'}">
                            <div class="layui-col-lg3 layui-col-sm3 rfType" data-value="completion_year">
                                <label class="layui-form-label w-120">
                                    <c:choose>
                                        <c:when test="${info2.columns.completion_year.status eq '1'}">
                                            房屋建成年份：
                                        </c:when>
                                        <c:when test="${info2.columns.completion_year_03.status eq '1'}">
                                            建筑年限：
                                        </c:when>
                                    </c:choose>
                                </label>
                                <div class="layui-input-block ml-120">
                                    <input type="text" name="completionYear" id="completionYear"  class="layui-input " value="${surveyRecord.completionYear}" disabled>
                                </div>
                            </div>
                        </c:if>

                        <c:if test="${info2.columns.building_height.status eq '1'}">
                            <div class="layui-col-lg3 layui-col-sm3 rfType" data-value="building_height">
                                <label class="layui-form-label"><i class="mark">*</i>建筑高度：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="buildingHeight" id="buildingHeight"  class="layui-input" value="${surveyRecord.buildingHeight}" disabled/>
                                    <span class="pos-a h-32 lh-32 layui-span-unit">米</span>
                                </div>
                            </div>
                        </c:if>


                        <c:if test="${surveyRecord.roofType eq '斜屋顶'}">
                            <c:if test="${info2.columns.slope_gradient.status eq '1'}">
                                <div class="layui-col-lg3 layui-col-sm3">
                                    <label class="layui-form-label"><i class="mark">*</i>屋面坡度：</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="slopeGradient" id="slopeGradient"  class="layui-input" value="${surveyRecord.slopeGradient}" disabled>
                                        <span class="pos-a h-32 lh-32 layui-span-unit">度</span>
                                    </div>
                                </div>
                            </c:if>

                            <c:if test="${info2.columns.purline_interval.status eq '1'}">
                                <div class="layui-col-lg3 layui-col-sm3">
                                    <label class="layui-form-label"><i class="mark">*</i>檩条间距：</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="purlineInterval" id="purlineInterval"  class="layui-input" value="${surveyRecord.purlineInterval}" disabled>
                                        <span class="pos-a h-32 lh-32 layui-span-unit">米</span>
                                    </div>
                                </div>
                            </c:if>
                        </c:if>

                        <c:if test="${info2.columns.waterproof.status eq '1'}">
                            <div class="layui-col-lg3 layui-col-sm3">
                                <label class="layui-form-label w-120"><c:if test="${info2.columns.waterproof.mustFillFlag eq '1'}"><i class="mark">*</i></c:if>屋顶防水情况：</label>
                                <div class="layui-input-block ml-120">
                                    <input type="text" class="layui-input" value="${'1' eq surveyRecord.waterproof ?'一般':'良好'}" disabled>
                                </div>
                            </div>
                        </c:if>

                        <c:if test="${info2.columns.source_pollution.status eq '1'}">
                            <div class="layui-col-lg3 layui-col-sm3">
                                <label class="layui-form-label w-120"><c:if test="${info2.columns.source_pollution.mustFillFlag eq '1'}"><i class="mark">*</i></c:if>是否有污染源：</label>
                                <div class="layui-input-block ml-120">
                                    <input type="text" name="sourcePollution" id="sourcePollution" class="layui-input" value="${'1' eq surveyRecord.sourcePollution ?'有':'没有'}" disabled>
                                </div>
                            </div>
                        </c:if>

                        <c:if test="${info2.columns.ops_condition.status eq '1'}">
                            <div class="layui-col-lg3 layui-col-sm3">
                                <label class="layui-form-label" style="width: 140px"><c:if test="${info2.columns.ops_condition.mustFillFlag eq '1'}"><i class="mark">*</i></c:if>是否具备运维空间：</label>
                                <div class="layui-input-block" style="margin-left: 140px">
                                    <input type="text" name="opsCondition" id="opsCondition" class="layui-input" value="${'1' eq surveyRecord.opsCondition ?'具备':'不具备'}" disabled>
                                </div>
                            </div>
                        </c:if>
                        <c:if test="${info2.columns.voltage_classes.status eq '1'}">
                            <div class="layui-col-lg3 layui-col-sm3">
                                <label class="layui-form-label w-120"><c:if test="${info2.columns.voltage_classes.mustFillFlag eq '1'}"><i class="mark">*</i></c:if>并网电压等级：</label>
                                <div class="layui-input-block ml-120">
                                    <input type="text" name="voltageClasses" id="voltageClasses" disabled  class="layui-input" value="<fmt:formatNumber value="${surveyRecord.voltageClasses}"></fmt:formatNumber>">
                                    <span class="pos-a h-32 lh-32 layui-span-unit">V</span>
                                </div>
                            </div>
                        </c:if>
                        <c:if test="${info2.columns.transformer_capacity.status eq '1'}">
                            <div class="layui-col-lg3 layui-col-sm3">
                                <label class="layui-form-label"><c:if test="${info2.columns.transformer_capacity.mustFillFlag eq '1'}"><i class="mark">*</i></c:if>变压器容量：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="transformerCapacity" id="transformerCapacity" disabled  class="layui-input" value="${surveyRecord.transformerCapacity}">
                                    <span class="pos-a h-32 lh-32 layui-span-unit">kVA</span>
                                </div>
                            </div>
                        </c:if>
                        <c:if test="${info2.columns.restrict_flag.status eq '1'}">
                            <div class="layui-col-lg3 layui-col-sm3">
                                <label class="layui-form-label" style="width: 210px"><c:if test="${info2.columns.restrict_flag.mustFillFlag eq '1'}"><i class="mark">*</i></c:if>是否符合变压器容量限制要求：</label>
                                <div class="layui-input-block" style="margin-left: 210px">
                                    <input type="text" name="restrictFlag" id="restrictFlag" disabled  class="layui-input" value="${'1' eq surveyRecord.restrictFlag?'符合':'不符合'}">
                                </div>
                            </div>
                        </c:if>
                        <c:if test="${info2.columns.distance.status eq '1'}">
                            <div class="layui-col-lg3 layui-col-sm3">
                                <label class="layui-form-label"><c:if test="${info2.columns.distance.mustFillFlag eq '1'}"><i class="mark">*</i></c:if>并网距离：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="distance" id="distance" placeholder=""
                                           autocomplete="off" class="layui-input " value="${surveyRecord.distance}" disabled>
                                    <span class="pos-a h-32 lh-32 layui-span-unit">米</span>
                                </div>
                            </div>
                        </c:if>
                        <c:if test="${info2.columns.dip_angle.status eq '1' || info2.columns.dip_angle_03.status eq '1'}">
                            <div class="layui-col-lg3 layui-col-sm3 rfType" data-value="dip_angle">
                                <label class="layui-form-label"><c:if test="${info2.columns.dip_angle.mustFillFlag eq '1' || info2.columns.dip_angle_03.mustFillFlag eq '1'}"><i class="mark">*</i></c:if>
                                    <c:choose>
                                        <c:when test="${info2.columns.dip_angle.status eq '1'}">
                                            组件倾角：
                                        </c:when>
                                        <c:when test="${info2.columns.dip_angle_03.status eq '1'}">
                                            倾角：
                                        </c:when>
                                    </c:choose>
                                </label>
                                <div class="layui-input-block">
                                    <input type="text" name="dipAngle" id="dipAngle" disabled class="layui-input" value="${surveyRecord.dipAngle}">
                                    <span class="pos-a h-32 lh-32 layui-span-unit">度</span>
                                </div>
                            </div>
                        </c:if>
                        <c:if test="${info2.columns.ew_length.status eq '1'}">
                            <div class="layui-col-lg3 layui-col-sm3 rfType" data-value="ew_length">
                                <label class="layui-form-label"><c:if test="${info2.columns.ew_length.mustFillFlag eq '1'}"><i class="mark">*</i></c:if>东西长：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="ewLength" id="ewLength"  class="layui-input" value="${surveyRecord.ewLength}" oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')" disabled>
                                    <span class="pos-a h-32 lh-32 layui-span-unit">米</span>
                                </div>
                            </div>
                        </c:if>
                        <c:if test="${info2.columns.ns_wide.status eq '1'}">
                            <div class="layui-col-lg3 layui-col-sm3 rfType" data-value="ns_wide">
                                <label class="layui-form-label"><c:if test="${info2.columns.ns_wide.mustFillFlag eq '1'}"><i class="mark">*</i></c:if>南北宽：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="nsWide" id="nsWide"  class="layui-input" value="${surveyRecord.nsWide}" oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')" disabled>
                                    <span class="pos-a h-32 lh-32 layui-span-unit">米</span>
                                </div>
                            </div>
                        </c:if>
                        <c:if test="${info2.columns.roof_area.status eq '1'}">
                            <div class="layui-col-lg3 layui-col-sm3 rfType" data-value="roof_area">
                                <label class="layui-form-label"><c:if test="${info2.columns.roof_area.mustFillFlag eq '1'}"><i class="mark">*</i></c:if>屋顶面积：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="roofArea" id="roofArea"  class="layui-input" value="${surveyRecord.roofArea}" oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')" disabled>
                                    <span class="pos-a h-32 lh-32 layui-span-unit">㎡</span>
                                </div>
                            </div>
                        </c:if>

                        <c:if test="${info2.columns.roof_face_thickness.status eq '1'}">
                            <div class="layui-col-lg3 layui-col-sm3 rfType" data-value="roof_face_thickness">
                                <label class="layui-form-label">屋面板厚度：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="roofFaceThickness" id="roofFaceThickness"  class="layui-input" value="${surveyRecord.roofFaceThickness}" disabled>
                                    <span class="pos-a h-32 lh-32 layui-span-unit">mm</span>
                                </div>
                            </div>
                        </c:if>

                        <c:if test="${info2.columns.structure_type.status eq '1'}">
                            <div class="layui-col-lg3 layui-col-sm3 rfType" data-value="structure_type">
                                <label class="layui-form-label">结构类型：</label>
                                <div class="layui-input-block">
                                    <select name="structureType" id="structureType" disabled>
                                        <option value="">请选择</option>
                                        <option value="框架结构" ${surveyRecord.structureType eq '框架结构' ? 'selected' : ''}>框架结构</option>
                                        <option value="砖木结构" ${surveyRecord.structureType eq '砖木结构' ? 'selected' : ''}>砖木结构</option>
                                        <option value="砖混结构" ${surveyRecord.structureType eq '砖混结构' ? 'selected' : ''}>砖混结构</option>
                                        <option value="框剪结构" ${surveyRecord.structureType eq '框剪结构' ? 'selected' : ''}>框剪结构</option>
                                        <option value="其它" ${surveyRecord.structureType eq '其它' ? 'selected' : ''}>其它</option>
                                    </select>
                                </div>
                            </div>
                        </c:if>

                        <c:if test="${info2.columns.site_slope.status eq '1'}">
                            <div class="layui-col-lg3 layui-col-sm3 rfType" data-value="site_slope">
                                <label class="layui-form-label">场地坡度：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="siteSlope" id="siteSlope"  class="layui-input" value="${surveyRecord.siteSlope}" disabled>
                                </div>
                            </div>
                        </c:if>

                        <c:if test="${info2.columns.ground_type.status eq '1'}">
                            <div class="layui-col-lg3 layui-col-sm3 rfType" data-value="ground_type">
                                <label class="layui-form-label">地面类型：</label>
                                <div class="layui-input-block">
                                    <select name="groundType" id="groundType" disabled>
                                        <option value="">请选择</option>
                                        <option value="水泥硬化" ${surveyRecord.groundType eq '水泥硬化' ? 'selected' : ''}>水泥硬化</option>
                                        <option value="砂石" ${surveyRecord.groundType eq '砂石' ? 'selected' : ''}>砂石</option>
                                        <option value="土壤" ${surveyRecord.groundType eq '土壤' ? 'selected' : ''}>土壤</option>
                                        <option value="其它" ${surveyRecord.groundType eq '其它' ? 'selected' : ''}>其它</option>
                                    </select>
                                </div>
                            </div>
                        </c:if>
                        <c:if test="${info2.columns.geological_condition.status eq '1'}">
                            <div class="layui-col-lg3 layui-col-sm3 rfType" data-value="geological_condition">
                                <label class="layui-form-label">地质情况：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="geologicalCondition" id="geologicalCondition"  class="layui-input" value="${surveyRecord.geologicalCondition}" disabled>
                                </div>
                            </div>
                        </c:if>
                        <c:if test="${info2.columns.fence_height.status eq '1'}">
                            <div class="layui-col-lg3 layui-col-sm3 rfType" data-value="fence_height">
                                <label class="layui-form-label">围墙高度：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="fenceHeight" id="fenceHeight"  class="layui-input" value="${surveyRecord.fenceHeight}" disabled>
                                    <span class="pos-a h-32 lh-32 layui-span-unit">m</span>
                                </div>
                            </div>
                        </c:if>
                        <c:if test="${info2.columns.longitude.status eq '1'}">
                            <div class="layui-col-lg3 layui-col-sm3">
                                <label class="layui-form-label"><c:if test="${info2.columns.longitude.mustFillFlag eq '1'}"><i class="mark">*</i></c:if>经度：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="longitude" id="longitude"  class="layui-input" value="${entry.longitude}" disabled>
                                </div>
                            </div>
                        </c:if>
                        <c:if test="${info2.columns.latitude.status eq '1'}">
                            <div class="layui-col-lg3 layui-col-sm3">
                                <label class="layui-form-label"><c:if test="${info2.columns.latitude.mustFillFlag eq '1'}"><i class="mark">*</i></c:if>纬度：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="latitude" id="latitude"  class="layui-input" value="${entry.latitude}" disabled>
                                </div>
                            </div>
                        </c:if>
                        <div class="layui-col-lg12 layui-col-sm12"></div>

                        <div class="layui-tab-content ">
                            <c:set var="indexNum" value="1"/>
                            <table class="layui-table" style="margin: 0 10px 0 0;">
                                <c:if test="${info2.columns.fly_imgs.status eq '1' || info2.columns.fly_imgs_04.status eq '1'}">
                                    <tr style="height: 100px">
                                        <td width="15%">${indexNum}、
                                            <c:choose>
                                                <c:when test="${info2.columns.fly_imgs.status eq '1'}">
                                                    无人机航拍图
                                                </c:when>
                                                <c:when test="${info2.columns.fly_imgs_04.status eq '1'}">
                                                    屋顶高空俯视照片
                                                </c:when>
                                            </c:choose>
                                        </td>
                                        <td width="80%">

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

                                <c:if test="${info2.columns.roof_photo_one.status eq '1' || info2.columns.roof_photo_one_03.status eq '1'  }">
                                    <tr style="height: 100px">
                                        <td width="15%">${indexNum}、
                                            <c:choose>
                                                <c:when test="${info2.columns.roof_photo_one.status eq '1'}">
                                                    安装区域整体照片(2-9张)
                                                </c:when>
                                                <c:when test="${info2.columns.roof_photo_one_03.status eq '1'}">
                                                    房屋屋顶照片(2-9张)
                                                </c:when>
                                            </c:choose>
                                        </td>
                                        <td width="80%">

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

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

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

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

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

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

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

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

                                        </td>
                                        <c:set var="indexNum" value="${indexNum+1}"/>
                                    </tr>
                                </c:if>

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

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

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

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

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

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

                        <c:if test="${info2.columns.remarks.status eq '1'}">
                            <div class="layui-col-xs12">
                                <label class="layui-form-label" id="changeDescribe">备注：</label>
                                <div class="layui-input-block">
                                    <textarea name="remarks" id="remarks" placeholder="" class="layui-textarea" readonly>${entry.remarks}</textarea>
                                </div>
                            </div>
                        </c:if>
                    </div>
                </div>
            </div>
            <div class="layui-card">
                <blockquote class="layui-elem-quote">方案信息</blockquote>
                <div class="layui-card-body">
                    <div class="layui-row layui-col-space12 layui-form-item">
                        <div class="${entry.schemeType eq '2' ? 'layui-hide' : ''}" id="showSchemeId">
                            <div class="layui-row planLie" data-scheme-type-name="${entry.schemeTypeName}"
                                 data-plan-id="${entry.schemeId}">
                                <div class="planbiao">
                                    <div class="layui-col-lg3 layui-col-sm3">
                                        <label class="layui-form-label"><i class="mark">*</i>方案类型：</label>
                                        <div class="layui-input-block">
                                            <select lay-filter="planType" name="planType" disabled class="planType" lay-search>
                                                <option value="">请选择</option>
                                                <c:forEach items="${insta}" var="ins">
                                                    <option value="${ins.columns.id}" <c:if test="${fn:contains(entry.schemeTypeId,ins.columns.id)}">selected</c:if>>${ins.columns.name}</option>
                                                </c:forEach>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="layui-col-lg3 layui-col-sm3 ">
                                        <label class="layui-form-label"><i class="mark">*</i>方案名称：</label>
                                        <div class="layui-input-block pos-r">
                                            <select lay-filter="planName" name="planName" disabled class="planName" lay-search>
                                                <option value="${entry.schemeName}" selected>${entry.schemeName}</option>

                                            </select>
                                        </div>
                                    </div>
                                    <div class="layui-col-lg3 layui-col-sm3 ">
                                        <label class="layui-form-label"><i class="mark">*</i>参考图纸：</label>
                                        <div class="layui-input-block pos-r view-attachment">
                                            <a class="h-32 lh-32 ml-5 layui-span-unit" target="_blank"
                                                    <c:if test="${not empty composeOne}">
                                                        onclick="previewUrl('${commonStaticImgPath}${composeOne.columns.attach}')"
                                                        style="color:#2890ac;"
                                                    </c:if>
                                            >查看</a>
                                        </div>
                                    </div>
                                    <div class="layui-col-lg3 layui-col-sm3" style="text-align: center">
                                        <input type="hidden" class="planId" value="${entry.schemeId}">
                                        <input type="hidden" class="planCode">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div id="zuhefangan" class="zuhefangan ${entry.schemeType eq '1' ? 'layui-hide' : ''}">
                            <c:if test="${entry.schemeType eq '2'}">
                                <c:forEach varStatus="vs" items="${compose}" var="item">
                                    <div class="layui-row planLie" data-scheme-type-name="${item.columns.plan_type}"
                                         data-plan-id="${item.columns.plan_type_id}">
                                        <div class="planbiao">
                                            <div class="layui-col-lg3 layui-col-sm3">
                                                <label class="layui-form-label"><i class="mark">*</i>方案类型：</label>
                                                <div class="layui-input-block">
                                                    <select lay-filter="planType" name="planType" class="planType"
                                                            lay-search>
                                                        <option value="">请选择</option>
                                                        <c:forEach items="${insta}" var="ins">
                                                            <option value="${ins.columns.id}" <c:if test="${item.columns.plan_type eq ins.columns.name}">selected</c:if>>${ins.columns.name}</option>
                                                        </c:forEach>
                                                    </select>
                                                </div>
                                            </div>
                                            <div class="layui-col-lg3 layui-col-sm3 ">
                                                <label class="layui-form-label"><i class="mark">*</i>方案名称：</label>
                                                <div class="layui-input-block pos-r">
                                                    <select lay-filter="planName" name="planName" class="planName"
                                                            lay-search>
                                                        <option value="${item.columns.name}" selected>${item.columns.name}</option>

                                                    </select>
                                                </div>
                                            </div>
                                            <div class="layui-col-lg3 layui-col-sm3 ">
                                                <label class="layui-form-label"><i class="mark">*</i>参考图纸：</label>
                                                <div class="layui-input-block pos-r view-attachment">
                                                    <a class="h-32 lh-32 ml-5 layui-span-unit" target="_blank"
                                                            <c:if test="${not empty item.columns.attach}">
                                                                onclick="previewUrl('${commonStaticImgPath}${item.columns.attach}')"
                                                                style="color:#2890ac;"
                                                            </c:if>
                                                    >查看</a>
                                                </div>
                                            </div>
                                            <div class="layui-col-lg3 layui-col-sm3" style="text-align: center">
                                                <input type="hidden" class="planId" value="${item.columns.plan_id}">
                                                <input type="hidden" class="planCode">
                                                <button type="button"
                                                        class="layui-btn savePlan ${vs.index+1 ne compose.size() && compose.size() ne '1' ? 'layui-hide' : ''}"
                                                        onclick="savePlan(this)">
                                                    新增方案
                                                </button>
                                                <button type="button"
                                                        class="layui-btn layui-btn-primary deletePlan ${vs.index+1 eq compose.size() || compose.size() eq '1' ? 'layui-hide' : ''}"
                                                        onclick="deletePlan(this)">删除
                                                </button>
                                            </div>
                                        </div>
                                    </div>
                                </c:forEach>
                            </c:if>
                            <c:if test="${entry.schemeType eq '1'}">
                                <div class="layui-row planLie">
                                    <div class="planbiao">
                                        <div class="layui-col-lg3 layui-col-sm3">
                                            <label class="layui-form-label"><i class="mark">*</i>方案类型：</label>
                                            <div class="layui-input-block">
                                                <select lay-filter="planType" name="planType" class="planType"
                                                        lay-search>
                                                    <option value="">请选择</option>
                                                    <c:forEach items="${insta}" var="ins">
                                                        <option value="${ins.columns.id}" >${ins.columns.name}</option>
                                                    </c:forEach>
                                                </select>
                                            </div>
                                        </div>
                                        <div class="layui-col-lg3 layui-col-sm3 ">
                                            <label class="layui-form-label"><i class="mark">*</i>方案名称：</label>
                                            <div class="layui-input-block pos-r">
                                                <select lay-filter="planName" name="planName" class="planName"
                                                        lay-search>
                                                    <option value="">请选择</option>

                                                </select>
                                            </div>
                                        </div>
                                        <div class="layui-col-lg3 layui-col-sm3 ">
                                            <label class="layui-form-label"><i class="mark">*</i>参考图纸：</label>
                                            <div class="layui-input-block pos-r view-attachment">
                                                <span class="h-32 lh-32 ml-5 layui-span-unit">查看</span>
                                            </div>
                                        </div>
                                        <div class="layui-col-lg3 layui-col-sm3" style="text-align: center">
                                            <input type="hidden" class="planId">
                                            <input type="hidden" class="planCode">
                                            <button type="button" class="layui-btn savePlan" onclick="savePlan(this)">
                                                新增方案
                                            </button>
                                            <button type="button"
                                                    class="layui-btn layui-btn-primary deletePlan layui-hide"
                                                    onclick="deletePlan(this)">删除
                                            </button>
                                        </div>
                                    </div>
                                </div>
                            </c:if>
                        </div>
                        <c:if test="${info2.columns.design_drawings.status eq '1' || info2.columns.design_drawings_03.status eq '1'}">
                            <div class="layui-row">
                                <div class="layui-col-lg9 layui-col-sm9 ">
                                    <label class="layui-form-label">
                                        <c:choose>
                                            <c:when test="${info2.columns.design_drawings.status eq '1'}">
                                                设计图纸：
                                            </c:when>
                                            <c:when test="${info2.columns.design_drawings_03.status eq '1'}">
                                                设计CAD文件：
                                            </c:when>
                                        </c:choose>
                                    </label>
                                    <div class="layui-input-block pos-r" style="display: flex; align-items: center">
                                        <div id="attachFile">
                                            <c:if test="${not empty entry.designDrawings}">
                                                <c:forEach items="${entry.designDrawings}" var="file" varStatus="vs">
                                                    <div style="margin-top: 5px">
                                                        <a style="color:#2890ac;" href="${commonStaticImgPath}${file}" download="${file}" class="download-link">${fns:substringAfterLast(file, '/')}</a>
                                                        <a style="color:#2890ac;" target="_blank" onclick="previewUrl('${commonStaticImgPath}${file}')"    class="download-link">查看</a>
                                                        <input type="hidden" class="attachFiles" value="${file}">
                                                    </div>
                                                    <c:set var="attachFilesCount" value="${vs.count}"/>
                                                </c:forEach>
                                            </c:if>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </c:if>

                        <c:if test="${info2.columns.zjpb_img_03.status eq '1'}">
                            <div class="layui-row">
                                <div class="layui-col-lg9 layui-col-sm9 ">
                                    <label class="layui-form-label">
                                        组件排布图：
                                    </label>
                                    <div class="layui-input-block pos-r" style="display: flex; align-items: center">
                                        <div id="zjpbImg">
                                            <c:if test="${not empty entry.zjpbImg}">
                                                <c:forEach items="${entry.zjpbImg}" var="file" varStatus="vs">
                                                    <div style="margin-top: 5px">
                                                        <a style="color:#2890ac;" href="${commonStaticImgPath}${file}" download="${file}" class="download-link">${fns:substringAfterLast(file, '/')}</a>
                                                        <a style="color:#2890ac;" target="_blank" onclick="previewUrl('${commonStaticImgPath}${file}')"    class="download-link">查看</a>
                                                        <input type="hidden" class="attachFiles" value="${file}">
                                                    </div>
                                                    <c:set var="zjpbImgCount" value="${vs.count}"/>
                                                </c:forEach>
                                            </c:if>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </c:if>

                        <c:if test="${info2.columns.zjzx_img_03.status eq '1'}">
                            <div class="layui-row">
                                <div class="layui-col-lg9 layui-col-sm9 ">
                                    <label class="layui-form-label">
                                        组串接线图：
                                    </label>
                                    <div class="layui-input-block pos-r" style="display: flex; align-items: center">
                                        <div id="zjzxImg">
                                            <c:if test="${not empty entry.zjzxImg}">
                                                <c:forEach items="${entry.zjzxImg}" var="file" varStatus="vs">
                                                    <div style="margin-top: 5px">
                                                        <a style="color:#2890ac;" href="${commonStaticImgPath}${file}" download="${file}" class="download-link">${fns:substringAfterLast(file, '/')}</a>
                                                        <a style="color:#2890ac;" target="_blank" onclick="previewUrl('${commonStaticImgPath}${file}')"    class="download-link">查看</a>
                                                        <input type="hidden" class="attachFiles" value="${file}">
                                                    </div>
                                                    <c:set var="zjzxImgCount" value="${vs.count}"/>
                                                </c:forEach>
                                            </c:if>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </c:if>

                        <c:if test="${info2.columns.zjcs_img_03.status eq '1'}">
                            <div class="layui-row">
                                <div class="layui-col-lg9 layui-col-sm9 ">
                                    <label class="layui-form-label">
                                        组件支架图：
                                    </label>
                                    <div class="layui-input-block pos-r" style="display: flex; align-items: center">
                                        <div id="zjcsImg">
                                            <c:if test="${not empty entry.zjcsImg}">
                                                <c:forEach items="${entry.zjcsImg}" var="file" varStatus="vs">
                                                    <div style="margin-top: 5px">
                                                        <a style="color:#2890ac;" href="${commonStaticImgPath}${file}" download="${file}" class="download-link">${fns:substringAfterLast(file, '/')}</a>
                                                        <a style="color:#2890ac;" target="_blank" onclick="previewUrl('${commonStaticImgPath}${file}')"    class="download-link">查看</a>
                                                        <input type="hidden" class="attachFiles" value="${file}">
                                                    </div>
                                                    <c:set var="zjcsImgCount" value="${vs.count}"/>
                                                </c:forEach>
                                            </c:if>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </c:if>

                        <c:if test="${info2.columns.zjhs_img_03.status eq '1'}">
                            <div class="layui-row">
                                <div class="layui-col-lg9 layui-col-sm9 ">
                                    <label class="layui-form-label">
                                        一次接线图/电气图：
                                    </label>
                                    <div class="layui-input-block pos-r" style="display: flex; align-items: center">
                                        <div id="zjhsImg">
                                            <c:if test="${not empty entry.zjhsImg}">
                                                <c:forEach items="${entry.zjhsImg}" var="file" varStatus="vs">
                                                    <div style="margin-top: 5px">
                                                        <a style="color:#2890ac;" href="${commonStaticImgPath}${file}" download="${file}" class="download-link">${fns:substringAfterLast(file, '/')}</a>
                                                        <a style="color:#2890ac;" target="_blank" onclick="previewUrl('${commonStaticImgPath}${file}')"    class="download-link">查看</a>
                                                        <input type="hidden" class="attachFiles" value="${file}">
                                                    </div>
                                                    <c:set var="zjhsImgCount" value="${vs.count}"/>
                                                </c:forEach>
                                            </c:if>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </c:if>

                        <div class="layui-col-lg3 layui-col-sm3 ">
                            <label class="layui-form-label">设计容量：</label>
                            <div class="layui-input-block pos-r">
                                <input class="layui-input layui-bg-gray" name="designCapacity"
                                       value="${entry.designCapacity / 1000}" disabled>
                                <span class="pos-a h-32 lh-32 layui-span-unit">kW</span>
                            </div>
                        </div>
                      <c:if test="${info2.columns.component3.status eq '1'}">
                        <div class="assembly">
                            <c:if test="${not empty assemblyList}">
                                <c:forEach var="assembly" items="${assemblyList}" varStatus="vs">
                                    <div class="layui-row assemblyDiv">
                                        <div class="layui-col-lg5 layui-col-sm7">
                                            <label class="layui-form-label"><i class="mark">*</i>组件：</label>
                                            <div class="layui-input-block">
                                                <div class="layui-inline">
                                                    <input type="text" class="layui-input layui-bg-gray " style=""
                                                           value="${assembly.columns.model}" disabled>
<%--                                                    <select lay-filter="assembly" name="assembly" disabled class="assembly">--%>
<%--                                                        <option value="">请选择</option>--%>
<%--                                                        <c:forEach varStatus="" items="${sysAssemblyList}"--%>
<%--                                                                   var="sysAssembly">--%>
<%--                                                            <option value="${sysAssembly.columns.id}"--%>
<%--                                                                    data-power="${sysAssembly.columns.model}" ${sysAssembly.columns.id eq assembly.columns.item_id ? 'selected' : ''}>${sysAssembly.columns.model}</option>--%>
<%--                                                        </c:forEach>--%>
<%--                                                    </select>--%>
                                                    <span class="pos-a h-32 lh-32 layui-span-unit" style="right: 30px">Wp</span>
                                                </div>
                                                <span class="layui-inline">X </span>
                                                <div class="layui-inline">
                                                    <input type="text" class="layui-input" style="width: 85px;" disabled
                                                           placeholder="数量" name="optionVal"
                                                           value="${assembly.columns.num}">
                                                </div>
                                                    <%--                                    <i class="layui-icon layui-icon-add-circle" style="float: right;position: absolute;right: 0px;top: 3px;color: #1b6073;font-size: 25px;" onclick="add1(this)"></i>--%>
                                            </div>
                                        </div>
                                    </div>
                                </c:forEach>
                            </c:if>
                            <c:if test="${empty assemblyList}">
                                <div class="layui-row assemblyDiv">
                                    <div class="layui-col-lg5 layui-col-sm7">
                                        <label class="layui-form-label"><i class="mark">*</i>组件：</label>
                                        <div class="layui-input-block">
                                            <div class="layui-inline">
                                                <select lay-filter="assembly" name="assembly"  disabled class="assembly">
                                                    <option value="">请选择</option>
                                                    <c:forEach varStatus="" items="${sysAssemblyList}"
                                                               var="sysAssembly">
                                                        <option value="${sysAssembly.columns.id}">${sysAssembly.columns.model}</option>
                                                    </c:forEach>
                                                </select>
                                                <span class="pos-a h-32 lh-32 layui-span-unit" style="right: 30px">Wp</span>
                                            </div>
                                            <span class="layui-inline">X </span>
                                            <div class="layui-inline">
                                                <input type="text" class="layui-input" style="width: 85px;" disabled
                                                       placeholder="数量" name="optionVal">
                                            </div>
                                                <%--                                    <i class="layui-icon layui-icon-add-circle" style="float: right;position: absolute;right: 0px;top: 3px;color: #1b6073;font-size: 25px;" onclick="add1(this)"></i>--%>
                                        </div>
                                    </div>
                                </div>
                            </c:if>
                        </div>
                      </c:if>
                        <%-- 组件型号 --%>
                        <c:if test="${info2.columns.component3_model.status eq '1'}">
                            <div class="assembly">
                                <c:if test="${not empty assemblyList}">
                                    <c:forEach var="assembly" items="${assemblyList}" varStatus="vs">
                                        <div class="layui-row assemblyDiv">
                                            <div class="layui-col-lg5 layui-col-sm7">
                                                <label class="layui-form-label">组件：</label>
                                                <div class="layui-input-block">
                                                    <div class="layui-inline layui-form-longwid">
                                                        <input type="text" class="layui-input layui-bg-gray " style=""
                                                               value="${assembly.columns.material_model}" disabled>
    <%--                                                        <select lay-filter="assembly" name="assembly"--%>
    <%--                                                                class="assembly" disabled>--%>
    <%--                                                            <c:forEach varStatus=""--%>
    <%--                                                                       items="${sysAssemblyList}"--%>
    <%--                                                                       var="sysAssembly">--%>
    <%--                                                                <option value="${sysAssembly.columns.id}"--%>
    <%--                                                                        data-power="${sysAssembly.columns.model}" ${sysAssembly.columns.id eq assembly.columns.item_id ? 'selected' : ''}>${sysAssembly.columns.material_model}|${sysAssembly.columns.model}</option>--%>
    <%--                                                            </c:forEach>--%>
    <%--                                                        </select>--%>
                                                        <span class="pos-a h-32 lh-32 layui-span-unit"
                                                              style="right: 30px">Wp</span>
                                                    </div>
                                                    <span class="layui-inline">X </span>
                                                    <div class="layui-inline">
                                                        <input type="text" class="layui-input"
                                                               style="width: 85px;"
                                                               placeholder="数量" name="optionVal"
                                                               value="${assembly.columns.num}" disabled>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </c:forEach>
                                </c:if>
                                <c:if test="${empty assemblyList}">
                                    <div class="layui-row assemblyDiv">
                                        <div class="layui-col-lg5 layui-col-sm7">
                                            <label class="layui-form-label">组件：</label>
                                            <div class="layui-input-block">
                                                <div class="layui-inline  layui-form-longwid">
                                                    <select lay-filter="assembly" name="assembly"
                                                            class="assembly" disabled>
                                                        <c:forEach varStatus="" items="${sysAssemblyList}"
                                                                   var="sysAssembly">
                                                            <option value="${sysAssembly.columns.id}">${sysAssembly.columns.material_model}|${sysAssembly.columns.model}</option>
                                                        </c:forEach>
                                                    </select>
                                                    <span class="pos-a h-32 lh-32 layui-span-unit"
                                                          style="right: 30px">Wp</span>
                                                </div>
                                                <span class="layui-inline">X </span>
                                                <div class="layui-inline">
                                                    <input type="text" class="layui-input"
                                                           style="width: 85px;"
                                                           placeholder="数量" name="optionVal" disabled>
                                                </div>
                                                    <%--                                    <i class="layui-icon layui-icon-add-circle" style="float: right;position: absolute;right: 0px;top: 3px;color: #1b6073;font-size: 25px;" onclick="add1(this)"></i>--%>
                                            </div>
                                        </div>
                                    </div>
                                </c:if>
                            </div>
                        </c:if>
                        <c:if test="${info2.columns.component1.status eq '1'}">
                            <div class="inverter">
                                <c:if test="${not empty inverterList}">
                                    <c:forEach var="inverter" items="${inverterList}" varStatus="vs">
                                        <div class="layui-row inverterDiv">
                                            <div class="layui-col-lg5 layui-col-sm7">
                                                <label class="layui-form-label"><i class="mark">*</i>逆变器：</label>
                                                <div class="layui-input-block">
                                                    <div class="layui-inline">
                                                        <input type="text" class="layui-input layui-bg-gray" style=""
                                                               value="${inverter.columns.model}" disabled>
<%--                                                        <select lay-filter="inverter" name="inverter" disabled class="inverter"--%>
<%--                                                                lay-search>--%>
<%--                                                            <option value="">请选择</option>--%>
<%--                                                            <c:forEach varStatus="" items="${sysInverterList}"--%>
<%--                                                                       var="sysInverter">--%>
<%--                                                                <option value="${sysInverter.columns.id}" ${sysInverter.columns.id eq inverter.columns.item_id ? 'selected' : ''}>${sysInverter.columns.model}</option>--%>
<%--                                                            </c:forEach>--%>
<%--                                                        </select>--%>
                                                    </div>
                                                    <span class="layui-inline">X </span>
                                                    <div class="layui-inline">
                                                        <input type="text" class="layui-input" style="width: 85px;" disabled
                                                               placeholder="数量" name="optionVal"
                                                               value="${inverter.columns.num}">
                                                    </div>
                                                </div>
                                            </div>
                                                <%--                                        <div class="layui-col-lg3 layui-col-sm3">--%>
                                                <%--                                            <i class="layui-icon layui-icon-add-circle ${vs.index+1 ne inverterList.size() && inverterList.size() ne '1' ? 'layui-hide' : ''}"--%>
                                                <%--                                               style="color: #1b6073;font-size: 25px;"--%>
                                                <%--                                               onclick="add2(this)"></i>--%>
                                                <%--                                            <i class="layui-icon layui-icon-delete ${vs.index+1 eq inverterList.size() || inverterList.size() eq '1' ? 'layui-hide' : ''}"--%>
                                                <%--                                               style="color: #1b6073;font-size: 25px;" onclick="delete2(this)"></i>--%>
                                                <%--                                        </div>--%>
                                        </div>
                                    </c:forEach>
                                </c:if>
                                <c:if test="${empty inverterList}">
                                    <div class="layui-row inverterDiv">
                                        <div class="layui-col-lg5 layui-col-sm7">
                                            <label class="layui-form-label"><i class="mark">*</i>逆变器：</label>
                                            <div class="layui-input-block">
                                                <div class="layui-inline">
                                                    <select lay-filter="inverter" name="inverter" class="inverter" disabled
                                                            lay-search>
                                                        <option value="">请选择</option>
                                                        <c:forEach varStatus="" items="${sysInverterList}"
                                                                   var="sysInverter">
                                                            <option value="${sysInverter.columns.id}" ${sysInverter.columns.id eq inverter.columns.item_id ? 'selected' : ''}>${sysInverter.columns.model}</option>
                                                        </c:forEach>
                                                    </select>
                                                </div>
                                                <span class="layui-inline">X </span>
                                                <div class="layui-inline">
                                                    <input type="text" class="layui-input" style="width: 85px;" disabled
                                                           placeholder="数量" name="optionVal">
                                                </div>
                                            </div>
                                        </div>
                                            <%--                                    <div class="layui-col-lg3 layui-col-sm3">--%>
                                            <%--                                        <i class="layui-icon layui-icon-add-circle"--%>
                                            <%--                                           style="color: #1b6073;font-size: 25px;"--%>
                                            <%--                                           onclick="add2(this)"></i>--%>
                                            <%--                                        <i class="layui-icon layui-icon-delete layui-hide"--%>
                                            <%--                                           style="color: #1b6073;font-size: 25px;" onclick="delete2(this)"></i>--%>
                                            <%--                                    </div>--%>
                                    </div>
                                </c:if>
                            </div>
                        </c:if>
                        <%-- 逆变器型号 --%>
                        <c:if test="${info2.columns.component1_model.status eq '1'}">
                            <div class="inverter">
                                <c:if test="${not empty inverterList}">
                                    <c:forEach var="inverter" items="${inverterList}" varStatus="vs">
                                        <div class="layui-row inverterDiv">
                                            <div class="layui-col-lg5 layui-col-sm7">
                                                <label class="layui-form-label">逆变器：</label>
                                                <div class="layui-input-block">
                                                    <div class="layui-inline  layui-form-longwid">
                                                        <input type="text" class="layui-input layui-bg-gray" style=""
                                                               value="${inverter.columns.material_model}" disabled>
<%--                                                        <select lay-filter="inverter" name="inverter"--%>
<%--                                                                class="inverter" disabled lay-search>--%>
<%--                                                            <option value="">请选择</option>--%>
<%--                                                            <c:forEach varStatus=""--%>
<%--                                                                       items="${sysInverterList}"--%>
<%--                                                                       var="sysInverter">--%>
<%--                                                                <option value="${sysInverter.columns.id}" ${sysInverter.columns.id eq inverter.columns.item_id ? 'selected' : ''}>${sysInverter.columns.material_model}|${sysInverter.columns.model}</option>--%>
<%--                                                            </c:forEach>--%>
<%--                                                        </select>--%>
                                                    </div>
                                                    <span class="layui-inline">X </span>
                                                    <div class="layui-inline">
                                                        <input type="text" class="layui-input"
                                                               style="width: 85px;"
                                                               placeholder="数量" name="optionVal"
                                                               value="${inverter.columns.num}" disabled>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </c:forEach>
                                </c:if>
                                <c:if test="${empty inverterList}">
                                    <div class="layui-row inverterDiv">
                                        <div class="layui-col-lg5 layui-col-sm7">
                                            <label class="layui-form-label">逆变器：</label>
                                            <div class="layui-input-block">
                                                <div class="layui-inline layui-form-longwid">
                                                    <select lay-filter="inverter" name="inverter"
                                                            class="inverter" disabled lay-search>
                                                        <option value="">请选择</option>
                                                        <c:forEach varStatus="" items="${sysInverterList}"
                                                                   var="sysInverter">
                                                            <option value="${sysInverter.columns.id}" ${sysInverter.columns.id eq inverter.columns.item_id ? 'selected' : ''}>${sysInverter.columns.material_model}|${sysInverter.columns.model}</option>
                                                        </c:forEach>
                                                    </select>
                                                </div>
                                                <span class="layui-inline">X </span>
                                                <div class="layui-inline">
                                                    <input type="text" class="layui-input"
                                                           style="width: 85px;"
                                                           placeholder="数量" name="optionVal" disabled>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </c:if>
                            </div>
                        </c:if>

                      <c:if test="${info2.columns.component2.status eq '1'}">
                        <div class="grid-connection">
                            <c:if test="${not empty gridConnectionList}">
                                <c:forEach var="gridConnection" items="${gridConnectionList}" varStatus="vs">
                                    <div class="layui-row connectionDiv">
                                        <div class="layui-col-lg5 layui-col-sm7">
                                            <label class="layui-form-label">并网箱：</label>
                                            <div class="layui-input-block">
                                                <div class="layui-inline">
                                                    <select lay-filter="grid-connection" name="gridConnection" disabled
                                                            class="grid-connection" lay-search>
                                                        <option value="">请选择</option>
                                                        <c:forEach varStatus="" items="${sysGridConnectionList}"
                                                                   var="sysGridConnection">
                                                            <option value="${sysGridConnection.columns.id}" ${sysGridConnection.columns.id eq gridConnection.columns.item_id ? 'selected' : ''}>${sysGridConnection.columns.model}</option>
                                                        </c:forEach>
                                                    </select>
                                                </div>
                                                <span class="layui-inline">X </span>
                                                <div class="layui-inline">
                                                    <input type="text" class="layui-input" style="width: 85px;" disabled
                                                           placeholder="数量" name="optionVal"
                                                           value="${gridConnection.columns.num}">
                                                </div>
                                            </div>
                                        </div>
<%--                                        <div class="layui-col-lg3 layui-col-sm3">--%>

<%--                                            <i class="layui-icon layui-icon-add-circle ${vs.index+1 ne gridConnectionList.size() && gridConnectionList.size() ne '1' ? 'layui-hide' : ''}"--%>
<%--                                               style="color: #1b6073;font-size: 25px;" onclick="add3(this)"></i>--%>
<%--                                            <i class="layui-icon layui-icon-delete ${vs.index+1 eq gridConnectionList.size() || gridConnectionList.size() eq '1' ? 'layui-hide' : ''}"--%>
<%--                                               style="color: #1b6073;font-size: 25px;" onclick="delete3(this)"></i>--%>
<%--                                        </div>--%>
                                    </div>
                                </c:forEach>
                            </c:if>
                            <c:if test="${empty gridConnectionList}">
                                <div class="layui-row connectionDiv">
                                    <div class="layui-col-lg5 layui-col-sm7">
                                        <label class="layui-form-label">并网箱：</label>
                                        <div class="layui-input-block">
                                            <div class="layui-inline">
                                                <select lay-filter="grid-connection" name="gridConnection"
                                                        class="grid-connection" disabled lay-search>
                                                    <option value="">请选择</option>
                                                    <c:forEach varStatus="" items="${sysGridConnectionList}"
                                                               var="sysGridConnection">
                                                        <option value="${sysGridConnection.columns.id}" ${sysGridConnection.columns.id eq gridConnection.columns.item_id ? 'selected' : ''}>${sysGridConnection.columns.model}</option>
                                                    </c:forEach>
                                                </select>
                                            </div>
                                            <span class="layui-inline">X </span>
                                            <div class="layui-inline">
                                                <input type="text" class="layui-input" style="width: 85px;"
                                                       placeholder="数量" name="optionVal" disabled>
                                            </div>
                                        </div>
                                    </div>
<%--                                    <div class="layui-col-lg3 layui-col-sm3">--%>
<%--                                        <i class="layui-icon layui-icon-add-circle"--%>
<%--                                           style="color: #1b6073;font-size: 25px;"--%>
<%--                                           onclick="add3(this)"></i>--%>
<%--                                        <i class="layui-icon layui-icon-delete layui-hide"--%>
<%--                                           style="color: #1b6073;font-size: 25px;" onclick="delete3(this)"></i>--%>
<%--                                    </div>--%>
                                </div>
                            </c:if>
                        </div>
                      </c:if>
                      <c:if test="${info2.columns.component4.status eq '1'}">
                        <div class="grid-support">
                            <c:if test="${not empty gridSupportList}">
                                <c:forEach var="gridSupport" items="${gridSupportList}" varStatus="vs">
                                    <div class="layui-row supportDiv">
                                        <div class="layui-col-lg5 layui-col-sm7">
                                            <label class="layui-form-label">支架：</label>
                                            <div class="layui-input-block">
                                                <div class="layui-inline">
                                                    <select lay-filter="grid-support" name="gridSupport" disabled
                                                            class="gridSupport" lay-search>
                                                        <option value="">请选择</option>
                                                        <c:forEach varStatus="" items="${sysGridSupportList}" var="sysGridSupport">
                                                            <option value="${sysGridSupport.columns.id}" ${sysGridSupport.columns.id eq gridSupport.columns.item_id ? 'selected' : ''}>${sysGridSupport.columns.model}</option>
                                                        </c:forEach>
                                                    </select>
                                                </div>
                                                <span class="layui-inline">X </span>
                                                <div class="layui-inline">
                                                    <input type="text" class="layui-input" style="width: 85px;" placeholder="数量" disabled name="optionVal" value="${gridSupport.columns.num}">
                                                </div>
                                            </div>
                                        </div>
<%--                                        <div class="layui-col-lg3 layui-col-sm3">--%>

<%--                                            <i class="layui-icon layui-icon-add-circle ${vs.index+1 ne gridSupportList.size() && gridSupportList.size() ne '1' ? 'layui-hide' : ''}" style="color: #1b6073;font-size: 25px;" onclick="add4(this)"></i>--%>
<%--                                            <i class="layui-icon layui-icon-delete ${vs.index+1 eq gridSupportList.size() || gridSupportList.size() eq '1' ? 'layui-hide' : ''}" style="color: #1b6073;font-size: 25px;" onclick="delete4(this)"></i>--%>
<%--                                        </div>--%>
                                    </div>
                                </c:forEach>
                            </c:if>
                            <c:if test="${empty gridSupportList}">
                                <div class="layui-row supportDiv">
                                    <div class="layui-col-lg5 layui-col-sm7">
                                        <label class="layui-form-label">支架：</label>
                                        <div class="layui-input-block">
                                            <div class="layui-inline">
                                                <select lay-filter="grid-support" name="gridSupport" disabled
                                                        class="gridSupport" lay-search>
                                                    <option value="">请选择</option>
                                                    <c:forEach varStatus="" items="${sysGridSupportList}" var="sysGridSupport">
                                                        <option value="${sysGridSupport.columns.id}" }>${sysGridSupport.columns.model}</option>
                                                    </c:forEach>
                                                </select>
                                            </div>
                                            <span class="layui-inline">X</span>
                                            <div class="layui-inline">
                                                <input type="text" class="layui-input" style="width: 85px;" disabled
                                                       placeholder="数量" name="optionVal">
                                            </div>
                                        </div>
                                    </div>
<%--                                    <div class="layui-col-lg3 layui-col-sm3">--%>
<%--                                        <i class="layui-icon layui-icon-add-circle" style="color: #1b6073;font-size: 25px;"--%>
<%--                                           onclick="add4(this)"></i>--%>
<%--                                        <i class="layui-icon layui-icon-delete layui-hide"--%>
<%--                                           style="color: #1b6073;font-size: 25px;" onclick="delete4(this)"></i>--%>
<%--                                    </div>--%>
                                </div>
                            </c:if>
                        </div>
                      </c:if>
                        <div class="layui-col-xs12" style="padding-bottom: 90px">
                            <label class="layui-form-label">方案备注：</label>
                            <div class="layui-input-block">
                                    <textarea name="schemeRemarks" disabled id="schemeRemarks" class="layui-textarea" lay-verify="required">${entry.schemeRemarks}</textarea>
                            </div>
                        </div>
                        <div class="layui-col-xs12" style="position: fixed;bottom: 30px;background: #F8F8F8;padding-bottom: 20px">
                            <label class="layui-form-label">审核备注：</label>
                            <div class="layui-input-block">
                                <textarea name="examineRemarks" id="examineRemarks" class="layui-textarea" lay-verify="required" style="width: 95.8%;">${entry.examineRemarks}</textarea>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="operate-footer">
        <input type="button" class="layui-btn temp" value="暂存">
        <input type="button" class="layui-btn layui-bg-red Failed" value="驳回">
        <input type="button" class="layui-btn toExamine" value="通过">
        <input type="button" class="layui-btn layui-btn-primary" value="取消" onclick="cancel()">
    </div>
</div>


<script src="${ctxPlugin}/lib/layuiAdmin/dist/layuiadmin/layui/layui.js"></script>
<script src="${ctxPlugin}/lib/layuiAdmin/dist/layuiadmin/dist/viewer.js"></script>
<script src="${ctxPlugin}/lib/base64.js"></script>
<script>
    //图片查看效果
    var viewer = new Viewer(document.getElementById('LAY_app'));
    var imgsCount = 0;
    var serviceType = '${order.serviceType}';
    var reg = /^(?:[1-9]\d*|0)(?:\.\d+)?$/;
    var number = /^[1-9]\d*$/;//非0正整数正则
    var plan_html = "<option value=''>请选择</option>";
    var plan_type_html = "<option value=''>请选择</option>";
    var currentPlanTypeHtml = '';
    var assemblyOptionHtml = '';// 组件下拉选html
    var inverterOptionHtml = '';// 逆变器下拉选html
    var gridConnectionOptionHtml = '';// 并网箱下拉选html
    var supportOptionHtml = '';// 支架下拉选html
    layui.config({
        base: '${ctxPlugin}/lib/layuiAdmin/dist/layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'form', 'layedit', 'laydate', 'jquery', 'upload', 'layer'], function () {
        $ = layui.$
            , element = layui.element
            , form = layui.form
            , layer = layui.layer
            , laydate = layui.laydate;
        var upload = layui.upload;

        initElectricSelect();
        if(${empty compose && empty composeOne}){
            initSchemeData();
        }
        //执行实例
        form.render(null, 'component-form-element');
        //自定义验证规则
        form.verify({
            title: function (value) {
                if (value.length < 5) {
                    return '标题至少得5个字符啊';
                }
            }
            , pass: [
                /^[\S]{6,12}$/
                , '密码必须6到12位，且不能出现空格'
            ]
            , recevierMobile: [/^((0\d{2,3}-\d{7,8})|([1][3,4,5,7,8,8,9][0-9]{9}))$/
                , '请输入正确格式的联系电话！'
            ]
            , content: function (value) {
                layedit.sync(editIndex);
            }
        });

        form.on('radio(schemeType)', function (data) {
            var type = data.value;
            if ('1' === type) {
                //标准
                $("#showSchemeId").removeClass("layui-hide");
                $("#zuhefangan").addClass("layui-hide");
            } else {
                $("#zuhefangan").removeClass("layui-hide");
                $("#showSchemeId").addClass("layui-hide");
            }
        });

        form.on('select(planType)', function (data) {

            var value = $(data.elem).find("option:selected").val();
            if (isBlank(value)) {
                return
            }
            var that_ = $(this);

            //获取当前类型下的方案名称
            $.ajax({
                url: "${ctx}/planManage/findPlanByAssembly",
                type: "POST",
                data: {
                    planType: value
                }
                , success: function (result) {
                    that_.parents(".planbiao").find(".planName").empty();

                    var length = result.length;
                    var plan_name_html = "<option value=''>请选择</option>";
                    for (var i = 0; i < length; i++) {
                        plan_name_html += "<option value='" + result[i].columns.id + "' title='" + result[i].columns.assembly_count + "' date='" + result[i].columns.code + "' data-attach='"+result[i].columns.attach+"' data-attach2='"+result[i].columns.attach2+"'>" + result[i].columns.name + "</option>";
                    }
                    that_.parents(".planbiao").find(".planName").append(plan_name_html);
                    form.render('select');

                }
            })
        })


        form.on('select(planName)', function (data) {
            var value = $(data.elem).find("option:selected").text();
            if (isBlank(value)) {
                return
            }
            //名称已选，获取块数
            var num = $(data.elem).find("option:selected").attr("title");
            var code = $(data.elem).find("option:selected").attr("date");
            var id = data.value;
            $(this).parents(".planbiao").find(".planId").val(id);
            $(this).parents(".planbiao").find(".componentNum").val(num);
            $(this).parents(".planbiao").find(".yuanshiNum").val(num);
            $(this).parents(".planbiao").find(".planCode").val(code);
            var attach = $(data.elem).find("option:selected").data('attach');
            var attach2 = $(data.elem).find("option:selected").data('attach2');
            var viewAttachHtml = '';
            if (!isBlank(attach)) {
                viewAttachHtml += '<a class="h-32 lh-32 ml-5 layui-span-unit"  target="_blank" onclick="previewUrl('+"\'"+'${commonStaticImgPath}'+attach+'\''+')"   style="color:#2890ac;">查看</a>';
            }
            if (!isBlank(attach2)) {
                viewAttachHtml += '<a class="h-32 lh-32 ml-5 layui-span-unit"  target="_blank" onclick="previewUrl('+"\'"+'${commonStaticImgPath}'+attach2+'\''+')"   style="color:#2890ac;">查看</a>';
            }
            $(this).closest('.layui-row').find('.view-attachment').empty().append(viewAttachHtml);
        })

        if(${entry.partnerId == '03' && not empty surveyRecord.roofType}){
            changeRoofTypeFunction('${surveyRecord.roofType}');
        }

        function changeRoofTypeFunction(value){
            var arr=Array.from(${GfRoofTypeFormSet});
            for(var i = 0; i < arr.length; i++) {
                var roofType=arr[i].roofType;
                if(roofType == value){
                    var obj=arr[i];
                    var needStr=obj.needFormStr;
                    var notEmptyStr=obj.notEmptyStr;
                    $(".rfType").each(function (index) {
                        var str = $(this).attr("data-value");
                        if(needStr.includes(str)){
                            $(this).removeClass("layui-hide");
                            if(notEmptyStr.includes(str)){
                                if($(this).find(".mark").length==0){
                                    var htl=$(this).find("label").html();
                                    $(this).find("label").html('<i class="mark">*</i>'+htl);
                                }
                            }else{
                                $(this).find(".mark").remove();
                            }
                        }else{
                            $(this).addClass("layui-hide");
                            $(this).find("input").val("");
                            $(this).find("select").val("");
                        }
                    })
                    break;
                }

            }

        }


        //暂存
        var saveFlag = false;
        $(".temp").click(function () {
            if (saveFlag) {
                return;
            }

            //验证不必填项的值格式
            var examineRemarks = $("#examineRemarks").val();
            var id = "${entry.id}";

            if (isBlank(examineRemarks)) {
                layer.msg("请输入审核备注!", {icon: 2});
                return false;
            }
            saveFlag = true;
            $.ajax({
                url: "${ctx}/customerEntry/tempCustomerEntry",
                type: "POST",
                data: {
                    id: id,
                    remarks: examineRemarks
                }
                , success: function (result) {

                    if (result.code === "202") {
                        layer.msg("必填信息为空", {icon: 2});
                    }
                    if (result.code === "505") {
                        layer.msg("保存失败", {icon: 2});
                    }
                    if (result.code === '200') {
                        layer.msg("暂存成功，请处理下一条数据！", {icon: 1, time: 1000})
                    } else {
                        layer.msg("保存失败", {icon: 2});
                    }
                    saveFlag = false;
                }, error: function () {
                    layer.msg("保存失败", {icon: 2});
                    saveFlag = false;
                }
            })
        })

        //驳回
        var saveFlag = false;
        $(".Failed").click(function () {
            if (saveFlag) {
                return;
            }

            //验证不必填项的值格式
            var examineRemarks = $("#examineRemarks").val();
            var id = "${entry.id}";

            if (isBlank(examineRemarks)) {
                layer.msg("请输入审核备注!", {icon: 2});
                return false;
            }
            saveFlag = true;
            $.ajax({
                url: "${ctx}/customerEntry/failedCustomerEntry",
                type: "POST",
                data: {
                    id: id,
                    remarks: examineRemarks
                }
                , success: function (result) {

                    if (result.code === "202") {
                        layer.msg("必填信息为空", {icon: 2});
                    }
                    if (result.code === "505") {
                        layer.msg("保存失败", {icon: 2});
                    }
                    if (result.code === '200') {
                        var index = parent.layer.getFrameIndex(window.name);
                        layer.msg("保存成功", {icon: 1, time: 1000}, function () {
                            parent.parent.layer.closeAll();
                            parent.searchOrder(); //刷新父页面
                        })
                    } else {
                        layer.msg("保存失败", {icon: 2});
                    }
                    saveFlag = false;
                }, error: function () {
                    layer.msg("保存失败", {icon: 2});
                    saveFlag = false;
                }
            })
        })


        //审核通过
        var examineFlag = false;
        $(".toExamine").click(function () {
            if (examineFlag) {
                return;
            }
            //验证不必填项的值格式
            var id = "${entry.id}";
            var schemeId = $("#schemeId").val();
            var examineRemarks = $("#examineRemarks").val();// 审核意见
            var schemeRemarks = "";

            var schemeType = $("input[name=schemeType]:checked").val();
            var componentPlanArray = [];
            var schemeTypeId = '';
            if ('2' === schemeType) {
                // 组合方案
                var componentPlanFlag = false;
                $('#zuhefangan').find('.layui-row').each(function (index, that) {

                    var planType = $(that).find('.planType').find("option:selected").text();
                    var planTypeId = $(that).find('select[name=planType]').val();
                    if (isBlank(planTypeId)) {
                        layer.msg('请选择第'+(index+1)+'行方案类型');
                        componentPlanFlag = true;
                        return false;
                    }
                    var planId = $(that).find(".planId").val();
                    if (isBlank(planId)) {
                        layer.msg('请选择第'+(index+1)+'行方案名称');
                        componentPlanFlag = true;
                        return false;
                    }
                    var name = $(that).find(".planName").find("option:selected").text();
                    var code = $(that).find(".planCode").val();
                    var componentPlan = {
                        planTypeId: planTypeId,
                        planType: planType,
                        planId: planId,
                        name: name,
                        code: code
                    }
                    componentPlanArray.push(componentPlan);
                });
                if (componentPlanFlag) {
                    return;
                }
            } else {
                // 标准方案
                schemeId = $('#showSchemeId').find('.planId').val();
                if (isBlank(schemeId)) {
                    layer.msg('请选择方案类型', {icon: 2});
                    return;
                }
                schemeTypeId = $('#showSchemeId').find('select[name=planType]').val();
                if (isBlank(schemeTypeId)) {
                    layer.msg('请选择方案名称', {icon: 2});
                    return;
                }
            }
            // 电器材料
            var electricArray = [];
            // 组件
            var assemblyFlag = false;
            // $('.assembly').find('.layui-row').each(function (index, that) {
            //     var itemId = $(that).find('select[name=assembly]').val();
            //     if (isBlank(itemId)) {
            //         layer.msg('请选择第'+(index + 1) +'个组件');
            //         assemblyFlag = true;
            //         return false;
            //     }
            //     var itemType = '3';
            //     var num = $(that).find('input[name=optionVal]').val();
            //     if (isBlank(num)) {
            //         layer.msg('请输入第'+(index + 1) +'个组件的数量');
            //         assemblyFlag = true;
            //         return false;
            //     }
            //     if (!number.test(num)) {
            //         layer.msg('第'+(index + 1) +'个组件的数量格式不正确');
            //         assemblyFlag = true;
            //         return false;
            //     }
            //     var item = {
            //         itemId: itemId,
            //         itemType: itemType,
            //         num: num
            //     }
            //     electricArray.push(item);
            // });
            if (assemblyFlag) {
                return;
            }
            // 逆变器
            var inverterFlag = false;
            // $('.inverter').find('.layui-row').each(function (index, that) {
            //     var itemId = $(that).find('select[name=inverter]').val();
            //     if (isBlank(itemId)) {
            //         layer.msg('请选择第'+(index + 1) +'个逆变器');
            //         inverterFlag = true;
            //         return false;
            //     }
            //     var itemType = '1';
            //     var num = $(that).find('input[name=optionVal]').val();
            //     if (isBlank(num)) {
            //         layer.msg('请输入第'+(index + 1) +'个逆变器的数量');
            //         inverterFlag = true;
            //         return false;
            //     }
            //     if (!number.test(num)) {
            //         layer.msg('第'+(index + 1) +'个逆变器的数量格式不正确');
            //         inverterFlag = true;
            //         return false;
            //     }
            //     var item = {
            //         itemId: itemId,
            //         itemType: itemType,
            //         num: num
            //     }
            //     electricArray.push(item);
            // });
            if (inverterFlag) {
                return;
            }
            // 并网箱
            var gridConnectionFlag = false;
            // $('.grid-connection').find('.layui-row').each(function (index, that) {
            //     var itemId = $(that).find('select[name=gridConnection]').val();
            //     if (!isBlank(itemId)) {
            //         var itemType = '2';
            //         var num = $(that).find('input[name=optionVal]').val();
            //         if (isBlank(num)) {
            //             layer.msg('请输入第'+(index + 1) +'个并网箱的数量');
            //             gridConnectionFlag = true;
            //             return false;
            //         }
            //         if (!number.test(num)) {
            //             layer.msg('第'+(index + 1) +'个并网箱的数量格式不正确');
            //             gridConnectionFlag = true;
            //             return false;
            //         }
            //         var item = {
            //             itemId: itemId,
            //             itemType: itemType,
            //             num: num
            //         }
            //         electricArray.push(item);
            //     }
            // });
            if (gridConnectionFlag) {
                return;
            }

            // 支架
            var gridSupportFlag = false;
            // $('.grid-support').find('.layui-row').each(function (index, that) {
            //     var itemId = $(that).find('select[name=gridSupport]').val();
            //     if (!isBlank(itemId)) {
            //         var itemType = '4';
            //         var num = $(that).find('input[name=optionVal]').val();
            //         if (isBlank(num)) {
            //             layer.msg('请输入第'+(index + 1) +'个支架的数量');
            //             gridSupportFlag = true;
            //             return false;
            //         }
            //         if (!number.test(num)) {
            //             layer.msg('第'+(index + 1) +'个支架的数量格式不正确');
            //             gridSupportFlag = true;
            //             return false;
            //         }
            //         var item = {
            //             itemId: itemId,
            //             itemType: itemType,
            //             num: num
            //         }
            //         electricArray.push(item);
            //     }
            // });
            if (gridSupportFlag) {
                return;
            }

            var data = {
                id: id,
                schemeType: schemeType,
                schemeId: schemeId,
                schemeTypeId: schemeTypeId,
                itemList: electricArray,
                composePlanLists: componentPlanArray,
                examineRemarks: examineRemarks,
                schemeRemarks: schemeRemarks
            }
            var index= layer.load(2, {shade: [0.5,'#fff'], content:''});
            examineFlag = true;
            $.ajax({
                url: "${ctx}/customerEntry/toExamine",
                type: "POST",
                contentType: "application/json;charsetset=UTF-8",
                data: JSON.stringify(data)
                , success: function (result) {
                    console.log(result);
                    if (result.code === '200') {
                        var index = parent.layer.getFrameIndex(window.name);
                        layer.msg("保存成功", {icon: 1, time: 1000}, function () {
                            parent.parent.layer.closeAll();
                            parent.searchOrder(); //刷新父页面
                        })
                    } else {
                        examineFlag = false
                        if(isBlank(result.errMsg)){
                            layer.msg("操作失败！请联系管理员！", {icon: 2});
                        }else{
                            layer.msg("操作失败，"+result.errMsg, {icon: 2});
                        }

                    }
                }, complete: function () {
                    layer.close(index);
                }, error: function () {
                    layer.msg("保存失败s", {icon: 2});
                    examineFlag = false
                }
            })
        })



        if ("2" === ${entry.schemeType} && !isBlank(${entry.componentSpec})) {
            $.ajax({
                url: "${ctx}/planManage/findPlanByAssembly",
                type: "POST",
                data: {
                    assembly: "${entry.componentSpec}",
                    projectId: "${entry.projectId}"
                }
                , success: function (result) {
                    var length = result.length;
                    for (var i = 0; i < length; i++) {
                        plan_type_html += "<option value='" + result[i].columns.id + "' title='" + result[i].columns.assembly_count + "' date='" + result[i].columns.code + "'>" + result[i].columns.plan_type + "</option>";
                    }

                }
            })
        }

        //重新计算组件块数
        function componentNum() {
            var numco = 0;
            $(".componentNum").each(function () {
                if (!isBlank($(this).val())) {
                    numco = numco + parseInt($(this).val());
                }
            });
            $("#componentCount").val(parseInt(numco));
        }

        // 组件数量输入框值改变事件
        $(document).on('change', '.assembly input[name=optionVal]', function () {
            if (isBlank($(this).val())) {
                return;
            }
            statisticsCapacity();
        });

        // 组件下拉选切换事件
        form.on('select(assembly)', function (data) {
            if (isBlank(data.value)) {
                return;
            }
            statisticsCapacity();
        });

        // 统计设计容量
        function statisticsCapacity() {
            var capacity = 0;
            $('.assembly').find('.layui-row').each(function (index, that) {
                var value = $(that).find('select[name=assembly]').val();
                if (isBlank(value)) {

                    return;
                }
                var power = $(that).find('select[name=assembly] option:selected').data('power');
                // console.log(power);
                var num = $(that).find('input[name=optionVal]').val();
                if (isBlank(that)) {

                    return;
                }
                if (!number.test(num)) {
                    return;
                }
                capacity = capacity + parseInt(power) * parseInt(num) / 1000;
            });
            $('input[name=designCapacity]').val(capacity);
        }

        // 验证手机号
        function isPhoneNo(phone) {
            var tel = /(^1\d{10}$)|(^(\d{3,4}\-)?\d{5,9}$)/;
            return tel.test($.trim(phone));
        }
    });


    function electric_plan(numco) {
        var va = $("#componentSpec").val();
        $.ajax({
            url: "${ctx}/planManage/findElectricPlan",
            type: "POST",
            data: {
                assembly: va,
                assemblyNum: numco
            }
            , success: function (result) {
                console.log(result)
                if (isBlank(result)) {
                    $("#cageOne").val('');
                    $("#cageTwo").val('');
                    $("#cageThree").val('');
                    $("#inverterOne").val('');
                    $("#inverterTwo").val('');
                    $("#inverterThree").val('');
                    //  layer.msg("暂无电气配置信息",{icon:2})
                    form.render('select');
                    return
                }
                if (result.code === '2004') {
                    layer.msg("请求参数为空", {icon: 2})
                    return
                }
                $("#cageOne").val(result.columns.box1);
                $("#cageTwo").val(result.columns.box2);
                $("#cageThree").val(result.columns.box3);
                $("#inverterOne").val(result.columns.inverter1);
                $("#inverterTwo").val(result.columns.inverter2);
                $("#inverterThree").val(result.columns.inverter3);

                form.render('select');
            }
        })
    }

    function deletePlan(that) {
        $(that).closest(".layui-row").remove();
        var numco = 0;
        $(".componentNum").each(function () {
            if (!isBlank($(this).val())) {
                numco = numco + parseInt($(this).val());
            }
        });
        $("#componentCount").val(parseInt(numco));
        electric_plan(numco);
    }

    function savePlan(that) {
        var planType = $(that).parents(".planbiao").find(".planType").val();
        var planName = $(that).parents(".planbiao").find(".planName").val();

        if (isBlank(planType)) {
            layer.msg("请选择方案类型", {icon: 2});
            return;
        }
        if (isBlank(planName)) {
            layer.msg("请选择方案名称", {icon: 2});
            return;
        }

        $(that).hide();
        $(that).next().removeClass("layui-hide").show();

        var html = '';
        html += '<div class="layui-row addplan">';
        html += '<div class="planbiao">';
        html += '<div class="layui-col-lg3 layui-col-sm3">';
        html += ' <label class="layui-form-label"><i class="mark">*</i>方案类型：</label>';
        html += '<div class="layui-input-block">';
        html += '<select lay-filter="planType" name="planType" class="planType" lay-search>';
        <c:forEach items="${insta}" var="ins">
        html += '<option value="${ins.columns.id}">${ins.columns.name}</option>';
        </c:forEach>

        html += '</select>';
        html += '</div> </div>';
        html += '<div class="layui-col-lg3 layui-col-sm3 " >';
        html += '<label class="layui-form-label"><i class="mark">*</i>方案名称：</label>';
        html += '<div class="layui-input-block pos-r">';
        html += '<select  lay-filter="planName" name="planName" class="planName" lay-search>';
        html += '<option value="">请选择</option>';
        html += '</select>';
        html += '</div> </div>';
        html += ' <div class="layui-col-lg3 layui-col-sm3 " >';
        html += '<label class="layui-form-label"><i class="mark">*</i>参考图纸：</label>';
        html += '<div class="layui-input-block pos-r view-attachment">';
        html += '<span class="h-32 lh-32 layui-span-unit" >查看</span>';
        html += '</div> </div>';
        html += '<div class="layui-col-lg3 layui-col-sm3" style="text-align: center" >';
        html += '<input type="hidden" class="planId">';
        html += '<input type="hidden" class="planCode">';
        html += '<button type="button" class="layui-btn savePlan" onclick="savePlan(this)">新增方案</button>';
        html += '<button type="button" class="layui-btn layui-btn-primary deletePlan layui-hide" onclick="deletePlan(this)">删除</button>';
        html += '</div> </div></div>';
        $(that).parents(".planLie").append(html);
        form.render('select');
    }

    // 新增组件
    function add1(that) {
        $(that).addClass('layui-hide');
        $(that).next().removeClass('layui-hide');
        var html = '';
        html += '<div class="layui-row assemblyDiv">';
        html += '<div class="layui-col-lg5 layui-col-sm7">';
        html += '<label class="layui-form-label"><i class="mark">*</i>组件：</label>';
        html += '<div class="layui-input-block">';
        html += '<div class="layui-inline">';
        html += '<select lay-filter="assembly" name="assembly" class="assembly" lay-search>';
        html += assemblyOptionHtml;
        html += '</select>';
        html += '<span class="pos-a h-32 lh-32 layui-span-unit" style="right: 30px">W</span>';
        html += '</div>';
        html += '<span class="layui-inline">X </span>';
        html += '<div class="layui-inline">';
        html += '<input type="text" class="layui-input" style="width: 85px;" placeholder="数量" name="optionVal">';
        html += '</div>';
        html += '</div>';
        html += '</div>';
        html += '<div class="layui-col-lg3 layui-col-sm3">';
        html += '<i class="layui-icon layui-icon-add-circle" style="color: #1b6073;font-size: 25px;" onclick="add1(this)"></i>';
        html += '<i class="layui-icon layui-icon-delete" style="color: #1b6073;font-size: 25px;" onclick="delete1(this)"></i>';
        html += '</div>';
        html += '</div>';
        $(that).closest('.assembly').append(html);
        form.render('select');
    }

    // 新增逆变器
    function add2(that) {
        $(that).addClass('layui-hide');
        $(that).next().removeClass('layui-hide');
        var html = '';
        html += '<div class="layui-row inverterDiv">';
        html += '<div class="layui-col-lg5 layui-col-sm7">';
        html += '<label class="layui-form-label"><i class="mark">*</i>逆变器：</label>';
        html += '<div class="layui-input-block">';
        html += '<div class="layui-inline">';
        html += '<select lay-filter="inverter" name="inverter" class="inverter" lay-search>';
        html += inverterOptionHtml;
        html += '</select>';
        html += '</div>';
        html += '<span class="layui-inline">X </span>';
        html += '<div class="layui-inline">';
        html += '<input type="text" class="layui-input" style="width: 85px;" placeholder="数量" name="optionVal">';
        html += '</div>';
        html += '</div>';
        html += '</div>';
        html += '<div class="layui-col-lg3 layui-col-sm3">';
        html += '<i class="layui-icon layui-icon-add-circle" style="color: #1b6073;font-size: 25px;" onclick="add2(this)"></i>';
        html += '<i class="layui-icon layui-icon-delete" style="color: #1b6073;font-size: 25px;" onclick="delete2(this)"></i>';
        html += '</div>';
        html += '</div>';
        $(that).closest('.inverter').append(html);
        form.render('select');
    }

    // 新增并网箱
    function add3(that) {
        $(that).addClass('layui-hide');
        $(that).next().removeClass('layui-hide');
        var html = '';
        html += '<div class="layui-row connectionDiv">';
        html += '<div class="layui-col-lg5 layui-col-sm7">';
        html += '<label class="layui-form-label">并网箱：</label>';
        html += '<div class="layui-input-block">';
        html += '<div class="layui-inline">';
        html += '<select lay-filter="grid-connection" name="gridConnection" class="grid-connection" lay-search>';
        html += gridConnectionOptionHtml;
        html += '</select>';
        html += '</div>';
        html += '<span class="layui-inline">X </span>';
        html += '<div class="layui-inline">';
        html += '<input type="text" class="layui-input" style="width: 85px;" placeholder="数量" name="optionVal">';
        html += '</div>';
        html += '</div>';
        html += '</div>';
        html += '<div class="layui-col-lg3 layui-col-sm3">';
        html += '<i class="layui-icon layui-icon-add-circle" style="color: #1b6073;font-size: 25px;" onclick="add3(this)"></i>';
        html += '<i class="layui-icon layui-icon-delete" style="color: #1b6073;font-size: 25px;" onclick="delete3(this)"></i>';
        html += '</div>';
        html += '</div>';
        $(that).closest('.grid-connection').append(html);
        form.render('select');
    }

    function add4(that) {
        $(that).addClass('layui-hide');
        $(that).next().removeClass('layui-hide');
        var html = '';
        html += '<div class="layui-row supportDiv">';
        html += '<div class="layui-col-lg5 layui-col-sm7">';
        html += '<label class="layui-form-label">支架：</label>';
        html += '<div class="layui-input-block">';
        html += '<div class="layui-inline">';
        html += '<select lay-filter="grid-support" name="gridSupport" class="gridSupport" lay-search>';
        html += supportOptionHtml;
        html += '</select>';
        html += '</div>';
        html += '<span class="layui-inline">X </span>';
        html += '<div class="layui-inline">';
        html += '<input type="text" class="layui-input" style="width: 85px;" placeholder="数量" name="optionVal">';
        html += '</div>';
        html += '</div>';
        html += '</div>';
        html += '<div class="layui-col-lg3 layui-col-sm3">';
        html += '<i class="layui-icon layui-icon-add-circle" style="color: #1b6073;font-size: 25px;" onclick="add4(this)"></i>';
        html += '<i class="layui-icon layui-icon-delete " style="color: #1b6073;font-size: 25px;" onclick="delete4(this)"></i>';
        html += '</div>';
        html += '</div>';
        $(that).closest('.grid-support').append(html);
        form.render('select');
    }

    // 删除组件、逆变器、并网箱
    function delete1(that) {
        if (!$(that).parents(".assemblyDiv").next().hasClass("assemblyDiv")) {
            $(that).parents(".assemblyDiv").prev().find(".layui-icon-add-circle").removeClass("layui-hide");
        }
        $(that).closest(".layui-row").remove();
        if ($('.assembly').find('.layui-row').length < 2) {
            $('.assembly').find(".layui-icon-add-circle").removeClass("layui-hide");
            $('.assembly').find(".layui-icon-delete").addClass("layui-hide");
        }

    }

    function delete2(that) {
        if (!$(that).parents(".inverterDiv").next().hasClass("inverterDiv")) {
            $(that).parents(".inverterDiv").prev().find(".layui-icon-add-circle").removeClass("layui-hide");
        }
        $(that).closest(".layui-row").remove();
        if ($('.inverter').find('.layui-row').length < 2) {
            $('.inverter').find(".layui-icon-add-circle").removeClass("layui-hide");
            $('.inverter').find(".layui-icon-delete").addClass("layui-hide");
        }

    }

    function delete3(that) {
        if (!$(that).parents(".connectionDiv").next().hasClass("connectionDiv")) {
            $(that).parents(".connectionDiv").prev().find(".layui-icon-add-circle").removeClass("layui-hide");
        }
        $(that).closest(".layui-row").remove();
        if ($('.grid-connection').find('.layui-row').length < 2) {
            $('.grid-connection').find(".layui-icon-add-circle").removeClass("layui-hide");
            $('.grid-connection').find(".layui-icon-delete").addClass("layui-hide");
        }

    }

    function delete4(that) {
        if (!$(that).parents(".supportDiv").next().hasClass("supportDiv")) {
            $(that).parents(".supportDiv").prev().find(".layui-icon-add-circle").removeClass("layui-hide");
        }
        $(that).closest(".layui-row").remove();
        if ($('.grid-support').find('.layui-row').length < 2) {
            $('.grid-support').find(".layui-icon-add-circle").removeClass("layui-hide");
            $('.grid-support').find(".layui-icon-delete").addClass("layui-hide");
        }

    }

    // 初始化电器材料下拉选
    function initElectricSelect() {
        $.get('${ctx}/planManage/findAllElectric', function(result){
            if (result.code === '200') {
                var electricArray = result.data;
                assemblyOptionHtml += '<option value="">请选择</option>';
                inverterOptionHtml += '<option value="">请选择</option>';
                gridConnectionOptionHtml += '<option value="">请选择</option>';
                supportOptionHtml += '<option value="">请选择</option>';
                for (var i = 0; i < electricArray.length; i++) {
                    var electric = electricArray[i];
                    var type = electric.columns.type;
                    var id = electric.columns.id;
                    var model = electric.columns.model;
                    var material_model = electric.columns.material_model;
                    if (type === '1') {
                        if (${info2.columns.component1_model.status eq '1'}){
                            inverterOptionHtml += '<option value="' + id + '">' + (material_model+'|'+model) + '</option>';
                        }else {
                            inverterOptionHtml += '<option value="' + id + '">' + (model) + '</option>';
                        }
                    } else if (type === '2') {
                        gridConnectionOptionHtml += '<option value="'+id+'">'+model+'</option>';
                    }else if (type === '4') {
                        supportOptionHtml += '<option value="'+id+'">'+model+'</option>';
                    } else {
                        assemblyOptionHtml += '<option value="'+id+'" data-power="'+model+'">'+model+'</option>';
                    }
                }
            }
        });

    }

    // 初始化方案类型下拉选
    function initSchemeTypeSelectData(selectedId, optionData) {
        var html = '<option>请选择</option>';
        for (var j = 0; j < optionData.length; j++) {
            var data = optionData[j];
            var selectedFlag = data.name === selectedId ? 'selected' : '';
            html += '<option value="' + data.id + '" ' + selectedFlag + '>' + data.name + '</option>';
        }
        return html;
    }

    // 初始化方案数据，下拉选回显
    function initSchemeData() {
        var schemeType = '${entry.schemeType}';
        // var planTypeData = [];
        // var projectId = $('select[name=projectId]').val();
        // if (isBlank(projectId)) {
        //     return;
        // }
        // console.log(projectId);
        // var planTypeId = $('select[name=projectId]').find('option:selected').data('key');
        // var planTypeName = $('select[name=projectId]').find('option:selected').data('type');
        // console.log(planTypeId);
        // console.log(planTypeName);
        // var planTypeIdArray = planTypeId.split(',');
        // var planTypeNameArray = planTypeName.split(',');
        // for (let i = 0; i < planTypeIdArray.length; i++) {
        //     var data = {
        //         id: planTypeIdArray[i],
        //         name: planTypeNameArray[i]
        //     }
        //     planTypeData.push(data);
        // }
        var $rowNode;
        if (schemeType === '1') {
            // 标准方案
            $rowNode = $('#showSchemeId').find('.layui-row');
            // $('#zuhefangan').find('.layui-row').each(function (index, that) {
            //     var html = initSchemeTypeSelectData('', planTypeData);
            //     $(that).find('select[name=planType]').empty().append(html);
            // });
        } else {
            // 组合方案
            $rowNode = $('#zuhefangan').find('.layui-row');
            // $('#showSchemeId').find('.layui-row').each(function (index, that) {
            //     var html = initSchemeTypeSelectData('', planTypeData);
            //     $(that).find('select[name=planType]').empty().append(html);
            // });
        }
        $($rowNode).each(function (index, that) {
            var selectedPlanTypeName = $(that).data('scheme-type-name');
            var selectedPlanId = $(that).data('plan-id');
            if ('1' == '${entry.schemeType}') {
                selectedPlanTypeName = $(that).find(".planType").find("option:selected").val();
            }
            if (!isBlank(selectedPlanTypeName)) {
                $.ajax({
                    url: "${ctx}/planManage/findPlanByAssembly",
                    type: "POST",
                    data: {
                        planType: selectedPlanTypeName
                    }
                    , success: function (result) {
                        $(that).find(".planName").empty();
                        var plan_name_html = "<option value=''>请选择</option>";
                        var viewAttachHtml = '';
                        for (var k = 0; k < result.length; k++) {

                            var selectedFlag = result[k].columns.id === selectedPlanId ? 'selected' : '';
                            if (result[k].columns.id === selectedPlanId) {
                                if (!isBlank(result[k].columns.attach)) {
                                    viewAttachHtml += '<a class="h-32 lh-32 ml-5 layui-span-unit"  target="_blank" onclick="previewUrl('+"\'"+'${commonStaticImgPath}'+result[k].columns.attach+'\''+')"   style="color:#2890ac;">查看</a>';
                                }
                                if (!isBlank(result[k].columns.attach2)) {
                                    viewAttachHtml += '<a class="h-32 lh-32 ml-5 layui-span-unit"  target="_blank" onclick="previewUrl('+"\'"+'${commonStaticImgPath}'+result[k].columns.attach2+'\''+')"   style="color:#2890ac;">查看</a>';
                                }
                            }
                            plan_name_html += "<option value='" + result[k].columns.id + "' title='" + result[k].columns.assembly_count + "' date='" + result[k].columns.code + "' " + selectedFlag + ">" + result[k].columns.name + "</option>";
                        }
                        $(that).find('.planId').val(selectedPlanId)
                        $(that).find(".planName").append(plan_name_html);
                        $(that).closest('.layui-row').find('.view-attachment').empty().append(viewAttachHtml);
                        form.render('select');
                        var code = $(that).find(".planName").find("option:selected").attr("date");
                        $(that).find(".planCode").val(code);
                    }
                })
            }
        });
        form.render('select');
    }
    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;
    }

    // 关闭弹框
    function cancel() {
        var index = parent.layer.getFrameIndex(window.name);//先得到当前iframe层的索引
        parent.layer.close(index); //再执行关闭
        parent.parent.layer.closeAll();
    }
    function approvalRecord(){
        layer.open({
            title: '审批记录',
            type: 2,
            area: ['35%', '100%'],
            offset: 'rt',
            content: '${ctx}/customerEntry/approvalRecordPage?entryId=${entry.id}'
        })
    }

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