Explorar el Código

fix: 增加结算决算类型

zhangweicheng hace 15 horas
padre
commit
03627e9d09
Se han modificado 2 ficheros con 2 adiciones y 0 borrados
  1. 1 0
      web/users/js/compilation.js
  2. 1 0
      web/users/views/compilation/index.html

+ 1 - 0
web/users/js/compilation.js

@@ -737,6 +737,7 @@ $(document).ready(function () {
     if ($("#" + id + "_submission").attr("checked")) fileTypes.push(1);
     if ($("#" + id + "_changeBudget").attr("checked")) fileTypes.push(4);
     if ($("#" + id + "_settlement").attr("checked")) fileTypes.push(10);
+    if ($("#" + id + "_finalSettlement").attr("checked")) fileTypes.push(21);
     let current = $(this);
 
     console.log(id, this);

+ 1 - 0
web/users/views/compilation/index.html

@@ -55,6 +55,7 @@
                             <input type="checkbox" data-id="<%= bill.id %>" class="fileType" id="<%= bill.id %>_submission" <% if (bill.fileTypes && bill.fileTypes.includes(1)) { %> checked <% } %>  /> 预算      
                             <input type="checkbox" data-id="<%= bill.id %>" class="fileType" id="<%= bill.id %>_changeBudget" <% if (bill.fileTypes && bill.fileTypes.includes(4)) { %> checked <% } %>  /> 变更预算
                             <input type="checkbox" data-id="<%= bill.id %>" class="fileType" id="<%= bill.id %>_settlement" <% if (bill.fileTypes && bill.fileTypes.includes(10)) { %> checked <% } %>  /> 结算      
+                            <input type="checkbox" data-id="<%= bill.id %>" class="fileType" id="<%= bill.id %>_finalSettlement" <% if (bill.fileTypes && bill.fileTypes.includes(21)) { %> checked <% } %>  /> 结算决算    
                         </td>
                         <td>
                             <a class="copy-bill-valuation" data-id="<%= bill.id %>" href="javascript:void(0);" class="btn btn-sm">拷贝</a>