소스 검색

拉取代码

maotao 1 개월 전
부모
커밋
cdcbd5438d

+ 1 - 1
src/app/views/hushijiandan/hushijiandan.component.less

@@ -2668,7 +2668,7 @@
2668 2668
 }
2669 2669
 .patient{
2670 2670
   .modalBody{
2671
-    width: 80%;
2671
+    width: 70%;
2672 2672
     border-radius: 16px;
2673 2673
     padding: 16px 24px;
2674 2674
     .title{

+ 2 - 2
src/app/views/task-type-management/task-type-management.component.html

@@ -1244,8 +1244,8 @@
1244 1244
         <div>
1245 1245
           <nz-form-label class="label" nzRequired>固定科室</nz-form-label>
1246 1246
           <nz-select class="mb8 w100" [nzMode]="'multiple'" [nzDropdownMatchSelectWidth]="false" nzShowSearch
1247
-            nzAllowClear nzPlaceHolder="请选择固定科室" nzServerSearch (nzOnSearch)="changeInp($event)"
1248
-            (nzOpenChange)="changeFormEnd($event)" [(ngModel)]="departments">
1247
+            nzAllowClear nzPlaceHolder="请选择固定科室" nzShowSearch  
1248
+             [(ngModel)]="departments">
1249 1249
             <ng-container *ngFor="let data of courseListDataAll">
1250 1250
               <nz-option *ngIf="!loading1" [nzLabel]="data.dept" [nzValue]="data"></nz-option>
1251 1251
             </ng-container>

+ 27 - 4
src/app/views/task-type-management/task-type-management.component.ts

@@ -334,6 +334,7 @@ export class TaskTypeManagementComponent implements OnInit {
334 334
     this.getSearchTaskList(); //任务类型列表,可搜索
335 335
     this.getSearchDeptList(); //标本配送,空单默认科室列表
336 336
     this.getReserveType(); //获取是否限制业务发起时间-字典
337
+		this.changeInp("")
337 338
   }
338 339
   // 搜索科室
339 340
   optionList = [];
@@ -1110,7 +1111,7 @@ export class TaskTypeManagementComponent implements OnInit {
1110 1111
   //打开
1111 1112
   changeFormEnd(flag) {
1112 1113
     if (flag) {
1113
-      this.changeInp("");
1114
+      // this.changeInp("");
1114 1115
     }
1115 1116
   }
1116 1117
   // 获取院区下所有的科室
@@ -1118,7 +1119,7 @@ export class TaskTypeManagementComponent implements OnInit {
1118 1119
   getAllDepartment(id, e) {
1119 1120
     let postData = {
1120 1121
       idx: 0,
1121
-      sum: 10,
1122
+      sum: 9999,
1122 1123
       department: {
1123 1124
         dept: e,
1124 1125
         cascadeHosId: id
@@ -1130,6 +1131,7 @@ export class TaskTypeManagementComponent implements OnInit {
1130 1131
         this.loading1 = false;
1131 1132
         if (data.status == 200) {
1132 1133
           this.courseListDataAll = data.list;
1134
+					
1133 1135
         }
1134 1136
       });
1135 1137
   }
@@ -1649,6 +1651,7 @@ export class TaskTypeManagementComponent implements OnInit {
1649 1651
       this.getCourseList(this.pageSize);
1650 1652
     } else if (name == "ysgc") {
1651 1653
       this.patient_level();
1654
+			// this.changeInp("");
1652 1655
       this.getDepartment().subscribe((res) => {
1653 1656
         this.departmentData = res;
1654 1657
         this.getcheckout();
@@ -1873,7 +1876,11 @@ export class TaskTypeManagementComponent implements OnInit {
1873 1876
     this.departmenShow = true;
1874 1877
     console.log(this.carryingCourses, this.indexs);
1875 1878
     let d = this.carryingCourses[this.indexs].departmentDTOS || [];
1876
-    this.departments = d;
1879
+    this.departments = d
1880
+		// .map(i=>{
1881
+		// 	return i.id
1882
+		// });
1883
+		console.log(111,this.departments);
1877 1884
   }
1878 1885
   //默认科室获取
1879 1886
   getDepartment() {
@@ -2102,10 +2109,26 @@ export class TaskTypeManagementComponent implements OnInit {
2102 2109
       this.checkoutMethod.id = null;
2103 2110
     }
2104 2111
     if (data.departmentIds) {
2105
-      this.courseListDataAll = [
2112
+      let arr = [
2106 2113
         ...data.departmentDTOS,
2107 2114
         ...this.courseListDataAll,
2108 2115
       ];
2116
+			const result = [];
2117
+			for (let i = 0; i < arr.length; i++) {
2118
+				let isUnique = true;
2119
+				for (let j = 0; j < result.length; j++) {
2120
+					if (arr[i].id === result[j].id) {
2121
+						isUnique = false;
2122
+						break;
2123
+					}
2124
+				}
2125
+				if (isUnique) {
2126
+					result.push(arr[i]);
2127
+				}
2128
+			}
2129
+			console.log(1234,arr)
2130
+			console.log(89898,result)
2131
+			this.courseListDataAll = result
2109 2132
       this.departmentIds = data.departmentIds;
2110 2133
     } else {
2111 2134
       this.departmentIds = null;