|
|
@@ -90,9 +90,9 @@
|
|
|
<td class="text-center">
|
|
|
<% 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>
|
|
|
- <% } else if (s.status === auditConst.status.checkNo && s.user_id === ctx.session.sessionUser.accountId) { %>
|
|
|
+ <% } else if (s.audit_status === auditConst.status.checkNo && s.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>
|
|
|
- <% } else if ((s.status === auditConst.status.checking || s.status === auditConst.status.checkNoPre) && s.curAuditors && s.curAuditors.findIndex(x => { return x.aid === 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>
|
|
|
<% } else { %>
|
|
|
<span class="<%- auditConst.info[s.audit_status].class %>"><%- auditConst.info[s.audit_status].title %></span>
|