Ver código fonte

拉取代码

maotao 2 meses atrás
pai
commit
fbcd16c697
32 arquivos alterados com 518 adições e 138 exclusões
  1. 16 4
      src/app/components/configurationCenter/configuration-dictionary/configuration-dictionary.component.html
  2. 14 1
      src/app/components/configurationCenter/configuration-dictionary/configuration-dictionary.component.less
  3. 1 0
      src/app/components/configurationCenter/configuration-dictionary/configuration-dictionary.component.ts
  4. 1 1
      src/app/components/configurationCenter/configuration-sys/configuration-sys.component.html
  5. 3 0
      src/app/components/configurationCenter/configuration-sys/configuration-sys.component.less
  6. 20 0
      src/app/components/configurationCenter/configuration-sys/configuration-sys.component.ts
  7. 4 4
      src/app/components/display-form/display-form.component.ts
  8. 3 3
      src/app/components/incidentManagement/incident-handle-info/incident-handle-info.component.html
  9. 4 4
      src/app/components/incidentManagement/incident-handle/incident-handle.component.ts
  10. 7 0
      src/app/services/main.service.ts
  11. 2 1
      src/app/share/businessData-detail-modal/businessData-detail-modal.component.ts
  12. 1 0
      src/app/share/order-detail/order-detail.component.html
  13. 3 1
      src/app/share/order-detail/order-detail.component.ts
  14. 12 12
      src/app/views/drug-search/drug-search.component.html
  15. 70 12
      src/app/views/drug-search/drug-search.component.ts
  16. 2 2
      src/app/views/fuwutai/fuwutai.component.html
  17. 150 63
      src/app/views/fuwutai/fuwutai.component.ts
  18. 10 10
      src/app/views/hushijiandan/hushijiandan.component.html
  19. 56 2
      src/app/views/hushijiandan/hushijiandan.component.ts
  20. 1 0
      src/app/views/incident-config/incident-config.component.ts
  21. 13 1
      src/app/views/incident-management/incident-management.component.ts
  22. 16 0
      src/app/views/inspection-execute/inspection-execute.component.html
  23. 6 3
      src/app/views/inspection-execute/inspection-execute.component.less
  24. 66 3
      src/app/views/inspection-execute/inspection-execute.component.ts
  25. 1 1
      src/app/views/new-statistics/distribution-inspection-statistics/distribution-user-evaluate-statistics/distribution-user-evaluate-statistics.component.ts
  26. 1 1
      src/app/views/questionnaire-answer/questionnaire-answer.component.html
  27. 18 2
      src/app/views/questionnaire-answer/questionnaire-answer.component.ts
  28. 1 1
      src/app/views/questionnaire-management/questionnaire-management.component.html
  29. 8 3
      src/app/views/specimen-search/specimen-search.component.html
  30. 4 0
      src/app/views/task-type-management/task-type-management.component.html
  31. 2 1
      src/app/views/task-type-management/task-type-management.component.ts
  32. 2 2
      src/app/views/users-management/users-management.component.html

+ 16 - 4
src/app/components/configurationCenter/configuration-dictionary/configuration-dictionary.component.html

@@ -10,7 +10,8 @@
10 10
         <div class="dictionaryRow">
11 11
           <div class="orders">排序号</div>
12 12
           <div class="name">键</div>
13
-          <div class="value">值</div>
13
+          <div [ngClass]="{value_2: activeDictionaryKey.key == 'alarm_urgency', value: activeDictionaryKey.key != 'alarm_urgency'}">值</div>
14
+					<div class="value_2" *ngIf="activeDictionaryKey.key == 'alarm_urgency'">关键字</div>
14 15
         </div>
15 16
         <overlay-scrollbars #osComponentRef2 class="contentBody2">
16 17
           <form nz-form [formGroup]="validateDictionaryForm" class="w100">
@@ -33,7 +34,7 @@
33 34
                   </nz-form-control>
34 35
                 </nz-form-item>
35 36
               </div>
36
-              <div class="value">
37
+              <div [ngClass]="{value_2: activeDictionaryKey.key == 'alarm_urgency', value: activeDictionaryKey.key != 'alarm_urgency'}">
37 38
                 <nz-form-item>
38 39
                   <nz-form-control [nzSpan]="24" nzErrorTip="请输入值!">
39 40
                     <nz-input-group>
@@ -41,9 +42,20 @@
41 42
                     </nz-input-group>
42 43
                   </nz-form-control>
43 44
                 </nz-form-item>
44
-                <i class="icon_transport transport-tag27fuben ml8" (click)="addField(i)" *ngIf="!(activeDictionaryKey.key === 'incident_status' || activeDictionaryKey.key === 'incident_degree')"></i>
45
-                <i class="icon_transport transport-shanchu1 ml8" *ngIf="dictionaryList.length > 1 && !data.system && !(activeDictionaryKey.key === 'incident_status' || activeDictionaryKey.key === 'incident_degree')" (click)="removeField(data, i)"></i>
45
+                <i class="icon_transport transport-tag27fuben ml8" (click)="addField(i)" *ngIf="!(activeDictionaryKey.key === 'incident_status' || activeDictionaryKey.key === 'incident_degree') && activeDictionaryKey.key != 'alarm_urgency'"></i>
46
+                <i class="icon_transport transport-shanchu1 ml8" *ngIf="dictionaryList.length > 1 && !data.system && !(activeDictionaryKey.key === 'incident_status' || activeDictionaryKey.key === 'incident_degree') && activeDictionaryKey.key != 'alarm_urgency'" (click)="removeField(data, i)"></i>
46 47
               </div>
48
+							<div class="value_2" *ngIf="activeDictionaryKey.key == 'alarm_urgency'">
49
+							  <nz-form-item>
50
+							    <nz-form-control [nzSpan]="24" nzErrorTip="请输入关键字!">
51
+							      <nz-input-group>
52
+							        <input [formControlName]="'extra1_' + data.id" nz-input class="valueInput">
53
+							      </nz-input-group>
54
+							    </nz-form-control>
55
+							  </nz-form-item>
56
+							  <i class="icon_transport transport-tag27fuben ml8" (click)="addField(i)" *ngIf="!(activeDictionaryKey.key === 'incident_status' || activeDictionaryKey.key === 'incident_degree') && activeDictionaryKey.key == 'alarm_urgency'"></i>
57
+							  <i class="icon_transport transport-shanchu1 ml8" *ngIf="dictionaryList.length > 1 && !data.system && !(activeDictionaryKey.key === 'incident_status' || activeDictionaryKey.key === 'incident_degree') && activeDictionaryKey.key == 'alarm_urgency'" (click)="removeField(data, i)"></i>
58
+							</div>
47 59
             </div>
48 60
           </form>
49 61
         </overlay-scrollbars>

+ 14 - 1
src/app/components/configurationCenter/configuration-dictionary/configuration-dictionary.component.less

@@ -72,7 +72,20 @@
72 72
           cursor: pointer;
73 73
         }
74 74
       }
75
-
75
+			
76
+			.value_2{
77
+			  flex: 1.5;
78
+			  display: flex;
79
+			  align-items: center;
80
+			  .valueInput{
81
+			    width: 320px;
82
+			  }
83
+			  .icon_transport{
84
+			    font-size: 20px;
85
+			    color: #8a8a8a;
86
+			    cursor: pointer;
87
+			  }
88
+			}
76 89
     }
77 90
   }
78 91
   .content{

+ 1 - 0
src/app/components/configurationCenter/configuration-dictionary/configuration-dictionary.component.ts

@@ -234,6 +234,7 @@ export class ConfigurationDictionaryComponent implements OnInit {
234 234
         name: rawValueObj['name_' + this.dictionaryList[i].id],
235 235
         value: rawValueObj['value_' + this.dictionaryList[i].id],
236 236
         orders: rawValueObj['orders_' + this.dictionaryList[i].id],
237
+				extra1: this.activeDictionaryKey.key == 'alarm_urgency' ? rawValueObj['extra1_' + this.dictionaryList[i].id]: undefined,
237 238
         system: uuidValidate(this.dictionaryList[i].id) ? false : this.dictionaryList[i].system,
238 239
         key: this.activeDictionaryKey.key,
239 240
       })

+ 1 - 1
src/app/components/configurationCenter/configuration-sys/configuration-sys.component.html

@@ -6,7 +6,6 @@
6 6
       </overlay-scrollbars>
7 7
     </div> -->
8 8
 		<div class="addressAssign">
9
-			<div class="hos-title">{{currentHospital.hosName}}</div>
10 9
 		  <overlay-scrollbars #osComponentRef2 class="contentBody2">
11 10
 		    <div class="contentBody">
12 11
 					<div class="mar-10">
@@ -37,6 +36,7 @@
37 36
 		    </div>
38 37
 		  	<div class="contentBtns">
39 38
 		  	  <button nz-button nzType="primary" [nzLoading]="btnLoading" (click)="submitMessageForm()">确定</button>
39
+					<button nz-button nzType="primary" [nzLoading]="cacheLoading" (click)="resetCache()">常用耗材缓存刷新</button>
40 40
 		  	</div>
41 41
 		  </overlay-scrollbars>
42 42
 		</div>

+ 3 - 0
src/app/components/configurationCenter/configuration-sys/configuration-sys.component.less

@@ -212,6 +212,9 @@
212 212
 			position: absolute;
213 213
 			bottom: 0;
214 214
 			width: 100%;
215
+			button{
216
+				margin-right: 10px;
217
+			}
215 218
 	  }
216 219
 	}
217 220
 }

+ 20 - 0
src/app/components/configurationCenter/configuration-sys/configuration-sys.component.ts

@@ -40,6 +40,26 @@ export class ConfigurationSysComponent implements OnInit {
40 40
 		this.getSysConfig();
41 41
   }
42 42
 	
43
+	// 刷新耗材缓存
44
+	cacheLoading:boolean = false;
45
+	resetCache(){
46
+		this.cacheLoading = true;
47
+		this.mainService.resetCache('commonlyUseConsumables').subscribe(
48
+		  (result) => {
49
+		    this.cacheLoading = false;
50
+		    if (result["status"] == 200) {
51
+		      this.showPromptModal("刷新", true, "");
52
+		    } else {
53
+		      this.showPromptModal("刷新", false, "");
54
+		    }
55
+		  },
56
+		  (error) => {
57
+		    this.cacheLoading = false;
58
+		    this.showPromptModal("刷新", false, "");
59
+		  }
60
+		);
61
+	}
62
+	
43 63
   // 新增/编辑表单提交
44 64
   btnLoading: boolean = false; //提交按钮loading状态
