1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <% include ./material_sub_menu.ejs %>
- <div class="panel-content">
- <div class="panel-title">
- <div class="title-main d-flex justify-content-between">
- <div class="d-flex justify-content-start align-items-center">
- <a href="#addfujian" data-toggle="modal" class="btn btn-sm btn-light text-primary" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="添加清单"><i class="fa fa-cloud-upload" aria-hidden="true"></i> 上传附件</a>
- <span class="d-flex align-items-center" style="margin-left: 5px;">
- <input type="checkbox" id="file-checkbox">
- <span class="text-primary" style="margin-left: 5px;">所有期</span>
- <div style="margin-left: 20px;">
- <!--所有附件 翻页-->
- <span id="showPage"><a href="javascript:void(0);" class="page-select" content="pre"><i class="fa fa-chevron-left"></i></a> <span id="currentPage">1</span>/<span id="totalPage">10</span> <a href="javascript:void(0);" class="page-select" content="next"><i class="fa fa-chevron-right"></i></a></span>
- </div>
- </span>
- </div>
- </div>
- </div>
- <div class="content-wrap">
- <div class="c-body">
- <div class="sjs-height-0">
- <table class="table table-bordered">
- <thead>
- <tr>
- <th width="50">序号</th>
- <th>名称</th>
- <th width="90">大小</th>
- <th width="90">调差期</th>
- <th width="150">上传时间</th>
- <th width="100">操作</th>
- </tr>
- </thead>
- <tbody id="file-list">
- <!-- <% fileList.filter(file => file.mid === ctx.material.id).forEach(function(file, idx){ %>
- <tr>
- <td><%=idx + 1%></td>
- <td><a href="/<%- file.filepath %>" target="_blank"><%=file.file_name%></a></td>
- <td><%=file.file_size%></td>
- <td>第<%= file.s_order %>期</td>
- <td><%=file.upload_time%></td>
- <td>
- <% if(file.user_id === ctx.session.sessionUser.accountId) { %>
- <% if (!ctx.material.curAuditor) { %>
- <% if (ctx.material.status === auditConst.status.uncheck && ctx.session.sessionUser.accountId === ctx.material.user_id) { %>
- <a href="javascript: void;" class="btn btn-light btn-sm delete-file" title="删除附件" data-attid="<%- file.id %>">
- <span class="fa fa-trash text-danger"></span>
- </a>
- <% } %>
- <% if (ctx.material.status === auditConst.status.checkNo && ctx.session.sessionUser.accountId === ctx.material.user_id) { %>
- <a href="javascript: void;" class="btn btn-light btn-sm delete-file" title="删除附件" data-attid="<%- file.id %>">
- <span class="fa fa-trash text-danger"></span>
- </a>
- <% } %>
- <% } else {%>
- <% if(ctx.material.curAuditor.aid === ctx.session.sessionUser.accountId) { %>
- <a href="javascript: void;" class="btn btn-light btn-sm delete-file" title="删除附件" data-attid="<%- file.id %>">
- <span class="fa fa-trash text-danger"></span>
- </a>
- <% } %>
- <% } %>
- <% } %>
- </td>
- </tr>
- <% }) %> -->
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- <script>
- const auditors = JSON.parse('<%- JSON.stringify(auditors) %>');
- const curAuditor = JSON.parse('<%- JSON.stringify(ctx.material.curAuditor) %>');
- const material = JSON.parse('<%- JSON.stringify(ctx.material) %>');
- const auditConst = JSON.parse('<%- JSON.stringify(auditConst) %>');
- const cur_uid = '<%- ctx.session.sessionUser.accountId %>';
- const tid = '<%- ctx.tender.id %>';
- const mid = '<%- ctx.material.id %>';
- const fileList = JSON.parse('<%- JSON.stringify(fileList) %>');
- const whiteList = JSON.parse('<%- JSON.stringify(whiteList) %>');
- </script>
|