maotao 2 månader sedan
förälder
incheckning
5030dfda17
49 ändrade filer med 520 tillägg och 256 borttagningar
  1. 16 0
      src/app/components/configurationCenter/configuration-drug/configuration-drug.component.html
  2. 32 6
      src/app/components/configurationCenter/configuration-drug/configuration-drug.component.ts
  3. 65 0
      src/app/components/configurationCenter/configuration-specimen/configuration-specimen.component.html
  4. 107 1
      src/app/components/configurationCenter/configuration-specimen/configuration-specimen.component.ts
  5. 8 1
      src/app/views/building-floor/building-floor.component.html
  6. 3 0
      src/app/views/building-floor/building-floor.component.less
  7. 2 2
      src/app/views/jp-search/jp-search.component.html
  8. 4 4
      src/app/views/jp-search/jp-search.component.ts
  9. 21 21
      src/app/views/new-statistics/components/distribution-search-more/distribution-search-more.component.html
  10. 18 10
      src/app/views/new-statistics/components/distribution-search-more/distribution-search-more.component.ts
  11. 3 1
      src/app/views/new-statistics/distribution-inspection-statistics/business-classify-statistics/business-classify-statistics.component.ts
  12. 14 9
      src/app/views/new-statistics/distribution-inspection-statistics/date-business-statistics/date-business-statistics.component.ts
  13. 3 1
      src/app/views/new-statistics/distribution-inspection-statistics/date-quality-control-statistics/date-quality-control-statistics.component.ts
  14. 13 8
      src/app/views/new-statistics/distribution-inspection-statistics/department-business-statistics/department-business-statistics.component.ts
  15. 8 6
      src/app/views/new-statistics/distribution-inspection-statistics/department-quality-control-statistics/department-quality-control-statistics.component.ts
  16. 7 5
      src/app/views/new-statistics/distribution-inspection-statistics/distribution-department-evaluate-statistics/distribution-department-evaluate-statistics.component.ts
  17. 3 1
      src/app/views/new-statistics/distribution-inspection-statistics/distribution-department-source-statistics/distribution-department-source-statistics.component.ts
  18. 2 2
      src/app/views/new-statistics/distribution-inspection-statistics/distribution-inspection-statistics-routing.module.ts
  19. 8 5
      src/app/views/new-statistics/distribution-inspection-statistics/distribution-synthesize-statistics/distribution-synthesize-statistics.component.ts
  20. 3 1
      src/app/views/new-statistics/distribution-inspection-statistics/distribution-user-evaluate-statistics/distribution-user-evaluate-statistics.component.ts
  21. 3 1
      src/app/views/new-statistics/distribution-inspection-statistics/hour-quality-control-statistics/hour-quality-control-statistics.component.ts
  22. 8 6
      src/app/views/new-statistics/distribution-inspection-statistics/incident-list/incident-list.component.html
  23. 53 25
      src/app/views/new-statistics/distribution-inspection-statistics/incident-list/incident-list.component.ts
  24. 3 1
      src/app/views/new-statistics/distribution-inspection-statistics/source-statistics/source-statistics.component.ts
  25. 3 1
      src/app/views/new-statistics/distribution-inspection-statistics/taskType-quality-control-statistics/taskType-quality-control-statistics.component.ts
  26. 3 1
      src/app/views/new-statistics/distribution-inspection-statistics/user-business-statistics/user-business-statistics.component.ts
  27. 3 1
      src/app/views/new-statistics/distribution-inspection-statistics/user-quality-control-statistics/user-quality-control-statistics.component.ts
  28. 3 1
      src/app/views/new-statistics/maintenance-statistics/building-statistics/building-statistics.component.ts
  29. 3 1
      src/app/views/new-statistics/maintenance-statistics/category-one-statistics/category-one-statistics.component.ts
  30. 3 1
      src/app/views/new-statistics/maintenance-statistics/category-source-statistics/category-source-statistics.component.ts
  31. 3 1
      src/app/views/new-statistics/maintenance-statistics/category-three-statistics/category-three-statistics.component.ts
  32. 3 1
      src/app/views/new-statistics/maintenance-statistics/category-two-statistics/category-two-statistics.component.ts
  33. 3 1
      src/app/views/new-statistics/maintenance-statistics/consumable-statistics/consumable-statistics.component.ts
  34. 3 1
      src/app/views/new-statistics/maintenance-statistics/department-evaluate-statistics/department-evaluate-statistics.component.ts
  35. 3 1
      src/app/views/new-statistics/maintenance-statistics/department-incident-statistics/department-incident-statistics.component.ts
  36. 3 1
      src/app/views/new-statistics/maintenance-statistics/department-source-statistics/department-source-statistics.component.ts
  37. 3 1
      src/app/views/new-statistics/maintenance-statistics/floor-statistics/floor-statistics.component.ts
  38. 3 1
      src/app/views/new-statistics/maintenance-statistics/group-statistics/group-statistics.component.ts
  39. 4 2
      src/app/views/new-statistics/maintenance-statistics/incident-list/incident-list.component.ts
  40. 3 1
      src/app/views/new-statistics/maintenance-statistics/incident-statistics/incident-statistics.component.ts
  41. 3 1
      src/app/views/new-statistics/maintenance-statistics/tripartite-company-statistics/tripartite-company-statistics.component.ts
  42. 3 1
      src/app/views/new-statistics/maintenance-statistics/user-evaluate-statistics/user-evaluate-statistics.component.ts
  43. 3 1
      src/app/views/new-statistics/maintenance-statistics/user-statistics/user-statistics.component.ts
  44. 3 1
      src/app/views/new-statistics/maintenance-statistics/work-hour-big-statistics/work-hour-big-statistics.component.ts
  45. 3 1
      src/app/views/new-statistics/maintenance-statistics/work-hour-small-statistics/work-hour-small-statistics.component.ts
  46. 7 7
      src/app/views/operation-notice/operation-notice.component.html
  47. 1 1
      src/app/views/operation-notice/operation-notice.component.less
  48. 21 48
      src/app/views/operation-search/operation-search.component.html
  49. 20 61
      src/app/views/operation-search/operation-search.component.ts

+ 16 - 0
src/app/components/configurationCenter/configuration-drug/configuration-drug.component.html

@@ -82,6 +82,11 @@
82 82
                         <nz-option *ngFor="let item of drugsManualList" [nzLabel]="item.label" [nzValue]="item.value"></nz-option>
83 83
                       </nz-select>
84 84
                     </div>
85
+										<!-- 支持拍照留存 -->
86
+										<div class="display_flex align-items_center mb8">
87
+										  <nz-form-label class="label">支持拍照留存</nz-form-label>
88
+										  <nz-checkbox-group [(ngModel)]="item.postData.drugsEndPhoto"></nz-checkbox-group>
89
+										</div>
85 90
                   </ng-container>
86 91
 									<!-- 药单显示患者 -->
87 92
 									<div class="display_flex align-items_center mb8">
@@ -102,6 +107,17 @@
102 107
                 <!-- 自动建单配置 -->
103 108
                 <div *ngIf="tabModalName=='automaticOrderCreation'">
104 109
                   <!-- 自动建单 -->
110
+									<div class="display_flex align-items_center mb8">
111
+									  <nz-form-label class="label">是否自动建单</nz-form-label>
112
+									  <nz-checkbox-group [(ngModel)]="item.postData.autoCreate"></nz-checkbox-group>
113
+									</div>
114
+									<!-- 药品自动建单状态 -->
115
+									<div class="display_flex align-items_center mb8" *ngIf="item.postData.autoCreate[0].checked">
116
+									  <nz-form-label class="label">药品自动建单状态</nz-form-label>
117
+										<nz-select class="w320px" nzPlaceHolder="请选择" [(ngModel)]="item.postData.autoCreateState" nzAllowClear>
118
+										  <nz-option *ngFor="let item of drugStateData" [nzLabel]="item.name" [nzValue]="item.id"></nz-option>
119
+										</nz-select>
120
+									</div>
105 121
                 </div>
106 122
                 <div class="bottom">
107 123
                   <button class="login-form-button" nzType="primary" [nzLoading]="btnLoading" nz-button (click)="submitForm()">保存</button>

+ 32 - 6
src/app/components/configurationCenter/configuration-drug/configuration-drug.component.ts

@@ -32,6 +32,7 @@ export class ConfigurationDrugComponent implements OnInit {
32 32
   ngOnInit():void {
33 33
     this.activeDictionary = this.dictionaryKeyList[0];
34 34
     this.init();
35
+		this.getDrugState();
35 36
   }
36 37
 
37 38
   // 工单模式
@@ -63,7 +64,9 @@ export class ConfigurationDrugComponent implements OnInit {
63 64
         drugsEndPhoto: [{ label:'是否开启', value: 0 }],//终点科室支持拍照留存
64 65
 				showDrugsBagTypeCount: [{ label:'是否开启', value: 0 }],//是否显示药品数、种类数
65 66
 				showDrugsBagDetails: [{ label:'是否开启', value: 0 }],//是否支持查看药品详情信息
66
-      }
67
+				autoCreate: [{ label:'是否开启', value: 0 }], // 是否自动建单
68
+				autoCreateState: undefined // 药品自动建单状态
69
+			}
67 70
     },
68 71
     {
69 72
       name: '西药',
@@ -83,7 +86,9 @@ export class ConfigurationDrugComponent implements OnInit {
83 86
         drugsEndPhoto: [{ label:'是否开启', value: 0 }],//终点科室支持拍照留存
84 87
         showDrugsBagTypeCount: [{ label:'是否开启', value: 0 }],//是否显示药品数、种类数
85 88
 				showDrugsBagDetails: [{ label:'是否开启', value: 0 }],//是否支持查看药品详情信息
86
-      }
89
+				autoCreate: [{ label:'是否开启', value: 0 }], // 是否自动建单
90
+				autoCreateState: undefined // 药品自动建单状态
91
+			}
87 92
     },
88 93
     {
89 94
       name: '退药',
@@ -103,7 +108,9 @@ export class ConfigurationDrugComponent implements OnInit {
103 108
         drugsEndPhoto: [{ label:'是否开启', value: 0 }],//终点科室支持拍照留存
104 109
         showDrugsBagTypeCount: [{ label:'是否开启', value: 0 }],//是否显示药品数、种类数
105 110
 				showDrugsBagDetails: [{ label:'是否开启', value: 0 }],//是否支持查看药品详情信息
106
-      }
111
+				autoCreate: [{ label:'是否开启', value: 0 }], // 是否自动建单
112
+				autoCreateState: undefined // 药品自动建单状态
113
+			}
107 114
     },
108 115
     {
109 116
       name: '毒麻',
@@ -123,7 +130,9 @@ export class ConfigurationDrugComponent implements OnInit {
123 130
         drugsEndPhoto: [{ label:'是否开启', value: 0 }],//终点科室支持拍照留存
124 131
         showDrugsBagTypeCount: [{ label:'是否开启', value: 0 }],//是否显示药品数、种类数
125 132
 				showDrugsBagDetails: [{ label:'是否开启', value: 0 }],//是否支持查看药品详情信息
126
-      }
133
+				autoCreate: [{ label:'是否开启', value: 0 }], // 是否自动建单
134
+				autoCreateState: undefined // 药品自动建单状态
135
+			}
127 136
     },
128 137
     {
129 138
       name: '中草药',
@@ -143,10 +152,21 @@ export class ConfigurationDrugComponent implements OnInit {
143 152
         drugsEndPhoto: [{ label:'是否开启', value: 0 }],//终点科室支持拍照留存
144 153
         showDrugsBagTypeCount: [{ label:'是否开启', value: 0 }],//是否显示药品数、种类数
145 154
 				showDrugsBagDetails: [{ label:'是否开启', value: 0 }],//是否支持查看药品详情信息
146
-      }
155
+				autoCreate: [{ label:'是否开启', value: 0 }], // 是否自动建单
156
+				autoCreateState: undefined // 药品自动建单状态
157
+			}
147 158
     },
148 159
   ];
149
-
160
+	
161
+	
162
+	// 获取药品状态
163
+	drugStateData:any = []
164
+	getDrugState(){
165
+		this.mainService.getDictionary("list", "drug_state").subscribe((data) => {
166
+			this.drugStateData = data
167
+		});
168
+	}
169
+	
150 170
   // 点击数据字典key
151 171
   activeDictionary:any;