45 65
   submitMessageForm(): void {

+ 4 - 4
src/app/components/display-form/display-form.component.ts

@@ -30,7 +30,7 @@ export class DisplayFormComponent implements OnInit {
30 30
   orderType: string = 'priority'; //排序方式
31 31
 	leftMenuLocation: any = 2; //左侧菜单
32 32
 	rightMenuLocation: any = 2; //右侧菜单
33
-	showSource: any = 0; //是否展示来源
33
+	showSource: any = 2; //是否展示来源
34 34
   ngOnInit() {
35 35
     this.initControlView();
36 36
   }
@@ -68,9 +68,9 @@ export class DisplayFormComponent implements OnInit {
68 68
         this.workerRefreshTime = this.workerInfoTime = data.list[0].workerInfoTime;
69 69
         this.audioNotDispatched = data.list[0].unsendOrderVoice !== false;
70 70
         this.orderType = data.list[0].orderType || 'priority';
71
-				this.leftMenuLocation = data.list[0].leftMenuLocation;
72
-				this.rightMenuLocation = data.list[0].rightMenuLocation;
73
-				this.showSource = data.list[0].showSource;
71
+				this.leftMenuLocation = data.list[0].leftMenuLocation || 2;
72
+				this.rightMenuLocation = data.list[0].rightMenuLocation || 2;
73
+				this.showSource = data.list[0].showSource || 2;
74 74
 				
75 75
       });
76 76
   }

+ 3 - 3
src/app/components/incidentManagement/incident-handle-info/incident-handle-info.component.html

@@ -1,12 +1,12 @@
1 1
 <div class="incident_handle_info" [hidden]="handleInfoLoading">
2
-<!--  <div class="formItem column" *ngIf="itsmSimpleHandle.value==1 && itsmWriteSolution.value==1">
2
+ <div class="formItem column">
3 3
     <div class="name"><i class="icon_transport transport-required red"></i>解决方案:</div>
4 4
     <div class="value">
5 5
       <textarea rows="4" nz-input [(ngModel)]="incidentDataCopy.handleDescription" placeholder="请输入解决方案"></textarea>
6 6
     </div>
7
-  </div> -->
7
+  </div>
8 8
 
9
-  <div class="formItem" *ngIf="itsmSimpleHandle.value != 1">
9
+  <div class="formItem">
10 10
     <div class="name"><i class="icon_transport transport-required red"></i>故障现象:</div>
11 11
     <div class="value w100">
12 12
       <nz-select class="w100" [(ngModel)]="incidentDataCopy.category" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch

+ 4 - 4
src/app/components/incidentManagement/incident-handle/incident-handle.component.ts

@@ -237,10 +237,10 @@ export class IncidentHandleComponent implements OnInit {
237 237
       // 详细处理
238 238
       console.log(this.incidentHandleInfoComponent)
239 239
       // return;
240
-      // if(!this.incidentHandleInfoComponent.incidentDataCopy.handleDescription){
241
-      //   this.message.warning('请选择解决方案!');
242
-      //   return;
243
-      // }
240
+      if(!this.incidentHandleInfoComponent.incidentDataCopy.handleDescription){
241
+        this.message.warning('请选择解决方案!');
242
+        return;
243
+      }
244 244
       if(!this.incidentHandleInfoComponent.incidentDataCopy.category){
245 245
         this.message.warning('请选择故障现象!');
246 246
         return;

+ 7 - 0
src/app/services/main.service.ts

@@ -1256,4 +1256,11 @@ export class MainService {
1256 1256
 		});
1257 1257
 	}
1258 1258
 	
1259
+	// 常用耗材缓存刷新
1260
+	resetCache(model){
1261
+		return this.http.post(host.host + `/incident/refresh/cache/${model}`, {}, {
1262
+		  headers: this.headers,
1263
+		});
1264
+	}
1265
+	
1259 1266
 }

+ 2 - 1
src/app/share/businessData-detail-modal/businessData-detail-modal.component.ts

