|
@@ -83,14 +83,20 @@
|
|
|
<% } else { %>
|
|
<% } else { %>
|
|
|
<a href="#sp-list" data-toggle="modal" data-target="#sp-list" stage-order="<%- s.stage_order %>"><%- ctx.helper.transFormToChinese(s.curAuditors[0].audit_order) + '审' %></a>
|
|
<a href="#sp-list" data-toggle="modal" data-target="#sp-list" stage-order="<%- s.stage_order %>"><%- ctx.helper.transFormToChinese(s.curAuditors[0].audit_order) + '审' %></a>
|
|
|
<% } %>
|
|
<% } %>
|
|
|
- <% } %>
|
|
|
|
|
|
|
+ <% } else if (s.audit_status === auditConst.status.checkNo && s.checkNoAuditors.length > 0) { %>
|
|
|
|
|
+ <% if (s.checkNoAuditors[0].audit_type === auditType.key.common) { %>
|
|
|
|
|
+ <a href="#sp-list" data-toggle="modal" data-target="#sp-list" stage-order="<%- s.stage_order %>"><%- s.checkNoAuditors[0].name %><%if (s.checkNoAuditors[0].role !== '' && s.checkNoAuditors[0].role !== null) { %>-<%- s.checkNoAuditors[0].role %><% } %></a>
|
|
|
|
|
+ <% } else { %>
|
|
|
|
|
+ <a href="#sp-list" data-toggle="modal" data-target="#sp-list" stage-order="<%- s.stage_order %>"><%- ctx.helper.transFormToChinese(s.checkNoAuditors[0].audit_order) + '审' %></a>
|
|
|
|
|
+ <% } %>
|
|
|
|
|
+ <% }%>
|
|
|
<% } %>
|
|
<% } %>
|
|
|
<%- auditConst.info[s.audit_status].title %>
|
|
<%- auditConst.info[s.audit_status].title %>
|
|
|
</td>
|
|
</td>
|
|
|
<td class="text-center">
|
|
<td class="text-center">
|
|
|
<% if (s.audit_status === auditConst.status.uncheck && s.create_user_id === ctx.session.sessionUser.accountId) { %>
|
|
<% if (s.audit_status === auditConst.status.uncheck && s.create_user_id === ctx.session.sessionUser.accountId) { %>
|
|
|
<a href="<%- `/sp/${ctx.subProject.id}/safe/tender/${ctx.tender.id}/stage/${s.stage_order}/bills` %>" target="_blank" class="btn <%- auditConst.info[s.audit_status].btnClass %> btn-sm"><%- auditConst.info[s.audit_status].btnTitle %></a>
|
|
<a href="<%- `/sp/${ctx.subProject.id}/safe/tender/${ctx.tender.id}/stage/${s.stage_order}/bills` %>" target="_blank" class="btn <%- auditConst.info[s.audit_status].btnClass %> btn-sm"><%- auditConst.info[s.audit_status].btnTitle %></a>
|
|
|
- <% } else if (s.audit_status === auditConst.status.checkNo && s.user_id === ctx.session.sessionUser.accountId) { %>
|
|
|
|
|
|
|
+ <% } else if (s.audit_status === auditConst.status.checkNo && s.create_user_id === ctx.session.sessionUser.accountId) { %>
|
|
|
<a href="<%- `/sp/${ctx.subProject.id}/safe/tender/${ctx.tender.id}/stage/${s.stage_order}/bills` %>" target="_blank" class="btn <%- auditConst.info[s.audit_status].btnClass %> btn-sm"><%- auditConst.info[s.audit_status].btnTitle %></a>
|
|
<a href="<%- `/sp/${ctx.subProject.id}/safe/tender/${ctx.tender.id}/stage/${s.stage_order}/bills` %>" target="_blank" class="btn <%- auditConst.info[s.audit_status].btnClass %> btn-sm"><%- auditConst.info[s.audit_status].btnTitle %></a>
|
|
|
<% } else if ((s.audit_status === auditConst.status.checking || s.audit_status === auditConst.status.checkNoPre) && s.curAuditors && s.curAuditorIds.indexOf(ctx.session.sessionUser.accountId) >= 0) { %>
|
|
<% } else if ((s.audit_status === auditConst.status.checking || s.audit_status === auditConst.status.checkNoPre) && s.curAuditors && s.curAuditorIds.indexOf(ctx.session.sessionUser.accountId) >= 0) { %>
|
|
|
<a href="<%- `/sp/${ctx.subProject.id}/safe/tender/${ctx.tender.id}/stage/${s.stage_order}/bills` %>" target="_blank" class="btn <%- auditConst.info[s.audit_status].btnClass %> btn-sm"><%- auditConst.info[s.audit_status].btnTitle %></a>
|
|
<a href="<%- `/sp/${ctx.subProject.id}/safe/tender/${ctx.tender.id}/stage/${s.stage_order}/bills` %>" target="_blank" class="btn <%- auditConst.info[s.audit_status].btnClass %> btn-sm"><%- auditConst.info[s.audit_status].btnTitle %></a>
|