seimin hace 1 año
padre
commit
49fd685975
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4 4
      src/app/views/order-management/order-management.component.ts

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

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