Browse Source

人员修改所属单位不允许选择为非事业单位

xiyang.wang 7 months ago
parent
commit
e0e12eb9e8
1 changed files with 22 additions and 0 deletions
  1. 22 0
      ruoyi-system/src/main/resources/templates/ahrs/personnel/edit.html

+ 22 - 0
ruoyi-system/src/main/resources/templates/ahrs/personnel/edit.html

@@ -854,6 +854,28 @@
     })
 
     function submitHandler() {
+        if ($('#treeName').val()) {
+            $.ajax({
+                type: 'POST',
+                url: ctx + 'system/dept/assert/' + $('#treeId').val(),
+                success: function (r) {
+                    if (r.code === 0) {
+                        if (r.msg != "3N"){
+                            $.modal.alertWarning("修改人员失败,该人员的所属单位不是事业单位!");
+                            return;
+                        }
+                    } else {
+                        $.modal.alertWarning(r.msg);
+                    }
+
+                }
+            })
+        }
+
+
+
+
+
         var personStatus = $('#personnelStatusName').val();
         if ($("#currentPostTypeName").val() == "") {
             $.modal.alertWarning("请选择现任岗位!");