| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625 | 
							- <% if (!change.readOnly) { %>
 
-     <!--变更单位-->
 
-     <div class="modal fade" id="editcompany" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
 
-         <div class="modal-dialog" role="document">
 
-             <div class="modal-content">
 
-                 <div class="modal-header">
 
-                     <h5 class="modal-title" id="myModalLabel">变更单位</h5>
 
-                     <button type="button" class="close" data-dismiss="modal" aria-label="Close">
 
-                         <span aria-hidden="true">×</span>
 
-                     </button>
 
-                 </div>
 
-                 <div class="modal-body">
 
-                     <div id="companyshow">
 
-                         <% for (const company of companyList) { %>
 
-                             <div class="form-group">
 
-                                 <input type="text" id="<%= company.id %>" class="form-control form-control-sm" value="<%= company.name %>">
 
-                             </div>
 
-                         <% } %>
 
-                     </div>
 
-                     <div class="alert alert-warning" role="alert">修改后,已创建的变更不受影响。</div>
 
-                     <p><button class="btn btn-primary btn-sm" id="addcompany" role="button" title="填写名称"><b class="fa fa-plus"></b></button></p>
 
-                     <div id="companyadddiv">
 
-                         <!--<input type="text" class="form-control form-control-sm" placeholder="请输入公司名称">-->
 
-                     </div>
 
-                 </div>
 
-                 <div class="modal-footer">
 
-                     <button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">取消</button>
 
-                     <button type="button" id="updatecompany" class="btn btn-primary btn-sm">确定</button>
 
-                 </div>
 
-             </div>
 
-         </div>
 
-     </div>
 
-     <script src="/public/js/change_company.js"></script>
 
-     <!--添加清单-->
 
-     <div class="modal fade " tabindex="-1" role="dialog" aria-hidden="true" id="addlist" data-backdrop="static">
 
-         <div class="modal-dialog modal-lg" style="max-width:1100px;">
 
-             <div class="modal-content">
 
-                 <div class="modal-header">
 
-                     <h5 class="modal-title" id="mySmallModalLabel">从清单中选择</h5>
 
-                     <button type="button" class="close" data-dismiss="modal" aria-label="Close">
 
-                         <span aria-hidden="true">×</span>
 
-                     </button>
 
-                 </div>
 
-                 <div class="modal-body">
 
-                     <div class="card">
 
-                         <div class="card-header">
 
-                             <div class="d-flex justify-content-between align-items-center">
 
-                                 <div>请选择清单</div>
 
-                                 <div class="search-group">
 
-                                     <div class="input-group input-group-sm">
 
-                                         <div class="input-group-prepend">
 
-                                             <select class="input-group-text" id="select-list">
 
-                                                 <option value="0" selected>所有清单</option>
 
-                                                 <option value="1">新增清单</option>
 
-                                             </select>
 
-                                         </div>
 
-                                         <input class="form-control form-control-sm" style="width:300px;" id="list-input" placeholder="输入 清单编号、名称 检索" value="">
 
-                                         <a href="javascript:void(0);" style="display: none" data-btn="list" class="text-danger remove-btn" title="移除关键词"><i class="fa fa-times-circle "></i></a>
 
-                                     </div>
 
-                                 </div>
 
-                             </div>
 
-                         </div>
 
-                         <div class="card-body">
 
-                             <div class="row">
 
-                                 <div class="col-3" style="padding-right:0!important;display:none;">
 
-                                     <div style="overflow-y:auto" class="sjs-biangeng-height">
 
-                                         <table class="table table-bordered table-sm fixed_headers">
 
-                                             <thead><tr><th class="text-center">检索内容</th></tr></thead>
 
-                                             <tbody id="list-search-keyword" style="cursor: pointer">
 
-                                             </tbody>
 
-                                         </table>
 
-                                     </div>
 
-                                 </div>
 
-                                 <div class="col-12" id="table-list">
 
-                                     <div style="overflow-y:auto" class="sjs-biangeng-height">
 
-                                         <table class="table table-striped table-bordered table-hover table-sm fixed_headers">
 
-                                             <thead><tr class="text-center"><th width="40">序号</th><th width="110">清单编号</th><th>名称</th><th width="60">单位</th><th width="100">单价</th><th width="120">数量</th></tr></thead>
 
-                                             <tbody id="table-list-select">
 
-                                             </tbody>
 
-                                         </table>
 
-                                     </div>
 
-                                 </div>
 
-                             </div>
 
-                         </div>
 
-                     </div>
 
-                     <div class="card mt-3">
 
-                         <div class="card-header">
 
-                             <div class="d-flex justify-content-between align-items-center">
 
-                                 <div>请选择清单所属部位</div>
 
-                                 <div class="d-flex justify-content-start search-group">
 
-                                         <span>
 
-                                 <a href="/tender/<%- change.tid %>/change/<%- change.cid %>/information/revise" class="btn btn-primary btn-sm mr-2" style="padding: 0.25rem 0.5rem;">新增部位/清单</a>
 
-                             </span>
 
-                                     <input class="form-control form-control-sm" id="code-input" style="width:350px;" placeholder="输入 项目节编号、细目、计量单元 检索">
 
-                                     <a href="javascript:void(0);" style="display: none" data-btn="code" class="text-danger remove-btn" title="移除关键词"><i class="fa fa-times-circle "></i></a>
 
-                                 </div>
 
-                             </div>
 
-                         </div>
 
-                         <div class="card-body">
 
-                             <div class="row">
 
-                                 <div class="col-12">
 
-                                     <div style="overflow-y:auto" class="sjs-biangeng-height">
 
-                                         <table class="table table-striped table-bordered table-hover table-sm fixed_headers2">
 
-                                             <thead>
 
-                                             <tr class="text-center"><th>序号</th><th width="100">项目节编号</th><th>细目</th><th>单位工程</th><th>分部工程</th><th>分项工程</th><th>计量单元</th><th width="70">数量</th><th width="40"><input type="checkbox" id="code-select-all"></th></tr>
 
-                                             </thead>
 
-                                             <tbody id="code-list" data-index="">
 
-                                             </tbody>
 
-                                         </table>
 
-                                     </div>
 
-                                 </div>
 
-                             </div>
 
-                         </div>
 
-                     </div>
 
-                 </div>
 
-                 <div class="modal-footer">
 
-                     <button type="button" class="btn btn-sm btn-primary" id="select-all-revise">选择当前新增部位/清单</button>
 
-                     <!--<button type="button" class="add-list-btn btn btn-sm btn-outline-primary">添加空白清单</button>-->
 
-                     <button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal" id="cancel-list-btn">取消</button>
 
-                     <button type="button" class="add-list-btn btn btn-primary btn-sm">添加</button>
 
-                 </div>
 
-             </div>
 
-         </div>
 
-     </div>
 
-     <!--上报审批-->
 
-     <div class="modal fade" id="sub-sp" data-backdrop="static">
 
-         <div class="modal-dialog" role="document">
 
-             <div class="modal-content">
 
-                 <div class="modal-header">
 
-                     <h5 class="modal-title up-change">上报审批</h5>
 
-                 </div>
 
-                 <div class="modal-body">
 
-                     <div class="dropdown text-right">
 
-                         <% if (ctx.tender.info.shenpi.change !== 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" aria-labelledby="dropdownMenuButton"
 
-                                  style="width:220px">
 
-                                 <div class="mb-2 p-2"><input class="form-control form-control-sm"
 
-                                                              placeholder="姓名/手机 检索" id="gr-search" 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 => { %>
 
-                                                 <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>
 
-                         <% } else if(spGroupList.length > 0) { %>
 
-                             <div class="row">
 
-                                 <div class="col-7"></div>
 
-                                 <div class="col-5">
 
-                                     <select class="form-control form-control-sm" id="change-sp-group">
 
-                                         <% for (const g of spGroupList) { %>
 
-                                             <option value="<%= g.id %>" <% if (g.id === change.sp_group) { %>selected<% } %>><%= g.name %></option>
 
-                                         <% } %>
 
-                                     </select>
 
-                                 </div>
 
-                             </div>
 
-                         <% } %>
 
-                     </div>
 
-                     <div class="card mt-3">
 
-                         <div class="card-header">
 
-                             审批流程
 
-                         </div>
 
-                         <div class="modal-height-500" style="overflow: auto">
 
-                             <ul class="list-group list-group-flush" id="auditList">
 
-                                 <% for (let i = 0, iLen = auditorGroups.length; i < iLen; i++) { %>
 
-                                     <% if (auditorGroups[i][0].usite !== 0) { %>
 
-                                         <li class="list-group-item d-flex" data-auditid="<%= auditorGroups[i][0].uid %>">
 
-                                             <div class="col-auto"><%- i %></div>
 
-                                             <div class="col">
 
-                                                 <% for (const auditor of auditorGroups[i]) { %>
 
-                                                     <div class="d-inline-block mx-1" auditorId="<%- auditor.uid %>">
 
-                                                         <i class="fa fa-user text-muted"></i> <%- auditor.name %> <small class="text-muted"><%- auditor.role %></small>
 
-                                                     </div>
 
-                                                 <% } %>
 
-                                             </div>
 
-                                             <div class="col-auto">
 
-                                                 <% if (auditorGroups[i][0].audit_type !== auditType.key.common) { %>
 
-                                                     <span class="badge badge-pill badge-<%- auditType.info[auditorGroups[i][0].audit_type].class %> badge-bg-small"><small><%- auditType.info[auditorGroups[i][0].audit_type].long%></small></span>
 
-                                                 <% } %>
 
-                                                 <% if ((ctx.tender.info.shenpi.change === shenpiConst.sp_status.sqspr ||
 
-                                                         (ctx.tender.info.shenpi.change === shenpiConst.sp_status.gdzs && i+1 !== iLen)) && ctx.session.sessionUser.accountId === ctx.change.uid) { %>
 
-                                                     <a href="javascript:void(0)" class="text-danger pull-right remove_audit_btn">移除</a>
 
-                                                 <% } %>
 
-                                             </div>
 
-                                         </li>
 
-                                     <% } %>
 
-                                 <% } %>
 
-                             </ul>
 
-                         </div>
 
-                     </div>
 
-                 </div>
 
-                 <div class="modal-footer">
 
-                     <button class="btn btn-secondary btn-sm" data-dismiss="modal">关闭</button>
 
-                     <button class="btn btn-primary btn-sm checkChangeFrom">确认上报</button>
 
-                 </div>
 
-             </div>
 
-         </div>
 
-     </div>
 
-     <% if (ctx.change.status === auditConst.status.revise && (ctx.session.sessionUser.accountId === ctx.change.uid || ctx.session.sessionUser.is_admin)) { %>
 
-         <!--撤销修订-->
 
-         <div class="modal fade" id="sub-revoke"  role="dialog" aria-labelledby="myModalLabel">
 
-             <div class="modal-dialog" role="document">
 
-                 <form id="reviseForm" class="modal-content" method="post" action="/tender/<%- tender.id %>/change/cancel/revise" onsubmit="return false;">
 
-                     <div class="modal-header">
 
-                         <h5 class="modal-title" id="myModalLabel">撤销修订</h5>
 
-                         <button type="button" class="close" data-dismiss="modal" aria-label="Close">
 
-                             <span aria-hidden="true">×</span>
 
-                         </button>
 
-                     </div>
 
-                     <div class="modal-body">
 
-                         <h5>撤销修订,所有修改的数据将全部会被还原。</h5>
 
-                         <h5>确认撤销修订?</h5>
 
-                     </div>
 
-                     <div class="modal-footer">
 
-                         <input type="hidden" name="cid" value="<%= change.cid %>">
 
-                         <input type="hidden" name="_csrf_j" value="<%= ctx.csrf %>" />
 
-                         <button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">关闭</button>
 
-                         <button type="button" id="cancel-revise-btn" class="btn btn-primary btn-sm">确认</button>
 
-                     </div>
 
-                 </form>
 
-             </div>
 
-         </div>
 
-     <% } %>
 
- <% } %>
 
- <% if(ctx.change && (ctx.change.status !== auditConst.status.uncheck)) { %>
 
-     <!--审批流程/结果-->
 
-     <div class="modal fade" id="sp-list" data-backdrop="static">
 
-         <div class="modal-dialog modal-lg" role="document">
 
-             <div class="modal-content">
 
-                 <div class="modal-header">
 
-                     <h5 class="modal-title">审批流程</h5>
 
-                 </div>
 
-                 <div class="modal-body">
 
-                     <div class="row">
 
-                         <div class="col-4">
 
-                             <% if((ctx.change.status === auditConst.status.checkNo || ctx.change.status === auditConst.status.revise) && ctx.session.sessionUser.accountId === ctx.change.uid) { %>
 
-                                 <a class="sp-list-item hideSp" href="#sub-sp" data-toggle="modal" data-target="#sub-sp" id="hideSp">修改审批流程</a>
 
-                             <% } else if(ctx.change.status !== auditConst.status.checked && ctx.session.sessionUser.is_admin) { %>
 
-                                 <a class="sp-list-item hideSp" href="#sub-sp2" data-toggle="modal" data-target="#sub-sp2" id="hideSp">修改审批流程</a>
 
-                             <% } %>
 
-                             <div class="card modal-height-500 mt-3" style="overflow: auto">
 
-                                 <ul class="list-group list-group-flush auditors-list" id="auditors-list">
 
-                                     <% ctx.change.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-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.uid %>"><%- u.name %></small>
 
-                                                     <% } %>
 
-                                                 </span>
 
-                                                 <span class="badge badge-light badge-pill ml-auto"><small>原报</small></span>
 
-                                             </li>
 
-                                         <% } else if(idx === ctx.change.auditors2.length -1 && idx !== 0) { %>
 
-                                             <li class="list-group-item d-flex justify-content-between align-items-center" data-auditid="<%- item[0].uid %>">
 
-                                                 <span class="mr-1"><i class="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.uid %>"><%- 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-auditid="<%- item[0].uid %>">
 
-                                                 <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.uid %>"><%- 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>
 
-                         </div>
 
-                         <div class="col-8 modal-height-500" style="overflow: auto">
 
-                             <% ctx.change.auditHistory.forEach((his, idx) => { %>
 
-                                 <!-- 展开/收起历史流程 -->
 
-                                 <% if(idx === ctx.change.auditHistory.length - 1 && ctx.change.auditHistory.length !== 1) { %>
 
-                                     <div class="text-right">
 
-                                         <a href="javascript: void(0);" id="fold-btn" data-target="show" >展开历史审批流程</a>
 
-                                     </div>
 
-                                 <% } %>
 
-                                 <div class="<%- idx < ctx.change.auditHistory.length - 1 ? 'fold-card' : '' %>">
 
-                                     <div class="text-center text-muted"><%- idx+1 %>#</div>
 
-                                     <ul class="timeline-list list-unstyled mt-2 <% if (idx === ctx.change.auditHistory.length - 1 && ctx.change.auditHistory.length !== 1) { %>last-auditor-list<% } %>">
 
-                                         <% his.forEach((group, index) => { %>
 
-                                             <li class="timeline-list-item pb-2 <% if (group.status === auditConst.status.uncheck && idx === ctx.change.auditHistory.length - 1 && ctx.change.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 || group.status === auditConst.status.cancelRevise) { %>
 
-                                                     <div class="timeline-item-icon bg-success text-light"><i class="fa fa-check"></i></div>
 
-                                                 <% } else if (group.status === auditConst.status.checkNo || group.status === auditConst.status.checkNoPre || group.status === auditConst.status.revise || group.status === auditConst.status.checkCancel) { %>
 
-                                                     <div class="timeline-item-icon bg-warning text-light"><i class="fa fa-level-up"></i></div>
 
-                                                 <% } else if (group.status === auditConst.status.checking) { %>
 
-                                                     <div class="timeline-item-icon bg-warning text-light"><i class="fa fa-ellipsis-h"></i></div>
 
-                                                 <% } else if(group.status === auditConst.status.checkAgain) {%>
 
-                                                     <div class="timeline-item-icon bg-warning text-light"><i class="fa fa-check"></i></div>
 
-                                                 <% } else { %>
 
-                                                     <div class="timeline-item-icon bg-secondary text-light"></div>
 
-                                                 <% } %>
 
-                                                 <div class="timeline-item-content">
 
-                                                     <div class="py-1">
 
-                                                         <% if (index === 0) { %>
 
-                                                             <span class="text-black-50">原报</span>
 
-                                                             <span class="pull-right text-success"><%- idx !== 0 ? '重新' : '' %>上报审批</span>
 
-                                                         <% } else { %>
 
-                                                             <span class="text-black-50">
 
-                                                                 <%- (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 || group.status === auditConst.status.cancelRevise) { %>
 
-                                                                             <span class="pull-right text-success"><i class="fa fa-check-circle"></i></span>
 
-                                                                         <% } if (auditor.status === auditConst.status.checkNo || auditor.status === auditConst.status.checkNoPre || group.status === auditConst.status.revise || auditor.status === auditConst.status.checkCancel) { %>
 
-                                                                             <span class="pull-right text-warning"><i class="fa fa-share-square fa-rotate-270"></i></span>
 
-                                                                         <% } else if(auditor.status === auditConst.status.checkAgain) {%>
 
-                                                                             <span class="pull-right text-warning"><i class="fa fa-check-circle"></i></span>
 
-                                                                         <% } %>
 
-                                                                     </div>
 
-                                                                     <% if (auditor.sdesc) { %>
 
-                                                                         <div class="col-12 py-1 bg-light"><i class="fa fa-commenting-o mr-1"></i><%- auditor.sdesc%></div>
 
-                                                                     <% } %>
 
-                                                                 </div>
 
-                                                             <% } %>
 
-                                                         </div>
 
-                                                     </div>
 
-                                                 </div>
 
-                                             </li>
 
-                                         <% }) %>
 
-                                     </ul>
 
-                                 </div>
 
-                             <% }) %>
 