@@ -318,7 +318,7 @@ export class BusinessDataDetailModalComponent implements OnInit {
318 318
       taskTypeConfig: {
319 319
         taskTypeDTO: {
320 320
           hosId: {
321
-            id: this.orderHosId
321
+            id: this.orderHosId ? this.orderHosId : this.hosId
322 322
           },
323 323
           ordinaryField: {
324 324
             key: 'ordinary_field',
@@ -333,6 +333,7 @@ export class BusinessDataDetailModalComponent implements OnInit {
333 333
         if (result.status == 200) {
334 334
           let list = result.list || [];
335 335
           this.configs = list[0] || {};
336
+					console.log(886886,this.configs)
336 337
           this.getDrugsBugList(idx);
337 338
         }else{
338 339
           this.hsLoading = false;

+ 1 - 0
src/app/share/order-detail/order-detail.component.html

@@ -1298,6 +1298,7 @@
1298 1298
   [show]="businessDataModalShow"
1299 1299
   [type]="businessDataModalType"
1300 1300
   [orderId]="orderId"
1301
+	[orderHosId]="orderHosId"
1301 1302
 	[taskTypeValue]="taskTypeValue"
1302 1303
   (closeModelHs)="closeModelBlood($event)"
1303 1304
 ></app-businessData-detail-modal>

+ 3 - 1
src/app/share/order-detail/order-detail.component.ts

@@ -166,9 +166,11 @@ export class OrderDetailComponent implements OnInit {
166 166
   businessDataModalType = ''; //业务数据类型
167 167
   orderId = ""; //查看业务数据携带
168 168
 	taskTypeValue:any;
169
+	orderHosId:any;
169 170
   viewDetail(data, type) {
170
-		console.log(4444,data)
171
+		console.log(4444,data, type)
171 172
     this.orderId = data.id;
173
+		this.orderHosId = data.hosId;
172 174
 		this.taskTypeValue = data.taskType.associationType.value;
173 175
     this.businessDataModalType = type;
174 176
     this.businessDataModalShow = true;

+ 12 - 12
src/app/views/drug-search/drug-search.component.html

@@ -81,8 +81,8 @@
81 81
 				</div>
82 82
 				
83 83
 				<div class="list-template__searchItem">
84
-				  <span class="label width-105">开始时间区间:</span>
85
-				  <nz-range-picker nzShowTime [(ngModel)]="searchCriteria.dateRange" (ngModelChange)="changeDate($event)"></nz-range-picker>
84
+				  <span class="label width-105">收取时间区间:</span>
85
+				  <nz-range-picker nzShowTime [(ngModel)]="searchCriteria.dateRange" (nzOnCalendarChange)="onCalendarChangeDate($event)" (ngModelChange)="changeDate($event)"></nz-range-picker>
86 86
 				</div>
87 87
       </div>
88 88
       <div nz-col nzXl="8" class="list-template__btns">
@@ -125,10 +125,10 @@
125 125
 							<div>{{ data.packTime }}</div>
126 126
 						</td>
127 127
 						<td>
128
-							<div>{{ data.sendUser?.name }}</div>
128
+							<div>{{ data.sendUserDTO?.name }}</div>
129 129
 							<div>{{ data.signtime }}</div>
130 130
 						</td>
131
-						<td>{{ data.sendHandoverUser?.name }}</td>
131
+						<td>{{ data.sendHandoverUserDTO?.name }}</td>
132 132
 						<td>{{ data.drugsState?.name }}</td>
133 133
             <td class="text-underline" (click)="detail($event, data)">{{ data.workOrderDTO?.gdcode }}</td>
134 134
             <td>
@@ -138,7 +138,7 @@
138 138
 							<div class="coop" *ngIf="coopBtns.edit">
139 139
 							  <span (click)="edit(data)">编辑</span>
140 140
 							</div>
141
-							<div class="coop" *ngIf="coopBtns.send && (data.drugsState.value == 1 || data.drugsState.value == 2 || data.drugsState.value == 4 || data.drugsState.value == 8)">
141
+							<div class="coop" *ngIf="coopBtns.send && data.isCreatOder!='YES' && (data.drugsState.value == 1 || data.drugsState.value == 2 || data.drugsState.value == 4 || data.drugsState.value == 8)">
142 142
 							  <span (click)="sendMsg(data)">消息发送</span>
143 143
 							</div>
144 144
 						</td>
@@ -198,8 +198,8 @@
198 198
 				  <nz-form-control nzErrorTip="请选择发药科室!">
199 199
 				    <nz-input-group>
200 200
 							<nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch
201
-							  (nzOnSearch)="changeDept($event)" nzAllowClear nzPlaceHolder="请选择发药科室" formControlName="launch">
202
-								<ng-container *ngFor="let option of deptList">
201
+							  (nzOnSearch)="changeDept($event,1)" nzAllowClear nzPlaceHolder="请选择发药科室" formControlName="launch">
202
+								<ng-container *ngFor="let option of deptList1">
203 203
 								  <nz-option *ngIf="!isLoading" [nzLabel]="option.dept" [nzValue]="option.id"></nz-option>
204 204
 								</ng-container>
205 205
 								<nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
@@ -215,8 +215,8 @@
215 215
 				  <nz-form-control nzErrorTip="请选择申请科室!">
216 216
 				    <nz-input-group>
217 217
 							<nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch
218
-							  (nzOnSearch)="changeDept($event)" nzAllowClear nzPlaceHolder="请选择申请科室" formControlName="target">
219
-								<ng-container *ngFor="let option of deptList">
218
+							  (nzOnSearch)="changeDept($event,2)" nzAllowClear nzPlaceHolder="请选择申请科室" formControlName="target">
219
+								<ng-container *ngFor="let option of deptList2">
220 220
 								  <nz-option *ngIf="!isLoading" [nzLabel]="option.dept" [nzValue]="option.id"></nz-option>
221 221
 								</ng-container>
222 222
 								<nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
@@ -228,7 +228,7 @@
228 228
 				</nz-form-item>
229 229
 				
230 230
 				<nz-form-item>
231
-				  <nz-form-label [nzSm]="8" [nzXs]="24" nzRequired nzFor="creatTime">开始时间</nz-form-label>
231
+				  <nz-form-label [nzSm]="8" [nzXs]="24" nzRequired nzFor="creatTime">同步时间</nz-form-label>
232 232
 				  <nz-form-control nzErrorTip="请选择同步时间!">
233 233
 				    <nz-input-group>
234 234
 				      <nz-date-picker
@@ -246,7 +246,7 @@
246 246
 				  <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="drugsState">药品状态</nz-form-label>
247 247
 				  <nz-form-control nzErrorTip="请选择药品状态!">
248 248
 				    <nz-input-group>
249
-							<nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" nzShowSearch nzPlaceHolder="请选择药品状态" formControlName="drugsState">
249
+							<nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" nzShowSearch nzAllowClear nzPlaceHolder="请选择药品状态" formControlName="drugsState">
250 250
 							  <ng-container *ngFor="let option of types">
251 251
 							    <nz-option [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
252 252
 							  </ng-container>
@@ -259,7 +259,7 @@
259 259
 				  <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="drugsBagType">药品类型</nz-form-label>
260 260
 				  <nz-form-control nzErrorTip="请选择药品类型!">
261 261
 				    <nz-input-group>
262
-							<nz-select class="formItem" [nzDisabled]="!add" [nzDropdownMatchSelectWidth]="false" nzShowSearch nzPlaceHolder="请选择药品类型" formControlName="drugsBagType">
262
+							<nz-select class="formItem" [nzDisabled]="!add" [nzDropdownMatchSelectWidth]="false" nzShowSearch nzAllowClear nzPlaceHolder="请选择药品类型" formControlName="drugsBagType">
263 263
 							  <ng-container *ngFor="let option of drugsList">
264 264
 							    <nz-option [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
265 265
 							  </ng-container>

+ 70 - 12
src/app/views/drug-search/drug-search.component.ts

@@ -38,6 +38,7 @@ export class DrugSearchComponent implements OnInit {
38 38
   pageIndex: number = 1; //表格当前页码
39 39
   pageSize: number = 10; //表格每页展示条数
40 40
   listLength: number = 10; //表格总数据量
41
+	changeSearchSubject = new Subject();
41 42
   changeInpSubject = new Subject();
42 43
 	changeUserInpSubject = new Subject();
43 44
 	coopBtns:any;
@@ -45,15 +46,18 @@ export class DrugSearchComponent implements OnInit {
45 46
 	
46 47
   ngOnInit() {
47 48
 		this.coopBtns = this.tool.initCoopBtns(this.route);
49
+		this.changeSearchSubject.pipe(debounceTime(500)).subscribe((v) => {
50
+		  this.getDept(v);
51
+		});
48 52
     this.changeInpSubject.pipe(debounceTime(500)).subscribe((v) => {
49
-      this.searchDept(v);
53
+      this.searchDept(v[0], v[1]);
50 54
     });
51 55
 		this.changeUserInpSubject.pipe(debounceTime(500)).subscribe((v) => {
52 56
 		  this.searchUser(v);
53 57
 		});
54 58
     this.getHospital();
55 59
 		this.getDrugsList();
56
-		this.searchDept('');
60
+		this.getDept('');
57 61
 		this.searchUser('');
58 62
 		this.searchTypes();
59 63
   }
@@ -142,7 +146,7 @@ export class DrugSearchComponent implements OnInit {
142 146
 	searchUser(keyword) {
143 147
 	  let data = {
144 148
 	    user: {
145
-	      usertype: { id: 106 },
149
+	      // usertype: { id: 106 },
146 150
 	      name: keyword,
147 151
 	      hospital: {
148 152
 	        id: this.hosId,
@@ -180,6 +184,17 @@ export class DrugSearchComponent implements OnInit {
180 184
 	  this.searchCriteria.dateRange = [this.startDate,this.endDate]
181 185
 	}
182 186
 	
187
+	onCalendarChangeDate(dateArr){
188
+	  console.log(dateArr)
189
+	  if(dateArr.length == 2){
190
+	    let dateStart = new Date(dateArr[0]);
191
+	    let dateEnd = new Date(dateArr[1]);
192
+	    dateStart.setHours(0,0,0);
193
+	    dateEnd.setHours(23,59,59);
194
+	    this.searchCriteria.dateRange = [dateStart,dateEnd];
195
+	  }
196
+	}
197
+	
183 198
   // 重置
184 199
   reset() {
185 200
     this.searchCriteria = {
@@ -229,10 +244,12 @@ export class DrugSearchComponent implements OnInit {
229 244
       dept = "";
230 245
     }
231 246
     this.isLoading = true;
232
-    this.changeInpSubject.next(dept);
247
+    this.changeSearchSubject.next(dept);
233 248
   }
234 249
   // 搜索科室
235
-  searchDept(dept) {
250
+	deptList1:any = [];
251
+	deptList2:any = [];
252
+  searchDept(dept, type) {
236 253
     let postData = {
237 254
       department: {
238 255
         hospital: { id: this.hosId },
@@ -246,11 +263,36 @@ export class DrugSearchComponent implements OnInit {
246 263
       .subscribe((result) => {
247 264
         if (result.status == 200) {
248 265
           this.isLoading = false;
249
-          this.deptList = result.list;
266
+					if(type == 1){
267
+						this.deptList1 = result.list;
268
+					}else{
269
+						this.deptList2 = result.list;
270
+					}
250 271
         }
251 272
       });
252 273
   }
253 274
 	
275
+	getDept(dept){
276
+		let postData = {
277
+		  department: {
278
+		    hospital: { id: this.hosId },
279
+				dept,
280
+		  },
281
+		  idx: 0,
282
+		  sum: 10,
283
+		};
284
+		this.mainService
285
+		  .getFetchDataList("data", "department", postData)
286
+		  .subscribe((result) => {
287
+		    if (result.status == 200) {
288
+		      this.isLoading = false;
289
+					this.deptList = result.list;
290
+		      this.deptList1 = result.list;
291
+					this.deptList2 = result.list;
292
+		    }
293
+		  });
294
+	}
295
+	
254 296
 	// 查看
255 297
 	detail(e, data) {
256 298
 		if(!data.workOrderDTO){
@@ -264,20 +306,22 @@ export class DrugSearchComponent implements OnInit {
264 306
 	modal:boolean = false;
265 307
 	add:boolean = false;
266 308
 	addMoadl() {
309
+		this.getDept('');
267 310
 	  this.add = true;
268 311
 		this.modal = true;
269 312
 		this.itemData = null;
270 313
 	  this.initForm();
271 314
 	}
272 315
 	hideModal() {
316
+		this.getDept('');
273 317
 	  this.modal = false;
274 318
 	  this.initForm();
275 319
 	}
276 320
 	
277 321
 	// 搜索科室
278
-	changeDept(dept){
322
+	changeDept(dept, type){
279 323
 		this.isLoading = true;
280
-		this.changeInpSubject.next(dept);
324
+		this.changeInpSubject.next([dept, type]);
281 325
 	}
282 326
 	
283 327
 	// 初始化新增form表单
@@ -344,8 +388,8 @@ export class DrugSearchComponent implements OnInit {
344 388
 	    .dataPost(this.add ? "addData":"updData", "drugsBag", data)
345 389
 	    .subscribe((data) => {
346 390
 	      that.btnLoading = false;
347
-	      that.hideModal();
348 391
 	      if (data.status == 200) {
392
+					that.hideModal();
349 393
 	        that.showPromptModal(that.add ? "新增" : "编辑", true, "");
350 394
 	      } else {
351 395
 	        that.showPromptModal(that.add ? "新增" : "编辑", false, data.msg);
@@ -361,13 +405,27 @@ export class DrugSearchComponent implements OnInit {
361 405
 		this.initForm();
362 406
 		this.itemData = data;
363 407
 		this.coopId = data.id;
364
-		this.validateForm.controls.packid.setValue(data.packid);
365
-		this.validateForm.controls.batchNo.setValue(data.batchNo);
408
+		this.validateForm.controls.packid.setValue(data.packid || '');
409
+		this.validateForm.controls.batchNo.setValue(data.batchNo || '');
366 410
 		this.validateForm.controls.launch.setValue(data.launch.id);
367 411
 		this.validateForm.controls.target.setValue(data.target.id)
368 412
 		this.validateForm.controls.drugsState.setValue(data.drugsState.id)
369
-		this.validateForm.controls.drugsBagType.setValue(data.drugsBagType.id)
413
+		this.validateForm.controls.drugsBagType.setValue(data.drugsBagType && data.drugsBagType.id)
370 414
 		this.validateForm.controls.creatTime.setValue(data.creatTime);
415
+		let item = this.deptList1.find(i=>i.id == data.launch.id)
416
+		if(!item){
417
+			this.deptList1.push({
418
+				dept: data.launch.dept,
419
+				id: data.launch.id,
420
+			})
421
+		}
422
+		let item2 = this.deptList2.find(i=>i.id == data.target.id)
423
+		if(!item2){
424
+			this.deptList2.push({
425
+				dept: data.target.dept,
426
+				id: data.target.id,
427
+			})
428
+		}
371 429
 		this.modal = true
372 430
 	}
373 431
 	

+ 2 - 2
src/app/views/fuwutai/fuwutai.component.html

@@ -1158,7 +1158,7 @@
1158 1158
                             <nz-form-control class="control" [nzSm]="24" [nzXs]="24" nzErrorTip="请选择任务类型!">
1159 1159
                               <div class="radios">
1160 1160
                                 <overlay-scrollbars #osComponentRef10 [ngStyle]="{ height: '100%' }">
1161
-                                  <nz-radio-group formControlName="taskType" nz-row [ngModel]="radioValueZy" (ngModelChange)="radioChangeZy($event, index)">
1161
+                                  <nz-radio-group formControlName="taskType" nz-row [ngModel]="radioValueZy" (ngModelChange)="radioChangeZy($event, index, 'change')">
1162 1162
                                     <div nz-row>
1163 1163
                                       <label [title]="item1.taskTypeName" nz-col nz-radio [nzValue]="item1.id" *ngFor="let item1 of workTypesArrange[index].value">{{ item1.taskTypeName }}</label>
1164 1164
                                     </div>
@@ -1408,7 +1408,7 @@
1408 1408
                       <input class="addressFocus" nz-input placeholder="请填写详细地址" [(ngModel)]="incidentModel.houseNumber" (focus)="focusAddress()" />
1409 1409
                       <div class="addressList" *ngIf="isShowAddressList">
1410 1410
                         <ng-container *ngIf="!addressLoading && addressList.length">
1411
-                          <div class="addressItem ellipsis-oneline" *ngFor="let item of addressList" [title]="item.name" (click)="selectAddress(item.name)">{{item.name}}</div>
1411
+                          <div class="addressItem ellipsis-oneline" *ngFor="let item of addressList" [title]="item.name" (click)="selectAddress(item.name, item.id)">{{item.name}}</div>
1412 1412
                         </ng-container>
1413 1413
                         <div *ngIf="!addressLoading && !addressList.length" class="w100 h100 padding8 display_flex justify-content_flex-center align-items_center">
1414 1414
                           <nz-empty></nz-empty>

+ 150 - 63
src/app/views/fuwutai/fuwutai.component.ts

@@ -391,6 +391,7 @@ export class FuwutaiComponent implements OnInit {
391 391
   applyStartDept;
392 392
 	patientCode:any;
393 393
 	taskTypeId:any;
394
+	patientObj:any;
394 395
   // 患者转运表单提交
395 396
   submitFormZy(go?): void {
396 397
     let newOrderShowFlag = true; //是否可以关闭弹窗
@@ -460,7 +461,9 @@ export class FuwutaiComponent implements OnInit {
460 461
           if (go === "&go&") {
461 462
             this.applyDept = data["createDept"].id;
462 463
             this.applyStartDept = data["createDept"];
463
-						this.patientCode = data["patientId"];
464
+						this.patientObj = data["patient"] ? data["patient"] : null;
465
+						this.patientCode = data["patient"] ? data["patient"].patientCode : null;
466
+						console.log(99999,this.patientCode)
464 467
 						this.taskTypeId = data["taskTypeId"];
465 468
             this.incidentModel.incomingPhone = this.callNumber = this.incidentModel.contactsInformation = data["phone"];
466 469
             this.showPromptModal("建单", true, "", "closeGo");
@@ -476,7 +479,8 @@ export class FuwutaiComponent implements OnInit {
476 479
 					if (go === "&go&") {
477 480
 					  this.applyDept = data["createDept"].id;
478 481
 					  this.applyStartDept = data["createDept"];
479
-						this.patientCode = data["patientId"];
482
+						this.patientObj = data["patient"] ? data["patient"] : null;
483
+						this.patientCode = data["patient"] ? data["patient"].patientCode : null;
480 484
 						this.taskTypeId = data["taskTypeId"];
481 485
 					  this.incidentModel.incomingPhone = this.callNumber = this.incidentModel.contactsInformation = data["phone"];
482 486
 					}
@@ -2810,6 +2814,10 @@ export class FuwutaiComponent implements OnInit {
2810 2814
         tlwsa.tlaAcw();
2811 2815
       },0)
2812 2816
     }
2817
+		this.addressDTO = null;
2818
+		this.deptPriorityDTO = null;
2819
+		this.userPriorityDTO = null;
2820
+		this.malPriorityDTO = null;
2813 2821
     this.buildType = buildType;
2814 2822
 		console.log(123,buildType)
2815 2823
     if(this.itsmData.mdv2Switch){
@@ -3143,6 +3151,7 @@ export class FuwutaiComponent implements OnInit {
3143 3151
 				that.zwLoading = false;
3144 3152
 				that.initZwForm();
3145 3153
 				if (data.status == 200) {
3154
+					this.patientCode = null;
3146 3155
 					this.getZwOrders();
3147 3156
 					this.selectProvince = false;
3148 3157
 					this.newOrderShow = false;
@@ -3156,11 +3165,13 @@ export class FuwutaiComponent implements OnInit {
3156 3165
 	
3157 3166
   // 获取患者信息
3158 3167
   searchPatientList(id, searchWords) {
3168
+		this.patientObj = null;
3169
+		this.patientCode = null;
3159 3170
     this.searchPatientListSubject.next([id, searchWords]);
3160 3171
   }
3161 3172
   // 获取患者信息
3162 3173
   isLoadingPatient: boolean = false;
3163
-  getPatientList(id, searchWords, patient?) {
3174
+  getPatientList(id, searchWords, patient?, type:any = '') {
3164 3175
     if(patient){
3165 3176
       this.patientList = [patient];
3166 3177
       return;
@@ -3175,10 +3186,31 @@ export class FuwutaiComponent implements OnInit {
3175 3186
       this.isLoadingPatient = false;
3176 3187
       if (result["state"] == 200) {
3177 3188
         this.patientList = result["data"];
3178
-				if(this.deathTasktypeId != this.taskTypeId){
3179
-					// 患者信息自动带入
3180
-					let item = this.patientList.find(i=> i.id == this.patientCode)
3181
-					this.validateFormZy.controls.patient.setValue(item.patientCode+"");
3189
+				console.log(111,Number(this.deathTasktypeId))
3190
+				console.log(222,this.taskTypeId)
3191
+				console.log(333, type)
3192
+				if(type!='change'){
3193
+					if(this.patientObj){
3194
+						let list = this.patientList.find(i=>i.id == this.patientObj.id)
3195
+						if(!list){
3196
+							this.patientList.push({
3197
+								patientname: this.patientObj.patientName,
3198
+								bednum: this.patientObj.bedNum,
3199
+								residenceNo: this.patientObj.residenceNo,
3200
+								id: this.patientObj.id,
3201
+								patientCode: this.patientObj.patientCode
3202
+							})
3203
+						}
3204
+					}
3205
+					if(this.taskTypeId){
3206
+						if(Number(this.deathTasktypeId) != this.taskTypeId){
3207
+							// 患者信息自动带入
3208
+							let item = this.patientList.find(i=> i.patientCode == this.patientCode)
3209
+							if(item){
3210
+								this.validateFormZy.controls.patient.setValue(item.patientCode+"");
3211
+							}
3212
+						}
3213
+					}
3182 3214
 				}
3183 3215
         // if (this.patientList.length) {
3184 3216
         //   this.patientList = this.patientList.filter((item) => !!item.bednum);
@@ -3365,10 +3397,15 @@ export class FuwutaiComponent implements OnInit {
3365 3397
     if(userObj){
3366 3398
       this.incidentMsg.requesterPhone = userObj.phone;
3367 3399
     }
3368
-		if(userObj.priorityDTO){
3400
+		if(userObj && userObj.priorityDTO){
3369 3401
 			this.userPriorityDTO = userObj.priorityDTO
3402
+		}else{
3403
+			this.userPriorityDTO = null
3370 3404
 		}
3371 3405
 		let orders = [];
3406
+		if(this.addressDTO&&this.addressDTO.orders){
3407
+			orders.push(this.addressDTO.orders)
3408
+		}
3372 3409
 		if(this.deptPriorityDTO&&this.deptPriorityDTO.orders){
3373 3410
 			orders.push(this.deptPriorityDTO.orders)
3374 3411
 		}
@@ -3381,7 +3418,7 @@ export class FuwutaiComponent implements OnInit {
3381 3418
 		let minNumber = Math.min(...orders)
3382 3419
 		console.log('最小值的orders', orders, minNumber)
3383 3420
 		setTimeout(_=>{
3384
-			this.incidentModel.priorityId = minNumber || null
3421
+			this.incidentModel.priorityId = minNumber != Infinity ? minNumber : null
3385 3422
 		})
3386 3423
 		if(this.incidentModel.repairIncidentType === 'public'){
3387 3424
 			this.getItsmOrders('')
@@ -3458,8 +3495,13 @@ export class FuwutaiComponent implements OnInit {
3458 3495
             }
3459 3496
 						if(this.incidentCategoryConfig.priorityDTO){
3460 3497
 							this.malPriorityDTO = this.incidentCategoryConfig.priorityDTO
3498
+						}else{
3499
+							this.malPriorityDTO = null
3461 3500
 						}
3462 3501
 						let orders = [];
3502
+						if(this.addressDTO&&this.addressDTO.orders){
3503
+							orders.push(this.addressDTO.orders)
3504
+						}
3463 3505
 						if(this.deptPriorityDTO&&this.deptPriorityDTO.orders){
3464 3506
 							orders.push(this.deptPriorityDTO.orders)
3465 3507
 						}
@@ -3472,7 +3514,7 @@ export class FuwutaiComponent implements OnInit {
3472 3514
 						let minNumber = Math.min(...orders)
3473 3515
 						console.log('最小值的orders', orders, minNumber)
3474 3516
 						setTimeout(_=>{
3475
-							this.incidentModel.priorityId = minNumber || null
3517
+							this.incidentModel.priorityId = minNumber != Infinity ? minNumber : null
3476 3518
 						})
3477 3519
             // 根据院区和故障现象带出责任部门,优先级,维修人/组
3478 3520
             this.incidentModel.duty = this.incidentCategoryConfig.dutyDTO;
@@ -3977,26 +4019,6 @@ export class FuwutaiComponent implements OnInit {
3977 4019
   // 配送-选择科室
3978 4020
 	deptPriorityDTO:any;
3979 4021
   changeApply(e) {
3980
-		let item = this.applicationDepartmentList.find(i=>i.id = e)
3981
-		console.log('选中的科室11111',item);
3982
-		if(item.priorityDTO){
3983
-			this.deptPriorityDTO = item.priorityDTO
3984
-		}
3985
-		let orders = [];
3986
-		if(this.deptPriorityDTO&&this.deptPriorityDTO.orders){
3987
-			orders.push(this.deptPriorityDTO.orders)
3988
-		}
3989
-		if(this.userPriorityDTO&&this.userPriorityDTO.orders){
3990
-			orders.push(this.userPriorityDTO.orders)
3991
-		}
3992
-		if(this.malPriorityDTO&&this.malPriorityDTO.orders){
3993
-			orders.push(this.malPriorityDTO.orders)
3994
-		}
3995
-		let minNumber = Math.min(...orders)
3996
-		console.log('最小值的orders', orders, minNumber)
3997
-		setTimeout(_=>{
3998
-			this.incidentModel.priorityId = minNumber || null
3999
-		})
4000 4022
     this.changeApplicationDepartment("&same&");
4001 4023
     this.defaultInspectFn();
4002 4024
 
@@ -4010,15 +4032,43 @@ export class FuwutaiComponent implements OnInit {
4010 4032
 
4011 4033
     let deptObj = this.applicationDepartmentList.find(v => v.id == e);
4012 4034
 
4013
-    if(this.incidentModel.department != e){
4014
-      this.incidentModel.department = e;
4015
-      this.searchApplicationDepartment('itsm', deptObj ? deptObj.dept : '', undefined, e);
4016
-    }
4035
+    // if(this.incidentModel.department != e){
4036
+    //   this.incidentModel.department = e;
4037
+    //   this.searchApplicationDepartment('itsm', deptObj ? deptObj.dept : '', undefined, e);
4038
+    // }
4017 4039
   }
4018 4040
   // 运维-选择科室
4019 4041
   changeApplyDept(e) {
4020 4042
     console.log(e, this.applicationDeptList);
4021
-
4043
+		let item = this.applicationDeptList.find(i=>i.id == e)
4044
+		console.log('选中的科室11111',item);
4045
+		if(item && item.priorityDTO){
4046
+			this.addressDTO = null;
4047
+			this.userPriorityDTO = null;
4048
+			this.deptPriorityDTO = item.priorityDTO
4049
+		}else{
4050
+			this.addressDTO = null;
4051
+			this.userPriorityDTO = null;
4052
+			this.deptPriorityDTO = null
4053
+		}
4054
+		let orders = [];
4055
+		if(this.addressDTO&&this.addressDTO.orders){
4056
+			orders.push(this.addressDTO.orders)
4057
+		}
4058
+		if(this.deptPriorityDTO&&this.deptPriorityDTO.orders){
4059
+			orders.push(this.deptPriorityDTO.orders)
4060
+		}
4061
+		if(this.userPriorityDTO&&this.userPriorityDTO.orders){
4062
+			orders.push(this.userPriorityDTO.orders)
4063
+		}
4064
+		if(this.malPriorityDTO&&this.malPriorityDTO.orders){
4065
+			orders.push(this.malPriorityDTO.orders)
4066
+		}
4067
+		let minNumber = Math.min(...orders)
4068
+		console.log('最小值的orders', orders, minNumber)
4069
+		setTimeout(_=>{
4070
+			this.incidentModel.priorityId = minNumber != Infinity ? minNumber : null
4071
+		})
4022 4072
     if(this.incidentModel.department && this.currentTabIndex === '故障报修'){
4023 4073
       this.rightTitle_tab = [
4024 4074
         { id: 2, name: '近期维修' },
@@ -4092,7 +4142,7 @@ export class FuwutaiComponent implements OnInit {
4092 4142
 
4093 4143
             // 根据院区和故障现象带出责任部门,优先级,维修人/组
4094 4144
             this.incidentModel.duty = this.incidentCategoryConfig.dutyDTO;
4095
-            this.incidentModel.priorityId = this.incidentCategoryConfig.priority;
4145
+            // this.incidentModel.priorityId = this.incidentCategoryConfig.priority;
4096 4146
 
4097 4147
             // 回显维修人/组
4098 4148
             this.showGroupOrUser();
@@ -4146,7 +4196,7 @@ export class FuwutaiComponent implements OnInit {
4146 4196
       if (this.currentTabIndex == "患者转运") {
4147 4197
         //患者转运
4148 4198
         //获取患者信息
4149
-        this.getPatientList(this.applyDept, "");
4199
+        this.getPatientList(this.applyDept, "", "", "");
4150 4200
       }
4151 4201
       if (this.currentRTab === 0) {
4152 4202
         this.getWorkOrders(this.applyDept);
@@ -4163,7 +4213,7 @@ export class FuwutaiComponent implements OnInit {
4163 4213
       if (this.currentTabIndex == "患者转运") {
4164 4214
         //患者转运
4165 4215
         //获取患者信息
4166
-        this.getPatientList(this.applyDept, "");
4216
+        this.getPatientList(this.applyDept, "", "", "");
4167 4217
       }
4168 4218
       if (this.currentRTab === 0) {
4169 4219
         this.getWorkOrders(this.applyDept);
@@ -4571,6 +4621,7 @@ export class FuwutaiComponent implements OnInit {
4571 4621
         this.jry_shixian();
4572 4622
       }
4573 4623
 			this.goType = null;
4624
+			this.patientCode = null;
4574 4625
       this.newOrderShow = false; //关闭弹窗
4575 4626
       this.newOrderShowOpen = false; //此时可出现新的弹窗
4576 4627
       this.showPromptModal("操作", true, "", "");
@@ -4685,13 +4736,15 @@ export class FuwutaiComponent implements OnInit {
4685 4736
           let arr = this.workTypesArrange;
4686 4737
           this.workTypesFlag = arr.length >= 5;
4687 4738
           // 默认选中故障现象
4688
-          if (arr.length > 0) {
4739
+          if (arr.length > 0 && this.patientCode) {
4740
+						isFirst ? this.tabClick(arr[0].key, isInit) : this.tabClick(arr[0].key, isInit);
4741
+          }else{
4689 4742
 						if(this.showGovDuty==1){
4690 4743
 							isFirst ? this.tabClick(arr[0].key, isInit) : this.tabClick(arr[arr.length - 2].key, isInit);
4691 4744
 						}else{
4692 4745
 							isFirst ? this.tabClick(arr[0].key, isInit) : this.tabClick(arr[arr.length - 1].key, isInit);
4693 4746
 						}
4694
-          }
4747
+					}
4695 4748
         }
4696 4749
       });
4697 4750
       this.getTaskTypeCountRemarkList();
@@ -5105,10 +5158,9 @@ export class FuwutaiComponent implements OnInit {
5105 5158
   tabIndex;
5106 5159
 	isStartFixedType:boolean = false;
5107 5160
 	isEndFixedType:boolean = false;
5108
-  radioChangeZy(value, index) {
5161
+  radioChangeZy(value, index, type='') {
5109 5162
     this.radioValueZyPre = this.radioValueZy;
5110 5163
     this.radioValueZy = value;
5111
-
5112 5164
     this.tabIndex = index;
5113 5165
     //任务类型id
5114 5166
     if (value === "" || value === null) {
@@ -5212,11 +5264,15 @@ export class FuwutaiComponent implements OnInit {
5212 5264
         if (this.endDeptZy && this.radioValueZy == this.deathTasktypeId) {
5213 5265
           //获取患者信息
5214 5266
           this.patientZy = null;
5215
-          this.getPatientList(this.endDeptZy, "");
5267
+					this.patientObj = null;
5268
+					this.taskTypeId = null;
5269
+          this.getPatientList(this.endDeptZy, "", "", type);
5216 5270
         } else if(this.applyDept && this.radioValueZyPre == this.deathTasktypeId) {
5217 5271
           //获取患者信息
5218 5272
           this.patientZy = null;
5219
-          this.getPatientList(this.applyDept, "");
5273
+					this.patientObj = null;
5274
+					this.taskTypeId = null;
5275
+          this.getPatientList(this.applyDept, "", "", type);
5220 5276
         }
5221 5277
       }
5222 5278
     });
@@ -5333,30 +5389,24 @@ export class FuwutaiComponent implements OnInit {
5333 5389
 	goType:any;
5334 5390
   newOrderOk(go?): void {
5335 5391
 		this.goType = go
5336
-    console.log(this.radioValueQt);
5337 5392
     let arr = this.workTypesArrange.find(v => v.key === this.currentTabIndex);
5338 5393
     let objQt = arr.value.find(v => v.id == this.radioValueQt);
5339 5394
     let objZy = arr.value.find(v => v.id == this.radioValueZy);
5340 5395
     if (this.isYyInspect && objQt && objQt.associationTypeValue === 'other') {
5341 5396
       this.clickYYFlag = true;
5342
-			console.log(110)
5343 5397
     } else {
5344
-			console.log(111)
5345 5398
       this.clickYYFlag = false;
5346 5399
     }
5347 5400
     if (this.isYyInspect && objZy && (objZy.associationTypeValue === 'patientTransport' || objZy.associationTypeValue === 'inspect')) {
5348 5401
       this.clickYYZyFlag = true;
5349
-			console.log(112)
5350 5402
     } else {
5351 5403
       this.clickYYZyFlag = false;
5352
-			console.log(113)
5353 5404
     }
5354 5405
 
5355 5406
     if (
5356 5407
       (!this.yyTime && objQt && objQt.associationTypeValue === 'other' && this.isYyInspect) ||
5357 5408
       (!this.yyTimeZy && objZy && (objZy.associationTypeValue === 'patientTransport' || objZy.associationTypeValue === 'inspect') && this.isYyInspect)
5358 5409
     ) {
5359
-			console.log(114)
5360 5410
       return;
5361 5411
     }
5362 5412
 
@@ -5365,6 +5415,9 @@ export class FuwutaiComponent implements OnInit {
5365 5415
     } else {
5366 5416
       this.isGoLoading = true;
5367 5417
     }
5418
+		if(this.currentTabIndex!='患者转运'){
5419
+			this.patientCode = null;
5420
+		}
5368 5421
     if (objZy && objZy.associationTypeValue === 'patientTransport') {
5369 5422
       //患者转运
5370 5423
       go === "&go&" ? this.submitFormZy(go) : this.submitFormZy();
@@ -5466,17 +5519,18 @@ export class FuwutaiComponent implements OnInit {
5466 5519
   // 撤回并删除
5467 5520
   recAndDel() {
5468 5521
     let that = this;
5469
-    that.recDelLoading = true;
5470
-    that.mainService.delOrder(that.coopId).subscribe((data) => {
5471
-      that.recDelLoading = false;
5472
-      console.log(data);
5473
-      that.closeRecallOrderModal();
5474
-      if (data.status == 200) {
5475
-        that.showPromptModal("删除", true, "");
5476
-      } else {
5477
-        that.showPromptModal("删除", false, data.msg);
5478
-      }
5479
-    });
5522
+		this.openReasonModal()
5523
+    // that.recDelLoading = true;
5524
+    // that.mainService.delOrder(that.coopId).subscribe((data) => {
5525
+    //   that.recDelLoading = false;
5526
+    //   console.log(data);
5527
+    //   that.closeRecallOrderModal();
5528
+    //   if (data.status == 200) {
5529
+    //     that.showPromptModal("删除", true, "");
5530
+    //   } else {
5531
+    //     that.showPromptModal("删除", false, data.msg);
5532
+    //   }
5533
+    // });
5480 5534
   }
5481 5535
   // 关闭撤回模态框
5482 5536
   closeRecallOrderModal() {
@@ -5535,6 +5589,7 @@ export class FuwutaiComponent implements OnInit {
5535 5589
 	delReason:any;
5536 5590
 	isDelVisible:boolean = false;
5537 5591
 	openReasonModal() {
5592
+		this.closeRecallOrderModal();
5538 5593
 	  this.isDelVisible = true;
5539 5594
 	}
5540 5595
 	// 确认删除
@@ -5561,6 +5616,7 @@ export class FuwutaiComponent implements OnInit {
5561 5616
 	// 关闭模态框
5562 5617
 	delOrderModal() {
5563 5618
 	  this.isDelVisible = false;
5619
+		this.delReason = null;
5564 5620
 	}
5565 5621
 	
5566 5622
   // 新建工单
@@ -5638,6 +5694,12 @@ export class FuwutaiComponent implements OnInit {
5638 5694
 	  this.repeatModal = true;
5639 5695
 	  this.repeatPostData = postData;
5640 5696
 	  this.sourceType = sourceType;
5697
+		if(this.currentTabIndex!='患者转运'){
5698
+			this.patientCode = null;
5699
+		}
5700
+		if(this.currentTabIndex=='患者转运' && go!='&go&' ){
5701
+			this.patientCode = null;
5702
+		}
5641 5703
 		// if(this.goType=='&go&'){
5642 5704
 		// 	this.showRepetitionModal("建单", true, "", "closeGo");
5643 5705
 		// }
@@ -5647,7 +5709,6 @@ export class FuwutaiComponent implements OnInit {
5647 5709
 	  this.btnLoading = false;
5648 5710
 		this.confirmType = false;
5649 5711
 		if(this.goType=='&go&'){
5650
-			console.log('fou222222')
5651 5712
 			this.showNewOrder(1,"&go&");
5652 5713
 			// this.showRepetitionModal("建单", true, "", "closeGo");
5653 5714
 		}
@@ -6624,7 +6685,33 @@ export class FuwutaiComponent implements OnInit {
6624 6685
   }
6625 6686
 
6626 6687
   // 选择地址
6627
-  selectAddress(name){
6688
+	addressDTO:any;
6689
+  selectAddress(name, id){
6690
+		let item = this.addressList.find(i=>i.id == id)
6691
+		console.log('选中的地址11111',item);
6692
+		if(item && item.priority){
6693
+			this.addressDTO = item.priority
6694
+		}else{
6695
+			this.addressDTO = null
6696
+		}
6697
+		let orders = [];
6698
+		if(this.addressDTO&&this.addressDTO.orders){
6699
+			orders.push(this.addressDTO.orders)
6700
+		}
6701
+		if(this.deptPriorityDTO&&this.deptPriorityDTO.orders){
6702
+			orders.push(this.deptPriorityDTO.orders)
6703
+		}
6704
+		if(this.userPriorityDTO&&this.userPriorityDTO.orders){
6705
+			orders.push(this.userPriorityDTO.orders)
6706
+		}
6707
+		if(this.malPriorityDTO&&this.malPriorityDTO.orders){
6708
+			orders.push(this.malPriorityDTO.orders)
6709
+		}
6710
+		let minNumber = Math.min(...orders)
6711
+		console.log('最小值的orders', orders, minNumber)
6712
+		setTimeout(_=>{
6713
+			this.incidentModel.priorityId = minNumber != Infinity ? minNumber : null
6714
+		})
6628 6715
     this.incidentModel.houseNumber = name;
6629 6716
     this.isShowAddressList = false;
6630 6717
   }

+ 10 - 10
src/app/views/hushijiandan/hushijiandan.component.html

@@ -596,7 +596,7 @@
596 596
                                               <nz-form-control nzErrorTip="请选择起点科室!">
597 597
                                                 <nz-select class="w100" formControlName="originOffice" [nzDropdownMatchSelectWidth]="false" [nzShowSearch]="isStartFixedType" [nzServerSearch]="isStartFixedType"  (nzOnSearch)="searchDept('start', buildMsg, $event)" nzPlaceHolder="请选择起点科室">
598 598
                                                   <ng-container *ngFor="let option of buildMsg.start.start.list">
599
-                                                    <nz-option *ngIf="true" [nzLabel]="deptDisplay == 2 ? option.deptalias +'('+ option.inputcode+')' : option.dept +'('+ option.inputcode+')'" [nzValue]="option.id">
599
+                                                    <nz-option *ngIf="true" [nzLabel]="deptDisplay == 2 ? option.deptalias : option.dept" [nzValue]="option.id">
600 600
                                                     </nz-option>
601 601
                                                   </ng-container>
602 602
                                                   <nz-option *ngIf="false" nzDisabled nzCustomContent>
@@ -618,7 +618,7 @@
618 618
                                               <nz-form-control nzErrorTip="请选择目标科室!">
619 619
                                                 <nz-select class="w100" formControlName="targetOffice" [nzDropdownMatchSelectWidth]="false" [nzShowSearch]="isEndFixedType" [nzServerSearch]="isEndFixedType"  (nzOnSearch)="searchDept('target', buildMsg, $event)" nzAllowClear nzPlaceHolder="请选择目标科室">
620 620
                                                   <ng-container *ngFor="let option of buildMsg.end.end.list">
621
-                                                    <nz-option *ngIf="true" [nzLabel]="deptDisplay == 2 ? option.deptalias +'('+ option.inputcode+')' : option.dept +'('+ option.inputcode+')'" [nzValue]="option.id">
621
+                                                    <nz-option *ngIf="true" [nzLabel]="deptDisplay == 2 ? option.deptalias : option.dept" [nzValue]="option.id">
622 622
                                                     </nz-option>
623 623
                                                   </ng-container>
624 624
                                                   <nz-option *ngIf="false" nzDisabled nzCustomContent>
@@ -640,7 +640,7 @@
640 640
                                               <nz-form-control nzErrorTip="请选择起点科室!">
641 641
                                                 <nz-select class="w100" formControlName="originOffice" [nzDropdownMatchSelectWidth]="false" [nzShowSearch]="isStartFixedType" [nzServerSearch]="isStartFixedType"  (nzOnSearch)="searchDept('start', buildMsg, $event)" nzPlaceHolder="请选择起点科室">
642 642
                                                   <ng-container *ngFor="let option of buildMsg.start.start.list">
643
-                                                    <nz-option *ngIf="true" [nzLabel]="deptDisplay == 2 ? option.deptalias +'('+ option.inputcode+')' : option.dept +'('+ option.inputcode+')'" [nzValue]="option.id">
643
+                                                    <nz-option *ngIf="true" [nzLabel]="deptDisplay == 2 ? option.deptalias : option.dept" [nzValue]="option.id">
644 644
                                                     </nz-option>
645 645
                                                   </ng-container>
646 646
                                                   <nz-option *ngIf="false" nzDisabled nzCustomContent>
@@ -655,7 +655,7 @@
655 655
                                               <nz-form-control nzErrorTip="请选择目标科室!">
656 656
                                                 <nz-select class="w100" formControlName="targetOffice" [nzDropdownMatchSelectWidth]="false" [nzShowSearch]="isEndFixedType" [nzServerSearch]="isEndFixedType"  (nzOnSearch)="searchDept('target', buildMsg, $event)" nzPlaceHolder="请选择目标科室">
657 657
                                                   <ng-container *ngFor="let option of buildMsg.end.end.list">
658
-                                                    <nz-option *ngIf="true" [nzLabel]="deptDisplay == 2 ? option.deptalias +'('+ option.inputcode+')' : option.dept +'('+ option.inputcode+')'" [nzValue]="option.id">
658
+                                                    <nz-option *ngIf="true" [nzLabel]="deptDisplay == 2 ? option.deptalias : option.dept" [nzValue]="option.id">
659 659
                                                     </nz-option>
660 660
                                                   </ng-container>
661 661
                                                   <nz-option *ngIf="false" nzDisabled nzCustomContent>
@@ -1566,7 +1566,7 @@
1566 1566
                 <nz-form-control [nzSpan]="20" nzErrorTip="请选择起点科室!">
1567 1567
                   <nz-select formControlName="originOffice" [nzDropdownMatchSelectWidth]="false" [nzShowSearch]="isStartFixedType" [nzServerSearch]="isStartFixedType"  (nzOnSearch)="searchDept('start', checkedShowMsg, $event)" nzPlaceHolder="请选择起点科室">
1568 1568
                     <ng-container *ngFor="let option of checkedShowMsg.start.start.list">
1569
-                      <nz-option *ngIf="true" [nzLabel]="deptDisplay == 2 ? option.deptalias +'('+ option.inputcode+')' : option.dept +'('+ option.inputcode+')'" [nzValue]="option.id"></nz-option>
1569
+                      <nz-option *ngIf="true" [nzLabel]="deptDisplay == 2 ? option.deptalias : option.dept" [nzValue]="option.id"></nz-option>
1570 1570
                     </ng-container>
1571 1571
                     <nz-option *ngIf="false" nzDisabled nzCustomContent>
1572 1572
                       <i nz-icon nzType="loading" class="loading-icon"></i>
@@ -1594,7 +1594,7 @@
1594 1594
                 <nz-form-control [nzSpan]="20" nzErrorTip="请选择目标科室!">
1595 1595
                   <nz-select formControlName="targetOffice" [nzDropdownMatchSelectWidth]="false"  [nzShowSearch]="isEndFixedType" [nzServerSearch]="isEndFixedType"  (nzOnSearch)="searchDept('target', checkedShowMsg, $event)" nzPlaceHolder="请选择目标科室">
1596 1596
                     <ng-container *ngFor="let option of checkedShowMsg.end.end.list">
1597
-                      <nz-option [nzLabel]="deptDisplay == 2 ? option.deptalias +'('+ option.inputcode+')' : option.dept +'('+ option.inputcode+')'" [nzValue]="option.id"></nz-option>
1597
+                      <nz-option [nzLabel]="deptDisplay == 2 ? option.deptalias : option.dept" [nzValue]="option.id"></nz-option>
1598 1598
                     </ng-container>
1599 1599
                   </nz-select>
1600 1600
                 </nz-form-control>
@@ -1750,7 +1750,7 @@
1750 1750
                   <nz-option
1751 1751
                     *ngIf="true"
1752 1752
                     [nzLabel]="
1753
-                      deptDisplay == 2 ? option.deptalias +'('+ option.inputcode+')' : option.dept +'('+ option.inputcode+')'
1753
+                      deptDisplay == 2 ? option.deptalias : option.dept
1754 1754
                     "
1755 1755
                     [nzValue]="option.id"
1756 1756
                   >
@@ -1796,7 +1796,7 @@
1796 1796
                   <nz-option
1797 1797
                     *ngIf="true"
1798 1798
                     [nzLabel]="
1799
-                      deptDisplay == 2 ? option.deptalias +'('+ option.inputcode+')' : option.dept +'('+ option.inputcode+')'
1799
+                      deptDisplay == 2 ? option.deptalias : option.dept
1800 1800
                     "
1801 1801
                     [nzValue]="option.id"
1802 1802
                   >
@@ -1841,7 +1841,7 @@
1841 1841
                   <nz-option
1842 1842
                     *ngIf="true"
1843 1843
                     [nzLabel]="
1844
-                      deptDisplay == 2 ? option.deptalias +'('+ option.inputcode+')' : option.dept +'('+ option.inputcode+')'
1844
+                      deptDisplay == 2 ? option.deptalias : option.dept
1845 1845
                     "
1846 1846
                     [nzValue]="option.id"
1847 1847
                   >
@@ -1876,7 +1876,7 @@
1876 1876
                   <nz-option
1877 1877
                     *ngIf="true"
1878 1878
                     [nzLabel]="
1879
-                      deptDisplay == 2 ? option.deptalias +'('+ option.inputcode+')' : option.dept +'('+ option.inputcode+')'
1879
+                      deptDisplay == 2 ? option.deptalias : option.dept
1880 1880
                     "
1881 1881
                     [nzValue]="option.id"
1882 1882
                   >

+ 56 - 2
src/app/views/hushijiandan/hushijiandan.component.ts

@@ -1973,6 +1973,8 @@ export class HushijiandanComponent implements OnInit {
1973 1973
     // 返回值的status是203 则是固定科室
1974 1974
     // 返回值的status是204 则是自主填写
1975 1975
     // 返回值的status是205 则是固定科室类型
1976
+		key = key.toUpperCase()
1977
+		console.log('hahhah =======', key)
1976 1978
     if (
1977 1979
       (type == "start" && msg.start.start.departmentStrategy == 202) ||
1978 1980
       (type == "target" && msg.end.end.departmentStrategy == 202)
@@ -1991,8 +1993,20 @@ export class HushijiandanComponent implements OnInit {
1991 1993
 				.postCustom("nurse", "workOrder/buildTrip", postData)
1992 1994
 				.subscribe((result) => {
1993 1995
 					let arr = result.start.start.list;
1996
+					arr.forEach(i=>{
1997
+						if(this.deptDisplay == 2){
1998
+							i.deptalias = i.deptalias + '('+i.inputcode+')'
1999
+						}else{
2000
+							i.dept = i.dept + '('+i.inputcode+')'
2001
+						}
2002
+					})
2003
+					
1994 2004
 					if(key!=''){
1995
-						data = arr.filter(i=>i.dept.indexOf(key) !=-1)
2005
+						if(this.deptDisplay ==2){
2006
+							data = arr.filter(i=>i.deptalias.indexOf(key) !=-1)
2007
+						}else{
2008
+							data = arr.filter(i=>i.dept.indexOf(key) !=-1)
2009
+						}
1996 2010
 						msg.start.start.list = data
1997 2011
 					}else{
1998 2012
 						msg.start.start.list = arr
@@ -2003,8 +2017,20 @@ export class HushijiandanComponent implements OnInit {
2003 2017
 				.postCustom("nurse", "workOrder/buildTrip", postData)
2004 2018
 				.subscribe((result) => {
2005 2019
 					let arr = result.end.end.list;
2020
+					arr.forEach(i=>{
2021
+						if(this.deptDisplay == 2){
2022
+							i.deptalias = i.deptalias + '('+i.inputcode+')'
2023
+						}else{
2024
+							i.dept = i.dept + '('+i.inputcode+')'
2025
+						}
2026
+					})
2027
+					
2006 2028
 					if(key!=''){
2007
-						data = arr.filter(i=>i.dept.indexOf(key) !=-1)
2029
+						if(this.deptDisplay ==2){
2030
+							data = arr.filter(i=>i.deptalias.indexOf(key) !=-1)
2031
+						}else{
2032
+							data = arr.filter(i=>i.dept.indexOf(key) !=-1)
2033
+						}
2008 2034
 						msg.end.end.list = data
2009 2035
 					}else{
2010 2036
 						msg.end.end.list = arr
@@ -2039,8 +2065,22 @@ export class HushijiandanComponent implements OnInit {
2039 2065
       .getFetchDataList("data", "department", postData)
2040 2066
       .subscribe((data) => {
2041 2067
         if (type == "target") {
2068
+					data.list.forEach(i=>{
2069
+						if(this.deptDisplay == 2){
2070
+							i.deptalias = i.deptalias + '('+i.inputcode+')'
2071
+						}else{
2072
+							i.dept = i.dept + '('+i.inputcode+')'
2073
+						}
2074
+					})
2042 2075
           msg.end.end.list = data.list;
2043 2076
         } else if (type == "start") {
2077
+					data.list.forEach(i=>{
2078
+						if(this.deptDisplay == 2){
2079
+							i.deptalias = i.deptalias + '('+i.inputcode+')'
2080
+						}else{
2081
+							i.dept = i.dept + '('+i.inputcode+')'
2082
+						}
2083
+					})
2044 2084
           msg.start.start.list = data.list;
2045 2085
         }
2046 2086
       });
@@ -3547,6 +3587,20 @@ export class HushijiandanComponent implements OnInit {
3547 3587
     this.mainService
3548 3588
       .postCustom("nurse", "workOrder/buildTrip", postData)
3549 3589
       .subscribe((result) => {
3590
+				result.start.start.list.forEach(i=>{
3591
+					if(this.deptDisplay ==2){
3592
+						i.deptalias = i.deptalias + '('+i.inputcode+')'
3593
+					}else{
3594
+						i.dept = i.dept + '('+i.inputcode+')'
3595
+					}
3596
+				})
3597
+				result.end.end.list.forEach(i=>{
3598
+					if(this.deptDisplay ==2){
3599
+						i.deptalias = i.deptalias + '('+i.inputcode+')'
3600
+					}else{
3601
+						i.dept = i.dept + '('+i.inputcode+')'
3602
+					}
3603
+				})
3550 3604
         this.buildMsg = result;
3551 3605
 				if(result.end){
3552 3606
 					if(result.end.end.departmentStrategy==202 ||

+ 1 - 0
src/app/views/incident-config/incident-config.component.ts

@@ -31,6 +31,7 @@ export class IncidentConfigComponent implements OnInit, AfterViewInit {
31 31
     { id: 5, name: '状态', key: "incident_status"},
32 32
     { id: 6, name: '维修记录', key: "repair_type"},
33 33
     { id: 7, name: '满意度评价', key: "incident_degree"},
34
+		// { id: 8, name: '告警紧急度', key: "alarm_urgency"},
34 35
   ]
35 36
 
36 37
   // 院区配置

+ 13 - 1
src/app/views/incident-management/incident-management.component.ts

@@ -878,7 +878,19 @@ export class IncidentManagementComponent implements OnInit, OnDestroy {
878 878
   // 显示弹框
879 879
   showSearchModal() {
880 880
     this.modelName = "详细搜索";
881
-    this.searchModal = true;
881
+		let item = this.repairsUserList.find(i=>i.id == this.validateSearchForm.value.repairsUser)
882
+    if(!item && this.validateSearchForm.value.repairsUser){
883
+			this.mainService
884
+			  .getFetchData("data", "user", this.validateSearchForm.value.repairsUser)
885
+			  .subscribe((result) => {
886
+			    this.repairsUserList.push({
887
+			    	id: result.data.id,
888
+			    	name: result.data.name
889
+			    })
890
+			  });
891
+
892
+		}
893
+		this.searchModal = true;
882 894
   }
883 895
   //关闭新增/编辑弹框
884 896
   hideSearchModal() {

+ 16 - 0
src/app/views/inspection-execute/inspection-execute.component.html

@@ -52,6 +52,22 @@
52 52
             </nz-option>
53 53
           </nz-select>
54 54
         </div>
55
+				<div class="list-template__searchItem">
56
+				  <span class="label">巡检点</span>:
57
+				  <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch
58
+				    (nzOnSearch)="changePollingInp($event)" nzAllowClear nzPlaceHolder="请选择巡检点" [(ngModel)]="searchDto.nodeId">
59
+				    <ng-container *ngFor="let option of pollingData">
60
+				      <nz-option *ngIf="!isLoading" [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
61
+				    </ng-container>
62
+				    <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
63
+				      <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
64
+				    </nz-option>
65
+				  </nz-select>
66
+				</div>
67
+				<div class="list-template__searchItem">
68
+				  <span class="label width-105">截止时间区间:</span>
69
+				  <nz-range-picker class="formItem" nzShowTime [(ngModel)]="searchDto.dateRange" (nzOnCalendarChange)="onCalendarChangeDate($event)" (ngModelChange)="changeDate($event)"></nz-range-picker>
70
+				</div>
55 71
       </div>
56 72
       <div nz-col nzLg="8" class="list-template__btns">
57 73
         <button nz-button *ngIf="coopBtns.del" [disabled]="!checkedDepIds.length" class="btn default" (click)="showDelModal(data,'您确认要删除选中的巡检任务吗?','删除','delList')">批量删除</button>

+ 6 - 3
src/app/views/inspection-execute/inspection-execute.component.less

@@ -1,13 +1,16 @@
1 1
 @import "../../../../src/theme.less";
2 2
 
3 3
 :host {
4
-  ::ng-deep .ant-calendar-picker {
5
-    width: 100% !important;
6
-  }
4
+  // ::ng-deep .ant-calendar-picker {
5
+  //   width: 100% !important;
6
+  // }
7 7
   .list-template__top{
8 8
     overflow: visible!important;
9 9
   }
10 10
 }
11
+.width-105{
12
+	width: 105px !important;
13
+}
11 14
 .save {
12 15
   position: fixed;
13 16
   left: 0;

+ 66 - 3
src/app/views/inspection-execute/inspection-execute.component.ts

@@ -7,6 +7,7 @@ import { ToolService } from "../../services/tool.service";
7 7
 import { NzMessageService } from 'ng-zorro-antd';
8 8
 import { Subject } from 'rxjs';
9 9
 import { debounceTime } from 'rxjs/operators';
10
+import { format } from 'date-fns';
10 11
 @Component({
11 12
   selector: "app-inspection-execute",
12 13
   templateUrl: "./inspection-execute.component.html",
@@ -42,6 +43,7 @@ export class InspectionExecuteComponent implements OnInit {
42 43
   modelName = ""; //模态框名称
43 44
 
44 45
   changeInpSubject = new Subject(); //防抖
46
+	changePollingInpSubject = new Subject(); //防抖
45 47
   showDropdown:boolean = false;
46 48
 
47 49
   ngOnInit() {
@@ -53,13 +55,64 @@ export class InspectionExecuteComponent implements OnInit {
53 55
         this.getInspectionBatchs(v[0], v[2]);
54 56
       }
55 57
     });
58
+		
59
+		this.changePollingInpSubject.pipe(debounceTime(500)).subscribe((v) => {
60
+      this.getPollingList(v);
61
+    });
56 62
     this.currentHospital = this.tool.getCurrentHospital();
57 63
     this.coopBtns = this.tool.initCoopBtns(this.route);
58 64
     this.getList(1);
59 65
     this.getIncidentPlans('search', '');
66
+		this.getPollingList()
60 67
     this.getStatus();
61 68
   }
62
-
69
+	
70
+	// 日期选择
71
+	startDate: string; //发起时间开始
72
+	endDate: string; //发起时间结束
73
+	changeDate(result?): void {
74
+	  if (result.length==0) {
75
+	    this.startDate = this.endDate = null;
76
+	    return;
77
+	  }
78
+		this.startDate = format(result[0], 'yyyy-MM-dd HH:mm:ss');
79
+		this.endDate = format(result[1], 'yyyy-MM-dd HH:mm:ss');
80
+	  this.searchDto.dateRange = [this.startDate,this.endDate]
81
+	}
82
+	
83
+	onCalendarChangeDate(dateArr){
84
+	  console.log(dateArr)
85
+	  if(dateArr.length == 2){
86
+	    let dateStart = new Date(dateArr[0]);
87
+	    let dateEnd = new Date(dateArr[1]);
88
+	    dateStart.setHours(0,0,0);
89
+	    dateEnd.setHours(23,59,59);
90
+	    this.searchDto.dateRange = [dateStart,dateEnd];
91
+	  }
92
+	}
93
+	
94
+	// 获取巡检点
95
+	pollingData:any = [];	
96
+	getPollingList(name?) {
97
+	  let data = {
98
+	    idx: 0,
99
+	    sum: 20,
100
+	    inspectionNode: {
101
+	      hosId: this.currentHospital.id,
102
+				name
103
+	    },
104
+	  };
105
+	  this.mainService
106
+	    .getFetchDataList("simple/data", "inspectionNode", data)
107
+	    .subscribe((data) => {
108
+	      this.isLoading = false;
109
+	      if (data.status == 200) {
110
+	        this.pollingData = data.list;
111
+	      }else{
112
+	        this.message.error(data.msg || "请求数据失败");
113
+	      }
114
+	    });
115
+	}
63 116
   // 初始化增删改按钮
64 117
   coopBtns: any = {};
65 118
 
@@ -170,6 +223,8 @@ export class InspectionExecuteComponent implements OnInit {
170 223
   reset() {
171 224
     this.inspectionBatchSearchList = [];
172 225
     this.searchDto = {};
226
+		this.startDate = undefined,
227
+		this.endDate = undefined,
173 228
     this.getList(1);
174 229
   }
175 230
 
@@ -191,7 +246,10 @@ export class InspectionExecuteComponent implements OnInit {
191 246
         batchId: this.searchDto.batchId || undefined,
192 247
         status: this.searchDto.statusId ? { id: this.searchDto.statusId } : undefined,
193 248
         exception: this.searchDto.exceptionId === undefined ? undefined : this.searchDto.exceptionId,
194
-      },
249
+				overTimeStart: this.startDate || undefined,
250
+				overTimeEnd: this.endDate || undefined,
251
+				nodeId: this.searchDto.nodeId || undefined,
252
+			},
195 253
     };
196 254
     this.mapOfCheckedId = {};
197 255
     this.checkedDepIds = [];
@@ -216,7 +274,12 @@ export class InspectionExecuteComponent implements OnInit {
216 274
     this.isLoading = true;
217 275
     this.changeInpSubject.next([type, model, e]);
218 276
   }
219
-
277
+	// 搜索巡检点
278
+	changePollingInp( e) {
279
+    this.isLoading = true;
280
+    this.changePollingInpSubject.next(e);
281
+  }
282
+	
220 283
   // 获取巡检计划
221 284
   inspectionPlanSearchList: any = []; //所有所属科室(搜索)
222 285
   getIncidentPlans(type, keyword, init = false) {

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

@@ -183,7 +183,7 @@ export class DistributionUserEvaluateStatisticsComponent implements OnInit, Afte
183 183
       postData.sort = `${this.sortCurrentKey} ${this.sortCurrentValue === "ascend" ? `asc` : `desc`}`
184 184
     }
185 185
     this.mainService
186
-      .postExportCustom("itsm/export", "userDegreeTransOrder", postData)
186
+      .postExportCustom("itsm/exportMergeTitle", "userDegreeTransOrder", postData)
187 187
       .subscribe((data) => {
188 188
         this.message.remove(this.excelExportLoading);
189 189
         this.excelExportLoading = false;

+ 1 - 1
src/app/views/questionnaire-answer/questionnaire-answer.component.html

@@ -4,7 +4,7 @@
4 4
       <div nz-col nzXl="18" class="list-template__searchBox">
5 5
 				<div class="list-template__searchItem">
6 6
 				  <span class="label width-105">登记时间区间:</span>
7
-				  <nz-range-picker nzShowTime [(ngModel)]="dateRange" (ngModelChange)="changeDate($event)"></nz-range-picker>
7
+				  <nz-range-picker nzShowTime [(ngModel)]="dateRange" (nzOnCalendarChange)="onCalendarChangeDate($event)" (ngModelChange)="changeDate($event)"></nz-range-picker>
8 8
 				</div>
9 9
 				<nz-select [(ngModel)]="monthValue" nzAllowClear nzPlaceHolder="请选择" (ngModelChange)="changeMonth($event)">
10 10
 					<nz-option nzValue="1" nzLabel="本月"></nz-option>

+ 18 - 2
src/app/views/questionnaire-answer/questionnaire-answer.component.ts

@@ -86,6 +86,17 @@ export class QuestionnaireAnswerComponent implements OnInit {
86 86
 	  this.dateRange = [this.startDate,this.endDate]
87 87
 	}
88 88
 	
89
+	onCalendarChangeDate(dateArr){
90
+	  console.log(dateArr)
91
+	  if(dateArr.length == 2){
92
+	    let dateStart = new Date(dateArr[0]);
93
+	    let dateEnd = new Date(dateArr[1]);
94
+	    dateStart.setHours(0,0,0);
95
+	    dateEnd.setHours(23,59,59);
96
+	    this.dateRange = [dateStart,dateEnd];
97
+	  }
98
+	}
99
+	
89 100
 	monthValue:any;
90 101
 	// 快捷选择 1:本月 2:上月
91 102
 	changeMonth(e){
@@ -95,12 +106,16 @@ export class QuestionnaireAnswerComponent implements OnInit {
95 106
 			this.startDate = format(lastmonthstartdate, 'yyyy-MM-dd HH:mm:ss');
96 107
 			this.endDate = format(lastmonthenddate, 'yyyy-MM-dd HH:mm:ss');
97 108
 			this.dateRange = [this.startDate,this.endDate]
98
-		}else{
109
+		}else if(e==1){
99 110
 			let thismonthstartdate = this.dateService.date().thisMonthStartDate;
100 111
 			let thismonthenddate = this.dateService.date().thisMonthEndDate;
101 112
 			this.startDate = format(thismonthstartdate, 'yyyy-MM-dd HH:mm:ss');
102 113
 			this.endDate = format(thismonthenddate, 'yyyy-MM-dd HH:mm:ss');
103 114
 			this.dateRange = [this.startDate,this.endDate]
115
+		}else{
116
+			this.startDate = null;
117
+			this.endDate = null;
118
+			this.dateRange = []
104 119
 		}
105 120
 	}
106 121
 	
@@ -109,7 +124,8 @@ export class QuestionnaireAnswerComponent implements OnInit {
109 124
 		this.pageIndex = 1;
110 125
 		this.startDate = null;
111 126
 		this.endDate = null;
112
-		this.dateRange = []
127
+		this.dateRange = [];
128
+		this.monthValue = null;
113 129
 		this.getList(1);
114 130
 	}
115 131
 	

+ 1 - 1
src/app/views/questionnaire-management/questionnaire-management.component.html

@@ -22,7 +22,7 @@
22 22
           </thead>
23 23
           <tbody>
24 24
             <tr *ngFor="let data of listOfData;let i = index">
25
-              <td>{{i+1}}</td>
25
+							<td>{{i+(pageIndex-1) * pageSize + 1}}</td>
26 26
               <td>{{data.title}}</td>
27 27
               <td>{{data.surveyTarget?data.surveyTarget.name:'无'}}</td>
28 28
               <td>{{data.createTime|date:'yyyy-MM-dd HH:mm'}}</td>

+ 8 - 3
src/app/views/specimen-search/specimen-search.component.html

@@ -121,7 +121,7 @@
121 121
         </div>
122 122
         <div class="list-template__searchItem">
123 123
           <span class="label">收取时间:</span>
124
-          <nz-range-picker nzShowTime [(ngModel)]="searchCriteria.dateRange" (ngModelChange)="changeDate($event)"></nz-range-picker>
124
+          <nz-range-picker nzShowTime [(ngModel)]="searchCriteria.dateRange" (nzOnCalendarChange)="onCalendarChangeDate($event)" (ngModelChange)="changeDate($event)"></nz-range-picker>
125 125
         </div>
126 126
 
127 127
       </div>
@@ -159,7 +159,7 @@
159 159
           <tr class="thead">
160 160
             <th nzWidth="4%">序号</th>
161 161
             <th>科室信息</th>
162
-            <th nzWidth="7%">患者姓名</th>
162
+            <th nzWidth="7%">患者信息</th>
163 163
             <th>标本信息</th>
164 164
             <th>采集信息</th>
165 165
             <th nzWidth="8%">标本类型</th>
@@ -177,7 +177,12 @@
177 177
 							<div>{{ data.sickRoom ? data.sickRoom.dept : "-" }}</div>
178 178
 							<div>{{ data.checkDept ? data.checkDept.dept : "-" }}</div>
179 179
 						</td>
180
-            <td>{{ data.patientName}}<span *ngIf="data.bedNum">({{data.bedNum}})</span><br>{{data.residenceNo}}</td>
180
+            <td>
181
+							<div>{{data.residenceNo}}</div>
182
+							<div>
183
+								{{ data.patientName}}<span *ngIf="data.bedNum">({{data.bedNum}})</span>
184
+							</div>
185
+						</td>
181 186
             <td>
182 187
 							<div>{{ data.scode || "-" }}</div>
183 188
 							<div>{{ data.specimenDesc || "-" }}</div>

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

@@ -770,6 +770,10 @@
770 770
           <div class="turnoff">
771 771
             <label nz-checkbox [(ngModel)]="carryingCourses[indexs].handoverSwitch">是否必填交接人信息</label>
772 772
           </div>
773
+					<!-- 是否支持多院区 -->
774
+					<!-- <div class="turnoff" *ngIf="departmentStrategy.idv=='20047__3' || departmentStrategy.idv=='20048__4'">
775
+					  <label nz-checkbox [(ngModel)]="carryingCourses[indexs].multipleHospital">是否支持多院区</label>
776
+					</div> -->
773 777
           <!-- 是否支持拍照签到 -->
774 778
           <div class="turnoff" *ngIf="currentChoice.associationType.value == 'other'&&indexs==0">
775 779
             <label nz-checkbox [nzDisabled]="carryingCourses[indexs].actionsSwitch == 1" [(ngModel)]="carryingCourses[indexs].photoSwitch">是否支持拍照签到</label>

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

@@ -2310,8 +2310,8 @@ export class TaskTypeManagementComponent implements OnInit {
2310 2310
     this.dept_types = true;
2311 2311
   }
2312 2312
   //默认科室选择
2313
+	selectValue:boolean = false;
2313 2314
   depa(data, e, doing?): void {
2314
-    console.log(e, "-----------------------1111");
2315 2315
     let arr = e.split("__");
2316 2316
     if (doing === "clear") {
2317 2317
       if(e){
@@ -2324,6 +2324,7 @@ export class TaskTypeManagementComponent implements OnInit {
2324 2324
         data.value = null;
2325 2325
       }
2326 2326
     }
2327
+		console.log(999999, data.idv);
2327 2328
     let value = arr[1];
2328 2329
     if (value) {
2329 2330
       if (value == "2") {

+ 2 - 2
src/app/views/users-management/users-management.component.html

@@ -264,8 +264,8 @@
264 264
 </app-dialog-delete>
265 265
 
266 266
 <!-- 恢复账号 -->
267
-<app-dialog-delete [delModal]="recoverModal" (hideDelModalEvent)="hideRecoverModal()" [btnLoading]="recoverLoading"
268
-  (confirmDelEvent)="confirmRecover()" content="您确认恢复此用户吗?" confirmTxt="是" cancelTxt="否">
267
+<app-dialog-delete [delModal]="recoverModal" [btnLoading]="recoverLoading"
268
+  (confirmDelEvent)="confirmRecover()" (cancelDelEvent)="hideRecoverModal()" content="您确认恢复此用户吗?" confirmTxt="是" cancelTxt="否">
269 269
 </app-dialog-delete>
270 270
 
271 271
 <!-- 重置密码模态框 -->