152 172
   clickDictionaryKey(item){
@@ -218,6 +238,10 @@ export class ConfigurationDrugComponent implements OnInit {
218 238
 			showPatientInfo: this.activeDictionary.postData.showPatientInfo[0].checked ? 1 : 0,
219 239
 			showDrugsBagTypeCount: this.activeDictionary.postData.showDrugsBagTypeCount[0].checked ? 1 : 0,
220 240
 			showDrugsBagDetails: this.activeDictionary.postData.showDrugsBagDetails[0].checked ? 1 : 0,
241
+			autoCreate: this.activeDictionary.postData.autoCreate[0].checked ? 1 : 0,
242
+			autoCreateState:{
243
+				id:this.activeDictionary.postData.autoCreateState || undefined
244
+			}
221 245
 		};
222 246
     this.btnLoading = true;
223 247
     this.mainService
@@ -315,6 +339,8 @@ export class ConfigurationDrugComponent implements OnInit {
315 339
 					this.activeDictionary.postData.showPatientInfo[0].checked = this.configs.showPatientInfo == 1;
316 340
 					this.activeDictionary.postData.showDrugsBagTypeCount[0].checked = this.configs.showDrugsBagTypeCount == 1;
317 341
 					this.activeDictionary.postData.showDrugsBagDetails[0].checked = this.configs.showDrugsBagDetails == 1;
342
+					this.activeDictionary.postData.autoCreate[0].checked = this.configs.autoCreate == 1;
343
+					this.activeDictionary.postData.autoCreateState = this.configs.autoCreateState && this.configs.autoCreateState.id || undefined;
318 344
 				}
319 345
       });
320 346
   }

+ 65 - 0
src/app/components/configurationCenter/configuration-specimen/configuration-specimen.component.html

@@ -85,6 +85,71 @@
85 85
                   <nz-form-label class="label">默认扫描标本进入标本扫描页</nz-form-label>
86 86
                   <nz-checkbox-group [(ngModel)]="defaultScanSpe"></nz-checkbox-group>
87 87
                 </div>
88
+								
89
+								<!-- 是否开通收取限制 -->
90
+								<div class="display_flex align-items_center mb8">
91
+								  <nz-form-label class="label">是否开通收取限制</nz-form-label>
92
+								  <nz-checkbox-group [(ngModel)]="speCollectLimit"></nz-checkbox-group>
93
+								</div>
94
+								
95
+								<!-- 是否支持非起点科室收取 -->
96
+								<div class="display_flex align-items_center mb8" *ngIf="speCollectLimit[0].checked">
97
+								  <nz-form-label class="label">是否支持非起点科室收取</nz-form-label>
98
+								  <nz-checkbox-group [(ngModel)]="speCollectSupportNotStartDept"></nz-checkbox-group>
99
+								</div>
100
+								
101
+								<!-- 限制标本状态收取 -->
102
+								<div class="display_flex align-items_center mb8" *ngIf="speCollectLimit[0].checked">
103
+									<nz-form-label class="label">限制标本状态收取</nz-form-label>
104
+									<nz-select class="formItem" nzMode="multiple" [nzDropdownMatchSelectWidth]="false" nzShowSearch nzAllowClear nzPlaceHolder="请选择限制标本状态收取" [(ngModel)]="speCollectLimitState">
105
+										<ng-container *ngFor="let option of specimenStateData">
106
+											<nz-option [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
107
+										</ng-container>
108
+									</nz-select>
109
+								</div>
110
+								
111
+								<!-- 限制终点科室收取 -->
112
+								<div class="display_flex align-items_center mb8" *ngIf="speCollectLimit[0].checked">
113
+									<nz-form-label class="label">限制终点科室收取</nz-form-label>
114
+									<nz-select nzMode="multiple" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch nzAllowClear
115
+									  (nzOnSearch)="changeEndDept($event)" nzPlaceHolder="请选择限制终点科室收取" [(ngModel)]="speCollectLimitEndDept">
116
+									  <ng-container *ngFor="let option of endDeptData">
117
+									    <nz-option *ngIf="!isLoading" [nzLabel]="option.dept" [nzValue]="option.id"></nz-option>
118
+									  </ng-container>
119
+									  <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
120
+									    <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
121
+									  </nz-option>
122
+									</nz-select>
123
+								</div>
124
+								
125
+								<!-- 限制普通或紧急收取 -->
126
+								<div class="display_flex align-items_center mb8" *ngIf="speCollectLimit[0].checked">
127
+									<nz-form-label class="label">限制普通或紧急收取</nz-form-label>
128
+									<nz-select class="formItem" nzMode="multiple" [nzDropdownMatchSelectWidth]="false" nzAllowClear nzPlaceHolder="请选择限制普通或紧急收取" [(ngModel)]="speCollectLimitUrgent">
129
+										<ng-container *ngFor="let option of astrictData">
130
+											<nz-option [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
131
+										</ng-container>
132
+									</nz-select>
133
+								</div>
134
+								
135
+								<!-- 是否限制重复收取标本 -->
136
+								<div class="display_flex align-items_center mb8" *ngIf="speCollectLimit[0].checked">
137
+								  <nz-form-label class="label">是否限制重复收取标本</nz-form-label>
138
+								  <nz-checkbox-group [(ngModel)]="speCollectLimitRepeat"></nz-checkbox-group>
139
+								</div>
140
+								
141
+								<!-- 是否限制试管类型收取标本 -->
142
+								<div class="display_flex align-items_center mb8" *ngIf="speCollectLimit[0].checked">
143
+								  <nz-form-label class="label">是否限制试管类型收取标本</nz-form-label>
144
+								  <nz-checkbox-group [(ngModel)]="speCollectLimitTubeType"></nz-checkbox-group>
145
+								</div>
146
+								
147
+								<!-- 是否开始收取前进入配置页 -->
148
+								<div class="display_flex align-items_center mb8" *ngIf="speCollectLimit[0].checked">
149
+								  <nz-form-label class="label">是否开始收取前进入配置页</nz-form-label>
150
+								  <nz-checkbox-group [(ngModel)]="speStartCollectShowConfig"></nz-checkbox-group>
151
+								</div>
152
+								
88 153
               </div>
89 154
               <!-- 自动建单配置 -->
90 155
               <div *ngIf="tabModalName=='automaticOrderCreation'">

+ 107 - 1
src/app/components/configurationCenter/configuration-specimen/configuration-specimen.component.ts

@@ -87,6 +87,40 @@ export class ConfigurationSpecimenComponent implements OnInit {
87 87
     {label:'是否开启',value: 0}
88 88
   ];
89 89
 	
90
+	// 是否开通收取限制
91
+	speCollectLimit:any[] = [
92
+    {label:'是否开启',value: 0}
93
+  ];
94
+	
95
+	// 是否支持非起点科室收取
96
+	speCollectSupportNotStartDept:any[] = [
97
+	  {label:'是否开启',value: 0}
98
+	];
99
+	
100
+	// 限制标本状态收取
101
+	speCollectLimitState:any = [];
102
+	
103
+	// 限制终点科室收取
104
+	speCollectLimitEndDept:any = [];
105
+	
106
+	// 限制普通或紧急收取
107
+	speCollectLimitUrgent:any = [];
108
+	
109
+	// 是否限制重复收取标本
110
+	speCollectLimitRepeat:any[] = [
111
+	  {label:'是否开启',value: 0}
112
+	];
113
+	
114
+	// 是否限制试管类型收取标本
115
+	speCollectLimitTubeType:any[] = [
116
+	  {label:'是否开启',value: 0}
117
+	];
118
+	
119
+	// 是否开始收取前进入配置页
120
+	speStartCollectShowConfig:any[] = [
121
+	  {label:'是否开启',value: 0}
122
+	];
123
+	
90 124
 	// 速冻标本数量控制
91 125
 	pathologyFrozenSpecimenNum:any = '0';
92 126
 	
@@ -100,6 +134,12 @@ export class ConfigurationSpecimenComponent implements OnInit {
100 134
   configs:any = {};
101 135
   // 任务类型
102 136
   tasktype:any = {};
137
+	specimenStateData:any = [];
138
+	endDeptData:any = [];
139
+	astrictData:any = [
140
+		{name:'普通',id:'0'},
141
+		{name:'紧急',id:'1'},
142
+	]
103 143
   searchTimerSubject = new Subject();
104 144
   constructor(private mainService: MainService,private tool: ToolService,private msg: NzMessageService) {}
105 145
 
@@ -109,10 +149,40 @@ export class ConfigurationSpecimenComponent implements OnInit {
109 149
       let fun = v[0];
110 150
       fun.call(this, v[1]);
111 151
     });
152
+		this.getDeptDic();
112 153
     this.getDeptList();
113 154
     this.getTaskType();
114 155
   }
115 156
 	
157
+	// 获取科室类型
158
+	getDeptDic(e:string = ''){
159
+		this.mainService.getDictionary("list", "speState").subscribe((res) => {
160
+			this.specimenStateData = res
161
+		})
162
+		this.mainService.getDictionary("list", "dept_type").subscribe((res2) => {
163
+			let item = res2.find(i=>i.name=='检验科室')
164
+			let data1 = {
165
+			  idx: 0,
166
+			  sum: 9999,
167
+			  department: {
168
+			    hospital: { id: this.hosId || "" },
169
+			    type: { id: item.id || "" },
170
+					dept: e,
171
+			  },
172
+			};
173
+			this.mainService
174
+			  .getFetchDataList("data", "department", data1)
175
+			  .subscribe((res) => {
176
+			    this.endDeptData = res.list;
177
+			  });
178
+		})
179
+	}
180
+	
181
+	// 搜索起点科室
182
+	changeEndDept(e){
183
+		this.searchTimer(this.getDeptDic, e);
184
+	}
185
+	
116 186
 	// 点击数据字典key
117 187
 	activeDictionaryKey:any = 'examine';
118 188
 	clickDictionaryKey(item){
@@ -238,7 +308,32 @@ export class ConfigurationSpecimenComponent implements OnInit {
238 308
       bigScanShowCreateBtn: this.bigScanShowCreateBtn[0].checked ? 1 : 0,
239 309
       defaultScanSpe: this.defaultScanSpe[0].checked ? 1 : 0,
240 310
       deptNotAlertIds: this.deptNotAlertIds.length ? this.deptNotAlertIds.toString() : undefined,
241
-    };
311
+			speCollectLimit: this.speCollectLimit[0].checked ? 1 : 0,
312
+			speCollectSupportNotStartDept: null,
313
+			speCollectLimitRepeat: null,
314
+			speCollectLimitTubeType: null,
315
+			speStartCollectShowConfig: null,
316
+			speCollectLimitState: null,
317
+			speCollectLimitEndDept: null,
318
+			speCollectLimitUrgent: null,
319
+		};
320
+		if(this.speCollectLimit[0].checked){
321
+			postData.speCollectSupportNotStartDept = this.speCollectSupportNotStartDept[0].checked ? 1 : 0;
322
+			postData.speCollectLimitRepeat = this.speCollectLimitRepeat[0].checked ? 1 : 0;
323
+			postData.speCollectLimitTubeType = this.speCollectLimitTubeType[0].checked ? 1 : 0;
324
+			postData.speStartCollectShowConfig = this.speStartCollectShowConfig[0].checked ? 1 : 0;
325
+			postData.speCollectLimitState = this.speCollectLimitState.length ? this.speCollectLimitState.toString() : undefined;
326
+			postData.speCollectLimitEndDept = this.speCollectLimitEndDept.length ? this.speCollectLimitEndDept.toString() : undefined;
327
+			postData.speCollectLimitUrgent = this.speCollectLimitUrgent.length ? this.speCollectLimitUrgent.toString() : undefined;
328
+		}else{
329
+			postData.speCollectSupportNotStartDept = undefined;
330
+			postData.speCollectLimitRepeat = undefined;
331
+			postData.speCollectLimitTubeType = undefined;
332
+			postData.speStartCollectShowConfig = undefined;
333
+			postData.speCollectLimitState = undefined;
334
+			postData.speCollectLimitEndDept = undefined;
335
+			postData.speCollectLimitUrgent = undefined;
336
+		}
242 337
     this.btnLoading = true;
243 338
     this.mainService
244 339
       .simplePost("addData", "taskTypeConfig", postData)
@@ -342,6 +437,17 @@ export class ConfigurationSpecimenComponent implements OnInit {
342 437
 						this.defaultScanSpe[0].checked = this.configs.defaultScanSpe == 1;
343 438
 						this.deptNotAlertIds = this.configs.deptNotAlertIds ? this.configs.deptNotAlertIds.split(',').map(v => +v) : [];
344 439
 						this.deptList = this.configs.deptNotAlertList || [];
440
+						
441
+						this.speCollectLimit[0].checked = this.configs.speCollectLimit == 1;
442
+						if(this.configs.speCollectLimit == 1){
443
+							this.speCollectSupportNotStartDept[0].checked = this.configs.speCollectSupportNotStartDept == 1;
444
+							this.speCollectLimitRepeat[0].checked = this.configs.speCollectLimitRepeat == 1;
445
+							this.speCollectLimitTubeType[0].checked = this.configs.speCollectLimitTubeType == 1;
446
+							this.speStartCollectShowConfig[0].checked = this.configs.speStartCollectShowConfig == 1;
447
+							this.speCollectLimitState = this.configs.speCollectLimitState ? this.configs.speCollectLimitState.split(',').map(v => +v) : [];
448
+							this.speCollectLimitEndDept = this.configs.speCollectLimitEndDept ? this.configs.speCollectLimitEndDept.split(',').map(v => +v) : [];
449
+							this.speCollectLimitUrgent = this.configs.speCollectLimitUrgent ? this.configs.speCollectLimitUrgent.split(',').map(v => +v) : [];
450
+						}
345 451
 					}else{
346 452
 						// 病理标本
347 453
 						this.autoCreate[0].checked = this.configs.autoCreate == 1;

+ 8 - 1
src/app/views/building-floor/building-floor.component.html

@@ -109,7 +109,14 @@
109 109
             <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="floorName">楼层名称</nz-form-label>
110 110
             <nz-form-control nzErrorTip="请输入楼层名称!">
111 111
               <nz-input-group>
112
-                <input nz-input formControlName="floorName" placeholder="请输入楼层名称" />
112
+                <nz-input-number 
113
+								[nzMin]="0"
114
+								[nzPrecision]="0"
115
+								[nzMax]="999999"
116
+								[nzStep]="1"
117
+								formControlName="floorName" 
118
+								placeholder="请输入楼层名称">
119
+								</nz-input-number>
113 120
               </nz-input-group>
114 121
             </nz-form-control>
115 122
           </nz-form-item>

+ 3 - 0
src/app/views/building-floor/building-floor.component.less

@@ -260,6 +260,9 @@
260 260
                 line-height: 0;
261 261
                 text-align: left;
262 262
               }
263
+							.ant-input-number{
264
+								width: 100% !important;
265
+							}
263 266
             }
