1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <link rel="stylesheet" href="/public/css/bootstrap/bootstrap-select.min.css">
- <% include ./sub_menu.ejs %>
- <div class="panel-content">
- <div class="panel-title">
- <div class="title-main d-flex">
- <% include ./sub_mini_menu.ejs %>
- <h2><%- transferInfo.t_time %></h2>
- <div class="ml-auto">
- <% if (transferInfo.uid === ctx.session.sessionUser.accountId) { %>
- <% if (transferInfo.is_lock) { %>
- <a href="#unlock" data-toggle="modal" data-target="#unlock" class="btn btn-danger btn-sm pull-right">解锁数据</a>
- <% } else { %>
- <a href="#lock" data-toggle="modal" data-target="#lock" class="btn btn-success btn-sm pull-right mr-2">锁定数据</a>
- <a href="#add-bd" data-toggle="modal" data-target="#add-bd" class="btn btn-primary btn-sm pull-right mr-2">添加标段</a>
- <% } %>
- <% } %>
- </div>
- </div>
- </div>
- <div class="content-wrap">
- <div class="c-body">
- <div class="sjs-height-0">
- <table class="table table-bordered">
- <thead class="text-center">
- <tr>
- <th width="50px">序号</th>
- <th width="">标段名称</th>
- <th width="130px">计量期数</th>
- <th width="100px">合同金额</th>
- <th width="100px">本期合同计量</th>
- <th width="100px">本期变更计量</th>
- <th width="100px">本期完成计量</th>
- <th width="100px">本期应付</th>
- <th width="100px">本期实付</th>
- <th width="100px">本次划拨金额</th>
- <th width="80px">附件</th>
- <% if (transferInfo.uid === ctx.session.sessionUser.accountId) { %>
- <th width="80px">操作</th>
- <% } %>
- </tr>
- </thead>
- <tbody id="tender-list">
- <% if (transferTenderList.length > 0) { %>
- <% for (const [i, t] of transferTenderList.entries()) { %>
- <tr class="text-right" data-id="<%- t.id %>">
- <td class="text-center"><%- i+1 %></td>
- <td class="text-left"><%- t.name %></td>
- <td class="text-center">第<%- t.sorder %>期</td>
- <td class="" ><%- t.total_price %></td>
- <td class="" ><%- t.contract_tp %></td>
- <td class="" ><%- t.qc_tp %></td>
- <td class="" ><%- ctx.helper.sum([t.contract_tp, t.qc_tp, t.pc_tp]) %></td>
- <td class="" ><%- t.yf_tp %></td>
- <td class="" ><%- t.sf_tp %></td>
- <td><% if (transferInfo.uid === ctx.session.sessionUser.accountId && !transferInfo.is_lock) { %><input type="text" class="form-control form-control-sm text-right" placeholder="默认等于本期实付" data-ftid="<%- t.id %>" value="<%- t.hb_tp %>"><% } else { %><%- t.hb_tp %><% } %></td>
- <td class="text-center" ><a href="javascript:void(0);" class="text-primary open-tender-files" data-ftid="<%- t.id %>"><i class="fa fa-paperclip fa-rotate-90"></i></a> <span class="file-num"><%- t.files.length > 0 ? t.files.length : '' %></span></td>
- <% if (transferInfo.uid === ctx.session.sessionUser.accountId) { %><td class="text-center"><% if (!transferInfo.is_lock) { %><a class="text-danger del-tender-btn" href="javascript:void(0);" data-id="<%- t.id %>">移除</a><% } %></td><% } %>
- </tr>
- <% } %>
- <% } %>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- <script src="/public/js/bootstrap/bootstrap-select.min.js"></script>
- <script>
- const user_id = <%- ctx.session.sessionUser.accountId %>;
- const trid = '<%- transferInfo.id %>';
- const whiteList = JSON.parse(unescape('<%- escape(JSON.stringify(whiteList)) %>'));
- const tenderList = JSON.parse(unescape('<%- escape(JSON.stringify(transferTenderList)) %>'));
- const financialPermission = JSON.parse(unescape('<%- escape(JSON.stringify(financialPermission)) %>'));
- </script>
|