-                         </div>
 
-                     </div>
 
-                 </div>
 
-                 <div class="modal-footer">
 
-                     <button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">关闭</button>
 
-                     <% if((ctx.change.status === auditConst.status.checkNo || ctx.change.status === auditConst.status.revise) && ctx.session.sessionUser.accountId === ctx.change.uid) { %>
 
-                         <button class="btn btn-primary btn-sm sp-list-item checkChangeFrom">确认上报</button>
 
-                     <% } %>
 
-                 </div>
 
-             </div>
 
-         </div>
 
-     </div>
 
- <% } %>
 
- <% if ((ctx.change.status === auditConst.status.checking || ctx.change.status === auditConst.status.checkNoPre) && ctx.change.shenpiPower) { %>
 
-     <!--审批通过-->
 
-     <div class="modal fade sp-location-list" id="sp-done" data-backdrop="static">
 
-         <div class="modal-dialog modal-lg" role="document">
 
-             <form class="modal-content" action="/tender/<%- tender.id %>/change/approval?_csrf_j=<%= ctx.csrf %>" method="post" id="success-approval">
 
-                 <div class="modal-header">
 
-                     <h5 class="modal-title">审批通过</h5>
 
-                 </div>
 
-                 <div class="modal-body">
 
-                     <div class="row">
 
-                         <div class="col-4">
 
-                             <% if(change.status !== auditConst.status.checked && ctx.session.sessionUser.is_admin) { %>
 
-                                 <a class="sp-list-item hideSp" href="#sub-sp2" data-toggle="modal" data-target="#sub-sp2" id="hideSp">修改审批流程</a>
 
-                             <% } %>
 
-                             <div class="card modal-height-500 mt-3" style="overflow: auto">
 
-                                 <ul class="list-group list-group-flush auditors-list">
 
-                                     <% ctx.change.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.uid %>"><%- u.name %></small>
 
-                                                     <% } %>
 
