瀏覽代碼

上报审批审批人选择bug

laiguoran 5 年之前
父節點
當前提交
da53093052
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/public/js/stage_audit.js

+ 1 - 1
app/public/js/stage_audit.js

@@ -55,7 +55,7 @@ $(document).ready(function () {
     $('#account_group').change(function () {
     $('#account_group').change(function () {
         let account_html = '<option value="0">选择审批人</option>';
         let account_html = '<option value="0">选择审批人</option>';
         for (const account of accountList) {
         for (const account of accountList) {
-            if (parseInt($(this).val()) === 0 || parseInt($(this).val()) === account.account_group) {
+            if ((parseInt($(this).val()) === 0 || parseInt($(this).val()) === account.account_group) && account.id !== parseInt(userID)) {
                 const role = account.role !== '' ? '(' + account.role + ')' : '';
                 const role = account.role !== '' ? '(' + account.role + ')' : '';
                 const company = account.company !== '' ? ' -' + account.company : '';
                 const company = account.company !== '' ? ' -' + account.company : '';
                 account_html += '<option value="' + account.id + '">' + account.name + role + company + '</option>';
                 account_html += '<option value="' + account.id + '">' + account.name + role + company + '</option>';