seimin 1 anno fa
parent
commit
49fd685975

+ 4 - 4
src/app/views/order-management/order-management.component.ts

@@ -285,13 +285,13 @@ export class OrderManagementComponent implements OnInit {
285
       .subscribe((data) => {
285
       .subscribe((data) => {
286
         this.alldepart = data.list;
286
         this.alldepart = data.list;
287
         this.isLoading = false;
287
         this.isLoading = false;
288
-        if (dept === undefined && this.coopBtns.currentDept) {
289
-          // 初次渲染,权限有当前科室工单,则回显申请科室
288
+        if (dept === undefined && this.coopBtns.currentDept && !this.coopBtns.allOrders) {
289
+          // 初次渲染,权限有当前科室工单,没有全部工单,则回显申请科室
290
           this.alldepart = [this.loginUser.dept];
290
           this.alldepart = [this.loginUser.dept];
291
           this.department = this.loginUser.dept.id;
291
           this.department = this.loginUser.dept.id;
292
         }
292
         }
293
-        if (dept === undefined && this.coopBtns.currentUser) {
294
-          // 初次渲染,权限有当前人员工单,则回显执行支助人员
293
+        if (dept === undefined && this.coopBtns.currentUser && !this.coopBtns.allOrders) {
294
+          // 初次渲染,权限有当前人员工单,没有全部工单,则回显执行支助人员
295
           this.allWorker = [this.loginUser];
295
           this.allWorker = [this.loginUser];
296
           this.worker = this.loginUser.id;
296
           this.worker = this.loginUser.id;
297
         }
297
         }