| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <% include ./list_sub_menu.ejs %>
- <div class="panel-content">
- <div class="panel-title">
- <div class="title-main d-flex">
- <% include ./list_sub_mini_menu.ejs %>
- <h2>
- 收支列表
- </h2>
- <% if (ctx.permission.cost.analysis_add && (stagelist.length === 0 || stagelist[0].audit_status === auditConst.status.checked)) { %>
- <div class="ml-auto">
- <a href="#add-qi" data-toggle="modal" data-target="#add-qi" class="btn btn-primary btn-sm">新建收支</a>
- </div>
- <% } %>
- </div>
- </div>
- <div class="content-wrap">
- <div class="c-body">
- <div class="sjs-height-0">
- <table class="table table-bordered table-hover">
- <thead>
- <tr class="text-center">
- <th width="80px">期数</th>
- <th width="70px">报审月份</th>
- <th width="70px">创建人</th>
- <th>项目收入</th>
- <th>项目支出</th>
- <th>利润</th>
- <th>利润率</th>
- <th width="120px">审批进度</th>
- <th width="100px">操作</th>
- </tr>
- </thead>
- <tbody>
- <% for (const s of stagelist) { %>
- <tr>
- <td>
- <a href="/sp/<%- ctx.subProject.id %>/cost/tender/<%- ctx.tender.id %>/analysis/<%- s.stage_order %>/stage" target="_blank">第 <%- s.stage_order %> 期</a>
- </td>
- <td class="text-center"><%- s.stage_date %></td>
- <td class="text-right"><%- s.pay_tp %></td>
- <td class="text-right"><%- s.cut_tp %></td>
- <td class="text-right"><%- s.yf_tp %></td>
- <td class="text-right"><%- s.sf_tp %></td>
- <td class="text-right"><%- s.end_pay_tp %></td>
- <td class="text-right"><%- s.end_cut_tp %></td>
- <td class="text-right"><%- s.end_yf_tp %></td>
- <td class="text-right"><%- s.end_sf_tp %></td>
- <td class="<%- auditConst.info[s.audit_status].class %>">
- <% if (s.audit_status === auditConst.status.checked && s.final_auditor_str) { %>
- <a href="#sp-list" data-toggle="modal" data-target="#sp-list" stage-order="<%- s.stage_order %>"><%- s.final_auditor_str %></a>
- <% } else { %>
- <% if (s.curAuditors.length > 0) { %>
- <% if (s.curAuditors[0].audit_type === auditType.key.common) { %>
- <a href="#sp-list" data-toggle="modal" data-target="#sp-list" stage-order="<%- s.stage_order %>"><%- s.curAuditors[0].name %><%if (s.curAuditors[0].role !== '' && s.curAuditors[0].role !== null) { %>-<%- s.curAuditors[0].role %><% } %></a>
- <% } else { %>
- <a href="#sp-list" data-toggle="modal" data-target="#sp-list" stage-order="<%- s.stage_order %>"><%- ctx.helper.transFormToChinese(s.curAuditors[0].audit_order) + '审' %></a>
- <% } %>
- <% } %>
- <% } %>
- <%- auditConst.info[s.audit_status].title %>
- </td>
- <td class="text-center">
- <% if (s.audit_status === auditConst.status.uncheck && s.create_user_id === ctx.session.sessionUser.accountId) { %>
- <a href="/sp/<%- ctx.subProject.id %>/cost/tender/<%- ctx.tender.id %>/analysis/<%- s.stage_order %>/stage" target="_blank" class="btn <%- auditConst.info[s.audit_status].btnClass %> btn-sm"><%- auditConst.info[s.audit_status].btnTitle %></a>
- <% } else if (s.audit_status === auditConst.status.checkNo && s.create_user_id === ctx.session.sessionUser.accountId) { %>
- <a href="/sp/<%- ctx.subProject.id %>/cost/tender/<%- ctx.tender.id %>/analysis/<%- s.stage_order %>/stage" target="_blank" class="btn <%- auditConst.info[s.audit_status].btnClass %> btn-sm"><%- auditConst.info[s.audit_status].btnTitle %></a>
- <% } else if ((s.audit_status === auditConst.status.checking || s.audit_status === auditConst.status.checkNoPre) && s.curAuditors && s.curAuditors.findIndex(x => { return x.audit_id === ctx.session.sessionUser.accountId; }) >= 0) { %>
- <a href="/sp/<%- ctx.subProject.id %>/cost/tender/<%- ctx.tender.id %>/analysis/<%- s.stage_order %>/stage" target="_blank" class="btn <%- auditConst.info[s.audit_status].btnClass %> btn-sm"><%- auditConst.info[s.audit_status].btnTitle %></a>
- <% } else { %>
- <span class="<%- auditConst.info[s.audit_status].class %>"><%- auditConst.info[s.audit_status].title %></span>
- <% } %>
- </td>
- </tr>
- <% } %>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- <script>
- const stageList = JSON.parse('<%- JSON.stringify(stageList) %>');
- const auditType = JSON.parse('<%- JSON.stringify(auditType) %>');
- const auditConst = JSON.parse('<%- JSON.stringify(auditConst) %>');
- </script>
|