-                                                 </span>
 
-                                                 <span class="badge badge-light badge-pill ml-auto"><small>原报</small></span>
 
-                                             </li>
 
-                                         <% } else if(idx === ctx.change.auditors2.length -1 && idx !== 0) { %>
 
-                                             <li class="list-group-item d-flex justify-content-between align-items-center">
 
-                                                 <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.uid %>"><%- 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">
 
-                                                 <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.uid %>"><%- 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 ml-auto"><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>
 
-                         </div>
 
-                         <div class="col-8 modal-height-500" style="overflow: auto">
 
-                             <% ctx.change.auditHistory.forEach((his, idx) => { %>
 
-                                 <!-- 展开/收起历史流程 -->
 
-                                 <% if(idx === ctx.change.auditHistory.length - 1 && ctx.change.auditHistory.length !== 1) { %>
 
-                                     <div class="text-right">
 
-                                         <a href="javascript: void(0);" id="fold-btn" data-target="show">展开历史审批流程</a>
 
-                                     </div>
 
-                                 <% } %>
 
-                                 <div class="<%- idx < ctx.change.auditHistory.length - 1 ? 'fold-card' : '' %>">
 
-                                     <div class="text-center text-muted"><%- idx+1 %>#</div>
 
-                                     <ul class="timeline-list list-unstyled mt-2 <% if (idx === ctx.change.auditHistory.length - 1 && ctx.change.auditHistory.length !== 1) { %>last-auditor-list<% } %>">
 
-                                         <% his.forEach((group, index) => { %>
 
-                                             <li class="timeline-list-item pb-2 <% if (group.status === auditConst.status.uncheck && idx === ctx.change.auditHistory.length - 1 && ctx.change.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 || group.status === auditConst.status.cancelRevise) { %>
 
-                                                     <div class="timeline-item-icon bg-success text-light"><i class="fa fa-check"></i></div>
 
-                                                 <% } else if (group.status === auditConst.status.checkNo || group.status === auditConst.status.checkNoPre || group.status === auditConst.status.revise || group.status === auditConst.status.checkCancel) { %>
 
-                                                     <div class="timeline-item-icon bg-warning text-light"><i class="fa fa-level-up"></i></div>
 
-                                                 <% } else if (group.status === auditConst.status.checking) { %>
 
-                                                     <div class="timeline-item-icon bg-warning text-light"><i class="fa fa-ellipsis-h"></i></div>
 
-                                                 <% } else if(group.status === auditConst.status.checkAgain) {%>
 
-                                                     <div class="timeline-item-icon bg-warning text-light"><i class="fa fa-check"></i></div>
 
-                                                 <% } else { %>
 
-                                                     <div class="timeline-item-icon bg-secondary text-light"></div>
 
-                                                 <% } %>
 
-                                                 <div class="timeline-item-content">
 
-                                                     <div class="py-1">
 
-                                                         <% if (index === 0) { %>
 
-                                                             <div class="py-1">
 
-                                                                 <span class="text-black-50">原报</span>
 
-                                                                 <span class="pull-right text-success"><%- idx !== 0 ? '重新' : '' %>上报审批</span>
 
-                                                             </div>
 
-                                                         <% } else { %>
 
-                                                 <span class="text-black-50">
 
-                                                     <%- (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 || group.status === auditConst.status.cancelRevise) { %>
 
-                                                                             <span class="pull-right text-success"><i class="fa fa-check-circle"></i></span>
 
-                                                                         <% } if (auditor.status === auditConst.status.checkNo || auditor.status === auditConst.status.checkNoPre || group.status === auditConst.status.revise || auditor.status === auditConst.status.checkCancel) { %>
 
-                                                                             <span class="pull-right text-warning"><i class="fa fa-share-square fa-rotate-270"></i></span>
 
-                                                                         <% } else if (auditor.status === auditConst.status.checking) { %>
 
-                                                                             <span class="pull-right text-warning"><i class="fa fa-commenting"></i></span>
 
-                                                                         <% } else if(auditor.status === auditConst.status.checkAgain) {%>
 
-                                                                             <span class="pull-right text-warning"><i class="fa fa-check-circle"></i></span>
 
-                                                                         <% } %>
 
-                                                                     </div>
 
-                                                                     <% if (auditor.status !== auditConst.status.uncheck && auditor.sdesc) { %>
 
-                                                                         <div class="col-12 py-1 bg-light"><i class="fa fa-commenting-o mr-1"></i><%- auditor.sdesc%></div>
 
-                                                                     <% } %>
 
-                                                                     <% if (auditor.status === auditConst.status.checking && auditor.uid === ctx.session.sessionUser.accountId) { %>
 
-                                                                         <div class="col-12 py-1 bg-light">
 
-                                                                             <textarea class="form-control form-control-sm" name="sdesc">同意</textarea>
 
-                                                                         </div>
 
-                                                                         <% if (group.is_final) { %>
 
-                                                                             <div class="col-12 form-group mt-3">
 
-                                                                                 <label><b class="text-danger">* </b>变更令号(批复编号)</label>
 
-                                                                                 <input class="form-control form-control-sm" value="<%= change.code %>" name="p_code" type="text">
 
-                                                                             </div>
 
-                                                                         <% } %>
 
-                                                                     <% } %>
 
-                                                                 </div>
 
-                                                             <% } %>
 
-                                                         </div>
 
-                                                     </div>
 
-                                                 </div>
 
-                                             </li>
 
-                                         <% }) %>
 
-                                     </ul>
 
-                                 </div>
 
-                             <% }) %>
 
-                         </div>
 
-                     </div>
 
-                 </div>
 
-                 <div class="modal-footer">
 
-                     <input type="hidden" name="status" value="<%- auditConst.status.checked %>">
 
-                     <input type="hidden" name="w_code" value="<%= change.w_code %>">
 
-                     <input type="hidden" name="change_id" value="<%= change.cid %>">
 
-                     <input type="hidden" name="bills_list" id="change-list-approval" value="">
 
-                     <button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">关闭</button>
 
-                     <button type="button" class="btn btn-success btn-sm approval-btn">确认通过</button>
 
-                 </div>
 
-             </form>
 
-         </div>
 
-     </div>
 
-     <!--审批退回-->
 
-     <div class="modal fade sp-location-list" id="sp-back" data-backdrop="static">
 
-         <div class="modal-dialog modal-lg" role="document">
 
-             <form class="modal-content" action="/tender/<%- tender.id %>/change/approval?_csrf_j=<%= ctx.csrf %>" method="post" id="fail-approval">
 
-                 <div class="modal-header">
 
-                     <h5 class="modal-title">审批退回</h5>
 
-                 </div>
 
-                 <div class="modal-body">
 
-                     <div class="row">
 
-                         <div class="col-4">
 
-                             <% if(change.status !== auditConst.status.checked && ctx.session.sessionUser.is_admin) { %>
 
-                                 <a class="sp-list-item hideSp" href="#sub-sp2" data-toggle="modal" data-target="#sub-sp2" id="hideSp">修改审批流程</a>
 
-                             <% } %>
 
-                             <div class="card modal-height-500 mt-3" style="overflow: auto">
 
-                                 <ul class="list-group list-group-flush auditors-list">
 
-                                     <% ctx.change.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.uid %>"><%- u.name %></small>
 
-                                                     <% } %>
 
-                                                 </span>
 
-                                                 <span class="badge badge-light badge-pill ml-auto"><small>原报</small></span>
 
-                                             </li>
 
