| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 | 
							- <% 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>
 
-           </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.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>
 
 
  |