Browse Source

拉取代码

maotao 1 month ago
parent
commit
cdcbd5438d

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

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

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

@@ -1244,8 +1244,8 @@
1244
         <div>
1244
         <div>
1245
           <nz-form-label class="label" nzRequired>固定科室</nz-form-label>
1245
           <nz-form-label class="label" nzRequired>固定科室</nz-form-label>
1246
           <nz-select class="mb8 w100" [nzMode]="'multiple'" [nzDropdownMatchSelectWidth]="false" nzShowSearch
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
             <ng-container *ngFor="let data of courseListDataAll">
1249
             <ng-container *ngFor="let data of courseListDataAll">
1250
               <nz-option *ngIf="!loading1" [nzLabel]="data.dept" [nzValue]="data"></nz-option>
1250
               <nz-option *ngIf="!loading1" [nzLabel]="data.dept" [nzValue]="data"></nz-option>
1251
             </ng-container>
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
     this.getSearchTaskList(); //任务类型列表,可搜索
334
     this.getSearchTaskList(); //任务类型列表,可搜索
335
     this.getSearchDeptList(); //标本配送,空单默认科室列表
335
     this.getSearchDeptList(); //标本配送,空单默认科室列表
336
     this.getReserveType(); //获取是否限制业务发起时间-字典
336
     this.getReserveType(); //获取是否限制业务发起时间-字典
337
+		this.changeInp("")
337
   }
338
   }
338
   // 搜索科室
339
   // 搜索科室
339
   optionList = [];
340
   optionList = [];
@@ -1110,7 +1111,7 @@ export class TaskTypeManagementComponent implements OnInit {
1110
   //打开
1111
   //打开
1111
   changeFormEnd(flag) {
1112
   changeFormEnd(flag) {
1112
     if (flag) {
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
   getAllDepartment(id, e) {
1119
   getAllDepartment(id, e) {
1119
     let postData = {
1120
     let postData = {
1120
       idx: 0,
1121
       idx: 0,
1121
-      sum: 10,
1122
+      sum: 9999,
1122
       department: {
1123
       department: {
1123
         dept: e,
1124
         dept: e,
1124
         cascadeHosId: id
1125
         cascadeHosId: id
@@ -1130,6 +1131,7 @@ export class TaskTypeManagementComponent implements OnInit {
1130
         this.loading1 = false;
1131
         this.loading1 = false;
1131
         if (data.status == 200) {
1132
         if (data.status == 200) {
1132
           this.courseListDataAll = data.list;
1133
           this.courseListDataAll = data.list;
1134
+					
1133
         }
1135
         }
1134
       });
1136
       });
1135
   }
1137
   }
@@ -1649,6 +1651,7 @@ export class TaskTypeManagementComponent implements OnInit {
1649
       this.getCourseList(this.pageSize);
1651
       this.getCourseList(this.pageSize);
1650
     } else if (name == "ysgc") {
1652
     } else if (name == "ysgc") {
1651
       this.patient_level();
1653
       this.patient_level();
1654
+			// this.changeInp("");
1652
       this.getDepartment().subscribe((res) => {
1655
       this.getDepartment().subscribe((res) => {
1653
         this.departmentData = res;
1656
         this.departmentData = res;
1654
         this.getcheckout();
1657
         this.getcheckout();
@@ -1873,7 +1876,11 @@ export class TaskTypeManagementComponent implements OnInit {
1873
     this.departmenShow = true;
1876
     this.departmenShow = true;
1874
     console.log(this.carryingCourses, this.indexs);
1877
     console.log(this.carryingCourses, this.indexs);
1875
     let d = this.carryingCourses[this.indexs].departmentDTOS || [];
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
   getDepartment() {
1886
   getDepartment() {
@@ -2102,10 +2109,26 @@ export class TaskTypeManagementComponent implements OnInit {
2102
       this.checkoutMethod.id = null;
2109
       this.checkoutMethod.id = null;
2103
     }
2110
     }
2104
     if (data.departmentIds) {
2111
     if (data.departmentIds) {
2105
-      this.courseListDataAll = [
2112
+      let arr = [
2106
         ...data.departmentDTOS,
2113
         ...data.departmentDTOS,
2107
         ...this.courseListDataAll,
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
       this.departmentIds = data.departmentIds;
2132
       this.departmentIds = data.departmentIds;
2110
     } else {
2133
     } else {
2111
       this.departmentIds = null;
2134
       this.departmentIds = null;