| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <% include ./sub_menu.ejs %>
- <div class="panel-content">
- <div class="panel-title">
- <div class="title-main d-flex">
- <% include ./sub_mini_menu.ejs %>
- <h2>划拨列表</h2>
- <div class="ml-auto">
- <% if (ctx.session.sessionUser.is_admin || financialPermission.transfer_add) { %>
- <a href="#add-transfer" data-toggle="modal" data-target="#add-transfer" class="btn btn-primary btn-sm pull-right">新建划拨</a>
- <% } %>
- </div>
- </div>
- </div>
- <div class="content-wrap">
- <div class="c-body">
- <div class="sjs-height-0">
- <table class="table table-hover table-bordered text-center">
- <thead>
- <tr>
- <th width="50px">次数</th>
- <th width="10%">划拨年月</th>
- <th width="120px">本次划拨金额</th>
- <th width="120px">截止上次划拨金额</th>
- <th width="120px">截止本次划拨金额</th>
- <th width="100px">填报人</th>
- <th width="150px">填报单位</th>
- <th width="150px">填报时间</th>
- <th width="20%">填报备注</th>
- <th width="80px">附件</th>
- <th width="80px">操作</th>
- </tr>
- </thead>
- <tbody id="transfer-list">
- <% if (transferList.length > 0) { %>
- <% for (const [i, t] of transferList.entries()) { %>
- <tr class="text-center" data-id="<%- t.id %>">
- <td class=""><%- pageInfo.total_num - ((pageInfo.page-1)*pageInfo.pageSize + i) %></td>
- <td class=""><a href="/sp/<%- ctx.subProject.id %>/financial/transfer/<%- t.id %>/tender"><%- t.t_time %></a>
- <% if (ctx.session.sessionUser.is_admin) { %>
- <a href="#edit" class="edit-time" data-ftid="<%- t.id %>" data-time="<%- t.t_time %>" data-toggle="modal" data-target="#edit"><i class="fa fa-pencil-square-o "></i></a>
- <% } %>
- </td>
- <td class="text-right"><%- t.total_price %></td>
- <td class="text-right"><%- t.pre_hb_tp %></td>
- <td class="text-right"><%- ctx.helper.add(t.total_price, t.pre_hb_tp) %></td>
- <td class=""><%- t.username %></td>
- <td class="text-left" ><%- t.company %></td>
- <td class="" ><%- moment(t.create_time).format('YYYY-MM-DD HH:mm:ss') %></td>
- <td class="" ><span class="show-remark"><%- t.remark %></span> <% if (t.uid === ctx.session.sessionUser.accountId) { %><a href="javascript:void(0);" class="edit-remark" data-id="<%- t.id %>"><i class="fa fa-pencil-square-o"></i></a><% } %></td>
- <td class="" ><a href="javascript:void(0);" data-trid="<%- t.id %>" class="text-primary open-transfer-files"><i class="fa fa-paperclip fa-rotate-90"></i></a> <span class="file-num"><%- t.files.length > 0 ? t.files.length : '' %></span></td>
- <td><% if (t.uid === ctx.session.sessionUser.accountId) { %><a href="javascript:void(0);" class="text-danger del-transfer-btn" data-id="<%- t.id %>">删除</a><% } %></td>
- </tr>
- <% } %>
- <% } %>
- </tbody>
- </table>
- <!--翻页-->
- <% include ../layout/page.ejs %>
- </div>
- </div>
- </div>
- </div>
- <script>
- const user_id = <%- ctx.session.sessionUser.accountId %>;
- const whiteList = JSON.parse(unescape('<%- escape(JSON.stringify(whiteList)) %>'));
- const transferList = JSON.parse(unescape('<%- escape(JSON.stringify(transferList)) %>'));
- const financialPermission = JSON.parse(unescape('<%- escape(JSON.stringify(financialPermission)) %>'));
- </script>
|