yusheng 1 săptămână în urmă
părinte
comite
b1fc1bfaa1
1 a modificat fișierele cu 5 adăugiri și 6 ștergeri
  1. 5 6
      src/views/recordComponents/programRulesDialog.vue

+ 5 - 6
src/views/recordComponents/programRulesDialog.vue

@@ -813,12 +813,9 @@
     },
     computed: {
       dispatchStatus() {
+        return true
         return (
-          (this.addForm.autoOrder &&
-            (this.type == 'add' ||
-              this.type == 'edit' ||
-              this.type == 'detail')) ||
-          (!this.addForm.autoOrder && this.type == 'dispatch')
+          this.type == 'add' || this.type == 'edit' || this.type == 'detail'
         );
       },
       // 当前用户信息
@@ -1050,7 +1047,9 @@
           this.addForm.groupId = this.addForm.executeUsers[0]?.groupId || '';
           this.searchDeptNodeClick(this.addForm.groupId);
         } else {
-          this.teamChange(true);
+          if (this.addForm.teamId) {
+            this.teamChange(true);
+          }
         }
 
         // if (this.type === 'dispatch') {