-                                         <% } else if(idx === ctx.change.auditors2.length -1 && idx !== 0) { %>
 
-                                             <li class="list-group-item d-flex justify-content-between align-items-center">
 
-                                                 <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.uid %>"><%- 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">
 
-                                                 <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.uid %>"><%- 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>
 
-                         </div>
 
-                         <div class="col-8 modal-height-500" style="overflow: auto">
 
-                             <% ctx.change.auditHistory.forEach((his, idx) => { %>
 
-                                 <!-- 展开/收起历史流程 -->
 
-                                 <% if(idx === ctx.change.auditHistory.length - 1 && ctx.change.auditHistory.length !== 1) { %>
 
-                                     <div class="text-right"><a href="javascript: void(0);" id="fold-btn" data-target="show"
 
-                                                                data-idx="<%- idx + 1 %>">展开历史审批流程</a></div>
 
-                                 <% } %>
 
-                                 <div class="<%- idx < ctx.change.auditHistory.length - 1 ? 'fold-card' : '' %>">
 
-                                     <div class="text-center text-muted"><%- idx+1 %>#</div>
 
-                                     <ul class="timeline-list list-unstyled mt-2 <% if (idx === ctx.change.auditHistory.length - 1 && ctx.change.auditHistory.length !== 1) { %>last-auditor-list<% } %>">
 
-                                         <% his.forEach((group, index) => { %>
 
-                                             <li class="timeline-list-item pb-2 <% if (group.status === auditConst.status.uncheck && idx === ctx.change.auditHistory.length - 1 && ctx.change.auditHistory.length !== 1) { %>is_uncheck<% } %>">
 
-                                                 <% if (his.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 || group.status === auditConst.status.cancelRevise) { %>
 
-                                                     <div class="timeline-item-icon bg-success text-light"><i class="fa fa-check"></i></div>
 
-                                                 <% } else if (group.status === auditConst.status.checkNo || group.status === auditConst.status.checkNoPre || group.status === auditConst.status.revise || group.status === auditConst.status.checkCancel) { %>
 
-                                                     <div class="timeline-item-icon bg-warning text-light"><i class="fa fa-level-up"></i></div>
 
-                                                 <% } else if (group.status === auditConst.status.checking) { %>
 
-                                                     <div class="timeline-item-icon bg-warning text-light"><i class="fa fa-ellipsis-h"></i></div>
 
-                                                 <% } else if(group.status === auditConst.status.checkAgain) {%>
 
-                                                     <div class="timeline-item-icon bg-warning text-light"><i class="fa fa-check"></i></div>
 
-                                                 <% } else { %>
 
-                                                     <div class="timeline-item-icon bg-secondary text-light"></div>
 
-                                                 <% } %>
 
-                                                 <div class="timeline-item-content">
 
-                                                     <div class="py-1">
 
-                                                         <% if (index === 0) { %>
 
-                                                             <div class="py-1">
 
-                                                                 <span class="text-black-50">原报</span>
 
-                                                                 <span class="pull-right text-success"><%- idx !== 0 ? '重新' : '' %>上报审批</span>
 
-                                                             </div>
 
-                                                         <% } else { %>
 
-                                                 <span class="text-black-50">
 
-                                                     <%- (!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 || group.status === auditConst.status.cancelRevise) { %>
 
-                                                                             <span class="pull-right text-success"><i class="fa fa-check-circle"></i></span>
 
-                                                                         <% } if (auditor.status === auditConst.status.checkNo || auditor.status === auditConst.status.checkNoPre || group.status === auditConst.status.revise || auditor.status === auditConst.status.checkCancel) { %>
 
-                                                                             <span class="pull-right text-warning"><i class="fa fa-share-square fa-rotate-270"></i></span>
 
-                                                                         <% } else if (auditor.status === auditConst.status.checking) { %>
 
-                                                                             <span class="pull-right text-warning"><i class="fa fa-commenting"></i></span>
 
-                                                                         <% } else if(auditor.status === auditConst.status.checkAgain) {%>
 
-                                                                             <span class="pull-right text-warning"><i class="fa fa-check-circle"></i></span>
 
-                                                                         <% } %>
 
-                                                                     </div>
 
-                                                                     <% if (auditor.status !== auditConst.status.uncheck && auditor.sdesc) { %>
 
-                                                                         <div class="col-12 py-1 bg-light"><i class="fa fa-commenting-o mr-1"></i><%- auditor.sdesc%></div>
 
-                                                                     <% } %>
 
-                                                                     <% if (auditor.status === auditConst.status.checking && auditor.uid === ctx.session.sessionUser.accountId) { %>
 
-                                                                         <div class="col-12 py-1 bg-light">
 
-                                                                             <textarea class="form-control form-control-sm" name="sdesc">不同意</textarea>
 
-                                                                             <div class="alert alert-warning mt-1 mb-0 p-2" id="change-back-content">
 
-                                                                                 <div class="form-check form-check-inline">
 
-                                                                                     <input class="form-check-input" type="radio" name="status" id="inlineRadio1" value="<%- auditConst.status.checkNo %>">
 
-                                                                                     <label class="form-check-label" for="inlineRadio1">退回原报 <%- ctx.change.user.name %></label>
 
-                                                                                 </div>
 
-                                                                                 <% if (auditor.audit_order > 1) { %>
 
-                                                                                     <div class="form-check form-check-inline">
 
-                                                                                         <input class="form-check-input" type="radio" name="status" id="inlineRadio2" value="<%- auditConst.status.checkNoPre %>">
 
-                                                                                         <label class="form-check-label" for="inlineRadio2">退回上一审批人
 
-                                                                                             <% const pre = his.find(x => { return x.audit_order === auditor.audit_order - 1}); %>
 
-                                                                                             <%- (pre.audit_type === auditType.key.common ? pre.auditors[0].name : `${pre.audit_order}审`)%>
 
-                                                                                         </label>
 
-                                                                                     </div>
 
-                                                                                 <% } %>
 
-                                                                             </div>
 
-                                                                         </div>
 
-                                                                     <% } %>
 
-                                                                 </div>
 
-                                                             <% } %>
 
-                                                         </div>
 
-                                                     </div>
 
-                                                 </div>
 
-                                             </li>
 
-                                         <% }) %>
 
-                                     </ul>
 
-                                 </div>
 
-                             <% }) %>
 
-                         </div>
 
-                     </div>
 
-                 </div>
 
-                 <div class="modal-footer">
 
-                     <input type="hidden" name="w_code" value="<%= change.w_code %>">
 
-                     <input type="hidden" name="change_id" value="<%= change.cid %>">
 
-                     <button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">关闭</button>
 
-                     <button type="button" class="btn btn-warning btn-sm change-approval-back approval-btn">确认退回</button>
 
-                     <button type="button" class="btn btn-danger btn-sm change-approval-stop approval-btn" style="display: none">确认终止</button>
 
-                 </div>
 
-             </form>
 
-         </div>
 
-     </div>
 
- <% } %>
 
- <% if (ctx.change.auditors !== undefined && ctx.change.finalAuditorIds.indexOf(ctx.session.sessionUser.accountId) >= 0) { %>
 
-     <% if (!authMobile && ctx.session.sessionUser.loginStatus === 0) { %>
 
-         <!--终审重新审批-->
 
-         <div class="modal fade" id="sp-down-back" data-backdrop="static">
 
-             <div class="modal-dialog" role="document">
 
-                 <div class="modal-content">
 
-                     <div class="modal-header">
 
-                         <h5 class="modal-title">重新审批</h5>
 
-                     </div>
 
-                     <div class="modal-body">
 
-                         <h5>重新审批需要您的手机短信验证</h5>
 
-                         <h5>您目前还没设置认证手机,请先设置。</h5>
 
-                     </div>
 
-                     <div class="modal-footer">
 
-                         <button type="button" class="btn btn-sm btn-secondary" data-dismiss="modal">取消</button>
 
-                         <a href="/profile/sms" class="btn btn-sm btn-primary">去设置</a>
 
-                     </div>
 
-                 </div>
 
-             </div>
 
-         </div>
 
-     <% } else { %>
 
-         <!--重新审批-->
 
-         <div class="modal fade" id="sp-down-back" data-backdrop="static">
 
-             <div class="modal-dialog" role="document">
 
-                 <form id="againForm" class="modal-content" method="post" action="/tender/<%- tender.id %>/change/check/again" onsubmit="return false;">
 
-                     <div class="modal-header">
 
-                         <h5 class="modal-title">重新审批</h5>
 
-                     </div>
 
-                     <div class="modal-body">
 
-                         <h5>确认由「终审」重新审批「<%= change.code %>」?</h5>
 
-                         <% if (ctx.session.sessionUser.loginStatus === 0) { %>
 
-                             <div class="form-group">
 
-                                 <label>重审需要验证码确认,验证码将发送至尾号<%- authMobile.slice(-4) %>的手机</label>
 
-                                 <div class="input-group input-group-sm mb-3">
 
-                                     <input class="form-control" type="text" readonly="readonly" name="code" placeholder="输入短信中的6位验证码" />
 
-                                     <div class="input-group-append">
 
-                                         <button class="btn btn-outline-secondary get-code" type="button">获取验证码</button>
 
-                                     </div>
 
-                                 </div>
 
-                             </div>
 
-                         <% } %>
 
-                     </div>
 
-                     <div class="modal-footer">
 
-                         <input type="hidden" name="cid" value="<%= change.cid %>">
 
-                         <input type="hidden" name="_csrf_j" value="<%= ctx.csrf %>" />
 
-                         <button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">关闭</button>
 
-                         <button type="button" id="re-shenpi-btn" class="btn btn-warning btn-sm" <% if (ctx.session.sessionUser.loginStatus === 0) { %>disabled<% } %>>确定重审</button>
 
-                     </div>
 
-                 </form>
 
-             </div>
 
-         </div>
 
-     <% } %>
 
- <% } %>
 
- <% if (ctx.change.status === auditConst.status.checked && ctx.session.sessionUser.accountId === ctx.change.uid) { %>
 
-     <% if (!authMobile && ctx.session.sessionUser.loginStatus === 0) { %>
 
-         <!--原报修订变更-->
 
-         <div class="modal fade" id="sp-down-revise" data-backdrop="static">
 
-             <div class="modal-dialog" role="document">
 
-                 <div class="modal-content">
 
-                     <div class="modal-header">
 
-                         <h5 class="modal-title">修订变更</h5>
 
-                     </div>
 
-                     <div class="modal-body">
 
-                         <h5>修订变更需要您的手机短信验证</h5>
 
-                         <h5>您目前还没设置认证手机,请先设置。</h5>
 
-                     </div>
 
-                     <div class="modal-footer">
 
-                         <button type="button" class="btn btn-sm btn-secondary" data-dismiss="modal">取消</button>
 
-                         <a href="/profile/sms" class="btn btn-sm btn-primary">去设置</a>
 
-                     </div>
 
-                 </div>
 
-             </div>
 
-         </div>
 
-     <% } else { %>
 
-         <!--修订变更-->
 
-         <div class="modal fade" id="sp-down-revise" data-backdrop="static">
 
-             <div class="modal-dialog" role="document">
 
-                 <form id="reviseForm" class="modal-content" method="post" action="/tender/<%- tender.id %>/change/check/revise" onsubmit="return false;">
 
-                     <div class="modal-header">
 
-                         <h5 class="modal-title">修订变更</h5>
 
-                     </div>
 
-                     <div class="modal-body">
 
-                         <h5>确认需要修订变更「<%= change.code %>」?</h5>
 
-                         <% if (ctx.session.sessionUser.loginStatus === 0) { %>
 
-                             <div class="form-group">
 
-                                 <label>修订需要验证码确认,验证码将发送至尾号<%- authMobile.slice(-4) %>的手机</label>
 
-                                 <div class="input-group input-group-sm mb-3">
 
-                                     <input class="form-control" type="text" readonly="readonly" name="code" placeholder="输入短信中的6位验证码" />
 
-                                     <div class="input-group-append">
 
-                                         <button class="btn btn-outline-secondary get-code" type="button">获取验证码</button>
 
-                                     </div>
 
-                                 </div>
 
-                             </div>
 
-                         <% } %>
 
-                     </div>
 
-                     <div class="modal-footer">
 
-                         <input type="hidden" name="cid" value="<%= change.cid %>">
 
-                         <input type="hidden" name="_csrf_j" value="<%= ctx.csrf %>" />
 
-                         <button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">关闭</button>
 
-                         <button type="button" id="re-shenpi-btn2" class="btn btn-warning btn-sm" <% if (ctx.session.sessionUser.loginStatus === 0) { %>disabled<% } %>>确定修订</button>
 
-                     </div>
 
-                 </form>
 
-             </div>
 
-         </div>
 
-     <% } %>
 
- <% } %>
 
