Explorar el Código

项目列表,移动创建时间,新增合同个数

MaiXinRong hace 12 horas
padre
commit
e4bcc55278
Se han modificado 2 ficheros con 13 adiciones y 2 borrados
  1. 4 1
      app/public/js/sub_project.js
  2. 9 1
      app/view/sub_proj/index.ejs

+ 4 - 1
app/public/js/sub_project.js

@@ -48,17 +48,20 @@ $(document).ready(function() {
                     html.push(`<td class="text-center"></td>`);
                     html.push(`<td class="text-center"></td>`);
                     html.push(`<td class="text-center"></td>`);
+                    html.push(`<td class="text-center"></td>`);
                 } else {
-                    html.push(`<td class="text-center">${moment(node.create_time).format('YYYY-MM-DD')}</td>`);
                     // 标段个数
                     html.push(`<td class="text-center">${node.tender_count}</td>`);
                     // 文件个数
                     html.push(`<td class="text-center">${node.file_count}</td>`);
+                    // 合同个数
+                    html.push(`<td class="text-center">${node.contract_count}</td>`);
                     if (canEdit) {
                         html.push(`<td class="text-center">${node.management || ''}<a class="ml-2" href="javascript: void(0)" name="set-management"><i class="fa fa-pencil-square-o "></i></a>${node.management ? '<a class="ml-2" href="javascript: void(0)" name="refresh-management"><i class="fa fa-refresh "></i></a>': ''}</td>`);
                     } else {
                         html.push(`<td class="text-center">${node.management || ''}</td>`);
                     }
+                    html.push(`<td class="text-center">${moment(node.create_time).format('YYYY-MM-DD')}</td>`);
                 }
                 // 操作
                 if (canEdit) {

+ 9 - 1
app/view/sub_proj/index.ejs

@@ -26,7 +26,15 @@
                 </div>
                 <% } else { %>
                 <table class="table table-bordered">
-                    <tr class="text-center"><th style="min-width: 300px">项目名称</th><th width="8%">概预算标准</th><th width="8%">创建时间</th><th width="5%">标段个数</th><th width="5%">文件个数<i class="fa fa-question-circle text-primary" data-placement="bottom" data-toggle="tooltip" data-original-title="指资料归集的所有文件个数"></i></th><th width="20%">管理单位</th><% if (ctx.session.sessionUser.is_admin) { %><th width="20%">操作</th><% } %></tr>
+                    <tr class="text-center">
+                        <th style="min-width: 300px">项目名称</th>
+                        <th width="8%">概预算标准</th>
+                        <th width="5%">标段个数</th>
+                        <th width="5%">文件个数<i class="fa fa-question-circle text-primary" data-placement="bottom" data-toggle="tooltip" data-original-title="指资料归集的所有文件个数"></i></th>
+                        <th width="5%">合同个数<i class="fa fa-question-circle text-primary" data-placement="bottom" data-toggle="tooltip" data-original-title="项目支出合同个数"></i></th>
+                        <th width="20%">管理单位</th>
+                        <th width="8%">创建时间</th><% if (ctx.session.sessionUser.is_admin) { %><th width="20%">操作</th><% } %>
+                    </tr>
                     <tbody id="projectList">
                     </tbody>
                 </table>