<% let audit = 0; %> <% if (material) { %>
第<%- material.order %>期 <% if (material.lastAuditors.length && material.status !== auditConst.status.checked) { %> <%- (material.lastAuditors[0].audit_type !== 1 ? ctx.helper.transFormToChinese(material.lastAuditors[0].audit_order) + '审' : material.lastAuditors[0].name + (material.lastAuditors[0].role ? '-' + material.lastAuditors[0].role : '')) %> <% } %> <%- material.status === auditConst.status.checked ? '审批完成' : auditConst.auditProgress[material.status] %>
<% if (!(!material.material_tax && !old_had_tax)) { %> <% } %>

计量期

第<%= material.s_order.split(',').join(',') %>期
<% if (months.length > 0) { %>

本期月信息价

<% let monthstr = ''; for (const m of months) { monthstr += parseInt(m.split('-')[1]) + '月,'} %><%- monthstr.substring(0,monthstr.length-1) %> <% } else { %>

建筑增值税

<%- material.rate %>% <% } %>

信息价本期金额

¥<%= material.m_tp !== null ? ctx.helper.round(material.m_tp, material.decimal.tp) : 0 %>

信息价截止本期金额

¥<%= material.m_tp !== null || material.pre_tp !== null ? ctx.helper.add(material.pre_tp, ctx.helper.round(material.m_tp, material.decimal.tp)) : 0 %>

指数法本期金额

¥<%= material.ex_tp !== null ? ctx.helper.round(material.ex_tp, material.decimal.tp) : 0 %>

指数法截止本期金额

¥<%= material.ex_tp !== null || material.ex_pre_tp !== null ? ctx.helper.add(material.ex_pre_tp, ctx.helper.round(material.ex_tp, material.decimal.tp)) : 0 %>

信息价本期金额(含材料税)

<%= material.material_tax ? (material.m_tax_tp !== null ? '¥' + material.m_tax_tp : null) : '-' %>

信息价截止本期金额(含材料税)

<%= material.material_tax ? (material.m_tax_tp !== null || material.m_tax_pre_tp !== null ? '¥' + ctx.helper.add(material.m_tax_pre_tp, material.m_tax_tp) : null) : (material.m_tax_pre_tp ? '¥' + material.m_tax_pre_tp: null) %>

信息价本期金额(含建筑税)

<%= !material.material_tax ? '¥' + material.rate_tp : '-' %>

信息价截止本期金额(含建筑税)

<%= !material.material_tax ? (material.m_tp !== null || pre_tp_hs !== null ? '¥' + ctx.helper.add(pre_tp_hs, material.rate_tp) : null) : (pre_tp_hs ? '¥' + pre_tp_hs : '-') %>

指数法本期金额(含建筑税)

¥<%= material.ex_tp !== null ? ctx.helper.round(ctx.helper.mul(material.ex_tp, 1+material.exponent_rate/100), material.decimal.tp) : 0 %>

指数法截止本期金额(含建筑税)

¥<%= material.ex_tp !== null || ex_pre_tp_hs !== null ? ctx.helper.add(ex_pre_tp_hs, ctx.helper.round(ctx.helper.mul(material.ex_tp, 1+material.exponent_rate/100), material.decimal.tp)) : 0 %>
  • <% if (material.status === auditConst.status.uncheck) { %> 上报中 <% } else { %> <%- moment(material.auditHistory[material.auditHistory.length - 1][0].begin_time).format('YYYY/MM/DD') %> 上报 <% } %>
    <%- material.user.name %><%- material.user.role %>
  • <% let isfinal = false; %> <% material.auditHistory[material.auditHistory.length - 1].forEach((group, index) => { %>
  • <% 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 %>

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