- <!--添加附件-->
 
- <div class="modal fade" tabindex="-1" role="dialog" aria-hidden="true" id="addfujian">
 
-     <div class="modal-dialog" role="document">
 
-         <div class="modal-content">
 
-             <div class="modal-header">
 
-                 <h5 class="modal-title" id="myModalLabel">上传附件</h5>
 
-                 <button type="button" class="close" data-dismiss="modal" aria-label="Close">
 
-                     <span aria-hidden="true">×</span>
 
-                 </button>
 
-             </div>
 
-             <div class="modal-body">
 
-                 <p>单个文件大小限制:30MB,支持office等文档格式、图片格式、压缩包格式</p>
 
-                 <p><input value="选择文件" type="file" id="upload-file" multiple /></p>
 
-             </div>
 
-             <div class="modal-footer">
 
-                 <button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">取消</button>
 
-                 <button type="button" class="btn btn-primary btn-sm" id="upload-file-btn">添加</button>
 
-             </div>
 
-         </div>
 
-     </div>
 
- </div>
 
- <div class="modal fade" id="warning-ledger" data-backdrop="static">
 
-     <div class="modal-dialog" role="document">
 
-         <div class="modal-content">
 
-             <div class="modal-header">
 
-                 <h5 class="modal-title">警告</h5>
 
-             </div>
 
-             <div class="modal-body">
 
-                 <h5>请先上报审批台账,再上报审批变更令。</h5>
 
-             </div>
 
-             <div class="modal-footer">
 
-                 <button id="led-warning" class="btn btn-danger btn-sm">确定</button>
 
-             </div>
 
-         </div>
 
-     </div>
 
- </div>
 
- <!--填充历史变更-->
 
- <div class="modal fade" id="add-bj" data-backdrop="static">
 
-     <div class="modal-dialog modal-lg" role="document">
 
-         <div class="modal-content">
 
-             <div class="modal-header">
 
-                 <h5 class="modal-title">拷贝其他变更令数据</h5>
 
-             </div>
 
-             <div class="modal-body">
 
-                 <div class="alert alert-warning p-2">选择需要拷贝的变更令,确认后将为您自动生成变更信息</div>
 
-                 <div style="height: 300px; overflow: scroll; overflow-x: hidden;">
 
-                     <table class="table table-bordered" >
 
-                         <thead>
 
-                         <tr align="center"><th>申请编号/变更令号</th><th>变更工程名称</th><th>变更类别</th><th>变更金额</th><th>审批状态</th><th>选择</th></tr>
 
-                         </thead>
 
-                         <tbody >
 
-                         <% othersChange.forEach(change => { %>
 
-                             <tr><td><%- change.code%></td><td><%- change.name%></td><td><%- change.class%></td><td align="right"><%- change.total_price %></td><td><span class="<%- auditConst.statusClass[change.status]%>"><%- auditConst.statusString[change.status]%></span></td><td align="center"><input type="checkbox" data-id="<%- change.cid %>"></td></tr>
 
-                         <% }); %>
 
-                         </tbody>
 
-                     </table>
 
-                 </div>
 
-             </div>
 
-             <div class="modal-footer">
 
-                 <button type="button" class="btn btn-sm btn-secondary" data-dismiss="modal">关闭</button>
 
-                 <button type="button" class="btn btn-sm btn-primary" id="bg-copy">确认拷贝</button>
 
-             </div>
 
-         </div>
 
-     </div>
 
- </div>
 
- <% if (showPlanBtn) { %>
 
-     <div class="modal fade" id="bgfadb" data-backdrop="static">
 
-         <div class="modal-dialog modal-lg" style="max-width:900px;" role="document">
 
-             <div class="modal-content">
 
-                 <div class="modal-header">
 
-                     <h5 class="modal-title">清单差值对比</h5>
 
-                 </div>
 
-                 <div class="modal-body">
 
-                     <div class="modal-height-300" id="cz-spread"></div>
 
-                 </div>
 
-                 <div class="modal-footer">
 
-                     <button type="button" class="btn btn-sm btn-secondary" data-dismiss="modal">关闭</button>
 
-                 </div>
 
-             </div>
 
-         </div>
 
-     </div>
 
- <% } %>
 
- <!--多部位同条清单汇总-->
 
- <div class="modal fade" id="qdgather" data-backdrop="static">
 
-     <div class="modal-dialog modal-lg" role="document">
 
-         <div class="modal-content">
 
-             <div class="modal-header">
 
-                 <h5 class="modal-title">清单汇总</h5>
 
-             </div>
 
-             <div class="modal-body">
 
-                 <div class="modal-height-300" id="hz-spread"></div>
 
-             </div>
 
-             <div class="modal-footer">
 
-                 <button type="button" class="btn btn-sm btn-secondary" data-dismiss="modal">关闭</button>
 
-             </div>
 
-         </div>
 
-     </div>
 
- </div>
 
- <% if (ctx.change.cancancel) { %>
 
-     <div class="modal fade" id="sp-down-cancel" data-backdrop="static">
 
-         <div class="modal-dialog" role="document">
 
-             <div class="modal-content">
 
-                 <div class="modal-header">
 
-                     <h5 class="modal-title">撤回</h5>
 
-                 </div>
 
-                 <div class="modal-body">
 
-                     <h5>撤回后将回退到你的操作状态,确定撤回?</h5>
 
-                 </div>
 
-                 <div class="modal-footer">
 
-                     <button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">取消</button>
 
-                     <button type="submit" class="btn btn-danger btn-sm" id="cancel-shenpi-btn">确定撤回</button>
 
-                 </div>
 
-             </div>
 
-         </div>
 
-     </div>
 
- <% } %>
 
- <% if (ctx.change && ctx.change.status !== auditConst.status.checked && ctx.session.sessionUser.is_admin) { %>
 
-     <!--上报审批-->
 
-     <div class="modal fade" id="sub-sp2" data-backdrop="static">
 
-         <div class="modal-dialog" style="max-width: 650px" role="document">
 
-             <div class="modal-content">
 
-                 <div class="modal-header">
 
-                     <h5 class="modal-title">修改审批流程</h5>
 
-                 </div>
 
-                 <div class="modal-body">
 
-                     <div class="card mt-1">
 
-                         <div class="modal-height-500" style="overflow: auto">
 
-                             <style>
 
-                                 #admin-edit-shenpi thead th {
 
-                                     border-bottom: 0;
 
-                                 }
 
-                                 #admin-edit-shenpi td, #admin-edit-shenpi th {
 
-                                     padding: 0.75rem;
 
-                                 }
 
-                                 #admin-edit-shenpi th {
 
-                                     background: none;
 
-                                     color: #212529;
 
-                                     border-top: 0;
 
-                                 }
 
-                             </style>
 
-                             <table class="table table-hover" id="admin-edit-shenpi">
 
-                                 <thead>
 
-                                 <tr class="card-header text-center">
 
-                                     <th width="100px">审批流程</th>
 
-                                     <th>审批人员</th>
 
-                                     <th width="80" style="text-align: center">审批状态</th>
 
-                                     <th width="200" style="text-align: center">操作</th>
 
-                                 </tr>
 
-                                 </thead>
 
-                                 <tbody id="admin-edit-shenpi-list">
 
