| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031 |
- <div class="panel-content">
- <div class="panel-title fluid">
- <div class="title-main d-flex">
- <h2><%= ctx.subProject.name %></h2>
- <div class="ml-auto">
- <i class="fa fa-bell mr-1"></i><a href="#version" data-toggle="modal" data-target="#version">当前版本:<%= versionList[0].name %></a>
- <% if (sysMsgList.length > 0) { %>
- <!--系统消息通知-->
- <% for (const sm of sysMsgList) { %>
- <!--<a href="#view-msg" msg-id="<%= sm.id %>" data-toggle="modal" data-target="#view-msg" class="mr-5 mb-2 system-msg"><%- sm.title %>(<%- moment(sm.release_time*1000).format('YYYY-MM-DD') %>)</a>-->
- <a href="#view-msg" msg-id="<%= sm.id %>" data-toggle="modal" data-target="#view-msg" class="ml-3 system-msg">系统最新通知</a>
- <% } %>
- <% } %>
- </div>
- </div>
- </div>
- <div class="content-wrap my-3">
- <% if (!authMobile) { %>
- <div class="text-danger px-3 mb-3 mobile-height">
- <strong>您的账号未认证手机。</strong> 设置认证手机后,可以用于 找回密码 及 接收验证码。<a class="badge badge-danger" href="/profile/sms">点击设置</a>
- </div>
- <% } %>
- <% if (maintainData.status !== maintainConst.status.notset && new Date().getTime() + (86400*1000) > parseFloat(maintainData.maintain_time)) { %>
- <!--系统维护信息-->
- <div class="card mb-3 bg-danger text-white mx-3 maintain-height">
- <div class="card-body">
- <h4><i class="fa fa-wrench"></i> 系统将于 <%- moment(parseFloat(maintainData.maintain_time)).format('YYYY年MM月DD日 HH:mm') %> 开始停机维护,<%- (maintainData.duration !== maintainConst.duration.forever ? '持续'+ maintainConst.durationString[maintainData.duration] +'。' : '') %>造成不便敬请谅解。</h4>
- <p class="ml-4 mb-0"><%- maintainData.msg %></p>
- </div>
- </div>
- <% } %>
- <div class="dashboard-height mx-3">
- <div class="row agency-partheight">
- <div class="col-6 px-0">
- <div class="card ml-3">
- <div class="card-header card-white d-flex justify-content-between">
- <div class="card-big-htext"><span class="card-icon mr-2"></span>需要你处理</div>
- <div>
- <select class="form-control form-control-sm" id="select-doing-type">
- <option value="0">全部</option>
- <% if (auditAdvance.length !== 0) { %>
- <option value="6">预付款(<%- auditAdvance.length %>)</option>
- <% } %>
- <% if (auditTenders.length !== 0) { %>
- <option value="5">台账审批(<%- auditTenders.length %>)</option>
- <% } %>
- <% if (auditRevise.length !== 0) { %>
- <option value="4">台账修订(<%- auditRevise.length %>)</option>
- <% } %>
- <% if (auditStages.length !== 0 || auditStageAss.length !== 0) { %>
- <option value="2">计量审批(<%- (auditStages.length + auditStageAss.length) %>)</option>
- <% } %>
- <% if (auditChanges.length !== 0) { %>
- <option value="3">变更审批(<%- auditChanges.length %>)</option>
- <% } %>
- <% if (ctx.subProject.page_show.openChangeProject && auditChangeProject.length !== 0) { %>
- <option value="7">变更立项(<%- auditChangeProject.length %>)</option>
- <% } %>
- <% if (ctx.subProject.page_show.openChangeApply && auditChangeApply.length !== 0) { %>
- <option value="8">变更申请(<%- auditChangeApply.length %>)</option>
- <% } %>
- <% if (ctx.subProject.page_show.openChangePlan && auditChangePlan.length !== 0) { %>
- <option value="9">变更方案(<%- auditChangePlan.length %>)</option>
- <% } %>
- <% if (ctx.subProject.page_show.openMaterial && auditMaterial.length !== 0) { %>
- <option value="1">材料调差(<%- auditMaterial.length %>)</option>
- <% } %>
- <% if (ctx.subProject.page_show.openPayment && auditPayments.length !== 0) { %>
- <option value="10">支付审批(<%- auditPayments.length %>)</option>
- <% } %>
- <% if (ctx.subProject.page_show.openFinancial && auditFinancials.length !== 0) { %>
- <option value="11">资金支付(<%- auditFinancials.length %>)</option>
- <% } %>
- <% if (ctx.subProject.page_show.qualityInspection && auditInspections.length !== 0) { %>
- <option value="12">质量巡检(<%- auditInspections.length %>)</option>
- <% } %>
- <% if (ctx.subProject.page_show.safeInspection && auditSafeInspections.length !== 0) { %>
- <option value="13">安全巡检(<%- auditSafeInspections.length %>)</option>
- <% } %>
- <% if (ctx.subProject.page_show.safePayment && auditSafeStage.length !== 0) { %>
- <option value="14">安全计量(<%- auditSafeStage.length %>)</option>
- <% } %>
- <% if (ctx.subProject.page_show.safePayment && auditPhasePay.length !== 0) { %>
- <option value="15">合同支付(<%- auditPhasePay.length %>)</option>
- <% } %>
- <% if (ctx.subProject.page_show.cost && auditCostStageLedger.length !== 0) { %>
- <option value="16">成本报审(<%- auditCostStageLedger.length %>)</option>
- <% } %>
- <% if (ctx.subProject.page_show.cost && auditCostStageBook.length !== 0) { %>
- <option value="17">财务账面(<%- auditCostStageBook.length %>)</option>
- <% } %>
- <% if (ctx.subProject.page_show.cost && auditCostStageAnalysis.length !== 0) { %>
- <option value="18">成本分析(<%- auditCostStageAnalysis.length %>)</option>
- <% } %>
- <% if (ctx.subProject.page_show.cost && auditCostStageDuty.length !== 0) { %>
- <option value="19">责任成本(<%- auditCostStageDuty.length %>)</option>
- <% } %>
- <% if (ctx.subProject.page_show.openContract && (auditContracts.length + auditContractPays.length) !== 0) { %>
- <option value="20">合同管理(<%- (auditContracts.length + auditContractPays.length) %>)</option>
- <% } %>
- </select>
- </div>
- </div>
- <div class="card-body p-0">
- <div class="contant-height-one">
- <% if (auditTenders.length !== 0 || auditRevise.length !== 0 || auditStages.length !== 0 || auditChanges.length !== 0 || auditMaterial.length !== 0 || auditAdvance.length !== 0 || auditChangeProject.length !== 0 || auditChangeApply.length !== 0 || auditChangePlan.length !== 0 || auditPayments.length !== 0 || auditStageAss.length !== 0 || auditFinancials.length !== 0 || auditInspections.length !== 0 || auditSafeInspections.length !== 0 || auditSafeStage.length !== 0 || auditPhasePay.length !== 0 || auditCostStageLedger.length !== 0 || auditCostStageBook.length !== 0 || auditCostStageAnalysis.length !== 0 || auditCostStageDuty.length !== 0 || auditContracts.length !== 0 || auditContractPays.length !== 0) { %>
- <style>
- #doing-list td {
- word-wrap:break-word;
- }
- </style>
- <table style="table-layout:fixed;" class="table table-middle">
- <thead class="thead-light">
- <tr>
- <th width="110" class="pl-3">类型</th>
- <th>名称</th>
- <th width="60">状态</th>
- <th width="125">创建时间</th>
- <th width="90">操作</th>
- </tr>
- </thead>
- <tbody id="doing-list">
- <% for (const t of auditTenders) { %>
- <% if (t.ledger_status === acLedger.status.checking) { %>
- <tr data-type="5">
- <td><span class="bg-new-ledger text-new-ledger badge text-width">台账审批</span></td>
- <td><a href="/tender/<%- t.id %>"><%- t.name %></a></td>
- <td>台账</td>
- <td><%- (t.begin_time ? ctx.moment(t.begin_time).format('YYYY/MM/DD HH:mm') : '') %></td>
- <td><a href="/tender/<%- t.id %>/ledger" class="btn btn-outline-primary btn-sm btn-table" role="button">审批</a></td>
- </tr>
- <% } else { %>
- <tr data-type="5">
- <td><span class="bg-new-ledger text-new-ledger badge text-width">台账审批</span></td>
- <td><a href="/tender/<%- t.id %>"><%- t.name %></a></td>
- <td>台账</td>
- <td><%- (t.end_time ? ctx.moment(t.end_time).format('YYYY/MM/DD HH:mm') : '') %></td>
- <td><a href="/tender/<%- t.id %>/ledger" class="btn btn-outline-warning btn-sm btn-table text-warning" role="button">重新上报</a></td>
- </tr>
- <% } %>
- <% } %>
- <% for (const revise of auditRevise) { %>
- <tr data-type="4">
- <td><span class="bg-new-revise text-new-revise badge text-width">台账修订</span></td>
- <td><a href="/tender/<%- revise.t_id %>"><%- revise.t_name %></a> <a href="/tender/<%- revise.t_id %>/revise/<%- revise.id %>/info">第<%- revise.corder %>次</a></td>
- <td>第<%- revise.corder %>次</td>
- <td><%- (
- revise.status === acRevise.status.checking
- ? (revise.begin_time ? ctx.moment(revise.begin_time).format('YYYY/MM/DD HH:mm') : '')
- : (revise.end_time ? ctx.moment(revise.end_time).format('YYYY/MM/DD HH:mm') : '')
- ) %></td>
- <td><a href="/tender/<%- revise.t_id %>/revise/<%- revise.id %>/info" class="btn btn-sm btn-table <% if (revise.status === acRevise.status.checkNo) { %>btn-outline-warning text-warning<% } else { %>btn-outline-primary<% } %>" role="button"><% if (revise.status === acRevise.status.checking) { %>审批<% } else if (revise.status === acRevise.status.checkNo) { %>重新上报<% } %></a></td>
- </tr>
- <% } %>
- <% for (const audit of auditStages) { %>
- <% if (audit.sstatus === acStage.status.checkNo) { %>
- <tr data-type="2">
- <td><span class="bg-new-stage text-new-stage badge text-width">计量审批</span></td>
- <td><a href="/tender/<%- audit.tid %>"><%- audit.name %></a> <a href="/tender/<%- audit.tid %>/measure/stage/<%- audit.sorder %>">第<%- audit.sorder %>期</a></td>
- <td>第<%- audit.sorder %>期</td>
- <td><%- ctx.moment(audit.end_time).format('YYYY/MM/DD HH:mm') %></td>
- <td><a href="/tender/<%- audit.tid %>/measure/stage/<%- audit.sorder %>" class="btn btn-outline-warning btn-sm btn-table text-warning" role="button">重新上报</a></td>
- </tr>
- <% } else if (audit.sstatus === acStage.status.uncheck) { %>
- <tr data-type="2">
- <td><span class="bg-new-stage text-new-stage badge text-width">计量审批</span></td>
- <td><a href="/tender/<%- audit.tid %>"><%- audit.name %></a> <a href="/tender/<%- audit.tid %>/measure/stage/<%- audit.sorder %>">第<%- audit.sorder %>期</a></td>
- <td>第<%- audit.sorder %>期</td>
- <td><%- ctx.moment(audit.begin_time).format('YYYY/MM/DD HH:mm') %></td>
- <td><a href="/tender/<%- audit.tid %>/measure/stage/<%- audit.sorder %>" class="btn btn-outline-primary btn-sm btn-table" role="button">上报</a></td>
- </tr>
- <% } else { %>
- <tr data-type="2">
- <td><span class="bg-new-stage text-new-stage badge text-width">计量审批</span></td>
- <td><a href="/tender/<%- audit.tid %>"><%- audit.name %></a> <a href="/tender/<%- audit.tid %>/measure/stage/<%- audit.sorder %>">第<%- audit.sorder %>期</a></td>
- <td>第<%- audit.sorder %>期</td>
- <td><%- ctx.moment(audit.begin_time).format('YYYY/MM/DD HH:mm') %></td>
- <td><a href="/tender/<%- audit.tid %>/measure/stage/<%- audit.sorder %>" class="btn btn-outline-primary btn-sm btn-table" role="button"><% if (audit.sstatus === acStage.status.checkNoPre) { %>重新<% } %>审批</a></td>
- </tr>
- <% } %>
- <% } %>
- <% for (const audit of auditStageAss) { %>
- <% if (audit.sstatus !== acStage.status.checkNo) { %>
- <tr data-type="2">
- <td><span class="bg-new-stage text-new-stage badge text-width">计量审批</span></td>
- <td><a href="/tender/<%- audit.tid %>"><%- audit.tender_name %></a> <a href="/tender/<%- audit.tid %>/measure/stage/<%- audit.sorder %>">第<%- audit.sorder %>期</a></td>
- <td>第<%- audit.sorder %>期</td>
- <td><%- ctx.moment(audit.begin_time).format('YYYY/MM/DD HH:mm') %></td>
- <td><a href="/tender/<%- audit.tid %>/measure/stage/<%- audit.sorder %>" class="btn btn-outline-primary btn-sm btn-table" role="button">协同审批</a></td>
- </tr>
- <% } else { %>
- <tr data-type="2">
- <td><span class="bg-new-stage text-new-stage badge text-width">计量审批</span></td>
- <td><a href="/tender/<%- audit.tid %>"><%- audit.tender_name %></a> <a href="/tender/<%- audit.tid %>/measure/stage/<%- audit.sorder %>">第<%- audit.sorder %>期</a></td>
- <td>第<%- audit.sorder %>期</td>
- <td><%- ctx.moment(audit.begin_time).format('YYYY/MM/DD HH:mm') %></td>
- <td><a href="/tender/<%- audit.tid %>/measure/stage/<%- audit.sorder %>" class="btn btn-outline-warning btn-sm btn-table text-warning" role="button">协同上报</a></td>
- </tr>
- <% } %>
- <% } %>
- <% for (const change of auditChanges) { %>
- <tr data-type="3">
- <td><span class="bg-new-change text-new-change badge text-width">变更审批</span></td>
- <td><a href="/tender/<%- change.tid %>"><%- change.name %></a> <a href="/tender/<%- change.tid %>/change/<%- change.cid %>/information"><%- change.ccode %></a></td>
- <td>变更</td>
- <td><%- change.begin_time ? ctx.moment(change.begin_time).format('YYYY/MM/DD HH:mm') : (change.cin_time ? ctx.moment.unix(change.cin_time).format('YYYY/MM/DD HH:mm') : '') %></td>
- <td><a href="/tender/<%- change.tid %>/change/<%- change.cid %>/information" class="btn btn-sm btn-table <% if (change.cstatus !== acChange.status.checking && change.cstatus !== acChange.status.checkNoPre) { %>btn-outline-warning text-warning<% } else { %>btn-outline-primary<% } %>" role="button"><% if (change.cstatus === acChange.status.checking) { %>审批<% } else if (change.cstatus === acChange.status.checkNoPre) { %>重新审批<% } else { %>重新上报<% } %></a></td>
- </tr>
- <% } %>
- <% for (const acp of auditChangeProject) { %>
- <tr data-type="7">
- <td><span class="bg-new-changeProject text-new-changeProject badge text-width">变更立项</span></td>
- <td><a href="/tender/<%- acp.tid %>"><%- acp.name %></a> <a href="/tender/<%- acp.tid %>/change/project/<%- acp.cpid %>/information"><%- acp.mcode %></a></td>
- <td>变更</td>
- <td><%- (
- acp.status !== acChangeProject.status.back
- ? (acp.begin_time ? ctx.moment(acp.begin_time).format('YYYY/MM/DD HH:mm') : '')
- : (acp.end_time ? ctx.moment(acp.end_time).format('YYYY/MM/DD HH:mm') : '')
- ) %></td>
- <td><a href="/tender/<%- acp.tid %>/change/project/<%- acp.cpid %>/information" class="btn btn-sm btn-table <% if (acp.mstatus === acChangeProject.status.back) { %>btn-outline-warning text-warning<% } else { %>btn-outline-primary<% } %>" role="button"><% if (acp.mstatus !== acChangeProject.status.back) { %>审批<% } else { %>重新上报<% } %></a></td>
- </tr>
- <% } %>
- <% for (const aca of auditChangeApply) { %>
- <tr data-type="8">
- <td><span class="bg-new-changeApply text-new-changeApply badge text-width">变更申请</span></td>
- <td><a href="/tender/<%- aca.tid %>"><%- aca.name %></a> <a href="/tender/<%- aca.tid %>/change/apply/<%- aca.caid %>/information"><%- aca.mcode %></a></td>
- <td>变更</td>
- <td><%- (
- aca.mstatus !== acChangeApply.status.checkNo
- ? (aca.begin_time ? ctx.moment(aca.begin_time).format('YYYY/MM/DD HH:mm') : '')
- : (aca.end_time ? ctx.moment(aca.end_time).format('YYYY/MM/DD HH:mm') : '')
- ) %></td>
- <td><a href="/tender/<%- aca.tid %>/change/apply/<%- aca.caid %>/information" class="btn btn-sm btn-table <% if (aca.mstatus === acChangeApply.status.checkNo) { %>btn-outline-warning text-warning<% } else { %>btn-outline-primary<% } %>" role="button"><% if (aca.mstatus !== acChangeApply.status.checkNo) { %>审批<% } else { %>重新上报<% } %></a></td>
- </tr>
- <% } %>
- <% for (const acp of auditChangePlan) { %>
- <tr data-type="9">
- <td><span class="bg-new-changePlan text-new-changePlan badge text-width">变更方案</span></td>
- <td><a href="/tender/<%- acp.tid %>"><%- acp.name %></a> <a href="/tender/<%- acp.tid %>/change/plan/<%- acp.cpid %>/information"><%- acp.mcode %></a></td>
- <td>变更</td>
- <td><%- (
- acp.mstatus !== acChangePlan.status.checkNo
- ? (acp.begin_time ? ctx.moment(acp.begin_time).format('YYYY/MM/DD HH:mm') : '')
- : (acp.end_time ? ctx.moment(acp.end_time).format('YYYY/MM/DD HH:mm') : '')
- ) %></td>
- <td><a href="/tender/<%- acp.tid %>/change/plan/<%- acp.cpid %>/information" class="btn btn-sm btn-table <% if (acp.mstatus === acChangePlan.status.checkNo) { %>btn-outline-warning text-warning<% } else { %>btn-outline-primary<% } %>" role="button"><% if (acp.mstatus !== acChangePlan.status.checkNo) { %>审批<% } else { %>重新上报<% } %></a></td>
- </tr>
- <% } %>
- <% for (const am of auditMaterial) { %>
- <% if (am.mstatus !== acMaterial.status.checkNo) { %>
- <tr data-type="1">
- <td><span class="bg-new-material text-new-material badge text-width">材料调差</span></td>
- <td><a href="/tender/<%- am.tid %>"><%- am.name %></a> <a href="/tender/<%- am.tid %>/measure/material/<%- am.morder %>">第<%- am.morder %>期</a></td>
- <td>第<%- am.morder %>期</td>
- <td><%- ctx.moment(am.begin_time).format('YYYY/MM/DD HH:mm') %></td>
- <td><a href="/tender/<%- am.tid %>/measure/material/<%- am.morder %>" class="btn btn-outline-primary btn-sm btn-table" role="button">审批</a></td>
- </tr>
- <% } else { %>
- <tr data-type="1">
- <td><span class="bg-new-material text-new-material badge text-width">材料调差</span></td>
- <td><a href="/tender/<%- am.tid %>"><%- am.name %></a> <a href="/tender/<%- am.tid %>/measure/material/<%- am.morder %>">第<%- am.morder %>期</a></td>
- <td>第<%- am.morder %>期</td>
- <td><%- ctx.moment(am.end_time).format('YYYY/MM/DD HH:mm') %></td>
- <td><a href="/tender/<%- am.tid %>/measure/material/<%- am.morder %>" class="btn btn-outline-warning btn-sm btn-table text-warning" role="button">重新上报</a></td>
- </tr>
- <% } %>
- <% } %>
- <% for (const am of auditAdvance) { %>
- <% if (am.mstatus !== acAdvance.status.checkNo) { %>
- <tr data-type="6">
- <td><span class="bg-new-advance text-new-advance badge text-width">预付款</span></td>
- <td><a href="/tender/<%- am.tid %>"><%- am.name %></a> <a href="/tender/<%- am.tid %>/advance/<%- am.vid %>/detail"><%- typeColMap[am.mtype].text %>第<%- am.morder %>期</a></td>
- <td>第<%- am.morder %>期</td>
- <td><%- ctx.moment(am.create_time).format('YYYY/MM/DD HH:mm') %></td>
- <td><a href="/tender/<%- am.tid %>/advance/<%- am.vid %>/detail" class="btn btn-outline-primary btn-sm btn-table" role="button">审批</a></td>
- </tr>
- <% } else { %>
- <tr data-type="6">
- <td><span class="bg-new-advance text-new-advance badge text-width">预付款</span></td>
- <td><a href="/tender/<%- am.tid %>"><%- am.name %></a> <a href="/tender/<%- am.tid %>/advance/<%- am.vid %>/detail"><%- typeColMap[am.mtype].text %>第<%- am.morder %>期</a></td>
- <td>第<%- am.morder %>期</td>
- <td><%- ctx.moment(am.end_time).format('YYYY/MM/DD HH:mm') %></td>
- <td><a href="/tender/<%- am.tid %>/advance/<%- am.vid %>/detail" class="btn btn-outline-warning btn-sm btn-table text-warning" role="button">重新上报</a></td>
- </tr>
- <% } %>
- <% } %>
- <% for (const audit of auditPayments) { %>
- <% if (audit.sstatus !== acStage.status.checkNo) { %>
- <tr data-type="10">
- <td><span class="bg-new-payment text-new-payment badge text-width">支付审批</span></td>
- <% if (audit.type) { %>
- <td><a href="/sp/<%- ctx.subProject.id %>/payment/<%- audit.tender_id %>/list/<%- audit.tr_id %>"><%- audit.name %> <%- audit.rpt_name %></a> <a href="/sp/<%- ctx.subProject.id %>/payment/<%- audit.tender_id %>/safe/<%- audit.td_id %>/bills"><%- audit.scode %></a></td>
- <% } else { %>
- <td><a href="/sp/<%- ctx.subProject.id %>/payment/<%- audit.tender_id %>/list/<%- audit.tr_id %>"><%- audit.name %> <%- audit.rpt_name %></a> <a href="/sp/<%- ctx.subProject.id %>/payment/<%- audit.tender_id %>/detail/<%- audit.td_id %>"><%- audit.scode %></a></td>
- <% } %>
- <td>第<%- audit.sorder %>期</td>
- <td><%- ctx.moment(audit.begin_time).format('YYYY/MM/DD HH:mm') %></td>
- <% if (audit.type) { %>
- <td><a href="/sp/<%- ctx.subProject.id %>/payment/<%- audit.tender_id %>/safe/<%- audit.td_id %>/bills" class="btn btn-outline-primary btn-sm btn-table" role="button"><% if (audit.sstatus === acStage.status.checkNoPre) { %>重新<% } %>审批</a></td>
- <% } else { %>
- <td><a href="/sp/<%- ctx.subProject.id %>/payment/<%- audit.tender_id %>/detail/<%- audit.td_id %>" class="btn btn-outline-primary btn-sm btn-table" role="button"><% if (audit.sstatus === acStage.status.checkNoPre) { %>重新<% } %>审批</a></td>
- <% } %>
- </tr>
- <% } else { %>
- <tr data-type="10">
- <td><span class="bg-new-payment text-new-payment badge text-width">支付审批</span></td>
- <% if (audit.type) { %>
- <td><a href="/sp/<%- ctx.subProject.id %>/payment/<%- audit.tender_id %>/list"><%- audit.name %> <%- audit.rpt_name %></a> <a href="/sp/<%- ctx.subProject.id %>/payment/<%- audit.tender_id %>/safe/<%- audit.td_id %>/bills"><%- audit.scode %></a></td>
- <% } else {%>
- <td><a href="/sp/<%- ctx.subProject.id %>/payment/<%- audit.tender_id %>/list"><%- audit.name %> <%- audit.rpt_name %></a> <a href="/sp/<%- ctx.subProject.id %>/payment/<%- audit.tender_id %>/detail/<%- audit.td_id %>"><%- audit.scode %></a></td>
- <% } %>
- <td>第<%- audit.sorder %>期</td>
- <td><%- ctx.moment(audit.end_time).format('YYYY/MM/DD HH:mm') %></td>
- <% if (audit.type) { %>
- <td><a href="/sp/<%- ctx.subProject.id %>/payment/<%- audit.tender_id %>/safe/<%- audit.td_id %>/bills" class="btn btn-outline-warning btn-sm btn-table text-warning" role="button">重新上报</a></td>
- <% } else {%>
- <td><a href="/sp/<%- ctx.subProject.id %>/payment/<%- audit.tender_id %>/detail/<%- audit.td_id %>" class="btn btn-outline-warning btn-sm btn-table text-warning" role="button">重新上报</a></td>
- <% } %>
- </tr>
- <% } %>
- <% } %>
- <% for (const af of auditFinancials) { %>
- <tr data-type="11">
- <td><span class="bg-new-financial text-new-financial badge text-width">资金支付</span></td>
- <td><a href="/sp/<%- af.spid %>/financial/pay/stage" class="account-page-size"><%- af.name %></a> <a href="/sp/<%- af.spid %>/financial/pay/<%- af.fpid %>/detail"><%- af.fpcode %></a></td>
- <td>支付</td>
- <td><%- (
- af.fpcstatus !== acFinancial.status.checkNo
- ? (af.begin_time ? ctx.moment(af.begin_time).format('YYYY/MM/DD HH:mm') : '')
- : (af.end_time ? ctx.moment(af.end_time).format('YYYY/MM/DD HH:mm') : '')
- ) %></td>
- <td><a href="/sp/<%- af.spid %>/financial/pay/<%- af.fpid %>/detail" class="btn btn-sm btn-table <% if (af.fpstatus === acFinancial.status.checkNo) { %>btn-outline-warning text-warning<% } else { %>btn-outline-primary<% } %>" role="button"><% if (af.fpstatus !== acFinancial.status.checkNo) { %>审批<% } else { %>重新上报<% } %></a></td>
- </tr>
- <% } %>
- <% for (const acp of auditInspections) { %>
- <tr data-type="12">
- <td><span class="bg-new-inspection text-new-inspection badge text-width">质量巡检</span></td>
- <td><a href="/sp/<%- acp.spid %>/quality/tender/<%- acp.tid %>/inspection"><%- acp.name %></a> <a href="/sp/<%- acp.spid %>/quality/tender/<%- acp.tid %>/inspection/<%- acp.qiid %>/information"><%- acp.mcode %></a></td>
- <td>巡检</td>
- <td><%- (
- acp.mstatus !== acInspection.status.checkNo
- ? (acp.begin_time ? ctx.moment(acp.begin_time).format('YYYY/MM/DD HH:mm') : '')
- : (acp.end_time ? ctx.moment(acp.end_time).format('YYYY/MM/DD HH:mm') : '')
- ) %></td>
- <td><a href="/sp/<%- acp.spid %>/quality/tender/<%- acp.tid %>/inspection/<%- acp.qiid %>/information" class="btn btn-sm btn-table <% if (acp.mstatus === acInspection.status.checkNo) { %>btn-outline-warning text-warning<% } else { %>btn-outline-primary<% } %>" role="button"><% if (acp.mstatus === acInspection.status.rectification) { %>整改<% } else if (acp.mstatus !== acInspection.status.checkNo) { %>审批<% } else { %>重新上报<% } %></a></td>
- </tr>
- <% } %>
- <% for (const acp of auditSafeInspections) { %>
- <tr data-type="13">
- <td><span class="bg-new-inspection text-new-inspection badge text-width">安全巡检</span></td>
- <td><a href="/sp/<%- acp.spid %>/safe/tender/<%- acp.tid %>/inspection"><%- acp.name %></a> <a href="/sp/<%- acp.spid %>/safe/tender/<%- acp.tid %>/inspection/<%- acp.qiid %>/information"><%- acp.mcode %></a></td>
- <td>巡检</td>
- <td><%- (
- acp.mstatus !== acInspection.status.checkNo
- ? (acp.begin_time ? ctx.moment(acp.begin_time).format('YYYY/MM/DD HH:mm') : '')
- : (acp.end_time ? ctx.moment(acp.end_time).format('YYYY/MM/DD HH:mm') : '')
- ) %></td>
- <td><a href="/sp/<%- acp.spid %>/safe/tender/<%- acp.tid %>/inspection/<%- acp.qiid %>/information" class="btn btn-sm btn-table <% if (acp.mstatus === acInspection.status.checkNo) { %>btn-outline-warning text-warning<% } else { %>btn-outline-primary<% } %>" role="button"><% if (acp.mstatus === acInspection.status.rectification) { %>整改<% } else if (acp.mstatus !== acInspection.status.checkNo) { %>审批<% } else { %>重新上报<% } %></a></td>
- </tr>
- <% } %>
- <% for (const ass of auditSafeStage) { %>
- <tr data-type="14">
- <td><span class="bg-new-inspection text-new-payment badge text-width">安全计量</span></td>
- <td><a href="/sp/<%- ass.spid %>/safe/tender/<%- ass.tid %>/stage"><%- ass.name %></a> <a href="/sp/<%- ass.spid %>/safe/tender/<%- ass.tid %>/stage/<%- ass.stage_order %>/bills">第<%- ass.stage_order %>期</a></td>
- <td>第<%- ass.stage_order %>期</td>
- <td><%- (ass.begin_time ? ctx.moment(ass.begin_time).format('YYYY/MM/DD HH:mm') : '') %></td>
- <td><a href="/sp/<%- ass.spid %>/safe/tender/<%- ass.tid %>/stage/<%- ass.stage_order %>/bills" class="btn btn-sm btn-table <%- (ass.audit_order === 0 ? 'btn-outline-warning text-warning' : 'btn-outline-primary') %>" role="button"><%- (ass.audit_order === 0 ? '重新上报' : '审批')%></a></td>
- </tr>
- <% } %>
- <% for (const app of auditPhasePay) { %>
- <tr data-type="15">
- <td><span class="bg-new-phasepay text-new-phasepay badge text-width">合同支付</span></td>
- <td><a href="/tender/<%- app.tid %>/pay/<%- app.phase_order %>/detail"><%- app.name %></a> <a href="/tender/<%- app.tid %>/pay/<%- app.phase_order %>/detail">第<%- app.phase_order %>期</a></td>
- <td>第<%- app.phase_order %>期</td>
- <td><%- (app.begin_time ? ctx.moment(app.begin_time).format('YYYY/MM/DD HH:mm') : '') %></td>
- <td><a href="/tender/<%- app.tid %>/pay/<%- app.phase_order %>/detail" class="btn btn-sm btn-table <%- (app.audit_order === 0 ? 'btn-outline-warning text-warning' : 'btn-outline-primary') %>" role="button"><%- (app.audit_order === 0 ? '重新上报' : '审批')%></a></td>
- </tr>
- <% } %>
- <% for (const acs of auditCostStageLedger) { %>
- <tr data-type="16">
- <td><span class="bg-new-coststage text-new-coststage badge text-width">成本报审</span></td>
- <td><a href="/sp/<%- acs.spid %>/cost/tender/<%- acs.tid %>/ledger"><%- acs.name %></a> <a href="/sp/<%- acs.spid %>/cost/tender/<%- acs.tid %>/ledger/<%- acs.stage_order %>/stage">第<%- acs.stage_order %>期</a></td>
- <td>第<%- acs.stage_order %>期</td>
- <td><%- (acs.begin_time ? ctx.moment(acs.begin_time).format('YYYY/MM/DD HH:mm') : '') %></td>
- <td><a href="/sp/<%- acs.spid %>/cost/tender/<%- acs.tid %>/ledger/<%- acs.stage_order %>/stage" class="btn btn-sm btn-table <%- (acs.audit_order === 0 ? 'btn-outline-warning text-warning' : 'btn-outline-primary') %>" role="button"><%- (acs.audit_order === 0 ? '重新上报' : '审批')%></a></td>
- </tr>
- <% } %>
- <% for (const acs of auditCostStageBook) { %>
- <tr data-type="17">
- <td><span class="bg-new-coststage text-new-coststage badge text-width">财务账面</span></td>
- <td><a href="/sp/<%- acs.spid %>/cost/tender/<%- acs.tid %>/book"><%- acs.name %></a> <a href="/sp/<%- acs.spid %>/cost/tender/<%- acs.tid %>/book/<%- acs.stage_order %>/stage">第<%- acs.stage_order %>期</a></td>
- <td>第<%- acs.stage_order %>期</td>
- <td><%- (acs.begin_time ? ctx.moment(acs.begin_time).format('YYYY/MM/DD HH:mm') : '') %></td>
- <td><a href="/sp/<%- acs.spid %>/cost/tender/<%- acs.tid %>/book/<%- acs.stage_order %>/stage" class="btn btn-sm btn-table <%- (acs.audit_order === 0 ? 'btn-outline-warning text-warning' : 'btn-outline-primary') %>" role="button"><%- (acs.audit_order === 0 ? '重新上报' : '审批')%></a></td>
- </tr>
- <% } %>
- <% for (const acs of auditCostStageAnalysis) { %>
- <tr data-type="18">
- <td><span class="bg-new-coststage text-new-coststage badge text-width">成本分析</span></td>
- <td><a href="/sp/<%- acs.spid %>/cost/tender/<%- acs.tid %>/analysis"><%- acs.name %></a> <a href="/sp/<%- acs.spid %>/cost/tender/<%- acs.tid %>/analysis/<%- acs.stage_order %>/stage">第<%- acs.stage_order %>期</a></td>
- <td>第<%- acs.stage_order %>期</td>
- <td><%- (acs.begin_time ? ctx.moment(acs.begin_time).format('YYYY/MM/DD HH:mm') : '') %></td>
- <td><a href="/sp/<%- acs.spid %>/cost/tender/<%- acs.tid %>/analysis/<%- acs.stage_order %>/stage" class="btn btn-sm btn-table <%- (acs.audit_order === 0 ? 'btn-outline-warning text-warning' : 'btn-outline-primary') %>" role="button"><%- (acs.audit_order === 0 ? '重新上报' : '审批')%></a></td>
- </tr>
- <% } %>
- <% for (const acs of auditCostStageDuty) { %>
- <tr data-type="19">
- <td><span class="bg-new-coststage text-new-coststage badge text-width">责任成本</span></td>
- <td><a href="/sp/<%- acs.spid %>/cost/tender/<%- acs.tid %>/duty/1/stage"><%- acs.name %></a></td>
- <td></td>
- <td><%- (acs.begin_time ? ctx.moment(acs.begin_time).format('YYYY/MM/DD HH:mm') : '') %></td>
- <td><a href="/sp/<%- acs.spid %>/cost/tender/<%- acs.tid %>/duty/1/stage" class="btn btn-sm btn-table <%- (acs.audit_order === 0 ? 'btn-outline-warning text-warning' : 'btn-outline-primary') %>" role="button"><%- (acs.audit_order === 0 ? '重新上报' : '审批')%></a></td>
- </tr>
- <% } %>
- <%
- // 合并合同和合同支付数据,统一处理
- const allContractItems = [];
- auditContracts.forEach(contract => {
- allContractItems.push({
- ...contract,
- itemType: 'contract',
- name: contract.name,
- dataType: '20'
- });
- });
- auditContractPays.forEach(pay => {
- // 标段合同:标段名称 + 空格 + 合同名称
- // 项目合同:项目名称 + 空格 + 合同名称
- const displayName = (!pay.is_project_contract && pay.tender_name)
- ? pay.tender_name + ' ' + pay.contract_name
- : (pay.project_name ? pay.project_name + ' ' + pay.contract_name : pay.contract_name);
- allContractItems.push({
- ...pay,
- itemType: 'pay',
- name: displayName,
- dataType: '20' // 与合同使用相同的类型标识
- });
- });
- %>
- <% for (const item of allContractItems) { %>
- <%
- // 判断是否需要显示"重新上报"按钮
- // 1. status=checkNo(4) - 被退回状态
- // 2. status=uncheck(1) 且 times>1 - 退回后重新上报待处理状态
- const isCheckNo = item.status === acContract.status.checkNo;
- const isUncheckReSubmit = item.status === acContract.status.uncheck && item.times > 1;
- const showResubmitBtn = isCheckNo || isUncheckReSubmit;
- %>
- <% const detailUrl = '/sp/' + ctx.subProject.id + '/contract/detail' + (item.contract_type === 2 ? '/income' : '') + (item.itemType === 'pay' ? '?tab=pay' : ''); %>
- <tr data-type="<%= item.dataType %>">
- <td><span class="bg-new-20 text-new-20 badge text-width">合同管理</span></td>
- <td>
- <a href="<%= detailUrl %>"><%- item.name %></a>
- </td>
- <td><%- item.status_text %></td>
- <td><%- (item.begin_time ? ctx.moment(item.begin_time).startOf('minute').format('YYYY/MM/DD HH:mm') : (item.create_time ? ctx.moment(item.create_time).startOf('minute').format('YYYY/MM/DD HH:mm') : '')) %></td>
- <td>
- <a href="<%= detailUrl %>" class="btn btn-sm btn-table <%= showResubmitBtn ? 'btn-outline-warning text-warning' : 'btn-outline-primary' %>" role="button">
- <%- showResubmitBtn ? '重新上报' : '审批' %>
- </a>
- </td>
- </tr>
- <% } %>
- </tbody>
- </table>
- <% } else { %>
- <div class="p-5 text-center text-muted">
- <img src="/public/images/nulllogo.png" />
- <div class="pt-3">暂时没有需要你处理的事项</div>
- </div>
- <% } %>
- </div>
- <!--<!–没有处理信息–>-->
- <!--<p class="text-center text-muted">暂时没有需要你处理的事项。</p>-->
- </div>
- </div>
- </div>
- <div class="col-3 px-0">
- <div class="card ml-3">
- <div class="card-header card-white d-flex justify-content-between">
- <div class="card-big-htext"><span class="card-icon mr-2"></span>我参与的</div></div>
- <div class="card-body p-0">
- <div class="row mx-0 echart-height">
- <div class="col-6 px-0">
- <div class="canyu-width canyu-bg-blue mx-3 my-2 p-3 text-white">
- <div>参与审批</div>
- <div><span class="canyu-text mr-1"><%- total_count %></span>次</div>
- </div>
- </div>
- <div class="col-6 px-0">
- <div class="canyu-width canyu-bg-yellow my-2 mr-3 p-3 text-white">
- <div>距最后一次审批已过</div>
- <div><span class="canyu-text mr-1"><%- last_day || last_day === 0 ? last_day : '-' %></span>天</div>
- </div>
- </div>
- </div>
- <div class="contant-height-two">
- <div id="jechart" style="height: 90%; width: 100%;"></div>
- </div>
- </div>
- </div>
- </div>
- <!--项目消息通知-->
- <div class="col-3 pl-0">
- <div class="card ml-3">
- <div class="card-header card-white d-flex justify-content-between">
- <div class="card-big-htext"><span class="card-icon mr-2"></span>项目通知</div>
- <div class="mt-1"><a class="text-secondary" href="/sp/<%- ctx.subProject.id %>/dashboard/msg">查看全部</a></div>
- </div>
- <div class="card-body p-0">
- <div class="contant-height-three">
- <ul class="list-group list-group-flush msg-height-list">
- <% if (msgList.length === 0) { %>
- <!--没有通知-->
- <li class="list-group-item text-muted text-center p-5">
- <img src="/public/images/nulllogo.png" />
- <p class="pt-2 text-center mb-0">暂时没有通知</p>
- </li>
- <% } else { %>
- <% for (const msg of msgList) { %>
- <li class="list-group-item text-muted">
- <a href="#view-msg" msg-id="<%= msg.id %>" data-toggle="modal" data-target="#view-msg"<% if (msg.istop !== '0') { %> class="text-danger">
- <i class="fa fa-exclamation-triangle" ></i> <% } else { %>><% } %><%- msg.title %></a><br><%- moment(msg.release_time*1000).format('YYYY/MM/DD HH:mm') %></li>
- <% } %>
- <% } %>
- </ul>
- </div>
- <% if (userMsgPermission) { %>
- <!--发布通知-->
- <div class="mx-3 pb-3 addmsg-height"><a class="btn btn-outline-primary btn-block" href="/sp/<%- ctx.subProject.id %>/dashboard/msg/add/0">发布通知</a></div>
- <% } %>
- </div>
- </div>
- </div>
- </div>
- <div class="row agency-partheight">
- <div class="col-9 px-0">
- <div class="card ml-3">
- <div class="card-header card-white d-flex justify-content-between">
- <div class="card-big-htext"><span class="card-icon mr-2"></span>参与的标段动态</div>
- <div>
- <select class="form-control form-control-sm" id="select-notice-type">
- <option value="0">全部</option>
- <option value="6">预付款</option>
- <option value="5">台账审批</option>
- <option value="4">台账修订</option>
- <option value="2">计量审批</option>
- <option value="3">变更审批</option>
- <% if (ctx.subProject.page_show.openChangeProject) { %>
- <option value="7">变更立项</option>
- <% } %>
- <% if (ctx.subProject.page_show.openChangeApply) { %>
- <option value="8">变更申请</option>
- <% } %>
- <% if (ctx.subProject.page_show.openChangePlan) { %>
- <option value="9">变更方案</option>
- <% } %>
- <% if (ctx.subProject.page_show.openMaterial) { %>
- <option value="1">材料调差</option>
- <% } %>
- <% if (ctx.subProject.page_show.openFinancial) { %>
- <option value="11">资金支付</option>
- <% } %>
- <% if (ctx.subProject.page_show.qualityInspection) { %>
- <option value="12">质量巡检</option>
- <% } %>
- <% if (ctx.subProject.page_show.safeInspection) { %>
- <option value="13">安全巡检</option>
- <% } %>
- <% if (ctx.subProject.page_show.safePayment) { %>
- <option value="14">安全计量</option>
- <% } %>
- <% if (ctx.subProject.page_show.phasePay) { %>
- <option value="15">合同支付</option>
- <% } %>
- <% if (ctx.subProject.page_show.cost) { %>
- <option value="16">成本报审</option>
- <option value="17">财务账面</option>
- <option value="18">成本分析</option>
- <% } %>
- </select>
- </div>
- </div>
- <div class="card-body p-0">
- <div class="contant-height-one">
- <% if(noticeList.length) { %>
- <style>
- #notice-list a {
- word-wrap:break-word;
- }
- </style>
- <table style="table-layout:fixed;" class="table table-middle">
- <thead class="thead-light">
- <tr>
- <th width="110" class="pl-3">类型</th>
- <th>名称</th>
- <th width="150">审批人-职位</th>
- <th width="120">审批时间</th>
- <th width="60">项目</th>
- <th width="80">状态</th>
- <th>审批意见</th>
- </tr>
- </thead>
- <tbody id="notice-list">
- <!--<ul id="notice" class="list-unstyled m-0">-->
- <% for (const notice of noticeList) { %>
- <% if(notice.type === pushType.stage) { %>
- <tr data-type="2">
- <td><span class="bg-new-stage text-new-stage badge text-width">计量审批</span></td>
- <td><a href="/tender/<%- notice.tid %>"><%- notice.name %></a> <a href="/tender/<%- notice.tid %>/measure/stage/<%- notice.order %>">第<%- notice.order %>期</a></td>
- <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
- <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
- <td>第<%- notice.order %>期</td>
- <td class="<%- acStage.statusClass[notice.status]%>"><%- acStage.statusString[notice.status]%></td>
- <td><%- notice.opinion ? notice.opinion : '' %></td>
- </tr>
- <% } else if(notice.type === pushType.material && ctx.subProject.page_show.openMaterial) { %>
- <tr data-type="1">
- <td><span class="bg-new-material text-new-material badge text-width">材料调差</span></td>
- <td><a href="/tender/<%- notice.tid %>"><%- notice.name %></a> <a href="/tender/<%- notice.tid %>/measure/material/<%- notice.order %>">第<%- notice.order %>期</a></td>
- <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
- <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
- <td>第<%- notice.order %>期</td>
- <td class="<%- acMaterial.statusClass[notice.status]%>"><%- acMaterial.statusString[notice.status]%></td>
- <td><%- notice.opinion ? notice.opinion : '' %></td>
- </tr>
- <% } else if(notice.type === pushType.ledger) { %>
- <tr data-type="5">
- <td><span class="bg-new-ledger text-new-ledger badge text-width">台账审批</span></td>
- <td><a data-id="<%- notice.id %>" href="/tender/<%- notice.tid %>/ledger"><%- notice.name %></a></td>
- <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
- <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
- <td>台账</td>
- <td class="<%- acLedger.statusClass[notice.status]%>"><%- acLedger.statusString[notice.status]%></td>
- <td><%- notice.opinion ? notice.opinion : '' %></td>
- </tr>
- <% } else if(notice.type === pushType.revise) { %>
- <tr data-type="4">
- <td><span class="bg-new-revise text-new-revise badge text-width">台账修订</span></td>
- <td><a href="/tender/<%- notice.tid %>/ledger"><%- notice.name %></a> <a href="/tender/<%- notice.tid %>/revise/<%- notice.rid %>/info">台账修订(第<%- notice.corder %>次)</a></td>
- <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
- <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
- <td>第<%- notice.corder %>次</td>
- <td class="<%- acRevise.statusClass[notice.status]%>"><%- acRevise.statusString[notice.status]%></td>
- <td><%- notice.opinion ? notice.opinion : '' %></td>
- </tr>
- <% } else if(notice.type === pushType.change){ %>
- <tr data-type="3">
- <td><span class="bg-new-change text-new-change badge text-width">变更审批</span></td>
- <td><a href="/tender/<%- notice.tid %>"><%- notice.name %></a> <a href="/tender/<%- notice.tid %>/change/<%- notice.cid %>/information"><%- notice.c_code %></a></td>
- <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
- <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
- <td>变更</td>
- <td class="<%- acChange.statusClass[notice.status]%>"><%- acChange.statusString[notice.status]%></td>
- <td><%- notice.opinion ? notice.opinion : '' %></td>
- </tr>
- <% } else if(notice.type === pushType.changeProject && ctx.subProject.page_show.openChangeProject) { %>
- <tr data-type="7">
- <td><span class="bg-new-changeProject text-new-changeProject badge text-width">变更立项</span></td>
- <td><a href="/tender/<%- notice.tid %>"><%- notice.name %></a> <a href="/tender/<%- notice.tid %>/change/project/<%- notice.cpid %>/information"><%- notice.c_code %></a></td>
- <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
- <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
- <td>变更</td>
- <td class="<%- acChangeProject.statusClass[notice.status] %>"><%- acChangeProject.statusString[notice.status] %></td>
- <td><%- notice.opinion ? notice.opinion : '' %></td>
- </tr>
- <% } else if(notice.type === pushType.changeApply && ctx.subProject.page_show.openChangeApply) { %>
- <tr data-type="8">
- <td><span class="bg-new-changeApply text-new-changeApply badge text-width">变更申请</span></td>
- <td><a href="/tender/<%- notice.tid %>"><%- notice.name %></a> <a href="/tender/<%- notice.tid %>/change/apply/<%- notice.caid %>/information"><%- notice.c_code %></a></td>
- <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
- <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
- <td>变更</td>
- <td class="<%- acChangeApply.statusClass[notice.status]%>"><%- acChangeApply.statusString[notice.status] %></td>
- <td><%- notice.opinion ? notice.opinion : '' %></td>
- </tr>
- <% } else if(notice.type === pushType.changePlan && ctx.subProject.page_show.openChangePlan) { %>
- <tr data-type="9">
- <td><span class="bg-new-changePlan text-new-changePlan badge text-width">变更方案</span></td>
- <td><a href="/tender/<%- notice.tid %>"><%- notice.name %></a> <a href="/tender/<%- notice.tid %>/change/plan/<%- notice.cpid %>/information"><%- notice.c_code %></a></td>
- <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
- <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
- <td>变更</td>
- <td class="<%- acChangePlan.statusClass[notice.status] %>"><%- acChangePlan.statusString[notice.status] %></td>
- <td><%- notice.opinion ? notice.opinion : '' %></td>
- </tr>
- <% } else if(notice.type === pushType.advance) { %>
- <tr data-type="6">
- <td><span class="bg-new-advance text-new-advance badge text-width">预付款</span></td>
- <td><a href="/tender/<%- notice.tid %>"><%- notice.name %></a> <a href="/tender/<%- notice.tid %>/advance/<%- notice.vid %>/detail"><%- notice.ad_type ? typeColMap[notice.ad_type].text : '' %>第<%- notice.order %>期</a></td>
- <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
- <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
- <td>第<%- notice.order %>期</td>
- <td class="<%- acAdvance.statusClass[notice.status]%>"><%- acAdvance.statusString[notice.status]%></td>
- <td><%- notice.opinion ? notice.opinion : '' %></td>
- </tr>
- <% } else if(notice.type === pushType.financial && ctx.subProject.page_show.openFinancial) { %>
- <tr data-type="11">
- <td><span class="bg-new-financial text-new-financial badge text-width">资金支付</span></td>
- <td><a href="/sp/<%- notice.spid %>/financial/pay/stage" class="account-page-size"><%- notice.name %></a> <a href="/sp/<%- notice.spid %>/financial/pay/<%- notice.fpid %>/detail"><%- notice.code %></a></td>
- <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
- <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
- <td>支付</td>
- <td class="<%- acFinancial.statusClass[notice.status] %>"><%- acFinancial.statusString[notice.status] %></td>
- <td><%- notice.opinion ? notice.opinion : '' %></td>
- </tr>
- <% } else if(notice.type === pushType.inspection && ctx.subProject.page_show.qualityInspection) { %>
- <tr data-type="12">
- <td><span class="bg-new-inspection text-new-inspection badge text-width">质量巡检</span></td>
- <td><a href="/sp/<%- notice.spid %>/quality/tender/<%- notice.tid %>/inspection"><%- notice.name %></a> <a href="/sp/<%- notice.spid %>/quality/tender/<%- notice.tid %>/inspection/<%- notice.qiid %>/information"><%- notice.c_code %></a></td>
- <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
- <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
- <td>巡检</td>
- <td class="<%- acInspection.statusClass[notice.status] %>"><%- acInspection.statusString[notice.status] %></td>
- <td><%- notice.opinion ? notice.opinion : '' %></td>
- </tr>
- <% } else if(notice.type === pushType.safeInspection && ctx.subProject.page_show.safeInspection) { %>
- <tr data-type="13">
- <td><span class="bg-new-inspection text-new-inspection badge text-width">安全巡检</span></td>
- <td><a href="/sp/<%- notice.spid %>/safe/tender/<%- notice.tid %>/inspection"><%- notice.name %></a> <a href="/sp/<%- notice.spid %>/safe/tender/<%- notice.tid %>/inspection/<%- notice.qiid %>/information"><%- notice.c_code %></a></td>
- <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
- <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
- <td>巡检</td>
- <td class="<%- acInspection.statusClass[notice.status] %>"><%- acInspection.statusString[notice.status] %></td>
- <td><%- notice.opinion ? notice.opinion : '' %></td>
- </tr>
- <% } else if(notice.type === pushType.safeStage && ctx.subProject.page_show.safePayment) { %>
- <tr data-type="14">
- <td><span class="bg-new-inspection text-new-payment badge text-width">安全计量</span></td>
- <td><a href="/sp/<%- notice.spid %>/safe/tender/<%- notice.tid %>/stage"><%- notice.name %></a> <a href="/sp/<%- notice.spid %>/safe/tender/<%- notice.tid %>/stage/<%- notice.order %>/bills">第<%- notice.order %>期</a></td>
- <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
- <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
- <td>第<%- notice.order %>期</td>
- <td class="<%- acSafeStage.statusClass[notice.status] %>"><%- acSafeStage.statusString[notice.status] %></td>
- <td><%- notice.opinion ? notice.opinion : '' %></td>
- </tr>
- <% } else if(notice.type === pushType.phasePay && ctx.subProject.page_show.phasePay) { %>
- <tr data-type="15">
- <td><span class="bg-new-phasepay text-new-phasepay badge text-width">合同支付</span></td>
- <td><a href="/tender/<%- notice.tid %>/pay/<%- notice.order %>/detail"><%- notice.name %></a> <a href="/tender/<%- notice.tid %>/pay/<%- notice.order %>/detail">第<%- notice.order %>期</a></td>
- <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
- <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
- <td>第<%- notice.order %>期</td>
- <td class="<%- acPhasePay.statusClass[notice.status] %>"><%- acPhasePay.statusString[notice.status] %></td>
- <td><%- notice.opinion ? notice.opinion : '' %></td>
- </tr>
- <% } else if(notice.type === pushType.costStageLedger && ctx.subProject.page_show.cost) { %>
- <tr data-type="16">
- <td><span class="bg-new-coststage text-new-coststage badge text-width">成本报审</span></td>
- <td><a href="/sp/<%- notice.spid %>/cost/tender/<%- notice.tid %>/ledger"><%- notice.name %></a> <a href="/sp/<%- notice.spid %>/cost/tender/<%- notice.tid %>/ledger/<%- notice.order %>/stage">第<%- notice.order %>期</a></td>
- <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
- <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
- <td>第<%- notice.order %>期</td>
- <td class="<%- acCostStage.statusClass[notice.status] %>"><%- acCostStage.statusString[notice.status] %></td>
- <td><%- notice.opinion ? notice.opinion : '' %></td>
- </tr>
- <% } else if(notice.type === pushType.costStageBook && ctx.subProject.page_show.cost) { %>
- <tr data-type="17">
- <td><span class="bg-new-coststage text-new-coststage badge text-width">财务账面</span></td>
- <td><a href="/sp/<%- notice.spid %>/cost/tender/<%- notice.tid %>/book"><%- notice.name %></a> <a href="/sp/<%- notice.spid %>/cost/tender/<%- notice.tid %>/book/<%- notice.order %>/stage">第<%- notice.order %>期</a></td>
- <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
- <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
- <td>第<%- notice.order %>期</td>
- <td class="<%- acCostStage.statusClass[notice.status] %>"><%- acCostStage.statusString[notice.status] %></td>
- <td><%- notice.opinion ? notice.opinion : '' %></td>
- </tr>
- <% } else if(notice.type === pushType.costStageAnalysis && ctx.subProject.page_show.cost) { %>
- <tr data-type="18">
- <td><span class="bg-new-coststage text-new-coststage badge text-width">成本分析</span></td>
- <td><a href="/sp/<%- notice.spid %>/cost/tender/<%- notice.tid %>/analysis"><%- notice.name %></a> <a href="/sp/<%- notice.spid %>/cost/tender/<%- notice.tid %>/analysis/<%- notice.order %>/stage">第<%- notice.order %>期</a></td>
- <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
- <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
- <td>第<%- notice.order %>期</td>
- <td class="<%- acCostStage.statusClass[notice.status] %>"><%- acCostStage.statusString[notice.status] %></td>
- <td><%- notice.opinion ? notice.opinion : '' %></td>
- </tr>
- <% } else if(notice.type === pushType.costStageDuty && ctx.subProject.page_show.cost) { %>
- <tr data-type="19">
- <td><span class="bg-new-coststage text-new-coststage badge text-width">责任成本</span></td>
- <td><a href="/sp/<%- notice.spid %>/cost/tender/<%- notice.tid %>/duty/1/stage"><%- notice.name %></a></td>
- <td><%- notice.su_name %><%- (notice.su_role ? '-' + notice.su_role : '') %></td>
- <td><%- ctx.helper.dateTran(notice.create_time, 'YYYY/MM/DD HH:mm') %></td>
- <td></td>
- <td class="<%- acCostStage.statusClass[notice.status] %>"><%- acCostStage.statusString[notice.status] %></td>
- <td><%- notice.opinion ? notice.opinion : '' %></td>
- </tr>
- <% } %>
- <% } %>
- </tbody>
- </table>
- <% } else { %>
- <div class="p-5 text-center text-muted">
- <img src="/public/images/nulllogo.png" />
- <div class="pt-3">暂时没有需要你关注的事项</div>
- </div>
- <% } %>
- </div>
- </div>
- <!--没有关注信息-->
- <!--<p class="text-center text-muted">暂时没有需要你关注的事项。</p>-->
- </div>
- </div>
- <div class="col-3 pl-0">
- <div class="card ml-3">
- <div class="card-header card-white d-flex justify-content-between">
- <div class="card-big-htext"><span class="card-icon mr-2"></span>技术支持</div>
- </div>
- <div class="card-body p-0">
- <!--<h6 class="card-subtitle mb-2 text-muted"><%= salesmanData.username %></h6>-->
- <div class="contant-height-one">
- <div class="mx-4">
- <ul class="list-group list-group-flush">
- <li class="list-group-item" data-toggle="tooltip" data-placement="bottom" title="腾讯QQ"><i class="fa fa-qq"></i> <%=salesmanData.qq%></li>
- <li class="list-group-item" data-toggle="tooltip" data-placement="bottom" title="手机号码"><i class="fa fa-tablet"></i> <%=salesmanData.telephone%></li>
- <li class="list-group-item" data-toggle="tooltip" data-placement="bottom" title="固定电话"><i class="fa fa-phone"></i> <%=salesmanData.fixedphone%></li>
- <% if (projectData.qrcode_json) { %>
- <li class="list-group-item container-fluid">
- <div class="row qrcode-height">
- <% for (const qr of JSON.parse(projectData.qrcode_json)) { %>
- <div class="col-sm text-center"><img src="/<%= qr.path %>" width="100%" style="max-width: 180px"><div class="text-center"><%= qr.name %></div></div>
- <% } %>
- </div>
- </li>
- <% } else { %>
- <li class="list-group-item container-fluid">
- <div class="row qrcode-height">
- <div class="col-sm text-center"><img src="/public/images/erweima.jpg" width="100%" style="max-width: 180px"><div class="text-center">虾米造价</div></div>
- </div>
- </li>
- <% } %>
- </ul>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <script src="/public/js/moment/moment.min.js"></script>
- <script src="/public/js/echarts/echarts.min.js"></script>
- <script src="/public/js/dashboard.js"></script>
- <script>
- autoFlashHeight();
- const msgList = JSON.parse('<%- JSON.stringify(msgList) %>');
- const sysMsgList = JSON.parse('<%- JSON.stringify(sysMsgList) %>');
- const pushType = JSON.parse('<%- JSON.stringify(pushType) %>');
- const uid = '<%- uid %>';
- const type = 1;
- const userMsgPermission = <%- userMsgPermission %>;
- </script>
- <script type="text/javascript">
- $(function () {
- function setDashboardHeight() {
- function getObjHeight(select) {
- return select.length > 0 ? select.outerHeight(true) : 0;
- }
- var mobileHeight = getObjHeight($(".mobile-height"));
- var maintainHeight = getObjHeight($(".maintain-height"));
- $('.dashboard-height').height($(window).height()- mobileHeight - maintainHeight - 34 - 16);
- $('.agency-partheight').height($('.dashboard-height').height()/2);
- // $('.agency-partheight').eq(1).height($('.sjs-height-0').height() - $('.agency-partheight').eq(0).height());
- $('.contant-height-one').height($('.agency-partheight').height() - 52 - 20);
- $('.contant-height-two').height($('.agency-partheight').height() - 52 - getObjHeight($(".echart-height")) - 20);
- $('.contant-height-three').height($('.agency-partheight').height() - 52 - getObjHeight($(".addmsg-height")) - 20);
- $('.qrcode-height').height($('.contant-height-one').height() - 43 - 44 - 44 - 25);
- $('.qrcode-height .col-sm').css('padding-top', ($('.qrcode-height').height()/2 - ($('.qrcode-height img').height()+18)/2) + 'px');
- // resizeChart();
- }
- setDashboardHeight();
- $(window).resize(setDashboardHeight);
- $('#select-notice-type').change(function () {
- const type = parseInt($(this).val());
- if(type === 0) {
- $('#notice-list tr').show();
- return;
- } else {
- $('#notice-list tr').hide();
- $('#notice-list tr[data-type="' + type + '"]').show();
- }
- });
- $('#select-doing-type').change(function () {
- const type = parseInt($(this).val());
- if(type === 0) {
- $('#doing-list tr').show();
- return;
- } else {
- $('#doing-list tr').hide();
- $('#doing-list tr[data-type="' + type + '"]').show();
- }
- });
- })
- var transparentCount = 1;
- const option = {
- // title: {
- // text: '金额统计图',
- // left: 'center',
- // top:'7%'
- // },
- color: [
- 'rgba(241, 82, 91,'+ transparentCount +')',
- 'rgba(250, 140, 22,'+ transparentCount +')',
- 'rgba(251, 182, 45,'+ transparentCount +')',
- 'rgba(82, 196, 26,'+ transparentCount +')',
- 'rgba(22, 208, 208,'+ transparentCount +')',
- <% if (ctx.subProject.page_show.openChangeProject) { %>
- 'rgba(51, 119, 255,'+ transparentCount +')',
- <% } %>
- <% if (ctx.subProject.page_show.openChangeApply) { %>
- 'rgba(41, 58, 210,'+ transparentCount +')',
- <% } %>
- <% if (ctx.subProject.page_show.openChangePlan) { %>
- 'rgba(114, 46, 209,'+ transparentCount +')',
- <% } %>
- <% if (ctx.subProject.page_show.openMaterial) { %>
- 'rgba(187, 41, 210,'+ transparentCount +')',
- <% } %>
- <% if (ctx.subProject.page_show.openFinancial) { %>
- 'rgba(58, 88, 50,'+ transparentCount +')',
- <% } %>
- <% if (ctx.subProject.page_show.qualityInspection) { %>
- 'rgba(158, 58, 80,'+ transparentCount +')',
- <% } %>
- <% if (ctx.subProject.page_show.safeInspection) { %>
- 'rgba(158, 8, 80,'+ transparentCount +')',
- <% } %>
- ],
- tooltip: {
- trigger: 'item'
- },
- legend: [
- {
- orient: 'vertical',
- left: '3%',
- top: 'center',
- itemWidth: 13,
- itemHeight: 13,
- textStyle: {
- fontSize: 12
- },
- data: [<% for (const sc of shenpi_count.slice(0, shenpi_count.length/2)) { %>
- '<%- sc.name %>',
- <% } %>]
- },
- {
- orient: 'vertical',
- right: '3%',
- top: 'center',
- itemWidth: 13,
- itemHeight: 13,
- textStyle: {
- fontSize: 12
- },
- data: [<% for (const sc of shenpi_count.slice(shenpi_count.length/2, shenpi_count.length)) { %>
- '<%- sc.name %>',
- <% } %>]
- }
- ],
- series: [
- {
- name: '审批次数',
- type: 'pie',
- radius: ['35%', '55%'],
- center: ['50%', '50%'],
- avoidLabelOverlap: false,
- data: [
- <% for (const sc of shenpi_count) { %>
- { value: <%- sc.count %>, name: '<%- sc.name %>' },
- <% } %>
- ],
- label: {
- show: false
- },
- emphasis: {
- itemStyle: {
- shadowBlur: 10,
- shadowOffsetX: 0,
- shadowColor: 'rgba(0, 0, 0, 0.5)'
- }
- }
- }
- ]
- };
- function optionRadius() {
- if ($(window).outerWidth() > 1366) {
- if ($('#jechart').outerWidth() - $('#jechart').outerHeight() < 90) {
- option.series[0].radius = ['35%', '55%'];
- } else if ($('#jechart').outerWidth() < 320) {
- option.series[0].radius = ['35%', '60%'];
- } else if ($('#jechart').outerWidth() < 330) {
- option.series[0].radius = ['40%', '65%'];
- } else if ($('#jechart').outerWidth() < 350) {
- option.series[0].radius = ['45%', '70%'];
- } else {
- option.series[0].radius = ['50%', '75%'];
- }
- } else {
- option.series[0].radius = ['50%', '75%'];
- }
- }
- function initChart() {
- const myChart1 = echarts.init(document.getElementById('jechart'));
- optionRadius();
- myChart1.setOption(option, true);
- window.addEventListener('resize', function () {
- optionRadius();
- myChart1.setOption(option, true);
- myChart1.resize();
- });
- }
- // initChart();
- setTimeout(function () {
- initChart();
- },500);
- // $(window).resize(resizeChart);
- // function resizeChart() {
- // myChart1.resize()
- // }
- // var myChart1 = echarts.init(document.getElementById('jechart'));
- // setTimeout(function () {
- // myChart1.setOption(option);
- // resizeChart();
- // // resizeChart();
- // },500);
- </script>
|