<% include ../tender/tender_sub_menu.ejs %>
<% include ../tender/tender_sub_mini_menu.ejs %>
变更详情 输出报表 <% if (ctx.session.sessionProject.page_show.openChangePlan) { %> 关联数据 <% } %>
<% if (ctx.change.cancancel) { %> 撤回 <% } %> <% if (ctx.change.status === auditConst.status.uncheck) { %> <% if (ctx.session.sessionUser.accountId === ctx.change.uid) { %> 上报审批 <% } else { %> 上报中 <% } %> <% } else if (ctx.change.status === auditConst.status.checking) { %> <% if (ctx.change.curAuditorIds.indexOf(ctx.session.sessionUser.accountId) >= 0) { %> 审批通过 审批退回 <% } else { %> 审批中 <% } %> <% } else if (ctx.change.status === auditConst.status.checkNoPre) { %> <% if (ctx.change.curAuditorIds.indexOf(ctx.session.sessionUser.accountId) >= 0) { %> 审批通过 审批退回 <% } else { %> 审批退回 <% } %> <% } else if (ctx.change.status === auditConst.status.checked) { %> 审批完成 <% if (ctx.change.auditors !== undefined && ctx.change.finalAuditorIds.indexOf(ctx.session.sessionUser.accountId) >= 0) { %> 重新审批 <% } %> <% if (ctx.session.sessionUser.accountId === ctx.change.uid) { %> 修订变更 <% } %> <% } else if (ctx.change.status === auditConst.status.checkNo || ctx.change.status === auditConst.status.revise) { %> 审批<% if (ctx.change.status === auditConst.status.checkNo) { %>退回<% } else { %>修订<% } %> <% if (ctx.session.sessionUser.accountId === ctx.change.uid) { %> 重新上报 <% } %> <% if (ctx.change.status === auditConst.status.revise && (ctx.session.sessionUser.accountId === ctx.change.uid || ctx.session.sessionUser.is_admin)) { %> 撤销修订 <% } %> <% } %>
<% if (!change.readOnly || (change.status === auditConst.status.checked && (ctx.session.sessionUser.is_admin || ctx.helper._.findIndex(change.auditors, { uid: ctx.session.sessionUser.accountId }) !== -1))) { %> <% } %>
<% if (!change.readOnly) { %>
<% if (ctx.session.sessionProject.page_show.openChangeState) { %>
<% for (const cs of changeState) { %>
checked<% } %>>
<% } %>
<% } %>
<% const changeType = change.type !== null && change.type !== '' ? change.type.split(',') : '' %> <% for (const t in changeConst.type) { %> <% const cType = changeConst.type[t] %> <% } %>
编辑
<% for (const c in changeConst.charge) { %> <% const cCharge = changeConst.charge[c] %> <% } %>
<% } else { %>
<% if (ctx.session.sessionProject.page_show.openChangeState) { %>
<% const cState = ctx.helper._.find(changeState, { order: change.state }) %>
<% } %>
<% if (change.status === auditConst.status.checked) { %>
<% } %>
<% const changeType = change.type !== null && change.type !== '' ? change.type.split(',') : '' %> <% for (const t in changeConst.type) { %> <% const cType = changeConst.type[t] %> <% } %>
<% for (const c in changeConst.charge) { %> <% const cCharge = changeConst.charge[c] %> <% } %>
readonly<% } %>>
<% } %>
<% if (attList !== undefined && attList !== '') { %> <% for (const [index,att] of attList.entries()) { %> <% } %> <% } %>
序号 名称 上传时间/大小 操作
> <%- index+1 %> <%- att.filename %><%- att.fileext %> <%- moment(att.in_time * 1000).format('YYYY-MM-DD') %>
<%- ctx.helper.bytesToSize(att.filesize) %>
<% if (att.uid === ctx.session.sessionUser.accountId && ((change.status === auditConst.status.checked ? Boolean(att.extra_upload) : true ) || deleteFilePermission)) { %> <% } %>
<% if (!change.readOnly) { %> <% if (ctx.session.sessionProject.page_show.openChangeWhiteList) { %> <% } %>
style="display: none!important;" <% } %>>
<% } %>
<% if (change.readOnly && !change.shenpiPower) { %>
<% } %> <% if (showPlanBtn) { %> <% } %>
表达式
<% if (!change.readOnly) { %> <% } else { %> <% } %>