<% include ../tender/tender_sub_menu.ejs %>
<% include ../tender/tender_sub_mini_menu.ejs %>
<% if (tender.user_id === uid || (userPermission !== null && ((userPermission.tender !== undefined && userPermission.tender.indexOf('5') !== -1) || (userPermission.change !== undefined && userPermission.change.indexOf('1') !== -1)))) { %> <% } %>
<% if (changes.length > 0) { %> <% for (const [index, c] of changes.entries()) { %> <% } %> <% } %>
序号 变更立项书编号变更工程名称 发起人发起类型发起时间 审批状态审批进度操作
<%- (pageInfo.page-1)*pageInfo.pageSize + index+1 %> <%- c.code %> <%- c.name %><%- c.account_name %><%- changeConst.project_type[c.type] %><%- ctx.helper.formatFullDate(c.in_time) %> <% if (c.status === auditConst.status.uncheck && c.uid === ctx.session.sessionUser.accountId) { %> <%- auditConst.statusButton[c.status] %> <% } else if ((c.status === auditConst.status.back || c.status === auditConst.status.revise) && c.curAuditors && c.aid === ctx.session.sessionUser.accountId) { %> <%- auditConst.statusButton[c.status] %> <% } else if (c.status === auditConst.status.checking && c.curAuditors && c.curAuditors.findIndex(x => { return x.aid === ctx.session.sessionUser.accountId; }) >= 0) { %> <% const curAudit = c.curAuditors.find(x => { return x.aid === ctx.session.sessionUser.accountId; }); %> <% if (curAudit.status === auditConst.status.checking) { %> <%- auditConst.statusButton[c.status] %> <% } else { %> <%- auditConst.auditString[curAudit.status] %> <% } %> <% } else { %> <%- auditConst.auditString[c.status] %> <% } %> <% if (c.status === auditConst.status.checked && c.final_auditor_str) { %> <%- c.final_auditor_str %> <% } else if (c.curAuditors.length > 0) { %> <% if (c.curAuditors[0].audit_type === auditType.key.common) { %> <%- c.curAuditors[0].name %><%if (c.curAuditors[0].role !== '' && c.curAuditors[0].role !== null) { %>-<%- c.curAuditors[0].role %><% } %> <% } else { %> <%- ctx.helper.transFormToChinese(c.curAuditors[0].audit_order) + '审' %> <% } %> <% } %> <%- auditConst.auditProgress[c.status] %> <% if (c.uid === uid && (c.status === auditConst.status.uncheck || c.status === auditConst.status.back)) { %>删除<% } %>
<% include ../layout/page.ejs %>