12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <% 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="100px">次数</th>
- <th width="10%">划拨年月</th>
- <th width="10%">划拨金额</th>
- <th width="10%">填报人</th>
- <th>填报单位</th>
- <th width="150px">填报时间</th>
- <th width="15%">填报备注</th>
- <th width="150px">附件</th>
- <th width="150px">操作</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=""><%- (transferList.length - i) %></td>
- <td class=""><a href="/sp/<%- ctx.subProject.id %>/financial/transfer/<%- t.id %>/tender"><%- t.t_time %></a></td>
- <td class="text-right"><%- t.total_price %></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>
- </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>
|