ellisran 19 часов назад
Родитель
Сommit
902ed1a3c7
1 измененных файлов с 7 добавлено и 0 удалено
  1. 7 0
      app/public/js/contract_detail.js

+ 7 - 0
app/public/js/contract_detail.js

@@ -2936,6 +2936,13 @@ $(document).ready(function() {
             });
         });
 
+        $('#change-pay-sp-group').change(function () {
+            const node = getNode();
+            postData(window.location.pathname + '/check', {postType: 'change-sp', id: node.id, sp_group: $(this).val()}, function (result) {
+                setStartAuditChange(node, result);
+            });
+        });
+
         function setStartAuditChange(node, result) {
             if (node.cid) {
                 contractPays.splice(contractPays.findIndex(item => item.id === node.id), 1, result);