<% include ../tender/tender_sub_menu.ejs %>
第<%- advance.order %>期
<% include ./audit_btn.ejs %>

第<%- advance.order %>期 <%- typeColMap[advance.type].text %>

签约<%- typeColMap[advance.type].text %>:<%- ctx.helper.formatMoney(advancePayTotal, ',', parseFloat(advancePayTotal).toString().split('.')[1] && parseFloat(advancePayTotal).toString().split('.')[1].length || 0) %> 元
支付比例
value="<%- advance.pay_ratio && ctx.helper.mul(ctx.helper.div(advance.cur_amount, advancePayTotal), 100, 2) || 0 %>">
%
本期金额
placeholder="请填写本期金额,将自动计算支付比例" data-type="1" value="<%- cur_amount %>">
截止上期 <%- prev_amount %>元 截止本期金额 <%- prev_total_amount %>元
备注
附件
<% if(isEdited) { %>
审批流程
    <% auditors.forEach((item, idx) => { %> <% if (idx === 0) { %>
  • <%- item.name %> <%- item.role %>
  • <% } else if(idx === auditors.length -1 && idx !== 0) { %>
  • <%- item.name %> <%- item.role %>
  • <% } else {%>
  • <%- item.name %> <%- item.role %>
  • <% } %> <% }) %>
审批流程
    <% auditorList.forEach((item, idx) => { %>
  • <% if (ctx.tender.info.shenpi.advance === shenpiConst.sp_status.sqspr || (ctx.tender.info.shenpi.advance === shenpiConst.sp_status.gdzs && idx+1 !== auditorList.length)) { %> 移除 <% } %> <%- idx+1 %> <%- item.name %> <%- item.role %>

    <%- item.company %>

  • <% }) %>
<% } else {%>
审批流程
    <% auditors.forEach((item, idx) => { %> <% if (idx === 0) { %>
  • <%- item.name %> <%- item.role %> 原报
  • <% } else if(idx === auditors.length -1 && idx !== 0) { %>
  • <%- item.name %> <%- item.role %> 终审
  • <% } else {%>
  • <%- item.name %> <%- item.role %> <%= ctx.helper.transFormToChinese(idx) %>审
  • <% } %> <% }) %>
<% auditHistory.forEach((history, idx) => { %> <% if(idx === auditHistory.length - 1 && auditHistory.length !== 1) { %> <% } %>
<%- idx+1 %>#
    <% history.forEach((auditor, index) => { %> <% if (index === 0) { %>
  • <%- ctx.helper.formatDate(auditor.create_time) %>

    <%- advance.user.name %><%- idx !== 0 ? '重新' : '' %>上报审批

    <%- advance.user.role %>

  • <%- ctx.helper.formatDate(auditor.end_time) %>
    <% if(index < history.length - 1) { %>
    <% } %> <% if(auditor.status === auditConst.status.checked) { %>
    <% } else if(auditor.status === auditConst.status.checkNo || auditor.status === auditConst.status.checkNoPre) {%>
    <% } else if(auditor.status === auditConst.status.checking) { %>
    <% } else {%>
    <% } %>

    <%- auditor.name %><%- auditConst.statusString[auditor.status] %>

    <%- auditor.role %>

    <% if (auditor.opinion) { %>

    <%- auditor.opinion %>

    <% } %>
  • <% } else {%>
  • <%- ctx.helper.formatDate(auditor.end_time) %>
    <% if(index < history.length - 1) { %>
    <% } %> <% if(auditor.status === auditConst.status.checked) { %>
    <% } else if(auditor.status === auditConst.status.checkNo || auditor.status === auditConst.status.checkNoPre) {%>
    <% } else if(auditor.status === auditConst.status.checking) { %>
    <% } else { %>
    <% } %>

    <%- auditor.name %> <%- auditor.status !== auditConst.status.uncheck ? auditConst.statusString[auditor.status] : ''%> <%- auditor.status === auditConst.status.checkNo ? advance.user.name : '' %> <%- auditor.status === auditConst.status.checkNoPre ? auditors.find(item => item.order === auditor.sort-1).name : '' %>

    <%- auditor.role %>

    <% if (auditor.opinion) { %>

    <%- auditor.opinion %>

    <% } %>
  • <% } %> <% }) %>
<% }) %>
<% } %>
<% if(isEdited && ctx.session.sessionUser.accountId === ctx.advance.uid) { %> <% } %>