期进度表

左右滑动

月进度表

左右滑动

<% for (const s of stages) { %>
第<%- s.order %>期 <% if (s.curAuditor && s.status !== auditConst.status.checked) { %> <%- s.curAuditor.name %><%if (s.curAuditor.role !== '' && s.curAuditor.role !== null) { %>-<%- s.curAuditor.role %><% } %> <% } %> <%- s.status === auditConst.status.checked ? '审批完成' : auditConst.auditProgress[s.status] %>

本期合同计量

¥<%- s.contract_tp ? s.contract_tp : 0 %>

本期数量变更计量

¥<%- s.qc_tp ? s.qc_tp : 0 %>

本期完成计量

¥<%- s.tp ? s.tp : 0 %>

截止上期完成计量

¥<%- s.pre_tp ? s.pre_tp : 0 %>

截止本期完成计量

¥<%- s.end_tp ? s.end_tp : 0 %>

本期应付

¥<%- s.yf_tp ? s.yf_tp : 0 %>
<% } %>
<% let audit = 0; %> <% if (stages.length > 0 && stage) { %>
第<%- stage.order %>期 <% if (stage.curAuditor && stage.status !== auditConst.status.checked) { %> <%- stage.curAuditor.name %><%if (stage.curAuditor.role !== '' && stage.curAuditor.role !== null) { %>-<%- stage.curAuditor.role %><% } %> <% } %> <%- stage.status === auditConst.status.checked ? '审批完成' : auditConst.auditProgress[stage.status] %>

本期合同计量

¥<%- stage.contract_tp ? stage.contract_tp : 0 %>

本期数量变更计量

¥<%- stage.qc_tp ? stage.qc_tp : 0 %>

本期完成计量

¥<%- stage.tp ? stage.tp : 0 %>

截止上期完成计量

¥<%- stage.pre_tp ? stage.pre_tp : 0 %>

截止本期完成计量

¥<%- stage.end_tp ? stage.end_tp : 0 %>

本期应付

¥<%- stage.yf_tp ? stage.yf_tp : 0 %>
  • <% if (stage.status === auditConst.status.uncheck) { %> 上报中 <% } else { %> <%- stage.auditors[0].begin_time.toLocaleDateString() %> 上报 <% } %>
    <%- stage.user.name %><%- stage.user.role %>
  • <% for (let iA = 0; iA < stage.auditors.length; iA++) { %> <% const auditors = stage.auditors; %>
  • <% if (auditors[iA].status === auditConst.status.checked) { %> <%- auditors[iA].end_time.toLocaleDateString() %> 审批通过
    <%- auditors[iA].name %> <%- auditors[iA].role %>

    <%- auditors[iA].opinion %>

    <% } else if (auditors[iA].status == auditConst.status.checking) { %> 审批中
    <%- auditors[iA].name %> <%- auditors[iA].role %>
    <% if (auditors[iA].aid === ctx.session.sessionUser.accountId) { %> <% audit = auditors[iA]; %>
    <% } %> <% } else if (auditors[iA].status === auditConst.status.checkNoPre) { %> <% const auditorIndex = stage.auditors2.findIndex(function (item) { return item.aid === auditors[iA].aid }) %> <%- auditors[iA].end_time.toLocaleDateString() %>审批退回 <%- stage.auditors2[auditorIndex-1].name %>
    <%- auditors[iA].name %> <%- auditors[iA].role %>

    <%- auditors[iA].opinion %>

    <% } else if (auditors[iA].status === auditConst.status.checkNo) { %> <%- auditors[iA].end_time.toLocaleDateString() %>审批退回
    <%- auditors[iA].name %> <%- auditors[iA].role %>

    <%- auditors[iA].opinion %>

    <% } else if (auditors[iA].status === auditConst.status.checkAgain) { %> <%- auditors[iA].end_time.toLocaleDateString() %>重新审批
    <%- auditors[iA].name %> <%- auditors[iA].role %>

    <%- auditors[iA].opinion %>

    <% } else { %>
    <%- auditors[iA].name %> <%- auditors[iA].role %>
    <% } %>
  • <% } %>
<% } %>
<% if (audit !== 0) { %> <% } %>