预计造价增减金额:<%- change.crease_price %> 元
  • <% if (change.status === auditConst.status.uncheck) { %> 上报中 <% } else { %> <%- moment(change.auditHistory[change.auditHistory.length - 1][0].begin_time).format('YYYY/MM/DD') %> 上报 <% } %>
    <%- change.user.name %><%- change.user.role %>
  • <% let isfinal = false; %> <% change.auditHistory[change.auditHistory.length - 1].forEach((group, index) => { %> <% console.log(group) %>
  • <% for (const [i, audit] of group.auditors.entries()) { %> <% if (audit.status === auditConst.status.checking) { %> 审批中
    <% if (group.audit_type !== auditType.key.common) { %> <%- auditType.info[group.audit_type].short %><% } %> <%- audit.name %> <% if (audit.role !== '' || audit.role !== null) { %><%- audit.role %><% } %>
    <% if (audit.aid === ctx.session.sessionUser.accountId) { %> <% isfinal = group.is_final %>
    <% } %> <% } else if(audit.status === auditConst.status.uncheck) { %>
    <% if (group.audit_type !== auditType.key.common) { %> <%- auditType.info[group.audit_type].short %><% } %> <%- audit.name %> <% if (audit.role !== '' || audit.role !== null) { %><%- audit.role %><% } %>
    <% } else { %> <%- audit.end_time ? moment(audit.end_time).format('YYYY/MM/DD') : '' %> <%- auditConst.statusString[audit.status] %>
    <% if (group.audit_type !== auditType.key.common) { %> <%- auditType.info[group.audit_type].short %><% } %> <%- audit.name %> <% if (audit.role !== '' || audit.role !== null) { %><%- audit.role %><% } %>

    <%- audit.opinion %>

    <% } %> <% } %>
  • <% }) %>