-                                 <% for (const [i, group] of ctx.change.auditors2.entries()) { %>
 
-                                     <% if (i === 0) continue; %>
 
-                                     <% for (const [j, auditor] of group.entries()) { %>
 
-                                         <tr>
 
-                                             <td class="text-left">
 
-                                                 <% if (j === 0) { %>
 
-                                                     <%- i + '审' %>
 
-                                                     <% if (auditor.audit_type !== auditType.key.common) { %>
 
-                                                         <span class="ml-2 badge badge-pill badge-<%-  auditType.info[auditor.audit_type].class %> p-1"><small><%- auditType.info[auditor.audit_type].short %></small></span>
 
-                                                     <% } %>
 
-                                                 <% } %>
 
-                                             </td>
 
-                                             <td></span> <%- auditor.name %> <small class="text-muted"><%- auditor.role %></small></td>
 
-                                             <td style="text-align: center"><span class="<%- auditConst.auditStringClass[auditor.status] %>"><%- auditor.status !== auditConst.status.uncheck ? auditConst.auditString[auditor.status] : '待审批'  %></span></td>
 
-                                             <td style="text-align: center">
 
-                                                 <% if (auditor.status === auditConst.status.checking && j === group.length - 1) { %>
 
-                                                     <span class="dropdown mr-2">
 
-                                     <a href="javascript: void(0)" class="add-audit" id="<%- auditor.uid %>_add_dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">增加</a>
 
-                                     <div class="dropdown-menu dropdown-menu-right" id="<%- auditor.uid %>_add_dropdownMenu" aria-labelledby="<%- auditor.uid %>_add_dropdownMenuButton" style="width:220px">
 
-                                         <div class="mb-2 p-2"><input class="form-control form-control-sm gr-search"
 
-                                                                      placeholder="姓名/手机 检索" autocomplete="off" data-code="<%- auditor.uid %>_add"></div>
 
-                                         <dl class="list-unstyled book-list" data-aid="<%- auditor.uid %>" data-operate="add">
 
-                                             <% 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 => { %>
 
-                                                         <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>
 
-                                     </span>
 
-                                                 <% } %>
 
-                                                 <% if (auditor.status === auditConst.status.uncheck) { %>
 
-                                                     <% if (j === group.length - 1) { %>
 
-                                                         <span class="dropdown mr-2">
 
-                                     <a href="javascript: void(0)" class="add-audit" id="<%- auditor.uid %>_add_dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">增加</a>
 
-                                         <div class="dropdown-menu dropdown-menu-right" id="<%- auditor.uid %>_add_dropdownMenu" aria-labelledby="<%- auditor.uid %>_add_dropdownMenuButton" style="width:220px">
 
-                                             <div class="mb-2 p-2"><input class="form-control form-control-sm gr-search"
 
-                                                                          placeholder="姓名/手机 检索" autocomplete="off" data-code="<%- auditor.uid %>_add"></div>
 
-                                             <dl class="list-unstyled book-list" data-aid="<%- auditor.uid %>" data-operate="add">
 
-                                                 <% 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 => { %>
 
-                                                             <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>
 
-                                     </span>
 
-                                                         <% if (auditor.audit_type !== auditType.key.common) { %>
 
-                                                             <span class="dropdown mr-2">
 
-                                     <a href="javascript: void(0)" class="add-audit" id="<%- auditor.uid %>_add-sibling_dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">平级</a>
 
-                                         <div class="dropdown-menu dropdown-menu-right" id="<%- auditor.uid %>_add-sibling_dropdownMenu" aria-labelledby="<%- auditor.uid %>_add-sibling_dropdownMenuButton" style="width:220px">
 
-                                             <div class="mb-2 p-2"><input class="form-control form-control-sm gr-search"
 
-                                                                          placeholder="姓名/手机 检索" autocomplete="off" data-code="<%- auditor.uid %>_add-sibling"></div>
 
-                                             <dl class="list-unstyled book-list" data-aid="<%- auditor.uid %>" data-operate="add-sibling">
 
-                                                 <% 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 => { %>
 
-                                                             <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>
 
-                                     </span>
 
-                                                         <% } %>
 
-                                                     <% } %>
 
-                                                     <span class="dropdown mr-2">
 
-                                         <a href="javascript: void(0)" class="change-audit" id="<%- auditor.uid %>_change_dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">更换</a>
 
-                                         <div class="dropdown-menu dropdown-menu-right" id="<%- auditor.uid %>_change_dropdownMenu" aria-labelledby="<%- auditor.uid %>_change_dropdownMenuButton" style="width:220px">
 
-                                             <div class="mb-2 p-2"><input class="form-control form-control-sm gr-search"
 
-                                                                          placeholder="姓名/手机 检索" autocomplete="off" data-code="<%- auditor.uid %>_change"></div>
 
-                                             <dl class="list-unstyled book-list" data-aid="<%- auditor.uid %>" data-operate="change">
 
-                                                 <% 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 => { %>
 
-                                                             <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>
 
-                                     </span>
 
-                                                     <span class="dropdown">
 
-                                     <a href="javascript: void(0)" class="text-danger" title="移除" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">移除</a>
 
-                                     <div class="dropdown-menu">
 
-                                         <span class="dropdown-item" href="javascript:void(0);">确认移除审批人?</span>
 
-                                         <div class="dropdown-divider"></div>
 
-                                         <div class="px-2 py-1 text-center">
 
-                                             <button class="remove-audit btn btn-sm btn-danger" data-id="<%- auditor.uid %>">移除</button>
 
-                                             <button class="btn btn-sm btn-secondary">取消</button>
 
-                                         </div>
 
-                                     </div>
 
-                                     </span>
 
-                                                 <% } %>
 
-                                             </td>
 
-                                         </tr>
 
-                                     <% } %>
 
-                                 <% } %>
 
-                                 </tbody>
 
-                             </table>
 
-                         </div>
 
-                     </div>
 
-                 </div>
 
-                 <form class="modal-footer">
 
-                     <button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">关闭</button>
 
-                 </form>
 
-             </div>
 
-         </div>
 
-     </div>
 
- <% } %>
 
- <script type="text/javascript">
 
-     const csrf = '<%= ctx.csrf %>';
 
-     const authMobile = '<%= authMobile %>';
 
- </script>
 
- <script>
 
-     $('.sp-location-list').on('shown.bs.modal', function () {
 
-         const scrollBox = $(this).find('div[class="col-8 modal-height-500"]');
 
-         const bdiv = (scrollBox.offset() && scrollBox.offset().top) || 0;
 
-         scrollBox.scrollTop(0);
 
-         const hdiv = divSearch($(this).find('textarea')) ? $(this).find('textarea') : null;
 
-         const hdheight = hdiv ? hdiv.parents('.timeline-item-content').offset().top : null;
 
-         if (hdiv && scrollBox.length && scrollBox[0].scrollHeight > 200 && hdheight - bdiv > 200) {
 
-             scrollBox.scrollTop(hdheight - bdiv);
 
-         }
 
-     });
 
-     function divSearch(div) {
 
-         if (div.length > 0) {
 
-             return true;
 
-         }
 
-         return false;
 
-     }
 
-     // 退回选择修改审批人流程
 
-     $('.hideSp').click(function () {
 
-         $('#sp-list').modal('hide');
 
-         $('#sp-done').modal('hide');
 
-         $('#sp-back').modal('hide');
 
-     });
 
-     $('a[f-target]').click(function () {
 
-         $($(this).attr('f-target')).modal('show');
 
-     });
 
-     // 展开历史审核记录
 
-     $('.modal-body #fold-btn').click(function () {
 
-         const type = $(this).data('target')
 
-         const auditCard = $(this).parent().parent()
 
-         if (type === 'show') {
 
-             $(this).data('target', 'hide')
 
-             auditCard.find('.fold-card').slideDown('swing', () => {
 
-                 auditCard.find('#fold-btn').text('收起历史审核记录')
 
-             })
 
-         } else {
 
-             $(this).data('target', 'show')
 
-             auditCard.find('.fold-card').slideUp('swing', () => {
 
-                 auditCard.find('#fold-btn').text('展开历史审核记录')
 
-             })
 
-         }
 
-     });
 
-     $('#led-warning').click(function () {
 
-         $('#warning-ledger').modal('hide');
 
-     });
 
-     $('#re-shenpi-btn').click(function () {
 
-         const data = {
 
-             cid: '<%- change.cid %>',
 
-         };
 
-         <% if (ctx.session.sessionUser.loginStatus === 0) { %>
 
-         const code = $("#againForm input[name='code']").val();
 
-         if ($(this).hasClass('disabled')) {
 
-             return false;
 
-         }
 
-         if (code.length < 6) {
 
-             // alert('请填写正确的验证码');
 
-             toast('请填写正确的验证码', 'error');
 
-             return false;
 
-         }
 
-         data.code = code;
 
-         <% } %>
 
-         $.ajax({
 
-             url: '/tender/<%- tender.id %>/change/check/again?_csrf_j=' + csrf,
 
-             type: 'post',
 
-             data: data,
 
-             dataTye: 'json',
 
-             success: function(response) {
 
-                 if (response.err === 0) {
 
-                     window.location.href = response.url;
 
-                 } else {
 
-                     toast(response.msg, 'error');
 
-                 }
 
-             }
 
-         });
 
-     })
 
-     $('#re-shenpi-btn2').click(function () {
 
-         const data = {
 
-             cid: '<%- change.cid %>',
 
-         };
 
-         <% if (ctx.session.sessionUser.loginStatus === 0) { %>
 
-         const code = $("#reviseForm input[name='code']").val();
 
-         if ($(this).hasClass('disabled')) {
 
-             return false;
 
-         }
 
-         if (code.length < 6) {
 
-             // alert('请填写正确的验证码');
 
-             toast('请填写正确的验证码', 'error');
 
-             return false;
 
-         }
 
-         data.code = code;
 
-         <% } %>
 
-         $.ajax({
 
-             url: '/tender/<%- tender.id %>/change/check/revise?_csrf_j=' + csrf,
 
-             type: 'post',
 
-             data: data,
 
-             dataTye: 'json',
 
-             success: function(response) {
 
-                 if (response.err === 0) {
 
-                     window.location.href = response.url;
 
-                 } else {
 
-                     toast(response.msg, 'error');
 
-                 }
 
-             }
 
-         });
 
-     })
 
-     $('#cancel-revise-btn').click(function () {
 
-         const data = {
 
-             cid: '<%- change.cid %>',
 
-         };
 
-         $.ajax({
 
-             url: '/tender/<%- tender.id %>/change/cancel/revise?_csrf_j=' + csrf,
 
-             type: 'post',
 
-             data: data,
 
-             dataTye: 'json',
 
-             success: function(response) {
 
-                 if (response.err === 0) {
 
-                     window.location.href = response.url;
 
-                 } else {
 
-                     toast(response.msg, 'error');
 
-                 }
 
-             }
 
-         });
 
-     })
 
-     <% if (ctx.change && ctx.change.cancancel) { %>
 
-     $("#cancel-shenpi-btn").click(function () {
 
-         const data = {
 
-             cid: '<%- change.cid %>',
 
-         };
 
-         $.ajax({
 
-             url: '/tender/<%- tender.id %>/change/cancel/audit?_csrf_j=' + csrf,
 
-             type: 'post',
 
-             data: data,
 
-             dataTye: 'json',
 
-             success: function (response) {
 
-                 if (response.err === 0) {
 
-                     window.location.href = response.url;
 
-                 } else {
 
-                     toast(response.msg, 'error');
 
-                 }
 
-             }
 
-         });
 
-     });
 
-     <% } %>
 
- </script>
 
- <% if (!change.readOnly || ctx.session.sessionUser.is_admin) { %>
 
-     <script>
 
-         const accountGroup = JSON.parse(unescape('<%- escape(JSON.stringify(accountGroup)) %>'));
 
-         const accountList = JSON.parse(unescape('<%- escape(JSON.stringify(accountList)) %>'));
 
-     </script>
 
- <% } %>
 
- <% if (ctx.change && ctx.change.status !== auditConst.status.checked && ctx.session.sessionUser.is_admin) { %>
 
-     <script>
 
-         const auditorList = JSON.parse(unescape('<%- escape(JSON.stringify(change.auditors2)) %>'));
 
-         $(function () {
 
-             $('a[f-target]').click(function () {
 
-                 $($(this).attr('f-target')).modal('show');
 
-             });
 
-             // 多层modal关闭后的滚动bug修复
 
-             $('#sp-list').on('hidden.bs.modal', function (e) {
 
-                 $(document.body).addClass('modal-open');
 
-             });
 
-             // 添加审批流程按钮逻辑
 
-             $('body').on('click', '#admin-edit-shenpi .book-list dt', function () {
 
-                 const idx = $(this).find('.acc-btn').attr('data-groupid')
 
-                 const type = $(this).find('.acc-btn').attr('data-type')
 
-                 if (type === 'hide') {
 
-                     $(this).parent().find(`div[data-toggleid="${idx}"]`).show(() => {
 
-                         $(this).children().find('i').removeClass('fa-plus-square').addClass('fa-minus-square-o')
 
-                         $(this).find('.acc-btn').attr('data-type', 'show')
 
-                     })
 
-                 } else {
 
-                     $(this).parent().find(`div[data-toggleid="${idx}"]`).hide(() => {
 
-                         $(this).children().find('i').removeClass('fa-minus-square-o').addClass('fa-plus-square')
 
-                         $(this).find('.acc-btn').attr('data-type', 'hide')
 
-                     })
 
-                 }
 
-                 return false
 
-             })
 
-             // 管理员更改审批流程js部分
 
-             let timer2 = null;
 
-             let oldSearchVal2 = null;
 
-             $('body').on('input propertychange', '#admin-edit-shenpi .gr-search', function(e) {
 
-                 oldSearchVal2 = e.target.value;
 
-                 timer2 && clearTimeout(timer2);
 
-                 timer2 = setTimeout(() => {
 
-                     const newVal = $(this).val();
 
-                     const code = $(this).attr('data-code');
 
-                     let html = '';
 
-                     if (newVal && newVal === oldSearchVal2) {
 
-                         accountList.filter(item => item && (item.name.indexOf(newVal) !== -1 || (item.mobile && item.mobile.indexOf(newVal) !== -1))).forEach(item => {
 
-                             html += `<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>`
 
-                         });
 
-                         $('#' + code + '_dropdownMenu .book-list').empty();
 
-                         $('#' + code + '_dropdownMenu .book-list').append(html);
 
-                     } else {
 
-                         if (!$('#' + code + '_dropdownMenu .acc-btn').length) {
 
-                             accountGroup.forEach((group, idx) => {
 
-                                 if (!group) return;
 
-                                 html += `<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 => {
 
-                                     html += `<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>`;
 
-                                 });
 
-                                 html += '</div>';
 
-                             });
 
-                             $('#' + code + '_dropdownMenu .book-list').empty();
 
-                             $('#' + code + '_dropdownMenu .book-list').append(html);
 
-                         }
 
-                     }
 
-                 }, 400);
 
-             });
 
-             $('body').on('click', '#admin-edit-shenpi dl dd', function () {
 
-                 const id = parseInt($(this).attr('data-id'));
 
-                 if (!id) return;
 
-                 let this_aid = parseInt($(this).parents('.book-list').attr('data-aid'));
 
-                 let this_operate = $(this).parents('.book-list').attr('data-operate');
 
-                 const user = _.find(accountList, function (item) {
 
-                     return item.id === id;
 
-                 });
 
-                 const auditorIndex = _.findIndex(auditorList, { uid: id });
 
-                 if (auditorIndex !== -1) {
 
-                     toastr.warning('该审核人已存在,请勿重复添加');
 
-                     return;
 
-                 }
 
-                 const order = parseInt($(this).parents('tr').find('.shenpi-order').text());
 
-                 const curAuditorIndex = _.findIndex(auditorList, { uid: this_aid });
 
-                 const prop = {
 
-                     operate: this_operate,
 
-                     old_aid: this_aid,
 
-                     new_aid: user.id,
 
-                 };
 
-                 postData(window.location.pathname + '/audit/save', prop, (datas) => {
 
-                     // if (this_operate === 'add') {
 
-                     //     const addhtml = '<tr>\n' +
 
-                     //         `                                <td><span class="shenpi-order">${order+1}</span> ${user.name} <small class="text-muted">${user.role}</small></td>\n` +
 
-                     //         `                                <td style="text-align: center"><span class="">待审批</span></td>\n` +
 
-                     //         '                                <td style="text-align: center">\n' +
 
-                     //         '                                    <span class="dropdown mr-2">\n' +
 
-                     //         `                                    <a href="javascript: void(0)" class="add-audit" id="${user.id}_add_dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">增加</a>\n` +
 
-                     //         makeSelectAudit(user.id+'_add', user.id, 'add') +
 
-                     //         '                                        </div>\n' +
 
-                     //         '                                    </span>\n' +
 
-                     //         '                                    <span class="dropdown mr-2">\n' +
 
-                     //         `                                        <a href="javascript: void(0)" class="change-audit" id="${user.id}_change_dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">更换</a>\n` +
 
-                     //         makeSelectAudit(user.id+'_change', user.id, 'change') +
 
-                     //         '                                    </span>\n' +
 
-                     //         '                                    <span class="dropdown">\n' +
 
-                     //         '                                    <a href="javascript: void(0)" class="text-danger" title="移除" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">移除</a>\n' +
 
-                     //         '                                    <div class="dropdown-menu">\n' +
 
-                     //         '                                        <span class="dropdown-item">确认移除审批人?</span>\n' +
 
-                     //         '                                        <div class="dropdown-divider"></div>\n' +
 
-                     //         '                                        <div class="px-2 py-1 text-center">\n' +
 
-                     //         `                                            <button class="remove-audit btn btn-sm btn-danger" data-id="${user.id}">移除</button>\n` +
 
-                     //         '                                            <button class="btn btn-sm btn-secondary">取消</button>\n' +
 
-                     //         '                                        </div>\n' +
 
-                     //         '                                    </div>\n' +
 
-                     //         '                                    </span>\n' +
 
-                     //         '                                </td>\n' +
 
-                     //         '                            </tr>';
 
-                     //     $(this).parents('tr').after(addhtml);
 
-                     //     auditorList.splice(curAuditorIndex+1, 0, { uid: user.id, company: user.company, name: user.name, role: user.role });
 
-                     //     updateOrder(user.id);
 
-                     // } else if (this_operate === 'change') {
 
-                     //     const this_user = _.find(auditorList, { uid: this_aid });
 
-                     //     this_user.uid = user.id;
 
-                     //     this_user.company = user.company;
 
-                     //     this_user.role = user.role;
 
-                     //     this_user.name = user.name;
 
-                     //     auditorList.splice(curAuditorIndex, 1, this_user);
 
-                     //     $(this).parents('tr').children('td').eq(0).html(`<span class="shenpi-order">${order}</span> ${user.name} <small class="text-muted">${user.role}</small>`);
 
-                     //     // 替换所有aid
 
-                     //     $(this).parents('.book-list').attr('data-aid', user.id);
 
-                     //     $(this).parents('.dropdown-menu').attr('id', user.id +'_change_dropdownMenu').attr('aria-labelledby', user.id +'_change_dropdownMenuButton');
 
-                     //     $(this).parents('.dropdown-menu').children('mb-2').children('input').attr('data-code', user.id +'_change');
 
-                     //     $(this).parents('.dropdown-menu').siblings('.change-audit').attr('id', user.id +'_change_dropdownMenuButton');
 
-                     //     $(this).parents('td').children('span').eq(0).find('.add-audit').attr('id', user.id +'_add_dropdownMenuButton');
 
-                     //     $(this).parents('td').children('span').eq(0).find('.dropdown-menu').attr('id', user.id +'_add_dropdownMenu').attr('aria-labelledby', user.id +'_add_dropdownMenuButton');
 
-                     //     $(this).parents('td').children('span').eq(0).find('.dropdown-menu').children('mb-2').children('input').attr('data-code', user.id +'_add');
 
-                     //     $(this).parents('td').children('span').eq(0).find('.dropdown-menu').children('.book-list').attr('data-aid', user.id);
 
-                     //     $(this).parents('td').children('span').eq(2).find('.remove-audit').attr('data-id', user.id);
 
-                     // }
 
-                     $('#admin-edit-shenpi-list').html(getAdminEditShenpiListHtml(datas));
 
-                     changeLiucheng(datas);
 
-                 });
 
-             });
 
-             // 移除审批人
 
-             $('body').on('click', '#admin-edit-shenpi .remove-audit', function () {
 
-                 const id = parseInt($(this).attr('data-id'));
 
-                 const prop = {
 
-                     operate: 'del',
 
-                     old_aid: id,
 
-                 };
 
-                 postData(window.location.pathname + '/audit/save', prop, (datas) => {
 
-                     // updateOrder(id, 0);
 
-                     // const curAuditorIndex = _.findIndex(auditorList, { uid: id });
 
-                     // auditorList.splice(curAuditorIndex, 1);
 
-                     // $(this).parents('tr').remove();
 
-                     $('#admin-edit-shenpi-list').html(getAdminEditShenpiListHtml(datas));
 
-                     changeLiucheng(datas);
 
-                 });
 
-             });
 
-             // 比uid大的序号进行调整
 
-             function updateOrder(uid, num = 1) {
 
-                 const index = _.findIndex(auditorList, { uid });
 
-                 for (let i = index;i < auditorList.length; i++) {
 
-                     $('#admin-edit-shenpi tbody').children('tr').eq(i).find('.shenpi-order').text(i+num);
 
-                 }
 
-             }
 
-             const getAdminEditShenpiListHtml = function(auditGroup) {
 
-                 const html = [];
 
-                 for (const [i, group] of auditGroup.entries()) {
 
-                     if (i === 0) continue;
 
-                     for (const [j, auditor] of group.entries()) {
 
-                         html.push('<tr>');
 
-                         if (j === 0) {
 
-                             const auditTypeHtml = auditor.type === auditType.key.common ? '' : `<span class="ml-2 badge badge-pill badge-${auditType.info[auditor.audit_type].class} p-1"><small>${auditType.info[auditor.audit_type].short}</small></span>`;
 
-                             html.push(`<td class="text-left d-flex">${i + '审'}${auditTypeHtml}</td>`);
 
-                         } else {
 
-                             html.push(`<td class="text-left d-flex"></td>`);
 
-                         }
 
-                         html.push(`<td></span> ${auditor.name} <small class="text-muted">${auditor.role}</small></td>`);
 
-                         html.push(`<td style="text-align: center"><span class="${auditConst.auditStringClass[auditor.status]}">${ auditor.status !== auditConst.status.uncheck ? auditConst.auditString[auditor.status] : '待审批' }</span></td>`);
 
-                         html.push('<td style="text-align: center">');
 
-                         if (auditor.status === auditConst.status.checking && j === group.length - 1) {
 
-                             html.push('<span class="dropdown mr-2">',
 
-                                 `<a href="javascript: void(0)" class="add-audit" id="${auditor.uid}_add_dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">增加</a>`,
 
-                                 makeSelectAudit(auditor.uid+'_add', auditor.uid, 'add'),'</div>', '</span>');
 
-                         }
 
-                         if (auditor.status === auditConst.status.uncheck) {
 
-                             if (j === group.length - 1) {
 
-                                 html.push('<span class="dropdown mr-2">',
 
-                                     `<a href="javascript: void(0)" class="add-audit" id="${auditor.uid}_add_dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">增加</a>`,
 
-                                     makeSelectAudit(auditor.uid+'_add', auditor.uid, 'add'),'</div>', '</span>');
 
-                                 if (auditor.audit_type !== auditType.key.common) {
 
-                                     html.push('<span class="dropdown mr-2">',
 
-                                         `<a href="javascript: void(0)" class="add-audit" id="${auditor.uid}_add_dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">平级</a>`,
 
-                                         makeSelectAudit(auditor.uid+'_add-sibling', auditor.uid, 'add-sibling'),'</div>', '</span>');
 
-                                 }
 
-                             }
 
-                             html.push('<span class="dropdown mr-2">',
 
-                                 `<a href="javascript: void(0)" class="add-audit" id="${auditor.uid}_add_dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">更换</a>`,
 
-                                 makeSelectAudit(auditor.uid+'_change', auditor.uid, 'change'),'</div>', '</span>');
 
-                             html.push(`<span class="dropdown">
 
-                                     <a href="javascript: void(0)" class="text-danger" title="移除" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">移除</a>
 
-                                     <div class="dropdown-menu">
 
-                                         <span class="dropdown-item" href="javascript:void(0);">确认移除审批人?</span>
 
-                                         <div class="dropdown-divider"></div>
 
-                                         <div class="px-2 py-1 text-center">
 
-                                             <button class="remove-audit btn btn-sm btn-danger" data-id="${auditor.uid}">移除</button>
 
-                                             <button class="btn btn-sm btn-secondary">取消</button>
 
-                                         </div>
 
-                                     </div>
 
-                                     </span>`);
 
-                         }
 
-                         html.push('</td>');
 
-                         html.push('</tr>');
 
-                     }
 
-                 }
 
-                 return html.join('');
 
-             };
 
-             function changeLiucheng(datas) {
 
-                 const auditorshtml = [];
 
-                 let lastAuditorHtml = [];
 
-                 for (const [index,data] of datas.entries()) {
 
-                     auditorshtml.push(`<li class="list-group-item d-flex justify-content-between align-items-center" data-auditid="${index !== 0 ? data[0].uid : ''}">`);
 
-                     auditorshtml.push('<span class="mr-1"><i class="fa ' + (index === 0 ? 'fa-play-circle fa-rotate-90' : index+1 === datas.length ? 'fa-stop-circle' : 'fa-chevron-circle-down') + '"></i></span>');
 
-                     auditorshtml.push('<span class="text-muted">');
 
-                     for (const u of data) {
 
-                         auditorshtml.push(`<small class="d-inline-block text-dark mx-1" title="${u.role}" data-auditorId="${u.uid}">${u.name}</small>`);
 
-                     }
 
-                     auditorshtml.push('</span>');
 
-                     auditorshtml.push('<div class="d-flex ml-auto">');
 
-                     if (data[0].audit_type !== auditType.key.common) {
 
-                         auditorshtml.push(`<span class="badge badge-pill badge-${auditType.info[data[0].audit_type].class} p-1"><small>${auditType.info[data[0].audit_type].short}</small></span>`);
 
-                     }
 
-                     if (index === 0) {
 
-                         auditorshtml.push('<span class="badge badge-light badge-pill ml-auto"><small>原报</small></span>');
 
-                     } else if (index+1 === datas.length) {
 
-                         auditorshtml.push('<span class="badge badge-light badge-pill"><small>终审</small></span>');
 
-                     } else {
 
-                         auditorshtml.push('<span class="badge badge-light badge-pill"><small>'+ transFormToChinese(index) +'审</small></span>');
 
-                     }
 
-                     auditorshtml.push('</div>');
 
-                     auditorshtml.push('</li>');
 
-                     if (data[0].status === auditConst.status.uncheck) {
 
-                         lastAuditorHtml.push('<li class="timeline-list-item pb-2 is_uncheck">');
 
-                         if (index < datas.length - 1) {
 
-                             lastAuditorHtml.push('<div class="timeline-item-tail"></div>');
 
-                         }
 
-                         lastAuditorHtml.push('<div class="timeline-item-icon bg-secondary text-light"></div>');
 
-                         lastAuditorHtml.push('<div class="timeline-item-content">');
 
-                         lastAuditorHtml.push(`<div class="py-1">
 
-                         <span class="text-black-50">
 
-                         ${ !index === datas.length - 1 ? data[0].audit_order + '' : '终' }审 ${getAuditTypeText(data[0].audit_type)}
 
-                         </span>
 
-                     </div>`);
 
-                         lastAuditorHtml.push('<div class="card"><div class="card-body px-3 py-0">');
 
-                         for (const [i, auditor] of data.entries()) {
 
-                             lastAuditorHtml.push(`<div class="card-text p-2 py-3 row ${ ( i > 0 ? 'border-top' : '') }">`);
 
-                             lastAuditorHtml.push(`<div class="col"><span class="h6">${auditor.name}</span><span class="text-muted ml-1">${auditor.role}</span></div>`);
 
-                             lastAuditorHtml.push('<div class="col">');
 
-                             lastAuditorHtml.push('</div>');
 
-                             lastAuditorHtml.push('</div>');
 
-                         }
 
-                         lastAuditorHtml.push('</div></div>');
 
-                         lastAuditorHtml.push('</div>');
 
-                         lastAuditorHtml.push('</li>');
 
-                     }
 
-                 }
 
-                 $('.last-auditor-list .is_uncheck').remove();
 
-                 $('.last-auditor-list').append(lastAuditorHtml.join(''));
 
-                 $('.auditors-list').html(auditorshtml.join(''));
 
-             }
 
-             const getAuditTypeText = function (type) {
 
-                 if (type === auditType.key.common) return '';
 
-                 return `<span class="text-${auditType.info[type].class}">${auditType.info[type].long}</span>`;
 
-             };
 
-             // 审批流程-选择审批人html 生成
 
-             function makeSelectAudit(code, aid, status) {
 
-                 let divhtml = '';
 
-                 accountGroup.forEach((group, idx) => {
 
-                     let didivhtml = '';
 
-                     if(group) {
 
-                         group.groupList.forEach(item => {
 
-                             didivhtml += '<dd class="border-bottom p-2 mb-0 " data-id="' + item.id + '" >\n' +
 
-                                 '<p class="mb-0 d-flex"><span class="text-primary">' + item.name + '</span><span\n' +
 
-                                 '                                                                                class="ml-auto">' + item.mobile + '</span></p>\n' +
 
-                                 '                                                                    <span class="text-muted">' + item.role + '</span>\n' +
 
-                                 '                                                                    </dd>\n';
 
-                         });
 
-                         divhtml += '<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>\n' +
 
-                             '                                                                <div class="dd-content" data-toggleid="' + idx + '">\n' + didivhtml +
 
-                             '                                                                </div>\n';
 
-                     }
 
-                 });
 
-                 let html = '<div class="dropdown-menu dropdown-menu-right" id="' + code + '_dropdownMenu" aria-labelledby="' + code + '_dropdownMenuButton" style="width:220px">\n' +
 
-                     '                                                        <div class="mb-2 p-2"><input class="form-control form-control-sm gr-search"\n' +
 
-                     '                                                                                     placeholder="姓名/手机 检索" autocomplete="off" data-code="' + code + '"></div>\n' +
 
-                     '                                                        <dl class="list-unstyled book-list" data-aid="'+ aid +'" data-operate="'+ status +'">\n' + divhtml +
 
-                     '                                                        </dl>\n' +
 
-                     '                                                    </div>\n' +
 
-                     '                                                </div>\n' +
 
-                     '                                            </span>\n' +
 
-                     '                                        </span>\n' +
 
-                     '                                        </li>';
 
-                 return html;
 
-             }
 
-         });
 
-     </script>
 
- <% } %>
 
 
  |