| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468 |
- <% include ./sub_menu.ejs %>
- <div class="panel-content">
- <div class="panel-title">
- <div class="title-main d-flex justify-content-between">
- <% include ./sub_mini_menu.ejs %>
- <div>
- <div class="d-inline-block">
- 质量巡检
- </div>
- </div>
- <div class="ml-auto">
- <% if (!inspection.readOnly) { %>
- <a href="#del" data-toggle="modal" data-target="#del" class="btn btn-outline-danger btn-sm mr-5">删除巡检</a>
- <% } %>
- <% if (inspection.status === auditConst.status.uncheck) { %>
- <% if (ctx.session.sessionUser.accountId === inspection.uid) { %>
- <a href="javascript:void(0);" class="btn btn-success btn-sm" id="judge-start-btn">提交审批</a>
- <% } else { %>
- <button class="btn btn-outline-secondary btn-sm" data-toggle="tooltip" data-placement="bottom" title="上报中">上报中</button>
- <% } %>
- <% } else if (inspection.status === auditConst.status.checking || inspection.status === auditConst.status.checkNoPre) { %>
- <% if (inspection.curAuditorIds.indexOf(ctx.session.sessionUser.accountId) >= 0) { %>
- <a href="#sp-close" data-toggle="modal" data-target="#sp-close" class="btn btn-danger btn-sm mr-2">关闭</a>
- <a id="sp-done-btn" href="javascript: void(0);" data-toggle="modal" data-target="#sp-done" class="btn btn-success btn-sm">审批通过</a>
- <a href="#sp-back" data-toggle="modal" data-target="#sp-back" class="btn btn-warning btn-sm">审批退回</a>
- <% } else { %>
- <button class="btn btn-outline-warning btn-sm" data-toggle="tooltip" data-placement="bottom" title="审批中">审批中</button>
- <% } %>
- <% } else if (inspection.status === auditConst.status.checked) { %>
- <button class="btn btn-outline-success btn-sm" data-toggle="tooltip" data-placement="bottom" title="整改完成">整改完成</button>
- <% } else if (inspection.status === auditConst.status.rectification) { %>
- <% if (inspection.curAuditorIds.indexOf(ctx.session.sessionUser.accountId) >= 0) { %>
- <a id="judge-success-btn" href="javascript: void(0);" class="btn btn-success btn-sm">整改完成</a>
- <a href="#sp-back" data-toggle="modal" data-target="#sp-back" class="btn btn-warning btn-sm">审批退回</a>
- <% } else { %>
- <button class="btn btn-outline-warning btn-sm" data-toggle="tooltip" data-placement="bottom" title="整改中">整改中</button>
- <% } %>
- <% } else if (inspection.status === auditConst.status.checkNo) { %>
- <button class="btn btn-outline-warning btn-sm" data-toggle="tooltip" data-placement="bottom" title="审批退回">审批退回</button>
- <% if (ctx.session.sessionUser.accountId === inspection.uid) { %>
- <a href="javascript:void(0);" class="btn btn-success btn-sm" id="judge-start-btn">重新提交</a>
- <% } %>
- <% } else if (inspection.status === auditConst.status.checkStop) { %>
- <button class="btn btn-outline-danger btn-sm" data-toggle="tooltip" data-placement="bottom" title="已关闭">已关闭</button>
- <% } %>
- </div>
- </div>
- </div>
- <div class="content-wrap">
- <div class="c-body">
- <div class="sjs-height-0">
- <div class="col-xl-8 mx-auto">
- <h4 class="mt-3 text-center mb-3"><%- inspection.code %></h4>
- <table class="table table-bordered">
- <thead>
- <tr>
- <th colspan="2" class="text-center">安全巡检单</th>
- </tr>
- </thead>
- <tbody id="check_table">
- <tr><th width="150">检查项<b class="text-danger">*</b></th><td><textarea data-key="check_item" class="form-control form-control-sm" <%- !inspection.readOnly ? '' : 'disabled' %>><%- inspection.check_item %></textarea></td></tr>
- <tr><th width="150">现场检查情况</th><td><textarea data-key="check_situation" class="form-control form-control-sm" <%- !inspection.readOnly ? '' : 'disabled' %>><%- inspection.check_situation %></textarea></td></tr>
- <tr><th width="150">处理要求及措施</th><td><textarea data-key="action" class="form-control form-control-sm" <%- !inspection.readOnly ? '' : 'disabled' %>><%- inspection.action %></textarea></td></tr>
- <tr><th width="150">检查日期<b class="text-danger">*</b></th><td><% if (!inspection.readOnly) { %><input data-key="check_date" id="check_date" class="datepicker-here form-control form-control-sm" placeholder="请选择检查日期" data-date-format="yyyy-MM-dd" data-language="zh" type="text" value="<%- inspection.check_date ? moment(inspection.check_date).format('YYYY-MM-DD') : '' %>"><% } else { %><%- inspection.check_date ? moment(inspection.check_date).format('YYYY-MM-DD') : '' %><% } %></td></tr>
- <tr><th width="150">检查人</th>
- <td>
- <% if (!inspection.readOnly && false) { %>
- <span class="d-inline-block" id="inspector-set">
- <% if (inspection.inspector) { %>
- <span class="badge">
- <%- inspection.inspector %>
- <span class="dropdown">
- <a href="javascript:void(0)" class="btn-sm text-danger px-1" title="移除" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fa fa-remove"></i></a>
- <div class="dropdown-menu">
- <a class="dropdown-item" href="javascript:void(0);">确认移除检查人?</a>
- <div class="dropdown-divider"></div>
- <div class="px-2 py-1 text-center">
- <button class="btn btn-sm btn-danger remove-btn">移除</button>
- <button class="btn btn-sm btn-secondary">取消</button>
- </div>
- </div>
- </span>
- </span>
- <% } %>
- </span>
- <div class="d-inline-block dropdown" <% if (inspection.inspector) { %>style="display: none!important;"<% } %>>
- <button class="btn btn-outline-primary btn-sm dropdown-toggle" type="button"
- id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true"
- aria-expanded="false">
- 选择检查人
- </button>
- <div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton"
- style="width:220px">
- <div class="mb-2 p-2"><input class="form-control form-control-sm gr-search"
- placeholder="姓名/手机 检索" autocomplete="off"></div>
- <dl class="list-unstyled book-list">
- <% accountGroup.forEach((group, idx) => { %>
- <dt><a href="javascript: void(0);" class="acc-btn" data-groupid="<%- idx %>" data-type="hide"><i class="fa fa-plus-square"></i></a> <%- group.groupName %></dt>
- <div class="dd-content" data-toggleid="<%- idx %>">
- <% group.groupList.forEach(item => { %>
- <% if (item.id !== ctx.session.sessionUser.accountId) { %>
- <dd class="border-bottom p-2 mb-0 " data-id="<%- item.id %>" >
- <p class="mb-0 d-flex">
- <span class="text-primary"><%- item.name %></span>
- <span class="ml-auto"><%- item.mobile %></span></p>
- <span class="text-muted"><%- item.role %></span>
- </dd>
- <% } %>
- <% });%>
- </div>
- <% }) %>
- </dl>
- </div>
- </div>
- <% } else { %><%- inspection.inspector %><% } %>
- </td>
- </tr>
- </tbody>
- </table>
- <% if (inspection.status === auditConst.status.rectification || inspection.status === auditConst.status.checked) { %>
- <table class="table table-bordered">
- <thead>
- <tr>
- <th colspan="2" class="text-center">整改单</th>
- </tr>
- </thead>
- <tbody id="rectification_table">
- <tr><th width="150">整改情况</th><td><textarea data-key="rectification_item" class="form-control form-control-sm" <%- inspection.rectificationPower ? '' : 'disabled' %>><%- inspection.rectification_item %></textarea></td></tr>
- <tr><th width="150">整改日期</th><td><% if (inspection.rectificationPower) { %><input data-key="rectification_date" id="rectification_date" class="datepicker-here form-control form-control-sm" placeholder="请选择整改日期" data-date-format="yyyy-MM-dd" data-language="zh" type="text" value="<%- inspection.rectification_date ? moment(inspection.rectification_date).format('YYYY-MM-DD') : '' %>"><% } else { %><%- inspection.rectification_date ? moment(inspection.rectification_date).format('YYYY-MM-DD') : '' %><% } %></td></tr>
- <tr><th width="150">整改人</th><td><%- inspection.rectification_user.name %></td></tr>
- </tbody>
- </table>
- <% } %>
- <table class="table table-bordered mt-3">
- <thead>
- <tr>
- <th></th>
- <th class="text-center">附件</th>
- <th class="text-center">上传者</th>
- <th class="text-center" width="200">上传时间</th>
- <th class="text-center">操作</th>
- </tr>
- </thead>
- <tbody id="file-content">
- </tbody>
- </table>
- <% if(!inspection.readOnly) { %>
- <table class="table table-bordered mt-3">
- <thead>
- <tr>
- <th colspan="2" class="text-center">审批流程</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td width="30%">
- <div class="card">
- <ul class="list-group list-group-flush" id="auditors2">
- <% inspection.auditors2.forEach((item, idx) => { %>
- <% if (idx === 0) { %>
- <li class="list-group-item d-flex justify-content-between align-items-center">
- <span class="mr-1"><i class="fa fa fa-play-circle fa-rotate-90"></i></span>
- <span class="text-muted">
- <% for (const u of item) { %>
- <small class="d-inline-block text-dark mx-1" title="<%- u.role %>" data-auditorId="<%- u.aid %>"><%- u.name %></small>
- <% } %>
- </span>
- <span class="badge badge-light badge-pill ml-auto"><small>原报</small></span>
- </li>
- <% } else if(idx === inspection.auditors2.length -1 && idx !== 0) { %>
- <li class="list-group-item d-flex justify-content-between align-items-center" data-auditorid="<%- item[0].aid %>">
- <span class="mr-1"><i class="fa fa fa-stop-circle"></i></span>
- <span class="text-muted">
- <% for (const u of item) { %>
- <small class="d-inline-block text-dark mx-1" title="<%- u.role %>" data-auditorId="<%- u.aid %>"><%- u.name %></small>
- <% } %>
- </span>
- <div class="d-flex ml-auto">
- <% if (item[0].audit_type !== auditType.key.common) { %>
- <span class="badge badge-pill badge-<%- auditType.info[item[0].audit_type].class %> p-1"><small><%- auditType.info[item[0].audit_type].short %></small></span>
- <% } %>
- <span class="badge badge-light badge-pill"><small>终审</small></span>
- </div>
- </li>
- <% } else {%>
- <li class="list-group-item d-flex justify-content-between align-items-center" data-auditorid="<%- item[0].aid %>">
- <span class="mr-1"><i class="fa fa-chevron-circle-down"></i></span>
- <span class="text-muted">
- <% for (const u of item) { %>
- <small class="d-inline-block text-dark mx-1" title="<%- u.role %>" data-auditorId="<%- u.aid %>"><%- u.name %></small>
- <% } %>
- </span>
- <div class="d-flex ml-auto">
- <% if (item[0].audit_type !== auditType.key.common) { %>
- <span class="badge badge-pill badge-<%- auditType.info[item[0].audit_type].class %> p-1"><small><%- auditType.info[item[0].audit_type].short %></small></span>
- <% } %>
- <span class="badge badge-light badge-pill"><small><%= ctx.helper.transFormToChinese(idx) %>审</small></span>
- </div>
- </li>
- <% } %>
- <% }) %>
- </ul>
- </div>
- </td>
- <td width="70%">
- <div class="dropdown text-right">
- <% if (ctx.tender.info.shenpi.inspection !== shenpiConst.sp_status.gdspl) { %>
- <button class="btn btn-outline-primary btn-sm dropdown-toggle" type="button"
- id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true"
- aria-expanded="false">
- 添加审批流程
- </button>
- <div class="dropdown-menu dropdown-menu-right" id="shenpi_select" aria-labelledby="dropdownMenuButton"
- style="width:220px">
- <div class="mb-2 p-2"><input class="form-control form-control-sm gr-search"
- placeholder="姓名/手机 检索" autocomplete="off"></div>
- <dl class="list-unstyled book-list">
- <% accountGroup.forEach((group, idx) => { %>
- <dt><a href="javascript: void(0);" class="acc-btn" data-groupid="<%- idx %>" data-type="hide"><i class="fa fa-plus-square"></i></a> <%- group.groupName %></dt>
- <div class="dd-content" data-toggleid="<%- idx %>">
- <% group.groupList.forEach(item => { %>
- <% if (item.id !== ctx.session.sessionUser.accountId) { %>
- <dd class="border-bottom p-2 mb-0 " data-id="<%- item.id %>" >
- <p class="mb-0 d-flex">
- <span class="text-primary"><%- item.name %></span>
- <span class="ml-auto"><%- item.mobile %></span></p>
- <span class="text-muted"><%- item.role %></span>
- </dd>
- <% } %>
- <% });%>
- </div>
- <% }) %>
- </dl>
- </div>
- <% } %>
- </div>
- <div class="card mt-3">
- <div class="card-header">
- 审批流程
- </div>
- <ul class="list-group list-group-flush" id="auditors">
- <% for (let i = 0, iLen = inspection.auditorGroups.length; i < iLen; i++) { %>
- <li class="list-group-item d-flex" auditorId="<%- inspection.auditorGroups[i][0].aid %>">
- <div class="col-auto"><%- i+1 %></div>
- <div class="col">
- <% for (const auditor of inspection.auditorGroups[i]) { %>
- <div class="d-inline-block mx-1" auditorId="<%- auditor.aid %>">
- <i class="fa fa-user text-muted"></i> <%- auditor.name %> <small class="text-muted"><%- auditor.role %></small>
- </div>
- <% } %>
- </div>
- <div class="col-auto">
- <% if (inspection.auditorGroups[i][0].audit_type !== auditType.key.common) { %>
- <span class="badge badge-pill badge-<%- auditType.info[inspection.auditorGroups[i][0].audit_type].class %> badge-bg-small"><small><%- auditType.info[inspection.auditorGroups[i][0].audit_type].long%></small></span>
- <% } %>
- <% if ((ctx.tender.info.shenpi.inspection === shenpiConst.sp_status.sqspr ||
- (ctx.tender.info.shenpi.inspection === shenpiConst.sp_status.gdzs && i+1 !== iLen)) && ctx.session.sessionUser.accountId === inspection.uid) { %>
- <a href="javascript: void(0)" class="text-danger pull-right">移除</a>
- <% } %>
- </div>
- </li>
- <% } %>
- </ul>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- <% } else {%>
- <table class="table table-bordered mt-3">
- <thead>
- <tr>
- <th colspan="2" class="text-center">审批流程</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td width="30%" style="vertical-align: top">
- <div class="card">
- <ul class="list-group list-group-flush">
- <% inspection.auditors2.forEach((item, idx) => { %>
- <% if (idx === 0) { %>
- <li class="list-group-item d-flex justify-content-between align-items-center">
- <span class="mr-1"><i class="fa fa fa-play-circle fa-rotate-90"></i></span>
- <span class="text-muted">
- <% for (const u of item) { %>
- <small class="d-inline-block text-dark mx-1" title="<%- u.role %>" data-auditorId="<%- u.aid %>"><%- u.name %></small>
- <% } %>
- </span>
- <span class="badge badge-light badge-pill ml-auto"><small>原报</small></span>
- </li>
- <% } else if(idx === inspection.auditors2.length -1 && idx !== 0) { %>
- <li class="list-group-item d-flex justify-content-between align-items-center" data-auditorid="<%- item[0].aid %>">
- <span class="mr-1"><i class="fa fa fa-stop-circle"></i></span>
- <span class="text-muted">
- <% for (const u of item) { %>
- <small class="d-inline-block text-dark mx-1" title="<%- u.role %>" data-auditorId="<%- u.aid %>"><%- u.name %></small>
- <% } %>
- </span>
- <div class="d-flex ml-auto">
- <% if (item[0].audit_type !== auditType.key.common) { %>
- <span class="badge badge-pill badge-<%- auditType.info[item[0].audit_type].class %> p-1"><small><%- auditType.info[item[0].audit_type].short %></small></span>
- <% } %>
- <span class="badge badge-light badge-pill"><small>终审</small></span>
- </div>
- </li>
- <% } else {%>
- <li class="list-group-item d-flex justify-content-between align-items-center" data-auditorid="<%- item[0].aid %>">
- <span class="mr-1"><i class="fa fa-chevron-circle-down"></i></span>
- <span class="text-muted">
- <% for (const u of item) { %>
- <small class="d-inline-block text-dark mx-1" title="<%- u.role %>" data-auditorId="<%- u.aid %>"><%- u.name %></small>
- <% } %>
- </span>
- <div class="d-flex ml-auto">
- <% if (item[0].audit_type !== auditType.key.common) { %>
- <span class="badge badge-pill badge-<%- auditType.info[item[0].audit_type].class %> p-1"><small><%- auditType.info[item[0].audit_type].short %></small></span>
- <% } %>
- <span class="badge badge-light badge-pill"><small><%= ctx.helper.transFormToChinese(idx) %>审</small></span>
- </div>
- </li>
- <% } %>
- <% }) %>
- </ul>
- </div>
- </td>
- <td width="70%">
- <% inspection.auditHistory.forEach((his, idx) => { %>
- <!-- 展开/收起历史流程 -->
- <% if(idx === inspection.auditHistory.length - 1 && inspection.auditHistory.length !== 1) { %>
- <div class="text-right">
- <a href="javascript: void(0);" id="fold-btn" data-target="show">展开历史审批流程</a>
- </div>
- <% } %>
- <div class="<%- idx < inspection.auditHistory.length - 1 ? 'fold-card' : '' %>">
- <div class="text-center text-muted"><%- idx+1 %>#</div>
- <ul class="timeline-list list-unstyled mt-2 <% if (idx === inspection.auditHistory.length - 1) { %>last-auditor-list<% } %>">
- <% his.forEach((group, index) => { %>
- <% if (index === 0) { %>
- <li class="timeline-list-item pb-2">
- <div class="timeline-item-date">
- <%- group.beginYear %>
- <span><%- group.beginDate %></span>
- <span><%- group.beginTime %></span>
- </div>
- <div class="timeline-item-tail"></div>
- <div class="timeline-item-icon bg-success text-light"><i class="fa fa-caret-down"></i></div>
- <div class="timeline-item-content">
- <div class="py-1">
- <span class="text-black-50">原报</span>
- <span class="pull-right text-success"><%- idx !== 0 ? '重新' : '' %>上报审批</span>
- </div>
- <div class="card">
- <div class="card-body px-3 py-0">
- <div class="card-text p-2 py-3 row">
- <div class="col">
- <span class="h6"><%- inspection.user.name %></span>
- <span class="text-muted ml-1"><%- inspection.user.role %></span>
- </div>
- <div class="col">
- <span class="pull-right text-success"><i class="fa fa-check-circle"></i></span>
- </div>
- </div>
- </div>
- </div>
- </div>
- </li>
- <% } %>
- <li class="timeline-list-item pb-2 <% if (group.status === auditConst.status.uncheck && idx === inspection.auditHistory.length - 1) { %>is_uncheck<% } %>">
- <% if (group.endYear) { %>
- <div class="timeline-item-date">
- <%- group.endYear %>
- <span><%- group.endDate %></span>
- <span><%- group.endTime %></span>
- </div>
- <% } %>
- <% if (index < his.length - 1) { %>
- <div class="timeline-item-tail"></div>
- <% } %>
- <% if (group.status === auditConst.status.checked) { %>
- <div class="timeline-item-icon bg-success text-light"><i class="fa fa-check"></i></div>
- <% } else if (ctx.helper._.includes([auditConst.status.checkNo, auditConst.status.checkNoPre], group.status)) { %>
- <div class="timeline-item-icon bg-warning text-light"><i class="fa fa-level-up"></i></div>
- <% } else if (ctx.helper._.includes([auditConst.status.checking, auditConst.status.rectification], group.status)) { %>
- <div class="timeline-item-icon bg-warning text-light"><i class="fa fa-ellipsis-h"></i></div>
- <% } else if (group.status === auditConst.status.checkStop) { %>
- <div class="timeline-item-icon bg-danger text-light"><i class="fa fa-stop"></i></div>
- <% } else { %>
- <div class="timeline-item-icon bg-secondary text-light"></div>
- <% } %>
- <div class="timeline-item-content">
- <div class="py-1">
- <span class="text-black-50">
- <%- (group.is_rectification ? '整改人' : (group.audit_order === 0 ? '原报' : !group.is_final ? group.audit_order + '审' : '终审')) %>
- <% if (group.audit_type !== auditType.key.common) { %><span class="text-<%- auditType.info[group.audit_type].class %> "><%- auditType.info[group.audit_type].long %></span><% } %>
- </span>
- <% if (group.status !== auditConst.status.uncheck) { %>
- <span class="pull-right <%- auditConst.statusClass[group.status] %>"><%- auditConst.statusString[group.status] %></span>
- <% } %>
- </div>
- <div class="card">
- <div class="card-body px-3 py-0">
- <% for (const [i, auditor] of group.auditors.entries()) { %>
- <div class="card-text p-2 py-3 row <%- ( i > 0 ? 'border-top' : '') %>">
- <div class="col">
- <span class="h6"><%- auditor.name %></span>
- <span class="text-muted ml-1"><%- auditor.role %></span>
- </div>
- <div class="col">
- <% if (auditor.status === auditConst.status.checked) { %>
- <span class="pull-right text-success"><i class="fa fa-check-circle"></i></span>
- <% } else if (ctx.helper._.includes([auditConst.status.checkNo, auditConst.status.checkNoPre], auditor.status)) { %>
- <span class="pull-right text-warning"><i class="fa fa-share-square fa-rotate-270"></i></span>
- <% } else if (ctx.helper._.includes([auditConst.status.checking, auditConst.status.rectification], auditor.status)) { %>
- <span class="pull-right text-warning"><i class="fa fa-commenting"></i></span>
- <% } else if (auditor.status === auditConst.status.checkStop) {%>
- <span class="pull-right text-danger"><i class="fa fa-stop-circle"></i></span>
- <% } %>
- </div>
- <% if (auditor.opinion) { %>
- <div class="col-12 py-1 bg-light"><i class="fa fa-commenting-o mr-1"></i><%- auditor.opinion %></div>
- <% } %>
- </div>
- <% } %>
- </div>
- </div>
- </div>
- </li>
- <% }) %>
- </ul>
- </div>
- <% }) %>
- </td>
- </tr>
- </tbody>
- </table>
- <% } %>
- </div>
- </div>
- </div>
- </div>
- </div>
- <script>
- const cur_uid = parseInt('<%- ctx.session.sessionUser.accountId %>');
- const tender_id = parseInt('<%- ctx.tender.id %>');
- const auditConst = JSON.parse('<%- JSON.stringify(auditConst) %>');
- const auditType = JSON.parse('<%- JSON.stringify(auditType) %>');
- const inspection = JSON.parse(unescape('<%- escape(JSON.stringify(inspection)) %>'));
- const preUrl = '<%- preUrl %>';
- const fileList = JSON.parse(unescape('<%- escape(JSON.stringify(fileList)) %>')) || [];
- const whiteList = JSON.parse('<%- JSON.stringify(whiteList) %>');
- const deleteFilePermission = <%- deleteFilePermission %>;
- </script>
- <% if(!inspection.readOnly) { %>
- <script>
- const accountList = JSON.parse(unescape('<%- escape(JSON.stringify(accountList)) %>'));
- const accountGroup = JSON.parse(unescape('<%- escape(JSON.stringify(accountGroup)) %>'));
- const shenpi_status = <%- ctx.tender.info.shenpi.inspection %>;
- const shenpiConst = JSON.parse('<%- JSON.stringify(shenpiConst) %>');
- </script>
- <% } else if (inspection.shenpiPower) { %>
- <script>
- const accountList = JSON.parse(unescape('<%- escape(JSON.stringify(accountList)) %>'));
- const accountGroup = JSON.parse(unescape('<%- escape(JSON.stringify(accountGroup)) %>'));
- </script>
- <% } %>
|