Jelajahi Sumber

安全生产费,审批流程类型设置问题

MaiXinRong 2 tahun lalu
induk
melakukan
c497d5090a
2 mengubah file dengan 8 tambahan dan 7 penghapusan
  1. 6 5
      app/public/js/payment_process.js
  2. 2 2
      app/view/payment/process.ejs

+ 6 - 5
app/public/js/payment_process.js

@@ -196,7 +196,7 @@ $(function () {
                 '</div>';
         }
         $('#rpt_user').html(html);
-        $('#process_set input[name="tender_process"][value="'+ trInfo.sp_status +'"]').prop('checked', true);
+        $('input[name="tender_process"][value="'+ trInfo.sp_status +'"]', '#process_set').prop('checked', true);
         const spt = sp_status_list[trInfo.sp_status];
         $('#process_set').find('.alert-warning').text(spt.name + ':' + spt.msg);
         const prop = {
@@ -229,7 +229,7 @@ $(function () {
     });
 
     // 更改审批流程状态
-    $('#process_set .form-check input').on('change', function () {
+    $('#process_set').on('change', `.form-check input`, function () {
         // 获取所有审批的checked值并更新
         const this_status = parseInt($(this).val());
         const this_tr_id = parseInt($('#tender_rpt_table').find('.table-warning').attr('data-id'));
@@ -545,7 +545,7 @@ $(function () {
             });
 
             // 更改审批流程状态
-            $('.form-check input', setting.domId).on('change', function () {
+            $(setting.domId).on('change', '[name=detail_process]', function () {
                 // 获取所有审批的checked值并更新
                 const status = parseInt($(this).val());
                 let tr_id = self.rptInfo.id;
@@ -555,7 +555,8 @@ $(function () {
                 const prop = { type: 'change-status', tr_id, status };
                 postData('/payment/' + tenderId + '/process/save', prop, function (data) {
                     self.rptInfo.sp_status = status;
-                    self.setLcShowHtml(self.rptInfo, data);
+                    self.rptInfo.auditData = data;
+                    self.setLcShowHtml();
                 });
             });
 
@@ -742,7 +743,7 @@ $(function () {
             this.obj.attr('data-trid', this.rptInfo.id);
             $('.card-title', this.domId).find('.card-title').text(this.rptInfo.rpt_name);
             this.refreshUserHtml();
-            $('input[name="tender_process"][value="'+ this.rptInfo.sp_status +'"]', this.obj).prop('checked', true).attr('data-trid', this.rptInfo.id);
+            $('input[name="detail_process"][value="'+ this.rptInfo.sp_status +'"]', this.obj).prop('checked', true).attr('data-trid', this.rptInfo.id);
             const spt = sp_status_list[this.rptInfo.sp_status];
             $('.alert-warning', this.domId).text(spt.name + ':' + spt.msg);
             this.loadAuditList();

+ 2 - 2
app/view/payment/process.ejs

@@ -37,8 +37,8 @@
                                                 <div class="form-group form-check">
                                                     <% for (const st in shenpi.sp_status_list) { %>
                                                     <div class="custom-control custom-checkbox custom-control-inline">
-                                                        <input type="radio" class="custom-control-input" value="<%- shenpi.sp_status_list[st].status %>" name="tender_process" id="tender_process_<%- shenpi.sp_status_list[st].status %>">
-                                                        <label class="custom-control-label" for="tender_process_<%- shenpi.sp_status_list[st].status %>"><%- shenpi.sp_status_list[st].name %></label>
+                                                        <input type="radio" class="custom-control-input" value="<%- shenpi.sp_status_list[st].status %>" name="detail_process" id="safe_process_<%- shenpi.sp_status_list[st].status %>">
+                                                        <label class="custom-control-label" for="safe_process_<%- shenpi.sp_status_list[st].status %>"><%- shenpi.sp_status_list[st].name %></label>
                                                     </div>
                                                     <% } %>
                                                 </div>