264 267
           }
265 268
 

+ 2 - 2
src/app/views/jp-search/jp-search.component.html

@@ -4,7 +4,7 @@
4 4
       <div nz-col nzXl='16' class="list-template__searchBox">
5 5
         <div class="list-template__searchItem">
6 6
           <span class="label">静配标识:</span>
7
-          <input nz-input class="formItem" placeholder="请输入静配标识" [(ngModel)]="searchCriteria.id" />
7
+          <input nz-input class="formItem" placeholder="请输入静配标识" [(ngModel)]="searchCriteria.packid" />
8 8
         </div>
9 9
         <div class="list-template__searchItem">
10 10
           <span class="label">发药科室:</span>
@@ -82,7 +82,7 @@
82 82
             <td>{{ data.target?.dept }}</td>
83 83
             <td>{{ data.creatTime }}</td>
84 84
             <td>{{ data.jpstate?.name }}</td>
85
-            <td>{{data.id}}</td>
85
+            <td>{{data.packid}}</td>
86 86
           </tr>
87 87
         </tbody>
88 88
       </nz-table>

+ 4 - 4
src/app/views/jp-search/jp-search.component.ts

@@ -14,7 +14,7 @@ export class JpSearchComponent implements OnInit {
14 14
 
15 15
   searchCriteria = {
16 16
     //搜索条件
17
-    id: "", //静配标识
17
+    packid: "", //静配标识
18 18
     launch: null, //发药科室
19 19
     target: null, //发药科室
20 20
     jpstate: null,
@@ -52,7 +52,7 @@ export class JpSearchComponent implements OnInit {
52 52
   reset() {
53 53
     this.searchCriteria = {
54 54
       //搜索条件
55
-      id: "",
55
+      packid: "",
56 56
       launch: null,
57 57
       target: null,
58 58
       jpstate: null,
@@ -134,8 +134,8 @@ export class JpSearchComponent implements OnInit {
134 134
     if (this.searchCriteria.launch) {
135 135
       postData.jPBag.launch = { id: this.searchCriteria.launch };
136 136
     }
137
-    if (this.searchCriteria.id) {
138
-      postData.jPBag.id = this.searchCriteria.id;
137
+    if (this.searchCriteria.packid) {
138
+      postData.jPBag.packid = this.searchCriteria.packid;
139 139
     }
140 140
     this.loading1 = true;
141 141
     this.mainService

+ 21 - 21
src/app/views/new-statistics/components/distribution-search-more/distribution-search-more.component.html

@@ -6,7 +6,7 @@
6 6
       <form nz-form [formGroup]="validateForm" class="addForm">
7 7
         <nz-form-item [hidden]="!fieldConfig.config.group">
8 8
           <nz-form-label [nzSpan]="6" nzFor="groupId">分<span style="visibility: hidden;">囧囧</span>组</nz-form-label>
9
-          <nz-form-control [nzSpan]="16" nzErrorTip="请选择分组!">
9
+          <nz-form-control [nzSpan]="17" nzErrorTip="请选择分组!">
10 10
             <nz-select [nzDropdownMatchSelectWidth]="false" nzAllowClear nzServerSearch nzShowSearch (nzOnSearch)="changeGroupInp($event)" formControlName="groupId" nzPlaceHolder="请选择分组" (nzOpenChange)="openChangeGroup($event)" (ngModelChange)="changeGroup($event)">
11 11
               <ng-container *ngFor="let option of groupList">
12 12
                 <nz-option *ngIf="!isLoading" [nzLabel]="option.groupName" [nzValue]="option.id"></nz-option>
@@ -20,7 +20,7 @@
20 20
 
21 21
         <nz-form-item [hidden]="!fieldConfig.config.groupAndUser">
22 22
           <nz-form-label [nzSpan]="6" nzFor="groupId">分<span style="visibility: hidden;">囧囧</span>组</nz-form-label>
23
-          <nz-form-control [nzSpan]="16" nzErrorTip="请选择分组!">
23
+          <nz-form-control [nzSpan]="17" nzErrorTip="请选择分组!">
24 24
             <nz-select [nzDropdownMatchSelectWidth]="false" nzAllowClear nzServerSearch nzShowSearch (nzOnSearch)="changeGroupInp($event)" formControlName="groupId" nzPlaceHolder="请选择分组" (nzOpenChange)="openChangeGroup($event)" (ngModelChange)="changeGroup($event)">
25 25
               <ng-container *ngFor="let option of groupList">
26 26
                 <nz-option *ngIf="!isLoading" [nzLabel]="option.groupName" [nzValue]="option.id"></nz-option>
@@ -34,7 +34,7 @@
34 34
 
35 35
         <nz-form-item [hidden]="!fieldConfig.config.groupAndUser">
36 36
           <nz-form-label [nzSpan]="6" nzFor="userId">人<span style="visibility: hidden;">囧囧</span>员</nz-form-label>
37
-          <nz-form-control [nzSpan]="16" nzErrorTip="请选择人员!">
37
+          <nz-form-control [nzSpan]="17" nzErrorTip="请选择人员!">
38 38
             <nz-select [nzDropdownMatchSelectWidth]="false" nzAllowClear nzServerSearch nzShowSearch (nzOnSearch)="changeUserInp($event)" formControlName="userId" nzPlaceHolder="请选择人员" (nzOpenChange)="openChangeUser($event)" (ngModelChange)="setIsSelecting(true)">
39 39
               <ng-container *ngFor="let option of userList">
40 40
                 <nz-option *ngIf="!isLoading" [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
@@ -48,7 +48,7 @@
48 48
 
49 49
         <nz-form-item [hidden]="!fieldConfig.config.statisticsType">
50 50
           <nz-form-label [nzSpan]="6" nzFor="statisticsTypeId">统计分类</nz-form-label>
51
-          <nz-form-control [nzSpan]="16" nzErrorTip="请选择统计分类!">
51
+          <nz-form-control [nzSpan]="17" nzErrorTip="请选择统计分类!">
52 52
             <nz-select [nzDropdownMatchSelectWidth]="false" nzAllowClear formControlName="statisticsTypeId" nzPlaceHolder="请选择统计分类">
53 53
               <ng-container *ngFor="let option of statisticsTypeList">
54 54
                 <nz-option *ngIf="!isLoading" [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
@@ -62,7 +62,7 @@
62 62
 
63 63
         <nz-form-item [hidden]="!fieldConfig.config.taskType">
64 64
           <nz-form-label [nzSpan]="6" nzFor="taskTypeId">任务类型</nz-form-label>
65
-          <nz-form-control [nzSpan]="16" nzErrorTip="请选择任务类型!">
65
+          <nz-form-control [nzSpan]="17" nzErrorTip="请选择任务类型!">
66 66
             <nz-select [nzDropdownMatchSelectWidth]="false" nzAllowClear nzServerSearch nzShowSearch (nzOnSearch)="changeTaskTypeInp($event)" formControlName="taskTypeId" nzPlaceHolder="请选择任务类型" (nzOpenChange)="openChangeTaskType($event)" (ngModelChange)="setIsSelecting(true)">
67 67
               <ng-container *ngFor="let option of taskTypeList">
68 68
                 <nz-option *ngIf="!isLoading" [nzLabel]="option.hosId.hosName + '-' + option.taskName" [nzValue]="option.id"></nz-option>
@@ -76,7 +76,7 @@
76 76
 
77 77
         <nz-form-item [hidden]="!fieldConfig.config.building">
78 78
           <nz-form-label [nzSpan]="6" nzFor="buildingId">楼<span style="visibility: hidden;">囧囧</span>栋</nz-form-label>
79
-          <nz-form-control [nzSpan]="16" nzErrorTip="请选择楼栋!">
79
+          <nz-form-control [nzSpan]="17" nzErrorTip="请选择楼栋!">
80 80
             <nz-select [nzDropdownMatchSelectWidth]="false" nzAllowClear nzServerSearch nzShowSearch (nzOnSearch)="changeBuildingInp($event)" formControlName="buildingId" nzPlaceHolder="请选择楼栋" (nzOpenChange)="openChangeBuilding($event)" (ngModelChange)="setIsSelecting(true)">
81 81
               <ng-container *ngFor="let option of buildingList">
82 82
                 <nz-option *ngIf="!isLoading" [nzLabel]="option.hosName + '-' + option.buildingName" [nzValue]="option.id"></nz-option>
@@ -90,7 +90,7 @@
90 90
 
91 91
         <nz-form-item [hidden]="!fieldConfig.config.dept">
92 92
           <nz-form-label [nzSpan]="6" nzFor="deptId">科<span style="visibility: hidden;">囧囧</span>室</nz-form-label>
93
-          <nz-form-control [nzSpan]="16" nzErrorTip="请选择科室!">
93
+          <nz-form-control [nzSpan]="17" nzErrorTip="请选择科室!">
94 94
             <nz-select [nzDropdownMatchSelectWidth]="false" nzAllowClear nzServerSearch nzShowSearch (nzOnSearch)="changeRepairDeptInp($event)" formControlName="deptId" nzPlaceHolder="请选择科室" (nzOpenChange)="openChangeRepairDept($event)" (ngModelChange)="setIsSelecting(true)">
95 95
               <ng-container *ngFor="let option of deptList">
96 96
                 <nz-option *ngIf="!isLoading" [nzLabel]="option.hospital.hosName + '-' + option.dept" [nzValue]="option.id"></nz-option>
@@ -104,7 +104,7 @@
104 104
 				
105 105
 				<nz-form-item [hidden]="!fieldConfig.config.source">
106 106
 				  <nz-form-label [nzSpan]="6" nzFor="sourceId">来<span style="visibility: hidden;">囧囧</span>源</nz-form-label>
107
-				  <nz-form-control [nzSpan]="16" nzErrorTip="请选择来源!">
107
+				  <nz-form-control [nzSpan]="17" nzErrorTip="请选择来源!">
108 108
 				    <nz-select [nzDropdownMatchSelectWidth]="false" nzAllowClear formControlName="sourceId" nzPlaceHolder="请选择来源">
109 109
 				      <ng-container *ngFor="let option of sourceList">
110 110
 				        <nz-option [nzLabel]="option.name " [nzValue]="option.sourceId"></nz-option>
@@ -115,7 +115,7 @@
115 115
 				
116 116
 				<nz-form-item [hidden]="!fieldConfig.config.minute">
117 117
 				  <nz-form-label [nzSpan]="6" nzFor="minuteClose">分钟内关单</nz-form-label>
118
-				  <nz-form-control [nzSpan]="16" nzErrorTip="请输入分钟内关单!">
118
+				  <nz-form-control [nzSpan]="17" nzErrorTip="请输入分钟内关单!">
119 119
 						<nz-input-number
120 120
 							class="width-200"
121 121
 							formControlName="minuteClose"
@@ -129,8 +129,8 @@
129 129
 				</nz-form-item>
130 130
 				
131 131
 				<nz-form-item [hidden]="!fieldConfig.config.special">
132
-				  <nz-form-label [nzSpan]="8" nzFor="specialId">特殊情况关闭</nz-form-label>
133
-				  <nz-form-control [nzSpan]="14" nzErrorTip="请选择特殊情况关闭!">
132
+				  <nz-form-label [nzSpan]="7" nzFor="specialId">特殊情况关闭</nz-form-label>
133
+				  <nz-form-control [nzSpan]="16" nzErrorTip="请选择特殊情况关闭!">
134 134
 				    <nz-select [nzDropdownMatchSelectWidth]="false" nzAllowClear formControlName="specialId" nzPlaceHolder="请选择特殊情况关闭">
135 135
 				      <ng-container *ngFor="let option of specialList">
136 136
 				        <nz-option [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
@@ -139,31 +139,31 @@
139 139
 				  </nz-form-control>
140 140
 				</nz-form-item>
141 141
 				
142
-				<nz-form-item [hidden]="!fieldConfig.config.overtime">
142
+			<!-- 	<nz-form-item [hidden]="!fieldConfig.config.overtime">
143 143
 				  <nz-form-label [nzSpan]="6" nzFor="overtimeId">超时工单</nz-form-label>
144
-				  <nz-form-control [nzSpan]="16" nzErrorTip="请选择超时工单!">
144
+				  <nz-form-control [nzSpan]="17" nzErrorTip="请选择超时工单!">
145 145
 				    <nz-select [nzDropdownMatchSelectWidth]="false" nzAllowClear formControlName="overtimeId" nzPlaceHolder="请选择超时工单">
146 146
 				      <ng-container *ngFor="let option of overtimeList">
147 147
 				        <nz-option [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
148 148
 				      </ng-container>
149 149
 				    </nz-select>
150 150
 				  </nz-form-control>
151
-				</nz-form-item>
151
+				</nz-form-item> -->
152 152
 				
153
-				<nz-form-item [hidden]="!fieldConfig.config.abnormal">
153
+			<!-- 	<nz-form-item [hidden]="!fieldConfig.config.abnormal">
154 154
 				  <nz-form-label [nzSpan]="6" nzFor="abnormalId">异常工单</nz-form-label>
155
-				  <nz-form-control [nzSpan]="16" nzErrorTip="请选择异常工单!">
155
+				  <nz-form-control [nzSpan]="17" nzErrorTip="请选择异常工单!">
156 156
 				    <nz-select [nzDropdownMatchSelectWidth]="false" nzAllowClear formControlName="abnormalId" nzPlaceHolder="请选择异常工单">
157 157
 				      <ng-container *ngFor="let option of abnormalList">
158 158
 				        <nz-option [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
159 159
 				      </ng-container>
160 160
 				    </nz-select>
161 161
 				  </nz-form-control>
162
-				</nz-form-item>
162
+				</nz-form-item> -->
163 163
 				
164 164
 				<nz-form-item [hidden]="!fieldConfig.config.evaluate">
165 165
 				  <nz-form-label [nzSpan]="6" nzFor="evaluateId">评<span style="visibility: hidden;">囧囧</span>价</nz-form-label>
166
-				  <nz-form-control [nzSpan]="16" nzErrorTip="请选择评价!">
166
+				  <nz-form-control [nzSpan]="17" nzErrorTip="请选择评价!">
167 167
 				    <nz-select [nzDropdownMatchSelectWidth]="false" nzAllowClear formControlName="evaluateId" nzPlaceHolder="请选择评价">
168 168
 				      <ng-container *ngFor="let option of evaluateList">
169 169
 				        <nz-option *ngIf="!isLoading" [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
@@ -177,7 +177,7 @@
177 177
 				
178 178
 				<nz-form-item [hidden]="!fieldConfig.config.executeUser">
179 179
 				  <nz-form-label [nzSpan]="6" nzFor="executeUserId">执行人</nz-form-label>
180
-				  <nz-form-control [nzSpan]="16" nzErrorTip="请选择人员!">
180
+				  <nz-form-control [nzSpan]="17" nzErrorTip="请选择人员!">
181 181
 				    <nz-select [nzDropdownMatchSelectWidth]="false" nzAllowClear nzServerSearch nzShowSearch (nzOnSearch)="changeExecuteUserInp($event)" formControlName="executeUserId" nzPlaceHolder="请选择人员" (nzOpenChange)="openChangeExecuteUser($event)" (ngModelChange)="setIsSelecting(true)">
182 182
 				      <ng-container *ngFor="let option of executeUserList">
183 183
 				        <nz-option *ngIf="!isLoading" [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
@@ -191,7 +191,7 @@
191 191
 				
192 192
 				<nz-form-item [hidden]="!fieldConfig.config.timeFrame">
193 193
 				  <nz-form-label [nzSpan]="6" nzFor="timeFrameId">时<span style="visibility: hidden;">囧囧</span>段</nz-form-label>
194
-				  <nz-form-control [nzSpan]="16" nzErrorTip="请选择人员!">
194
+				  <nz-form-control [nzSpan]="17" nzErrorTip="请选择人员!">
195 195
 				    <nz-select [nzDropdownMatchSelectWidth]="false" nzAllowClear nzShowSearch formControlName="timeFrameId" nzPlaceHolder="请选择时段">
196 196
 				      <ng-container *ngFor="let option of timeFrameList">
197 197
 				        <nz-option [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
@@ -202,7 +202,7 @@
202 202
 				
203 203
 				<nz-form-item [hidden]="!fieldConfig.config.code">
204 204
 				  <nz-form-label [nzSpan]="6" nzFor="codeNum">单<span style="visibility: hidden;">囧囧</span>号</nz-form-label>
205
-				  <nz-form-control [nzSpan]="16" nzErrorTip="请输入单号!">
205
+				  <nz-form-control [nzSpan]="17" nzErrorTip="请输入单号!">
206 206
 				    <input class="width-200" type="text" placeHolder="请输入单号" nz-input formControlName="codeNum" />
207 207
 				  </nz-form-control>
208 208
 				</nz-form-item>

+ 18 - 10
src/app/views/new-statistics/components/distribution-search-more/distribution-search-more.component.ts

@@ -252,8 +252,8 @@ export class DistributionSearchMoreComponent implements OnInit {
252 252
 
253 253
   changeGroup(id){
254 254
     this.setIsSelecting(true);
255
-    this.userList = [];
256
-    this.validateForm.controls.userId.setValue(null);
255
+    // this.userList = [];
256
+    // this.validateForm.controls.userId.setValue(null);
257 257
     this.getUserList();
258 258
   }
259 259
 
@@ -267,24 +267,31 @@ export class DistributionSearchMoreComponent implements OnInit {
267 267
   // 获取人员列表
268 268
   userList:any[] = [];
269 269
   getUserList(keyword = ''){
270
-    if(!this.validateForm.value.groupId){
271
-      this.isLoading = false;
272
-      this.userList = [];
273
-      return;
274
-    }
270
+    // if(!this.validateForm.value.groupId){
271
+    //   this.isLoading = false;
272
+    //   this.userList = [];
273
+    //   return;
274
+    // }
275 275
     let postData: any = {
276 276
       idx: 0,
277 277
       sum: 20,
278 278
       user: {
279 279
         name: keyword,
280 280
         simpleQuery: true,
281
-        groupdata: { id: this.validateForm.value.groupId },
281
+				statisticalHosId: this.getHosId,
282
+        // groupdata: { id: this.validateForm.value.groupId },
282 283
       },
283 284
     };
284 285
     this.isLoading = true;
285 286
     this.mainService.getFetchDataList("simple/data", "user", postData).subscribe(result => {
286 287
       this.isLoading = false;
287 288
       if(result.status == 200){
289
+				if(!result.list.find(i=> i.id == -1)){
290
+					result.list.push({
291
+						name:'未知',
292
+						id:-1
293
+					})
294
+				}
288 295
         this.userList = result.list || [];
289 296
       }else{
290 297
         this.userList = [];
@@ -488,10 +495,11 @@ export class DistributionSearchMoreComponent implements OnInit {
488 495
 	// 获取时段列表
489 496
 	timeFrameList:any[] = [];
490 497
 	getTimeFrameList(){
498
+		this.timeFrameList = [];
491 499
 	  for(let i=0; i<24; i++){
492 500
 			this.timeFrameList.push({
493
-				name: i,
494
-				id: i
501
+				name: i < 10 ? '0'+i.toString() : i.toString(),
502
+				id: i < 10 ? '0'+i.toString() : i.toString(),
495 503
 			})
496 504
 		}
497 505
 	}

+ 3 - 1
src/app/views/new-statistics/distribution-inspection-statistics/business-classify-statistics/business-classify-statistics.component.ts

@@ -352,7 +352,9 @@ export class BusinessClassifyStatisticsComponent implements OnInit, AfterViewIni
352 352
     this.dateRange = []
353 353
     this.fieldConfig.fields = {groupId: undefined, userId: undefined, buildingId: undefined, deptId: undefined};
354 354
     this.customChangeDateComponent.resetByDate();
355
-    this.search();
355
+    setTimeout(_=>{
356
+    	this.search();
357
+    })
356 358
   }
357 359
 
358 360
   // 防抖

+ 14 - 9
src/app/views/new-statistics/distribution-inspection-statistics/date-business-statistics/date-business-statistics.component.ts

@@ -106,7 +106,7 @@ export class DateBusinessStatisticsComponent implements OnInit, AfterViewInit {
106 106
 			query = {
107 107
 				startDate: this.customChangeDateComponent.startDate || undefined,
108 108
 				endDate: this.customChangeDateComponent.endDate || undefined,
109
-				statisticsTypeId: Number(data[sublevel.value + 'StatisticsTypeId']) || undefined,
109
+				statisticsTypeId: data[sublevel.value + 'StatisticsTypeId'] ? Number(data[sublevel.value + 'StatisticsTypeId']) : -1,
110 110
 				searchQuery:{
111 111
 					statusValue: 'close',
112 112
 					deptDTO: this.fieldConfig.fields.deptDTO,
@@ -130,7 +130,7 @@ export class DateBusinessStatisticsComponent implements OnInit, AfterViewInit {
130 130
 			query = {
131 131
 				startDate: data.date + ' ' + '00:00:00' || undefined,
132 132
 				endDate: data.date + ' ' + '23:59:59' || undefined,
133
-				statisticsTypeId: Number(data[sublevel.value + 'StatisticsTypeId']) || undefined,
133
+				statisticsTypeId: data[sublevel.value + 'StatisticsTypeId'] ? Number(data[sublevel.value + 'StatisticsTypeId']) : -1,
134 134
 				searchQuery:{
135 135
 					statusValue: 'close',
136 136
 					deptDTO: this.fieldConfig.fields.deptDTO,
@@ -211,13 +211,16 @@ export class DateBusinessStatisticsComponent implements OnInit, AfterViewInit {
211 211
   dictionaryList: any[] = [];
212 212
   getList(num?: number, field?: string, sort?: string) {
213 213
     this.mainService.getDictionary('list', 'statistics_date_type').subscribe((data) => {
214
-      let dictionaryList = data || [];
215
-      dictionaryList = cloneDeep(dictionaryList);
216
-      let flag = dictionaryList.some((item) => item.value === 'dateOther');
217
-      !flag && dictionaryList.push({id: 0, name: '未知', value: 'dateOther'});
218
-      this.dictionaryList = dictionaryList;
214
+      this.dictionaryList = data || [];
215
+      // this.dictionaryList = cloneDeep(dictionaryList);
216
+      let flag = this.dictionaryList.some((item) => item.value === 'dateOther');
217
+			// if(!dictionaryList.find(i=> i.id == -1)){
218
+			// 	dictionaryList.push({id: -1, name: '未知', value: 'dateOther'});
219
+			// }
220
+      !flag && this.dictionaryList.push({id: -1, name: '未知', value: 'dateOther'});
221
+      // this.dictionaryList = dictionaryList;
219 222
       this.widthConfig = new Array(this.dictionaryList.length * 3 + 3).fill('100px');
220
-      if (num !== undefined) {
223
+			if (num !== undefined) {
221 224
         this.pageIndex = num;
222 225
       }
223 226
       let postData:any = {
@@ -316,7 +319,9 @@ export class DateBusinessStatisticsComponent implements OnInit, AfterViewInit {
316 319
     this.dateRange = []
317 320
     this.fieldConfig.fields = {groupId: undefined, userId: undefined, buildingId: undefined, deptId: undefined};
318 321
     this.customChangeDateComponent.resetByDate();
319
-    this.search();
322
+    setTimeout(_=>{
323
+    	this.search();
324
+    })
320 325
   }
321 326
 
322 327
   // 防抖

+ 3 - 1
src/app/views/new-statistics/distribution-inspection-statistics/date-quality-control-statistics/date-quality-control-statistics.component.ts

@@ -392,7 +392,9 @@ export class DateQualityControlStatisticsComponent implements OnInit, AfterViewI
392 392
     this.statisticsTypeId = undefined;
393 393
     this.fieldConfig.fields = {groupId: undefined, userId: undefined, taskTypeId: undefined, buildingId: undefined, deptId: undefined};
394 394
     this.customChangeDateComponent.resetByDate();
395
-    this.search();
395
+    setTimeout(_=>{
396
+    	this.search();
397
+    })
396 398
   }
397 399
 
398 400
   // 防抖

+ 13 - 8
src/app/views/new-statistics/distribution-inspection-statistics/department-business-statistics/department-business-statistics.component.ts

@@ -143,7 +143,7 @@ export class DepartmentBusinessStatisticsComponent implements OnInit, AfterViewI
143 143
 			query = {
144 144
 				startDate: this.customChangeDateComponent.startDate || undefined,
145 145
 				endDate: this.customChangeDateComponent.endDate || undefined,
146
-				statisticsTypeId: Number(data[sublevel.value + 'StatisticsTypeId']) || undefined,
146
+				statisticsTypeId: data[sublevel.value + 'StatisticsTypeId'] ? Number(data[sublevel.value + 'StatisticsTypeId']) : -1,
147 147
 				searchQuery:{
148 148
 					statusValue: 'close',
149 149
 					deptDTO: item,
@@ -178,7 +178,7 @@ export class DepartmentBusinessStatisticsComponent implements OnInit, AfterViewI
178 178
 				query = {
179 179
 					startDate: this.customChangeDateComponent.startDate || undefined,
180 180
 					endDate: this.customChangeDateComponent.endDate || undefined,
181
-					statisticsTypeId: Number(data[sublevel.value + 'StatisticsTypeId']) || undefined,
181
+					statisticsTypeId: data[sublevel.value + 'StatisticsTypeId'] ? Number(data[sublevel.value + 'StatisticsTypeId']) : -1,
182 182
 					searchQuery:{
183 183
 						statusValue: 'close',
184 184
 						deptDTO: item,
@@ -263,11 +263,14 @@ export class DepartmentBusinessStatisticsComponent implements OnInit, AfterViewI
263 263
 	widthValue:any;
264 264
   getList(num?: number, field?: string, sort?: string) {
265 265
     this.mainService.getDictionary('list', 'statistics_date_type').subscribe((data) => {
266
-      let dictionaryList = data || [];
267
-      dictionaryList = cloneDeep(dictionaryList);
268
-      let flag = dictionaryList.some((item) => item.value === 'dateOther');
269
-      !flag && dictionaryList.push({id: 0, name: '未知', value: 'dateOther'});
270
-      this.dictionaryList = dictionaryList;
266
+     this.dictionaryList = data || [];
267
+     // this.dictionaryList = cloneDeep(dictionaryList);
268
+     let flag = this.dictionaryList.some((item) => item.value === 'dateOther');
269
+     // if(!dictionaryList.find(i=> i.id == -1)){
270
+     // 	dictionaryList.push({id: -1, name: '未知', value: 'dateOther'});
271
+     // }
272
+     !flag && this.dictionaryList.push({id: -1, name: '未知', value: 'dateOther'});
273
+     // this.dictionaryList = dictionaryList;
271 274
       this.widthConfig = new Array(this.dictionaryList.length * 3 + 3).fill('100px').map((v, i) => { return (i == 0 || i == 1 && this.parent==1) || (i == 0 && this.parent==0) ? '150px' : '100px' });
272 275
       if(this.parent==1){
273 276
 				this.widthValue = this.widthConfig.length * 100 + 300 * 1 + 20
@@ -374,7 +377,9 @@ export class DepartmentBusinessStatisticsComponent implements OnInit, AfterViewI
374 377
     this.deptId = undefined;
375 378
     this.fieldConfig.fields = {groupId: undefined, userId: undefined, buildingId: undefined};
376 379
     this.customChangeDateComponent.resetByDate();
377
-    this.search();
380
+    setTimeout(_=>{
381
+    	this.search();
382
+    })
378 383
   }
379 384
 
380 385
   // 楼栋搜索

+ 8 - 6
src/app/views/new-statistics/distribution-inspection-statistics/department-quality-control-statistics/department-quality-control-statistics.component.ts

@@ -152,7 +152,7 @@ export class DepartmentQualityControlStatisticsComponent implements OnInit, Afte
152 152
 				searchQuery:{
153 153
 					statusValue: 'close',
154 154
 					deptDTO: item || undefined,
155
-					deptId: data.deptId || undefined,
155
+					deptId: this.deptId || undefined,
156 156
 					taskTypeId: this.fieldConfig.fields.taskTypeId || undefined,
157 157
 					taskTypeDTO: this.fieldConfig.fields.taskTypeDTO,
158 158
 					groupId: this.fieldConfig.fields.groupId || undefined,
@@ -192,10 +192,10 @@ export class DepartmentQualityControlStatisticsComponent implements OnInit, Afte
192 192
 							statisticsTypeId: this.fieldConfig.fields.statisticsTypeId,
193 193
 							searchQuery:{
194 194
 								statusValue: 'close',
195
-								deptDTO: this.fieldConfig.fields.deptDTO || undefined,
196
-								deptId: this.fieldConfig.fields.deptId || undefined,
197
-								taskTypeId: data.taskTypeId || undefined,
198
-								taskTypeDTO: item,
195
+								deptDTO: item || undefined,
196
+								deptId: data.deptId || undefined,
197
+								taskTypeId: this.fieldConfig.fields.taskTypeId || undefined,
198
+								taskTypeDTO: this.fieldConfig.fields.taskTypeDTO,
199 199
 								groupId: this.fieldConfig.fields.groupId || undefined,
200 200
 								groupDTO: this.fieldConfig.fields.groupDTO || undefined,
201 201
 								userId: this.fieldConfig.fields.userId || undefined,
@@ -465,7 +465,9 @@ export class DepartmentQualityControlStatisticsComponent implements OnInit, Afte
465 465
     this.deptId = undefined;
466 466
     this.fieldConfig.fields = {groupId: undefined, userId: undefined, statisticsTypeId: undefined, taskTypeId: undefined, buildingId: undefined};
467 467
     this.customChangeDateComponent.resetByDate();
468
-    this.search();
468
+    setTimeout(_=>{
469
+    	this.search();
470
+    })
469 471
   }
470 472
 
471 473
   // 楼栋搜索

+ 7 - 5
src/app/views/new-statistics/distribution-inspection-statistics/distribution-department-evaluate-statistics/distribution-department-evaluate-statistics.component.ts

@@ -196,10 +196,10 @@ export class DistributionDepartmentEvaluateStatisticsComponent implements OnInit
196 196
 							statisticsTypeId: this.fieldConfig.fields.statisticsTypeId,
197 197
 							searchQuery:{
198 198
 								statusValue: 'close',
199
-								deptDTO: this.fieldConfig.fields.deptDTO || undefined,
200
-								deptId: this.fieldConfig.fields.deptId || undefined,
201
-								taskTypeId: data.taskTypeId || undefined,
202
-								taskTypeDTO: item,
199
+								deptDTO: item || undefined,
200
+								deptId: data.deptId || undefined,
201
+								taskTypeId: this.fieldConfig.fields.taskTypeId || undefined,
202
+								taskTypeDTO: this.fieldConfig.fields.taskTypeDTO,
203 203
 								groupId: this.fieldConfig.fields.groupId || undefined,
204 204
 								groupDTO: this.fieldConfig.fields.groupDTO || undefined,
205 205
 								userId: this.fieldConfig.fields.userId || undefined,
@@ -765,7 +765,9 @@ export class DistributionDepartmentEvaluateStatisticsComponent implements OnInit
765 765
     this.deptId = undefined;
766 766
     this.fieldConfig.fields = {groupId: undefined, userId: undefined, statisticsTypeId: undefined, taskTypeId: undefined, buildingId: undefined};
767 767
     this.customChangeDateComponent.resetByDate();
768
-    this.search();
768
+    setTimeout(_=>{
769
+    	this.search();
770
+    })
769 771
   }
770 772
 
771 773
   // 楼栋搜索

+ 3 - 1
src/app/views/new-statistics/distribution-inspection-statistics/distribution-department-source-statistics/distribution-department-source-statistics.component.ts

@@ -566,7 +566,9 @@ export class DistributionDepartmentSourceStatisticsComponent implements OnInit,
566 566
 		this.deptId = undefined;
567 567
     this.fieldConfig.fields = {groupId: undefined, userId: undefined, statisticsTypeId: undefined, taskTypeId: undefined, buildingId: undefined};
568 568
     this.customChangeDateComponent.resetByDate();
569
-    this.search();
569
+    setTimeout(_=>{
570
+    	this.search();
571
+    })
570 572
   }
571 573
 
572 574
   // 楼栋搜索

+ 2 - 2
src/app/views/new-statistics/distribution-inspection-statistics/distribution-inspection-statistics-routing.module.ts

@@ -135,12 +135,12 @@ const routes: Routes = [
135 135
 			  }
136 136
 			},
137 137
 			{
138
-			  // 故障工单列表
138
+			  // 工单列表
139 139
 			  path: 'incidentList',
140 140
 			  loadChildren: () => import('./incident-list/incident-list.module').then(m => m.IncidentListModule),
141 141
 			  data: {
142 142
 			    reuse: true,
143
-			    title: '配-故障工单列表'
143
+			    title: '配-工单列表'
144 144
 			  }
145 145
 			},
146 146
     ]

+ 8 - 5
src/app/views/new-statistics/distribution-inspection-statistics/distribution-synthesize-statistics/distribution-synthesize-statistics.component.ts

@@ -68,7 +68,7 @@ export class DistributionSynthesizeStatisticsComponent implements OnInit, AfterV
68 68
 	// 汇总
69 69
 	viewDetail1(){
70 70
 		let query = {
71
-			
71
+			isGdId: true,
72 72
 		}
73 73
 		let path = '/newStatistics/distributionInspectionStatistics/incidentList'
74 74
 		let flag = this.tabService.tabs.some(v => v.path === path);
@@ -82,6 +82,7 @@ export class DistributionSynthesizeStatisticsComponent implements OnInit, AfterV
82 82
 	// 差评
83 83
 	viewDetail4(){
84 84
 		let query = {
85
+			isGdId: true,
85 86
 			startDate: this.customChangeDateComponent.startDate,
86 87
 			endDate: this.customChangeDateComponent.endDate,
87 88
 			searchQuery:{
@@ -144,11 +145,11 @@ export class DistributionSynthesizeStatisticsComponent implements OnInit, AfterV
144 145
 			endDate: this.customChangeDateComponent.endDate,
145 146
 			searchQuery:{
146 147
 				statusValue: 'close',
147
-				executeUserDTO: {
148
+				userDTO: {
148 149
 					name: data.userName,
149
-					id: data.userId
150
+					id: data.userId?data.userId:-1
150 151
 				},
151
-				executeUserId: data.userId
152
+				userId: data.userId?data.userId:-1
152 153
 			}
153 154
 		}
154 155
 		let path = '/newStatistics/distributionInspectionStatistics/incidentList'
@@ -574,7 +575,9 @@ export class DistributionSynthesizeStatisticsComponent implements OnInit, AfterV
574 575
 		this.activeIndex = 'day';
575 576
     this.customChangeDateComponent.resetByDate();
576 577
 		sessionStorage.removeItem('distributionData');
577
-		this.search();
578
+		setTimeout(_=>{
579
+			this.search();
580
+		})
578 581
 	}
579 582
 
580 583
   // 搜索

+ 3 - 1
src/app/views/new-statistics/distribution-inspection-statistics/distribution-user-evaluate-statistics/distribution-user-evaluate-statistics.component.ts

@@ -214,7 +214,9 @@ export class DistributionUserEvaluateStatisticsComponent implements OnInit, Afte
214 214
     this.userId = undefined;
215 215
     this.fieldConfig.fields = {groupId: undefined, deptId: undefined, buildingId: undefined, taskTypeId: undefined, statisticsTypeId: undefined};
216 216
     this.customChangeDateComponent.resetByDate();
217
-    this.search();
217
+    setTimeout(_=>{
218
+    	this.search();
219
+    })
218 220
   }
219 221
 
220 222
   // 人员搜索

+ 3 - 1
src/app/views/new-statistics/distribution-inspection-statistics/hour-quality-control-statistics/hour-quality-control-statistics.component.ts

@@ -387,7 +387,9 @@ export class HourQualityControlStatisticsComponent implements OnInit, AfterViewI
387 387
     this.statisticsTypeId = undefined;
388 388
     this.fieldConfig.fields = {groupId: undefined, userId: undefined, deptId: undefined, buildingId: undefined, taskTypeId: undefined};
389 389
     this.customChangeDateComponent.resetByDate();
390
-    this.search();
390
+    setTimeout(_=>{
391
+    	this.search();
392
+    })
391 393
   }
392 394
 
393 395
   // 防抖

+ 8 - 6
src/app/views/new-statistics/distribution-inspection-statistics/incident-list/incident-list.component.html

@@ -3,7 +3,7 @@
3 3
     <app-custom-change-date #customChangeDate [isShowType]="false"></app-custom-change-date>
4 4
     <div class="searchDataItem">
5 5
       <span class="label">统计分类</span>:
6
-      <nz-select class="selectItem" [nzDropdownMatchSelectWidth]="false" nzAllowClear nzPlaceHolder="请选择统计分类" [(ngModel)]="statisticsTypeId" (nzOpenChange)="openChangeStatisticsType($event)">
6
+      <nz-select class="selectItem" [nzDropdownMatchSelectWidth]="false" nzAllowClear nzPlaceHolder="请选择统计分类" [(ngModel)]="statisticsTypeId" (nzOpenChange)="openChangeStatisticsType()">
7 7
         <ng-container *ngFor="let option of statisticsTypeList">
8 8
           <nz-option *ngIf="!isLoading" [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
9 9
         </ng-container>
@@ -20,7 +20,7 @@
20 20
     <button nz-button class="btn default ml8" (click)="excelExport()" [nzLoading]="excelExportLoading">导出</button>
21 21
   </div>
22 22
 </div>
23
-<div class="moreFilter" *ngIf="fieldConfig.fields.groupDTO || fieldConfig.fields.userDTO || fieldConfig.fields.deptDTO || fieldConfig.fields.buildingDTO || fieldConfig.fields.taskTypeDTO || fieldConfig.fields.sourceDTO || fieldConfig.fields.minuteDTO || fieldConfig.fields.specialDTO || fieldConfig.fields.overtimeIdDTO || fieldConfig.fields.abnormalDTO || fieldConfig.fields.evaluateDTO || fieldConfig.fields.codeNumDTO || fieldConfig.fields.timeFrameDTO">
23
+<div class="moreFilter" *ngIf="fieldConfig.fields.groupDTO || fieldConfig.fields.userDTO || fieldConfig.fields.deptDTO || fieldConfig.fields.buildingDTO || fieldConfig.fields.taskTypeDTO || fieldConfig.fields.sourceDTO || fieldConfig.fields.minuteDTO || fieldConfig.fields.specialDTO || fieldConfig.fields.overtimeDTO || fieldConfig.fields.overtimeIdDTO || fieldConfig.fields.evaluateDTO || fieldConfig.fields.codeNumDTO || fieldConfig.fields.timeFrameDTO">
24 24
 	<span>{{fieldConfig.fields.groupDTO?.groupName}}</span>
25 25
 	<span>{{fieldConfig.fields.userDTO?.name}}</span>
26 26
 	<span>{{fieldConfig.fields.taskTypeDTO?.taskName}}</span>
@@ -30,15 +30,16 @@
30 30
 	<span>{{fieldConfig.fields.minuteDTO}}</span>
31 31
 	<span>{{fieldConfig.fields.specialDTO?.name}}</span>
32 32
 	<span>{{fieldConfig.fields.overtimeDTO?.name}}</span>
33
-	<span>{{fieldConfig.fields.abnormalDTO?.name}}</span>
33
+	<!-- <span>{{fieldConfig.fields.abnormalDTO?.name}}</span> -->
34 34
 	<span>{{fieldConfig.fields.evaluateDTO?.name}}</span>
35 35
 	<span>{{fieldConfig.fields.codeNumDTO}}</span>
36 36
 	<span>{{fieldConfig.fields.timeFrameDTO?.name}}</span>
37 37
 </div>
38
-<nz-table class="table" [nzData]="listOfData" nzSize="middle" [nzShowPagination]="false" [nzLoading]="loading1" [nzScroll]="{ y: tableHeight + 'px', x: '1500px'}">
38
+<nz-table class="table" [nzData]="listOfData" nzSize="middle" [nzShowPagination]="false" [nzLoading]="loading1" [nzScroll]="{ y: tableHeight + 'px', x: '1600px'}">
39 39
   <thead>
40 40
     <tr>
41 41
       <th nzWidth="150px">序号|单号</th>
42
+			<th nzWidth="100px">申请科室</th>
42 43
       <th nzWidth="200px">起点|终点科室</th>
43 44
       <th nzWidth="150px">统计|任务类型</th>
44 45
       <th nzWidth="200px">时间过程</th>
@@ -55,6 +56,7 @@
55 56
 				<div>{{index+(pageIndex-1) * pageSize + 1}}</div>
56 57
 				<div class="text-style">{{data.gdcode}}</div>
57 58
 			</td>
59
+			<td>{{ data.createDept }}</td>
58 60
       <td>
59 61
 				<div>{{ data.startDept }}</div>
60 62
 				<div>{{ data.endDept }}</div>
@@ -85,8 +87,8 @@
85 87
 				<div>{{ data.evaluationName }}</div>
86 88
 			</td>
87 89
       <td>
88
-      	<div>{{ data.totalGrade }}{{data.totalGrade?'元':''}}</div>
89
-      	<div>{{ data.scorePrice }}{{data.scorePrice?'分':''}}</div>
90
+      	<div>{{ data.scorePrice }}{{data.scorePrice ? '元' : ''}}</div>
91
+      	<div>{{ data.totalGrade }}{{data.totalGrade ? '分' : ''}}</div>
90 92
       </td>
91 93
 			<td>{{data.workerName}}</td>
92 94
     </tr>

+ 53 - 25
src/app/views/new-statistics/distribution-inspection-statistics/incident-list/incident-list.component.ts

@@ -42,6 +42,8 @@ export class IncidentListComponent implements OnInit, AfterViewInit, OnDestroy {
42 42
   }
43 43
 	
44 44
 	ngOnDestroy(){
45
+		console.log(12122121)
46
+		this.fieldConfig.fields = {}
45 47
 		sessionStorage.removeItem('distributionData')
46 48
 	}
47 49
 	
@@ -60,6 +62,7 @@ export class IncidentListComponent implements OnInit, AfterViewInit, OnDestroy {
60 62
   }
61 63
 	
62 64
 	goingType:boolean = false;
65
+	gdStateId:any = null;
63 66
 	getRouteQuery(){
64 67
 		let data = sessionStorage.getItem('distributionData')
65 68
 		let query = null
@@ -81,27 +84,40 @@ export class IncidentListComponent implements OnInit, AfterViewInit, OnDestroy {
81 84
 					this.goingType = false
82 85
 					this.fieldConfig.fields = {}
83 86
 				}
84
-				
85
-				this.getQueryParams();
87
+				if(!query.isGdId){
88
+					this.gdStateId = '73,74'
89
+				}else{
90
+					this.gdStateId = undefined;
91
+				}
92
+				this.getQueryParams(query);
86 93
 			},50)
87 94
 		}else{
95
+			this.gdStateId = undefined;
88 96
 			setTimeout(_=>{
89
-				this.getQueryParams();
97
+				this.getQueryParams('');
90 98
 			},50)
91 99
 		}
92 100
 	}
93 101
 	
94
-  getQueryParams(){
102
+  getQueryParams(query){
95 103
     let queryParams = this.tabService.getQueryParams();
96
-    this.tabService.clearQueryParams();
104
+		console.log(43434343,queryParams)
97 105
     if(queryParams.dateRange){
106
+			console.log(555555)
98 107
       this.dateRange = queryParams.dateRange;
99 108
       this.customChangeDateComponent.initByDate(this.dateRange, queryParams.defRange);
100
-    }
101
-    setTimeout(_=>{
102
-    	this.search();
103
-    	this.onResize(37);
104
-    },50)
109
+		}else{
110
+			this.tabService.clearQueryParams();
111
+			console.log(666666)
112
+			if(query){
113
+				this.dateRange = [query.startDate, query.endDate];
114
+				this.customChangeDateComponent.initByDate(this.dateRange, queryParams.defRange);
115
+			}
116
+		}
117
+		setTimeout(_=>{
118
+			this.search();
119
+			this.onResize(37);
120
+		},100)
105 121
   }
106 122
 
107 123
   get getMoreFilter(){
@@ -173,12 +189,13 @@ export class IncidentListComponent implements OnInit, AfterViewInit, OnDestroy {
173 189
 			buildingId: this.fieldConfig.fields.buildingId || undefined,
174 190
 			sourceId: this.fieldConfig.fields.sourceId || undefined,
175 191
 			minutesClose: this.fieldConfig.fields.minuteClose || undefined,
176
-			specialCloseFlag: this.fieldConfig.fields.specialId || undefined,
177
-			timeout: this.fieldConfig.fields.overtimeId || undefined,
178
-			abnormityType: this.fieldConfig.fields.abnormalId || undefined,
192
+			specialCloseFlag: this.fieldConfig.fields.specialId,
193
+			// timeout: this.fieldConfig.fields.overtimeId,
194
+			// abnormityType: this.fieldConfig.fields.abnormalId,
179 195
 			workOrderEvaluationId: this.fieldConfig.fields.evaluateId || undefined,
180
-			hour: this.fieldConfig.fields.timeFrameId || undefined,
181
-			gdCode: this.fieldConfig.fields.codeNum || undefined
196
+			hour: this.fieldConfig.fields.timeFrameId != null ? this.fieldConfig.fields.timeFrameId : undefined,
197
+			gdCode: this.fieldConfig.fields.codeNum || undefined,
198
+			gdStateId: this.gdStateId
182 199
     };
183 200
 
184 201
     this.loading1 = true;
@@ -230,12 +247,13 @@ export class IncidentListComponent implements OnInit, AfterViewInit, OnDestroy {
230 247
 			buildingId: this.fieldConfig.fields.buildingId || undefined,
231 248
     	sourceId: this.fieldConfig.fields.sourceId || undefined,
232 249
     	minutesClose: this.fieldConfig.fields.minuteClose || undefined,
233
-    	specialCloseFlag: this.fieldConfig.fields.specialId || undefined,
234
-    	timeout: this.fieldConfig.fields.overtimeId || undefined,
235
-    	abnormityType: this.fieldConfig.fields.abnormalId || undefined,
250
+    	specialCloseFlag: this.fieldConfig.fields.specialId,
251
+    	// timeout: this.fieldConfig.fields.overtimeId,
252
+    	// abnormityType: this.fieldConfig.fields.abnormalId,
236 253
     	workOrderEvaluationId: this.fieldConfig.fields.evaluateId || undefined,
237
-    	hour: this.fieldConfig.fields.timeFrameId || undefined,
238
-    	gdCode: this.fieldConfig.fields.codeNum || undefined
254
+    	hour: this.fieldConfig.fields.timeFrameId != null ? this.fieldConfig.fields.timeFrameId : undefined,
255
+    	gdCode: this.fieldConfig.fields.codeNum || undefined,
256
+			gdStateId: this.gdStateId
239 257
     };
240 258
     this.mainService
241 259
       .postExportCustom("itsm/export", "workOrderList", postData)
@@ -267,11 +285,14 @@ export class IncidentListComponent implements OnInit, AfterViewInit, OnDestroy {
267 285
 		this.sortCurrent = {};
268 286
     this.dateRange = []
269 287
     this.statisticsTypeId = undefined;
288
+		this.gdStateId = undefined;
270 289
     this.fieldConfig.fields = {groupId: undefined, userId: undefined, categoryId: undefined, sourceId: undefined, hierarchy: undefined};
271 290
     this.customChangeDateComponent.resetByDate();
272 291
 		sessionStorage.removeItem('distributionData');
273
-    this.search();
274
-		this.onResize(0);
292
+		setTimeout(_=>{
293
+			this.search();
294
+			this.onResize(0);
295
+		})
275 296
   }
276 297
 
277 298
   // 防抖
@@ -297,18 +318,25 @@ export class IncidentListComponent implements OnInit, AfterViewInit, OnDestroy {
297 318
 	  this.getList();
298 319
 	}
299 320
 
300
-  openChangeStatisticsType(flag){
301
-    flag && this.getStatisticsTypeList();
321
+  openChangeStatisticsType(){
322
+    this.getStatisticsTypeList();
302 323
   }
303 324
 
304 325
   // 获取统计分类列表
305 326
   statisticsTypeList:any[] = [];
306
-  getStatisticsTypeList(keyword?) {
327
+  getStatisticsTypeList() {
307 328
     this.isLoading = true;
308 329
     this.mainService
309 330
       .getDictionary("list", "statistics_date_type")
310 331
       .subscribe((data) => {
332
+				this.statisticsTypeList = []
311 333
         this.isLoading = false;
334
+				if(!data.find(i=> i.id == -1)){
335
+					data.push({
336
+						name:'未知',
337
+						id:-1
338
+					})
339
+				}
312 340
         this.statisticsTypeList = data;
313 341
       });
314 342
   }

+ 3 - 1
src/app/views/new-statistics/distribution-inspection-statistics/source-statistics/source-statistics.component.ts

@@ -212,7 +212,9 @@ export class SourceStatisticsComponent implements OnInit, AfterViewInit {
212 212
     this.deptId = undefined;
213 213
     this.fieldConfig.fields = {groupId: undefined, userId: undefined, taskTypeId: undefined, buildingId: undefined, statisticsTypeId: undefined};
214 214
     this.customChangeDateComponent.resetByDate();
215
-    this.search();
215
+    setTimeout(_=>{
216
+    	this.search();
217
+    })
216 218
   }
217 219
 
218 220
   // 科室搜索

+ 3 - 1
src/app/views/new-statistics/distribution-inspection-statistics/taskType-quality-control-statistics/taskType-quality-control-statistics.component.ts

@@ -452,7 +452,9 @@ export class TaskTypeQualityControlStatisticsComponent implements OnInit, AfterV
452 452
     this.taskTypeId = undefined;
453 453
     this.fieldConfig.fields = {groupId: undefined, userId: undefined, deptId: undefined, buildingId: undefined};
454 454
     this.customChangeDateComponent.resetByDate();
455
-    this.search();
455
+    setTimeout(_=>{
456
+    	this.search();
457
+    })
456 458
   }
457 459
 
458 460
   // 任务类型搜索

+ 3 - 1
src/app/views/new-statistics/distribution-inspection-statistics/user-business-statistics/user-business-statistics.component.ts

@@ -219,7 +219,9 @@ export class UserBusinessStatisticsComponent implements OnInit, AfterViewInit {
219 219
     this.userId = undefined;
220 220
     this.fieldConfig.fields = {buildingId: undefined, deptId: undefined, groupId: undefined};
221 221
     this.customChangeDateComponent.resetByDate();
222
-    this.search();
222
+    setTimeout(_=>{
223
+    	this.search();
224
+    })
223 225
   }
224 226
 
225 227
   // 人员搜索

+ 3 - 1
src/app/views/new-statistics/distribution-inspection-statistics/user-quality-control-statistics/user-quality-control-statistics.component.ts

@@ -208,7 +208,9 @@ export class UserQualityControlStatisticsComponent implements OnInit, AfterViewI
208 208
     this.userId = undefined;
209 209
     this.fieldConfig.fields = {buildingId: undefined, deptId: undefined, groupId: undefined};
210 210
     this.customChangeDateComponent.resetByDate();
211
-    this.search();
211
+    setTimeout(_=>{
212
+    	this.search();
213
+    })
212 214
   }
213 215
 
214 216
   // 人员搜索

+ 3 - 1
src/app/views/new-statistics/maintenance-statistics/building-statistics/building-statistics.component.ts

@@ -196,7 +196,9 @@ export class BuildingStatisticsComponent implements OnInit, AfterViewInit {
196 196
     this.dateRange = []
197 197
     this.fieldConfig.fields = {category123: true};
198 198
     this.customChangeDateComponent.resetByDate();
199
-    this.search();
199
+    setTimeout(_=>{
200
+    	this.search();
201
+    })
200 202
   }
201 203
 
202 204
   // 防抖

+ 3 - 1
src/app/views/new-statistics/maintenance-statistics/category-one-statistics/category-one-statistics.component.ts

@@ -515,7 +515,9 @@ export class CategoryOneStatisticsComponent implements OnInit, AfterViewInit {
515 515
     this.fieldConfig.fields = {groupId: undefined, userId: undefined, buildingId: undefined, floorId: undefined, companyId: undefined, repairDeptId: undefined};
516 516
     this.customChangeDateComponent.resetByDate();
517 517
 		sessionStorage.removeItem('maintenanceData');
518
-    this.search();
518
+    setTimeout(_=>{
519
+    	this.search();
520
+    })
519 521
   }
520 522
 
521 523
   // 防抖

+ 3 - 1
src/app/views/new-statistics/maintenance-statistics/category-source-statistics/category-source-statistics.component.ts

@@ -204,7 +204,9 @@ export class CategorySourceStatisticsComponent implements OnInit, AfterViewInit
204 204
     this.dateRange = []
205 205
     this.fieldConfig.fields = {groupId: undefined, userId: undefined, categoryId: undefined, buildingId: undefined, floorId: undefined};
206 206
     this.customChangeDateComponent.resetByDate();
207
-    this.search();
207
+    setTimeout(_=>{
208
+    	this.search();
209
+    })
208 210
   }
209 211
 
210 212
   // 防抖

+ 3 - 1
src/app/views/new-statistics/maintenance-statistics/category-three-statistics/category-three-statistics.component.ts

@@ -981,7 +981,9 @@ export class CategoryThreeStatisticsComponent implements OnInit, AfterViewInit {
981 981
     this.fieldConfig.fields = {groupId: undefined, userId: undefined, buildingId: undefined, floorId: undefined, companyId: undefined, repairDeptId: undefined};
982 982
     this.customChangeDateComponent.resetByDate();
983 983
 		sessionStorage.removeItem('maintenanceData');
984
-    this.search();
984
+    setTimeout(_=>{
985
+    	this.search();
986
+    })
985 987
   }
986 988
 
987 989
   // 防抖

+ 3 - 1
src/app/views/new-statistics/maintenance-statistics/category-two-statistics/category-two-statistics.component.ts

@@ -749,7 +749,9 @@ export class CategoryTwoStatisticsComponent implements OnInit, AfterViewInit {
749 749
     this.fieldConfig.fields = {groupId: undefined, userId: undefined, buildingId: undefined, floorId: undefined, companyId: undefined, repairDeptId: undefined};
750 750
     this.customChangeDateComponent.resetByDate();
751 751
 		sessionStorage.removeItem('maintenanceData');
752
-    this.search();
752
+    setTimeout(_=>{
753
+    	this.search();
754
+    })
753 755
   }
754 756
 
755 757
   // 一级分类搜索

+ 3 - 1
src/app/views/new-statistics/maintenance-statistics/consumable-statistics/consumable-statistics.component.ts

@@ -221,7 +221,9 @@ export class ConsumableStatisticsComponent implements OnInit, AfterViewInit {
221 221
     this.fieldConfig.fields = {groupId: undefined, userId: undefined, categoryId: undefined, buildingId: undefined, floorId: undefined, companyId: undefined};
222 222
     this.customChangeDateComponent.resetByDate();
223 223
 		sessionStorage.removeItem('maintenanceData');
224
-    this.search();
224
+    setTimeout(_=>{
225
+    	this.search();
226
+    })
225 227
   }
226 228
 
227 229
   // 科室搜索

+ 3 - 1
src/app/views/new-statistics/maintenance-statistics/department-evaluate-statistics/department-evaluate-statistics.component.ts

@@ -700,7 +700,9 @@ export class DepartmentEvaluateStatisticsComponent implements OnInit, AfterViewI
700 700
     this.fieldConfig.fields = {groupId: undefined, userId: undefined, categoryId: undefined, buildingId: undefined, floorId: undefined, deptTypeId: undefined};
701 701
     this.customChangeDateComponent.resetByDate();
702 702
 		sessionStorage.removeItem('maintenanceData');
703
-    this.search();
703
+    setTimeout(_=>{
704
+    	this.search();
705
+    })
704 706
   }
705 707
 
706 708
 	// 防抖

+ 3 - 1
src/app/views/new-statistics/maintenance-statistics/department-incident-statistics/department-incident-statistics.component.ts

@@ -539,7 +539,9 @@ export class DepartmentIncidentStatisticsComponent implements OnInit, AfterViewI
539 539
     this.fieldConfig.fields = {groupId: undefined, userId: undefined, categoryId: undefined, buildingId: undefined, floorId: undefined, deptTypeId: undefined};
540 540
     this.customChangeDateComponent.resetByDate();
541 541
 		sessionStorage.removeItem('maintenanceData');
542
-    this.search();
542
+    setTimeout(_=>{
543
+    	this.search();
544
+    })
543 545
   }
544 546
 
545 547
   // 防抖

+ 3 - 1
src/app/views/new-statistics/maintenance-statistics/department-source-statistics/department-source-statistics.component.ts

@@ -229,7 +229,9 @@ export class DepartmentSourceStatisticsComponent implements OnInit, AfterViewIni
229 229
     this.deptId = undefined;
230 230
     this.fieldConfig.fields = {groupId: undefined, userId: undefined, categoryId: undefined, buildingId: undefined, floorId: undefined, deptTypeId: undefined};
231 231
     this.customChangeDateComponent.resetByDate();
232
-    this.search();
232
+    setTimeout(_=>{
233
+    	this.search();
234
+    })
233 235
   }
234 236
 
235 237
   // 防抖

+ 3 - 1
src/app/views/new-statistics/maintenance-statistics/floor-statistics/floor-statistics.component.ts

@@ -210,7 +210,9 @@ export class FloorStatisticsComponent implements OnInit, AfterViewInit {
210 210
     this.buildingId = undefined;
211 211
     this.fieldConfig.fields = {categoryId: undefined};
212 212
     this.customChangeDateComponent.resetByDate();
213
-    this.search();
213
+    setTimeout(_=>{
214
+    	this.search();
215
+    })
214 216
   }
215 217
 
216 218
   // 楼栋搜索

+ 3 - 1
src/app/views/new-statistics/maintenance-statistics/group-statistics/group-statistics.component.ts

@@ -461,7 +461,9 @@ export class GroupStatisticsComponent implements OnInit, AfterViewInit {
461 461
     this.dateRange = []
462 462
     this.fieldConfig.fields = {categoryId: undefined, buildingId: undefined, floorId: undefined};
463 463
     this.customChangeDateComponent.resetByDate();
464
-    this.search();
464
+    setTimeout(_=>{
465
+    	this.search();
466
+    })
465 467
   }
466 468
 
467 469
   // 防抖

+ 4 - 2
src/app/views/new-statistics/maintenance-statistics/incident-list/incident-list.component.ts

@@ -308,8 +308,10 @@ export class IncidentListComponent implements OnInit, AfterViewInit, OnDestroy {
308 308
     this.fieldConfig.fields = {groupId: undefined, userId: undefined, categoryId: undefined, sourceId: undefined, hierarchy: undefined};
309 309
     this.customChangeDateComponent.resetByDate();
310 310
 		sessionStorage.removeItem('maintenanceData');
311
-    this.search();
312
-		this.onResize(0);
311
+		setTimeout(_=>{
312
+			this.search();
313
+			this.onResize(0);
314
+		})
313 315
   }
314 316
 
315 317
   // 科室搜索

+ 3 - 1
src/app/views/new-statistics/maintenance-statistics/incident-statistics/incident-statistics.component.ts

@@ -500,7 +500,9 @@ export class IncidentStatisticsComponent implements OnInit, AfterViewInit {
500 500
     this.fieldConfig.fields = {groupId: undefined, userId: undefined, categoryId: undefined, sourceId: undefined, hierarchy: undefined};
501 501
     this.customChangeDateComponent.resetByDate();
502 502
 		sessionStorage.removeItem('maintenanceData');
503
-    this.search();
503
+    setTimeout(_=>{
504
+    	this.search();
505
+    })
504 506
   }
505 507
 
506 508
   // 科室搜索

+ 3 - 1
src/app/views/new-statistics/maintenance-statistics/tripartite-company-statistics/tripartite-company-statistics.component.ts

@@ -516,7 +516,9 @@ export class TripartiteCompanyStatisticsComponent implements OnInit, AfterViewIn
516 516
     this.fieldConfig.fields = {categoryId: undefined, buildingId: undefined, floorId: undefined, repairDeptId: undefined};
517 517
     this.customChangeDateComponent.resetByDate();
518 518
 		sessionStorage.removeItem('maintenanceData');
519
-    this.search();
519
+    setTimeout(_=>{
520
+    	this.search();
521
+    })
520 522
   }
521 523
 
522 524
   // 科室搜索

+ 3 - 1
src/app/views/new-statistics/maintenance-statistics/user-evaluate-statistics/user-evaluate-statistics.component.ts

@@ -713,7 +713,9 @@ export class UserEvaluateStatisticsComponent implements OnInit, AfterViewInit {
713 713
     this.fieldConfig.fields = {buildingId: undefined, floorId: undefined, categoryId: undefined, groupId: undefined, repairDeptId: undefined};
714 714
     this.customChangeDateComponent.resetByDate();
715 715
 		sessionStorage.removeItem('maintenanceData');
716
-    this.search();
716
+    setTimeout(_=>{
717
+    	this.search();
718
+    })
717 719
   }
718 720
 
719 721
   // 维修人员搜索

+ 3 - 1
src/app/views/new-statistics/maintenance-statistics/user-statistics/user-statistics.component.ts

@@ -514,7 +514,9 @@ export class UserStatisticsComponent implements OnInit, AfterViewInit {
514 514
     this.fieldConfig.fields = {buildingId: undefined, floorId: undefined, categoryId: undefined, groupId: undefined};
515 515
     this.customChangeDateComponent.resetByDate();
516 516
 		sessionStorage.removeItem('maintenanceData');
517
-    this.search();
517
+    setTimeout(_=>{
518
+    	this.search();
519
+    })
518 520
   }
519 521
 
520 522
   // 维修人员搜索

+ 3 - 1
src/app/views/new-statistics/maintenance-statistics/work-hour-big-statistics/work-hour-big-statistics.component.ts

@@ -222,7 +222,9 @@ export class WorkHourBigStatisticsComponent implements OnInit, AfterViewInit {
222 222
     this.repairDeptId = undefined;
223 223
     this.fieldConfig.fields = {groupId: undefined, userId: undefined, categoryId: undefined, buildingId: undefined, floorId: undefined, companyId: undefined};
224 224
     this.customChangeDateComponent.resetByDate();
225
-    this.search();
225
+    setTimeout(_=>{
226
+    	this.search();
227
+    })
226 228
   }
227 229
 
228 230
   // 科室搜索

+ 3 - 1
src/app/views/new-statistics/maintenance-statistics/work-hour-small-statistics/work-hour-small-statistics.component.ts

@@ -224,7 +224,9 @@ export class WorkHourSmallStatisticsComponent implements OnInit, AfterViewInit {
224 224
     this.repairDeptId = undefined;
225 225
     this.fieldConfig.fields = {groupId: undefined, userId: undefined, categoryId: undefined, buildingId: undefined, floorId: undefined, companyId: undefined, workHourParentId: undefined};
226 226
     this.customChangeDateComponent.resetByDate();
227
-    this.search();
227
+    setTimeout(_=>{
228
+    	this.search();
229
+    })
228 230
   }
229 231
 
230 232
   // 科室搜索

+ 7 - 7
src/app/views/operation-notice/operation-notice.component.html

@@ -20,6 +20,13 @@
20 20
     <div class="list" *ngIf="!taskTypeLoading && allTaskType.length">
21 21
       <ng-container *ngFor="let tab of tabs">
22 22
         <div *ngIf="tabModalName == tab.role">
23
+					<div class="tabContent" *ngIf="currentChoice.id != 1">
24
+					  <label class="tabContent_checkbox label">发送时间</label>
25
+					  <div class="tabContent_textarea">
26
+							<nz-time-picker [(ngModel)]="tab.sendTime" nzFormat="HH:mm" nzPlaceHolder="发送时间"></nz-time-picker>
27
+					  </div>
28
+					</div>
29
+					
23 30
           <div class="tabContent">
24 31
             <label class="tabContent_checkbox" nz-checkbox [(ngModel)]="tab.phoneFlag">短信通知内容</label>
25 32
             <div class="tabContent_textarea">
@@ -55,13 +62,6 @@
55 62
 					    <p>字段:[$变量名称$]可添加<span *ngFor="let item of variableNames; let last = last;" (click)="writeIn(tab, item, $event, 'outsideContent')"><strong>{{item}}</strong><em *ngIf="!last">、</em><em *ngIf="last">。</em></span></p>
56 63
 					  </div>
57 64
 					</div>
58
-					
59
-					<div class="tabContent" *ngIf="currentChoice.id != 1">
60
-					  <label class="tabContent_checkbox label">发送时间</label>
61
-					  <div class="tabContent_textarea">
62
-							<nz-time-picker [(ngModel)]="tab.sendTime" nzFormat="HH:mm" nzPlaceHolder="发送时间"></nz-time-picker>
63
-					  </div>
64
-					</div>
65 65
         </div>
66 66
       </ng-container>
67 67
 

+ 1 - 1
src/app/views/operation-notice/operation-notice.component.less

@@ -187,7 +187,7 @@
187 187
         display: flex;
188 188
 				
189 189
 				.label{
190
-					width: 116px !important;
190
+					margin-left:0 !important;
191 191
 					display: flex;
192 192
 					align-items: center;
193 193
 				}

+ 21 - 48
src/app/views/operation-search/operation-search.component.html

@@ -42,7 +42,7 @@
42 42
 				    nzShowSearch
43 43
 				    nzAllowClear
44 44
 				    nzPlaceHolder="请选择手术室"
45
-				    [(ngModel)]="searchCriteria.department"
45
+				    [(ngModel)]="searchCriteria.departmentRoom"
46 46
 				    (nzOnSearch)="changeOperatingRoomInp($event, 'search')"
47 47
 				    (nzOpenChange)="changeSearch2($event)"
48 48
 				  >
@@ -75,7 +75,7 @@
75 75
               <nz-option
76 76
                 *ngIf="!isLoading1"
77 77
                 nzLabel="{{ data.name }}"
78
-                nzValue="{{ data.id }}"
78
+                nzValue="{{ data.value }}"
79 79
               ></nz-option>
80 80
             </ng-container>
81 81
             <nz-option *ngIf="isLoading1" nzDisabled nzCustomContent>
@@ -90,12 +90,12 @@
90 90
 				</div>
91 91
       </div>
92 92
       <div nz-col nzXl="6" class="list-template__btns">
93
+				<button nz-button class="btn default ml8" (click)="getList(1)">
94
+				  搜索
95
+				</button>
93 96
         <button nz-button class="btn default ml8" (click)="reset()">
94 97
           重置
95 98
         </button>
96
-        <button nz-button class="btn default ml8" (click)="getList(1)">
97
-          搜索
98
-        </button>
99 99
       </div>
100 100
     </div>
101 101
     <div class="list-template__bottom">
@@ -107,40 +107,28 @@
107 107
         [nzShowPagination]="false"
108 108
         [nzLoading]="loading1"
109 109
       >
110
-        <thead (nzSortChange)="sort($event)" nzSingleSort>
110
+        <thead (nzSortChange)="sort($event)">
111 111
           <tr class="thead">
112
-            <th nzWidth="4%">序号</th>
113
-            <th nzWidth="8%">申请科室</th>
114
-            <th nzWidth="7%">患者姓名</th>
115
-            <th nzWidth="5%">标本编码</th>
116
-            <th nzWidth="8%">检验项目</th>
117
-            <th nzWidth="8%">标本类型</th>
118
-            <th nzWidth="5%">状态</th>
119
-            <th nzWidth="8%" nzShowSort nzSortKey="arrive_time" [(nzSort)]="sortCurrent.arrive_time">收取时间</th>
120
-            <th nzWidth="8%">收取人</th>
121
-            <th nzWidth="8%">中转时间</th>
122
-            <th nzWidth="8%">送达时间</th>
123
-            <th nzWidth="8%">送达人</th>
124
-            <th nzWidth="8%">终点科室</th>
125
-            <th nzWidth="7%"></th>
112
+            <th>序号</th>
113
+            <th>患者信息</th>
114
+            <th>手术时间</th>
115
+            <th>申请科室</th>
116
+            <th>手术室</th>
117
+            <th>手术名称</th>
118
+            <th>状态</th>
119
+            <th>是否首台</th>
126 120
           </tr>
127 121
         </thead>
128 122
         <tbody>
129 123
           <tr *ngFor="let data of listOfData; let i = index">
130 124
             <td>{{i+(pageIndex-1) * pageSize + 1}}</td>
131
-            <td>{{ data.sickRoom ? data.sickRoom.dept : "-" }}</td>
132
-            <td>{{ data.patientName}}<span *ngIf="data.bedNum">({{data.bedNum}})</span><br>{{data.residenceNo}}</td>
133
-            <td>{{ data.scode || "-" }}</td>
134
-            <td>{{ data.specimenDesc || "-" }}</td>
135
-            <td>{{ data.stype ? data.stype.name : "-" }}</td>
136
-            <td>{{ data.speState ? data.speState.name : "-" }}</td>
137
-            <td>{{ data.arriveTime || "-" }}</td>
138
-            <td>{{ data.receiverName || "-" }}</td>
139
-            <td>{{ data.transTime || '-' }}</td>
140
-            <td>{{ data.sendTime || '-' }}</td>
141
-            <td>{{ data.delivererName || "-" }}</td>
142
-            <td>{{ data.checkDept ? data.checkDept.dept : "-" }}</td>
143
-            <td><button (click)="viewSpecimenHistory(data)">查看</button></td>
125
+            <td>{{ data.patientName }} <span *ngIf="data.patientDTO && data.patientDTO.bedNum">({{data.patientDTO.bedNum}} 床)</span> | {{data.patientDTO ? data.patientDTO.residenceNo : '无'}}</td>
126
+						<td>{{ data.printDate | date:"yyyy-MM-dd HH:mm:ss"  }}</td>
127
+            <td>{{ data.areaDeptDTO ? data.areaDeptDTO.dept : '-' }}</td>
128
+            <td>{{ data.surgeryDeptDTO ? data.surgeryDeptDTO.dept : '-' }}</td>
129
+            <td>{{ data.surgeryName }}</td>
130
+            <td>{{ data.state ? data.state.name : "-" }}</td>
131
+            <td>{{ data.firstOperation==1 ? '是' : '否'}}</td>
144 132
           </tr>
145 133
         </tbody>
146 134
       </nz-table>
@@ -157,21 +145,6 @@
157 145
     </div>
158 146
   </div>
159 147
 </div>
160
-<!-- 清空标本模态框 -->
161
-<app-dialog-delete
162
-  [delModal]="delModal"
163
-  (hideDelModalEvent)="hideDelModal()"
164
-  [btnLoading]="btnLoading"
165
-  (confirmDelEvent)="confirmDel()"
166
-  [content]="tipsMsg1"
167
-></app-dialog-delete>
168
-<!-- 标本历史记录查看 -->
169
-<app-history-prompt-modal
170
-  *ngIf="historyPromptModalShow"
171
-  [show]="historyPromptModalShow"
172
-  [scode]="scode"
173
-  (closeModelHs)="closeModelHistory($event)"
174
-></app-history-prompt-modal>
175 148
 <!-- 操作成功/失败提示框 -->
176 149
 <app-prompt-modal
177 150
   *ngIf="promptModalShow"

+ 20 - 61
src/app/views/operation-search/operation-search.component.ts

@@ -16,14 +16,11 @@ export class OperationSearchComponent implements OnInit {
16 16
   searchCriteria = {
17 17
     //搜索条件
18 18
 		firstOperation:false,
19
-    scode: "",
20
-    parent: "",
21 19
     hospital: null,
22 20
     department: null,
23 21
     speState: null,
24
-    receiverName: null,
25 22
     dateRange: [],
26
-    checkDept: null,
23
+    departmentRoom: null,
27 24
   };
28 25
   types = []; // 类型列表(搜索框)
29 26
   departmentSearch = []; // 院区下的科室列表(搜索框)
@@ -126,41 +123,22 @@ export class OperationSearchComponent implements OnInit {
126 123
       this.startDate = this.endDate = "";
127 124
       return;
128 125
     }
129
-    this.startDate =
130
-      result[0].getFullYear() +
131
-      "-" +
132
-      (result[0].getMonth() + 1) +
133
-      "-" +
134
-      result[0].getDate() +
135
-      " " +
136
-      "00:00:00";
137
-    this.endDate =
138
-      result[1].getFullYear() +
139
-      "-" +
140
-      (result[1].getMonth() + 1) +
141
-      "-" +
142
-      result[1].getDate() +
143
-      " " +
144
-      "23:59:59";
126
+		this.startDate = format(result[0], "yyyy-MM-dd ") + "00:00:00";
127
+		this.endDate = format(result[1], "yyyy-MM-dd ") + "23:59:59";
145 128
   }
146 129
   // 重置
147 130
   reset() {
148 131
     this.searchCriteria = {
149 132
       //搜索条件
150
-      scode: "",
151
-      parent: "",
152 133
       hospital: this.allHospital[0] ? this.allHospital[0]["id"] + "" : null,
153
-      department: null,
154
-      speState: null,
155
-      receiverName: null,
156
-      dateRange: [],
157
-      checkDept: null,
158
-    };
159
-    this.sortCurrentKey = "";
160
-    this.sortCurrentValue = "";
161
-    this.sortCurrent = {
162
-      arrive_time: null,
134
+			firstOperation:false,
135
+			department: null,
136
+			speState: null,
137
+			dateRange: [],
138
+			departmentRoom: null,
163 139
     };
140
+		this.startDate = null;
141
+		this.endDate = null;
164 142
     this.getList(1, this.sortCurrentKey, this.sortCurrentValue);
165 143
   }
166 144
   // 选择院区
@@ -325,47 +303,28 @@ export class OperationSearchComponent implements OnInit {
325 303
   // 表格数据
326 304
   loading1 = false;
327 305
   getList(type, field?: string, sort?: string) {
328
-    console.log(this.searchCriteria.dateRange);
329 306
     if (type == 1) {
330 307
       this.pageIndex = 1;
331 308
     }
332 309
     let postData: any = {
333 310
       idx: this.pageIndex - 1,
334 311
       sum: this.pageSize,
335
-      specimen: {
336
-        firstOperation: this.searchCriteria.firstOperation ? 1 : 0,
312
+      surgery: {
313
+				applyDateStart: this.startDate,
314
+				applyDateEnd: this.endDate,
315
+        firstOperation: this.searchCriteria.firstOperation ? 1 : undefined,
337 316
         hosId: this.searchCriteria.hospital,
338
-        dept: this.searchCriteria.checkDept
339
-          ? {
340
-              id: this.searchCriteria.checkDept,
341
-            }
342
-          : undefined,
343
-        receiverName: this.searchCriteria.receiverName
344
-          ? this.searchCriteria.receiverName
345
-          : undefined,
346
-        scode: !this.searchCriteria.scode
347
-          ? undefined
348
-          : this.searchCriteria.scode,
349
-        keyWord: !this.searchCriteria.parent
350
-          ? undefined
351
-          : this.searchCriteria.parent,
352
-        speState: this.searchCriteria.speState
353
-          ? { id: this.searchCriteria.speState }
317
+        areaDept: this.searchCriteria.department ? this.searchCriteria.department :undefined,
318
+				surgeryDept: this.searchCriteria.departmentRoom ? this.searchCriteria.departmentRoom : undefined,
319
+        state: this.searchCriteria.speState
320
+          ? { value: this.searchCriteria.speState }
354 321
           : undefined,
355 322
       },
356 323
     };
357
-    if (field && sort) {
358
-      postData.specimen.orderBy = sort === "ascend" ? field : `${field} desc`;
359
-    }
360
-    if (this.searchCriteria.dateRange.length) {
361
-      postData.specimen.startArriveTime =
362
-        format(this.searchCriteria.dateRange[0], "yyyy-MM-dd ") + "00:00:00";
363
-      postData.specimen.endArriveTime =
364
-        format(this.searchCriteria.dateRange[1], "yyyy-MM-dd ") + "23:59:59";
365
-    }
324
+
366 325
     this.loading1 = true;
367 326
     this.mainService
368
-      .getFetchDataList("simple/data", "specimen", postData)
327
+      .getFetchDataList("simple/data", "surgery", postData)
369 328
       .subscribe((data) => {
370 329
         this.loading1 = false;
371 330
         if (data.status == 200) {