瀏覽代碼

Merge branch 'master' into develop

seimin 1 周之前
父節點
當前提交
4d755acd79

+ 24 - 2
src/app/components/configurationCenter/configuration-message/configuration-message.component.ts

@@ -129,7 +129,6 @@ export class ConfigurationMessageComponent implements OnInit {
129 129
         "[$患者信息$]",
130 130
         "[$建单人$]",
131 131
       ];
132
-
133 132
       if(data.noticeCode === 'pil_sign_user'){
134 133
         // 驻点人员
135 134
         this.varArr = [
@@ -160,7 +159,30 @@ export class ConfigurationMessageComponent implements OnInit {
160 159
           "[$签到科室$]",
161 160
           "[$签到时间$]",
162 161
         ];
163
-      }
162
+      }else if(data.noticeCode === 'inspect_trans_receiver' || data.noticeCode ==='inspect_trans_transUser'){
163
+				this.varArr = [
164
+				  "[$患者信息$]",
165
+				  "[$患者联系电话$]",
166
+				  "[$工单单号$]",
167
+				  "[$转派人$]",
168
+				  "[$接收人$]",
169
+				  "[$任务类型$]",
170
+				  "[$发起时间$]",
171
+				  "[$申请科室$]",
172
+				  "[$起点科室$]",
173
+				  "[$终点科室$]",
174
+				];
175
+			}else if(data.noticeCode === 'work_order_remind' || data.noticeCode ==='work_order_remind_freedom'){
176
+				this.varArr = [
177
+				  "[$任务类型$]",
178
+				  "[$工单单号$]",
179
+					"[$申请科室$]",
180
+					"[$起点科室$]",
181
+					"[$终点科室$]",
182
+					"[$发起时间$]",
183
+				  "[$是否紧急$]"
184
+				];
185
+			}
164 186
 
165 187
       this.currentIndex = 1;
166 188
     }else if(this.wechatConfigTypeValue === 'mdv2_handle'){

+ 8 - 0
src/app/components/display-form/display-form.component.html

@@ -97,6 +97,14 @@
97 97
 				    </nz-radio-group>
98 98
 				  </div>
99 99
 				</div>
100
+				<div nz-row>
101
+				  <div nz-col nzSpan="4">查询时间范围:</div>
102
+				  <div nz-col nzSpan="4">
103
+				    <nz-input-group nzAddOnAfter="天">
104
+				      <nz-input-number class="w100" [(ngModel)]="searchDay" [nzStep]="1" [nzMin]="1" [nzMax]="15" placeholder="请输入查询天数"></nz-input-number>
105
+				    </nz-input-group>
106
+				  </div>
107
+				</div>
100 108
       </div>
101 109
       <div class="conditions display_flex align-items_center justify-content_flex-center" *ngIf="isLoading">
102 110
         <nz-spin nzSimple></nz-spin>

+ 8 - 2
src/app/components/display-form/display-form.component.ts

@@ -32,6 +32,7 @@ export class DisplayFormComponent implements OnInit {
32 32
 	leftMenuLocation: any = 2; //左侧菜单
33 33
 	rightMenuLocation: any = 2; //右侧菜单
34 34
 	showSource: any = 2; //是否展示来源
35
+	searchDay: any = 1; //查询时间范围
35 36
   ngOnInit() {
36 37
 		console.log(778778, this.hsmsData)
37 38
     this.initControlView();
@@ -73,10 +74,10 @@ export class DisplayFormComponent implements OnInit {
73 74
 				this.leftMenuLocation = data.list[0].leftMenuLocation || 2;
74 75
 				this.rightMenuLocation = data.list[0].rightMenuLocation || 2;
75 76
 				this.showSource = data.list[0].showSource || 2;
76
-				
77
+				this.searchDay = data.list[0].searchDay || 1;
77 78
       });
78 79
   }
79
-
80
+	
80 81
   // 保存展示形式
81 82
   saveLoading: boolean = false; //保存按钮loading状态
82 83
   saveOrderScope() {
@@ -88,6 +89,10 @@ export class DisplayFormComponent implements OnInit {
88 89
       this.message.warning('工单刷新时间必填!')
89 90
       return;
90 91
     }
92
+		if(this.searchDay % 1 !== 0){
93
+			this.message.warning('查询时间范围必须是整数!')
94
+			return
95
+		}
91 96
     this.saveLoading = true;
92 97
     let wn;
93 98
     switch (this.patientCareCol) {
@@ -114,6 +119,7 @@ export class DisplayFormComponent implements OnInit {
114 119
 				leftMenuLocation: this.leftMenuLocation,
115 120
 				rightMenuLocation: this.rightMenuLocation,
116 121
 				showSource: this.showSource,
122
+				searchDay: this.searchDay
117 123
       },
118 124
     };
119 125
     if (this.controlView["id"]) {

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

@@ -531,8 +531,8 @@ export class MainService {
531 531
     });
532 532
   }
533 533
   // 护士端定时预约工单立即执行
534
-  executeNow(id) {
535
-    return this.http.get(host.host + "/api/directStartOrder/" + id, {
534
+  executeNow(id, data) {
535
+    return this.http.post(host.host + "/api/directStartOrder/" + id, data, {
536 536
       headers: this.headers,
537 537
     });
538 538
   }
@@ -1294,4 +1294,9 @@ export class MainService {
1294 1294
 	autoMake(model, count, data){
1295 1295
 		return this.http.post(host.host + `/testData/make/${model}/${count}`, data);
1296 1296
 	}
1297
+	
1298
+	// 调度台一键派单
1299
+	oneClickAssignOrders(data){
1300
+		return this.http.post(host.host + `/ser/oneClickAssignOrders`, data);
1301
+	}
1297 1302
 }

+ 17 - 12
src/app/share/businessData-detail-modal/businessData-detail-modal.component.html

@@ -143,18 +143,19 @@
143 143
         <thead>
144 144
           <tr class="thead">
145 145
             <th nzWidth="4%">序号</th>
146
-            <th nzWidth="8%">申请科室</th>
147
-            <th nzWidth="8%">患者姓名</th>
148
-            <th nzWidth="8%">标本编码</th>
149
-            <th nzWidth="8%">检验项目</th>
150
-            <th nzWidth="8%">标本类型</th>
151
-            <th nzWidth="8%">状态</th>
152
-            <th nzWidth="8%">收取时间</th>
153
-            <th nzWidth="8%">收取人</th>
154
-            <th nzWidth="8%">中转时间</th>
155
-            <th nzWidth="8%">送达时间</th>
156
-            <th nzWidth="8%">送达人</th>
157
-            <th nzWidth="8%">终点科室</th>
146
+            <th >申请科室</th>
147
+            <th >患者姓名</th>
148
+            <th >标本编码</th>
149
+            <th >检验项目</th>
150
+						<th >核收信息</th>
151
+            <th >标本类型</th>
152
+            <th >状态</th>
153
+            <th >收取时间</th>
154
+            <th >收取人</th>
155
+            <th >中转时间</th>
156
+            <th >送达时间</th>
157
+            <th >送达人</th>
158
+            <th >终点科室</th>
158 159
           </tr>
159 160
         </thead>
160 161
         <tbody>
@@ -166,6 +167,10 @@
166 167
             <td>{{ data.patientName}}<span *ngIf="data.bedNum">({{data.bedNum}})</span><br>{{data.residenceNo || data.patientNo}}</td>
167 168
             <td class="underline" (click)="viewSpecimenHistory(data)">{{ data.scode || "-" }}</td>
168 169
             <td>{{ data.specimenDesc || "-" }}</td>
170
+						<td>
171
+							<div>{{ data.checkCollectUserDTO ? data.checkCollectUserDTO.name : "" }}</div>
172
+							<div>{{ data.checkCollectTime|date:'yyyy-MM-dd HH:mm:ss' || "" }}</div>
173
+						</td>
169 174
             <td>{{ data.stype ? data.stype.name : "-" }}<span *ngIf="data.tubeType">,</span>{{data.tubeType && data.tubeType.name}}</td>
170 175
             <td>{{ data.speState ? data.speState.name : "-" }}</td>
171 176
             <td>{{ data.arriveTime || "-" }}</td>

+ 15 - 1
src/app/views/fuwutai/fuwutai.component.html

@@ -67,6 +67,11 @@
67 67
       </div>
68 68
     </div>
69 69
   </div>
70
+	<div *ngIf="hurseInfoHiding==1 && unassignedList.length && !loading1">
71
+		<button nz-button nzType="primary" (click)="allSendOrders()">
72
+		  一键派单
73
+		</button>
74
+	</div>
70 75
   <!-- 状态工单 -->
71 76
   <div class="lists_box" [ngClass]="{ top185: hurseInfoHiding != 1 }">
72 77
     <!-- 未分派/未受理 -->
@@ -2053,7 +2058,16 @@
2053 2058
 	  cancelTxt="否"
2054 2059
 	  (cancelDelEvent)="hideRepeatModal()"
2055 2060
 	></app-dialog-delete>
2056
-
2061
+	
2062
+	<!-- 一键派单 -->
2063
+	<app-dialog-delete
2064
+	  [delModal]="sendModal"
2065
+	  (hideDelModalEvent)="closeSecdModal()"
2066
+	  [btnLoading]="btnLoading"
2067
+	  (confirmDelEvent)="confirmSecd()"
2068
+	  content="您确认一键派单吗?系统会根据工作分配方案自动派单给指定人员"
2069
+	></app-dialog-delete>
2070
+	
2057 2071
 	<!-- 是否限制业务发起时间模态框 -->
2058 2072
 	<app-dialog-delete [delModal]="limitTimeModal" (hideDelModalEvent)="hideLimitTimeModal()" [btnLoading]="limitTimeLoading"
2059 2073
 	(confirmDelEvent)="confirmLimitTime()" [content]="limitTimeInfo" confirmTxt="继续建单" [isShowConfirm]="isShowConfirm" [isShowConfirmInfo]="isShowConfirmInfo"></app-dialog-delete>

+ 84 - 20
src/app/views/fuwutai/fuwutai.component.ts

@@ -185,7 +185,54 @@ export class FuwutaiComponent implements OnInit {
185 185
   // 初始化增删改按钮
186 186
   coopBtns: any = {};
187 187
 	validateZwForm: FormGroup; //新增政务值班表单
188
-
188
+	
189
+	// 一键派单
190
+	sendModal:boolean = false;
191
+	allSendOrders(){
192
+		this.sendModal = true;
193
+	}
194
+	
195
+	//  一键派单取消
196
+	closeSecdModal(){
197
+		this.sendModal = false;
198
+	}
199
+	
200
+	// 一键派单提交
201
+	confirmSecd(){
202
+		let types = "";
203
+		this.user.user.scope.typeIds.forEach((e) => {
204
+		  types += e.id + ",";
205
+		});
206
+		types = types.slice(0, types.length - 1);
207
+		
208
+		let postData = {
209
+			workOrder: {
210
+				serTaskTypes: types || undefined,
211
+				serGdState: 1,
212
+				range: this.orderScopeRadio,
213
+				platform: 3,
214
+				searchDays: this.searchDay || 1,
215
+			},
216
+			hosId: this.checkedHos,
217
+			idx: 0,
218
+			sum: 1
219
+		}
220
+		if (this.unassignedBuilding.length) {
221
+		  postData.workOrder["deptIds"] = this.unassignedBuilding.toString();
222
+		}
223
+		
224
+		this.btnLoading = true
225
+		this.mainService.oneClickAssignOrders(postData).subscribe((result:any) =>{
226
+		  if(result.status == 200){
227
+				this.btnLoading = false
228
+		    this.closeSecdModal();
229
+		    this.showPromptModal("派单", true, "");
230
+		  }else{
231
+				this.showPromptModal('派单', false, result.msg);
232
+			}
233
+		});
234
+	}
235
+	
189 236
   // 获取院区配置配置,是否核酸打印
190 237
   isShowNucleicAcidPrinting = false;
191 238
   getHospitalConfigList(key) {
@@ -252,7 +299,7 @@ export class FuwutaiComponent implements OnInit {
252 299
         serGdState: 1,
253 300
         range: this.orderScopeRadio,
254 301
         platform: 3,
255
-        searchDays: 1,
302
+        searchDays: this.searchDay,
256 303
         keyWord: "",
257 304
       },
258 305
       idx: 0,
@@ -1976,7 +2023,7 @@ export class FuwutaiComponent implements OnInit {
1976 2023
         // serGdState: 4,
1977 2024
         range: "0",
1978 2025
         platform: 3,
1979
-        searchDays: 100,
2026
+        searchDays: this.searchDay,
1980 2027
 				createDept: this.applyDept
1981 2028
         // startDept: {
1982 2029
         //   id: id,
@@ -2378,7 +2425,7 @@ export class FuwutaiComponent implements OnInit {
2378 2425
             serGdState: stateId,
2379 2426
             range: this.orderScopeRadio,
2380 2427
             platform: 3,
2381
-            searchDays: 1,
2428
+            searchDays: this.searchDay,
2382 2429
             keyWord: keyWords
2383 2430
           },
2384 2431
           idx: 0,
@@ -5634,13 +5681,18 @@ export class FuwutaiComponent implements OnInit {
5634 5681
         if (data.data && Array.isArray(data.data.data) && data.data.data.length>0) {
5635 5682
           let arr = [];
5636 5683
           data.data.data.forEach((e) => {
5637
-						e.newTime = format(new Date(e.yyTime), 'MM-dd HH:mm')
5638
-						if(e.endCheckTime){
5639
-							e.newTime2 = format(new Date(e.endCheckTime), 'HH:mm')
5640
-							e.yyEndTime = e.newTime + '--' + e.newTime2
5684
+						if(e.yyTime){
5685
+							e.newTime = format(new Date(e.yyTime), 'MM-dd HH:mm')
5686
+							if(e.endCheckTime){
5687
+								e.newTime2 = format(new Date(e.endCheckTime), 'HH:mm')
5688
+								e.yyEndTime = e.newTime + '--' + e.newTime2
5689
+							}else{
5690
+								e.yyEndTime = e.newTime
5691
+							}
5641 5692
 						}else{
5642
-							e.yyEndTime = e.newTime
5693
+							e.yyEndTime = null
5643 5694
 						}
5695
+
5644 5696
             arr.push({
5645 5697
               execDeptId: e.execDept.id,
5646 5698
               yyTime: e.yyTime,
@@ -6354,6 +6406,7 @@ export class FuwutaiComponent implements OnInit {
6354 6406
 	showSource:any = 0;
6355 6407
 	leftStyle:any;
6356 6408
 	rightStyle:any;
6409
+	searchDay:any = 1;
6357 6410
   initControlView() {
6358 6411
     let postData = {
6359 6412
       controlView: {},
@@ -6369,6 +6422,7 @@ export class FuwutaiComponent implements OnInit {
6369 6422
           workerInfoTime: 60,
6370 6423
           unsendOrderVoice: true,
6371 6424
           orderType: 'priority',
6425
+					searchDay: 1
6372 6426
         };
6373 6427
 
6374 6428
         this.patientCareCol = 7;
@@ -6381,6 +6435,7 @@ export class FuwutaiComponent implements OnInit {
6381 6435
 				this.leftMenuLocation = this.controlView.leftMenuLocation || 2
6382 6436
 				this.rightMenuLocation = this.controlView.rightMenuLocation || 2
6383 6437
 				this.showSource = this.controlView.showSource || 0
6438
+				this.searchDay = this.controlView.searchDay || 1
6384 6439
 				if(this.leftMenuLocation==1){
6385 6440
 					this.leftStyle = {
6386 6441
 						'position': 'fixed',
@@ -7281,14 +7336,18 @@ export class FuwutaiComponent implements OnInit {
7281 7336
         if(data.data && Array.isArray(data.data.data) && data.data.data.length>0) {
7282 7337
           let arr = [];
7283 7338
           data.data.data.forEach((e) => {
7284
-						e.newTime = format(new Date(e.yyTime), 'MM-dd HH:mm')
7285
-						if(e.endCheckTime){
7286
-							e.newTime2 = format(new Date(e.endCheckTime), 'HH:mm')
7287
-							e.yyEndTime = e.newTime + '--' + e.newTime2
7339
+						if(e.yyTime){
7340
+							e.newTime = format(new Date(e.yyTime), 'MM-dd HH:mm')
7341
+							if(e.endCheckTime){
7342
+								e.newTime2 = format(new Date(e.endCheckTime), 'HH:mm')
7343
+								e.yyEndTime = e.newTime + '--' + e.newTime2
7344
+							}else{
7345
+								e.yyEndTime = e.newTime
7346
+							}
7288 7347
 						}else{
7289
-							e.yyEndTime = e.newTime
7348
+							e.yyEndTime = null
7290 7349
 						}
7291
-
7350
+		
7292 7351
             arr.push({
7293 7352
               execDeptId: e.execDept.id,
7294 7353
               yyTime: e.yyTime,
@@ -7354,13 +7413,18 @@ export class FuwutaiComponent implements OnInit {
7354 7413
       if (data.data && Array.isArray(data.data.data) && data.data.data.length>0) {
7355 7414
         let arr = [];
7356 7415
         data.data.data.forEach((e) => {
7357
-					e.newTime = format(new Date(e.yyTime), 'MM-dd HH:mm')
7358
-					if(e.endCheckTime){
7359
-						e.newTime2 = format(new Date(e.endCheckTime), 'HH:mm')
7360
-						e.yyEndTime = e.newTime + '--' + e.newTime2
7416
+					if(e.yyTime){
7417
+						e.newTime = format(new Date(e.yyTime), 'MM-dd HH:mm')
7418
+						if(e.endCheckTime){
7419
+							e.newTime2 = format(new Date(e.endCheckTime), 'HH:mm')
7420
+							e.yyEndTime = e.newTime + '--' + e.newTime2
7421
+						}else{
7422
+							e.yyEndTime = e.newTime
7423
+						}
7361 7424
 					}else{
7362
-						e.yyEndTime = e.newTime
7425
+						e.yyEndTime = null
7363 7426
 					}
7427
+
7364 7428
           arr.push({
7365 7429
             execDeptId: e.execDept.id,
7366 7430
             yyTime: e.yyTime,

+ 49 - 45
src/app/views/hushijiandan/hushijiandan.component.html

@@ -1051,16 +1051,15 @@
1051 1051
                       <thead>
1052 1052
                         <tr class="thead">
1053 1053
                           <th nzWidth="7%">序号</th>
1054
-                          <th nzWidth="8%">标本类型</th>
1055
-                          <th nzWidth="8%">状态</th>
1056
-                          <th nzWidth="10%">标本编码</th>
1057
-                          <th nzWidth="8%">患者姓名</th>
1058
-                          <th nzWidth="8%">床号</th>
1059
-                          <th nzWidth="12%">收取扫描时间</th>
1060
-                          <th nzWidth="8%">收取人</th>
1061
-                          <th nzWidth="10%">送达目标科室</th>
1062
-                          <th nzWidth="12%">送达到达时间</th>
1063
-                          <th nzWidth="9%"></th>
1054
+                          <th nzWidth="10%">患者信息</th>
1055
+                          <th nzWidth="11%">标本信息</th>
1056
+                          <th nzWidth="11%">标本类型</th>
1057
+                          <th nzWidth="10%">状态</th>
1058
+                          <th nzWidth="11%">采集信息</th>
1059
+                          <th nzWidth="11%">收取信息</th>
1060
+                          <th nzWidth="10%">中转时间</th>
1061
+                          <th nzWidth="10%">送达时间</th>
1062
+                          <th nzWidth="9%">操作</th>
1064 1063
                         </tr>
1065 1064
                       </thead>
1066 1065
                       <tbody>
@@ -1071,25 +1070,30 @@
1071 1070
                           "
1072 1071
                         >
1073 1072
                           <td>{{i+(historySpecimenPageIndex-1) * historySpecimenPageSize + 1}}</td>
1074
-                          <td>{{ data.stype ? data.stype.name : "-" }}</td>
1075 1073
                           <td>
1076
-                            {{ data.speState ? data.speState.name : "-" }}
1074
+                          	<div>{{data.residenceNo || data.patientNo}}</div>
1075
+                          	<div>
1076
+                          		{{ data.patientName}}<span *ngIf="data.bedNum">({{data.bedNum}})</span>
1077
+                          	</div>
1077 1078
                           </td>
1078
-                          <td>{{ data.scode || "-" }}</td>
1079
-                          <td>{{ data.patientName || "-" }}</td>
1080
-                          <td>{{ data.bedNum || "-" }}</td>
1081
-                          <td>{{ data.arriveTime || "-" }}</td>
1082
-                          <td>{{ data.receiverName || "-" }}</td>
1083 1079
                           <td>
1084
-                            {{
1085
-                              data.checkDept
1086
-                                ? deptDisplay == 2
1087
-                                  ? data.checkDept.deptalias
1088
-                                  : data.checkDept.dept
1089
-                                : "-"
1090
-                            }}
1080
+                          	<div>{{ data.scode || "-" }}</div>
1081
+                          	<div>{{ data.specimenDesc || "-" }}</div>
1082
+                          </td>
1083
+													<td>{{ data.stype ? data.stype.name : "-" }}<span *ngIf="data.tubeType">,</span>{{data.tubeType && data.tubeType.name}}</td>
1084
+													<td>{{ data.speState ? data.speState.name : "-" }}</td>
1085
+                          <td>
1086
+                          	<div>{{ data.collectNurseName || "-" }}</div>
1087
+                          	<div>{{ data.printDate || "-" }}</div>
1088
+                          </td>
1089
+                          <td>
1090
+                          	<div>{{ data.receiverName }}<ng-container *ngIf="data.packageId">-<span class="underline" (click)="viewSpe(data.packageId)">包</span></ng-container></div>
1091
+                          	<div>{{ data.arriveTime || "-" }}</div>
1092
+                          </td>
1093
+                          <td>{{ data.transTime || '-' }}</td>
1094
+                          <td>
1095
+                          	{{ data.sendTime || '-' }}
1091 1096
                           </td>
1092
-                          <td>{{ data.sendTime || "-" }}</td>
1093 1097
                           <td>
1094 1098
                             <button class="btn1 mr8 mb8 mt8" (click)="viewSpecimenHistory(data)">查看</button>
1095 1099
                           </td>
@@ -1157,12 +1161,13 @@
1157 1161
                       <thead>
1158 1162
                         <tr class="thead">
1159 1163
                           <th nzWidth="7%">序号</th>
1160
-                          <th nzWidth="15%">药单单号</th>
1161
-                          <th nzWidth="18%">发药科室</th>
1162
-                          <th nzWidth="15%">申请时间</th>
1163
-                          <th nzWidth="15%">记账时间</th>
1164
-                          <th nzWidth="15%">状态</th>
1165
-                          <th nzWidth="15%">查看过程</th>
1164
+                          <th nzWidth="13%">请领单号</th>
1165
+                          <th nzWidth="13%">发药科室</th>
1166
+                          <th nzWidth="10%">状态</th>
1167
+													<th nzWidth="15%">收取信息</th>
1168
+													<th nzWidth="15%">送达信息</th>
1169
+													<th nzWidth="13%">送达交接人</th>
1170
+                          <th nzWidth="15%">操作</th>
1166 1171
                         </tr>
1167 1172
                       </thead>
1168 1173
                       <tbody>
@@ -1174,20 +1179,19 @@
1174 1179
                         >
1175 1180
                           <td>{{i+(historyDrugsbagPageIndex-1) * historyDrugsbagPageSize + 1}}</td>
1176 1181
                           <td>{{ data.packid || "-" }}</td>
1177
-                          <td>
1178
-                            {{
1179
-                              data.launch
1180
-                                ? deptDisplay == 2
1181
-                                  ? data.launch.deptalias
1182
-                                  : data.launch.dept
1183
-                                : "-"
1184
-                            }}
1185
-                          </td>
1186
-                          <td>{{ data.creatTime || "-" }}</td>
1187
-                          <td>{{ data.bagTime || "-" }}</td>
1188
-                          <td>
1189
-                            {{ data.drugsState ? data.drugsState.name : "-" }}
1190
-                          </td>
1182
+													<td>{{ data.launch?.dept}}</td>
1183
+													<td>
1184
+													  {{ data.drugsState ? data.drugsState.name : "-" }}
1185
+													</td>
1186
+													<td>
1187
+														<div>{{ data.deliveryUser?.name }}</div>
1188
+														<div>{{ data.packTime }}</div>
1189
+													</td>
1190
+													<td>
1191
+														<div>{{ data.sendUserDTO?.name }}</div>
1192
+														<div>{{ data.signtime }}</div>
1193
+													</td>
1194
+                          <td>{{ data.sendHandoverUserDTO?.name }}</td>
1191 1195
                           <td>
1192 1196
                             <button class="btn1 mr8 mb8 mt8" (click)="viewDrugsbagHistory(data)">查看过程</button>
1193 1197
                           </td>

+ 25 - 14
src/app/views/hushijiandan/hushijiandan.component.ts

@@ -181,9 +181,12 @@ export class HushijiandanComponent implements OnInit {
181 181
 	surgeryDataId: any; //手术id
182 182
 	patientDataId: any; //病人id
183 183
 	smartShow:boolean = false; //智能客服弹框
184
+	userId:any;
185
+	
184 186
   ngOnInit() {
185 187
     this.getCoopBtns();
186 188
     this.currentHospital = this.tool.getCurrentHospital();
189
+		this.userId = this.tool.getCurrentUserId();
187 190
     this.tool.getDeptDisplay().subscribe((result) => {
188 191
       if (result.status == 200) {
189 192
         this.deptDisplay = result.list[0].valueconfig;
@@ -786,7 +789,7 @@ export class HushijiandanComponent implements OnInit {
786 789
   // 确认立即执行
787 790
   confirmExec() {
788 791
     this.btnLoading = true;
789
-    this.mainService.executeNow(this.coopItem.id).subscribe((result: any) => {
792
+    this.mainService.executeNow(this.coopItem.id, {userId: this.userId}).subscribe((result: any) => {
790 793
       this.closeExecModal();
791 794
       if (result.status == 200) {
792 795
         this.showPromptModal("立即执行", true, "");
@@ -3512,15 +3515,19 @@ export class HushijiandanComponent implements OnInit {
3512 3515
         if (data.status == 200 && data.data && data.data.length) {
3513 3516
           let arr = [];
3514 3517
           data.data.forEach((e) => {
3515
-						e.yyEndTime = e.yyTime
3516
-						e.newTime = format(new Date(e.yyTime), 'MM-dd HH:mm')
3517
-						if(e.endCheckTime){
3518
-							e.newTime2 = format(new Date(e.endCheckTime), 'HH:mm')
3519
-							e.yyEndTime = e.newTime + '--' + e.newTime2
3518
+						if(e.yyTime){
3519
+							e.yyEndTime = e.yyTime
3520
+							e.newTime = format(new Date(e.yyTime), 'MM-dd HH:mm')
3521
+							if(e.endCheckTime){
3522
+								e.newTime2 = format(new Date(e.endCheckTime), 'HH:mm')
3523
+								e.yyEndTime = e.newTime + '--' + e.newTime2
3524
+							}else{
3525
+								e.yyEndTime = e.newTime
3526
+							}
3520 3527
 						}else{
3521
-							e.yyEndTime = e.newTime
3522
-							// e.newTime2 = format(addMinutes(new Date(e.yyTime), this.inspectAndPatientTransportConfig.yytimeGapMinute), 'HH:mm')
3528
+							e.yyEndTime = null
3523 3529
 						}
3530
+
3524 3531
 						arr.push({
3525 3532
 						  execDeptId: e.execDept.id,
3526 3533
 						  yyTime: e.yyTime,
@@ -5707,14 +5714,18 @@ export class HushijiandanComponent implements OnInit {
5707 5714
         if (data.status == 200 && data.data && data.data.length) {
5708 5715
           let arr = [];
5709 5716
           data.data.forEach((e) => {
5710
-						e.newTime = format(new Date(e.yyTime), 'MM-dd HH:mm')
5711
-						if(e.endCheckTime){
5712
-							e.newTime2 = format(new Date(e.endCheckTime), 'HH:mm')
5713
-							e.yyEndTime = e.newTime + '--' + e.newTime2
5717
+						if(e.yyTime){
5718
+							e.newTime = format(new Date(e.yyTime), 'MM-dd HH:mm')
5719
+							if(e.endCheckTime){
5720
+								e.newTime2 = format(new Date(e.endCheckTime), 'HH:mm')
5721
+								e.yyEndTime = e.newTime + '--' + e.newTime2
5722
+							}else{
5723
+								e.yyEndTime = e.newTime
5724
+							}
5714 5725
 						}else{
5715
-							// e.newTime2 = format(addMinutes(new Date(e.yyTime), this.inspectAndPatientTransportConfig.yytimeGapMinute), 'HH:mm')
5716
-							e.yyEndTime = e.newTime
5726
+							e.yyEndTime = null
5717 5727
 						}
5728
+
5718 5729
             arr.push({
5719 5730
               execDeptId: e.execDept.id,
5720 5731
               yyTime: e.yyTime,

文件差異過大導致無法顯示
+ 2 - 2
src/app/views/inspect-info-config/inspect-info-config.component.html


+ 9 - 0
src/app/views/inspect-info-config/inspect-info-config.component.less

@@ -7,6 +7,15 @@
7 7
   background-color: #F0F2F5;
8 8
   display: flex;
9 9
   flex-direction: column;
10
+	
11
+	.red-sign{
12
+		position: absolute;
13
+		left: -12px;
14
+		top: -3px;
15
+		font-size: 22px;
16
+		color: red;
17
+	}
18
+	
10 19
   .transport-chaoshi{
11 20
     font-size: 14px;
12 21
     margin-right: 4px;

+ 1 - 1
src/app/views/inspect-search/inspect-search.component.html

@@ -72,7 +72,7 @@
72 72
             <td>{{ data.applyDept?.dept }}<br>{{ data.remark }}</td>
73 73
             <td>{{ data.execDept?.dept }}</td>
74 74
             <td>{{ data.inspectCode }}<br>{{data.inspectName}}</td>
75
-            <td>{{ data.yyEndTime }}<br>{{ data.createTime | date:'yyyy-MM-dd HH:mm:ss' }}</td>
75
+            <td class="po-re"><span *ngIf="data.upAppointmentTime!= undefined && data.upAppointmentTime==1" class="red-sign">*</span>{{ data.yyEndTime }}<br>{{ data.createTime | date:'yyyy-MM-dd HH:mm:ss' }}</td>
76 76
             <td>{{ data.inspectState?.name}}</td>
77 77
             <td>{{ data.workerName }}</td>
78 78
             <td>{{ data.patientDTO?.tripTypeDTO?.inspectMode }}<br>{{ data.patientDTO?.remark }}</td>

+ 11 - 1
src/app/views/inspect-search/inspect-search.component.less

@@ -1,4 +1,14 @@
1 1
 @import "../../../../src/theme.less";
2
+.po-re{
3
+	position: relative;
4
+	.red-sign{
5
+		position: absolute;
6
+		left: 9px;
7
+		top: 9px;
8
+		font-size: 22px;
9
+		color: red;
10
+	}
11
+}
2 12
 
3 13
 .save {
4 14
   position: fixed;
@@ -8,7 +18,7 @@
8 18
   height: 100%;
9 19
   background: rgba(0, 0, 0, 0.4);
10 20
   z-index: 99;
11
-
21
+	
12 22
   .modalBody {
13 23
     width: 350px;
14 24
     height: 220px;

+ 14 - 7
src/app/views/patient-search/patient-search.component.html

@@ -74,12 +74,12 @@
74 74
         <thead>
75 75
           <tr class="thead">
76 76
             <th nzWidth="8%">患者类别</th>
77
-            <th nzWidth="10%">患者姓名(床号)</th>
77
+            <th nzWidth="15%">患者姓名(床号)|联系电话</th>
78 78
             <th nzWidth="10%">患者标识</th>
79 79
             <th nzWidth="10%">住院号|条码号</th>
80
-            <th nzWidth="10%">院区|当前科室</th>
81
-            <th nzWidth="10%">护理等级</th>
82
-            <th nzWidth="8%">病情级别</th>
80
+            <th nzWidth="11%">院区|当前科室</th>
81
+            <th nzWidth="12%">护理等级|病情级别</th>
82
+            <!-- <th nzWidth="8%">病情级别</th> -->
83 83
             <th nzWidth="8%">性别、年龄</th>
84 84
             <th nzWidth="12%">陪检方式|注意事项</th>
85 85
             <th nzWidth="14%">操作</th>
@@ -88,12 +88,11 @@
88 88
         <tbody>
89 89
           <tr *ngFor="let data of listOfData;let i = index">
90 90
             <td>{{ data.patientType?.name }}</td>
91
-            <td>{{ data.patientName }}({{ data.bedNum }})</td>
91
+            <td>{{ data.patientName }}({{ data.bedNum }})<br>{{data.patientPhone}}</td>
92 92
             <td>{{ data.patientCode }}</td>
93 93
             <td>{{ data.residenceNo }}<br>{{ data.barCode }}</td>
94 94
             <td>{{ data.hospitalDTO?.hosName }}<br>{{ data.department?.dept }}</td>
95
-            <td>{{ data.careLevel?.name }}</td>
96
-            <td>{{ data.illnessState?.name }}</td>
95
+            <td>{{ data.careLevel?.name }}<br>{{ data.illnessState?.name }}</td>
97 96
             <td>{{ data.gender?.name }}、{{ data.age }}</td>
98 97
             <td>{{ data.tripTypeDTO?.inspectMode }}<br>{{ data.remark }}</td>
99 98
             <td>
@@ -178,6 +177,14 @@
178 177
             </nz-input-group>
179 178
           </nz-form-control>
180 179
         </nz-form-item>
180
+				<nz-form-item>
181
+				  <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="patientPhone">联系电话</nz-form-label>
182
+				  <nz-form-control nzErrorTip="请填写联系电话!">
183
+				    <nz-input-group>
184
+				      <input type="text" nz-input formControlName="patientPhone" placeholder="请填写联系电话" />
185
+				    </nz-input-group>
186
+				  </nz-form-control>
187
+				</nz-form-item>
181 188
         <nz-form-item>
182 189
           <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="hosId">院区</nz-form-label>
183 190
           <nz-form-control nzErrorTip="请选择院区!">

+ 9 - 0
src/app/views/patient-search/patient-search.component.ts

@@ -223,6 +223,7 @@ export class PatientSearchComponent implements OnInit {
223 223
 			residenceNo: ['', [Validators.required]],
224 224
 			barCode: ['', [Validators.required]],
225 225
 			bedNum: [''],
226
+			patientPhone: [''],
226 227
       hosId: [null, [Validators.required]],
227 228
       department: [null, [Validators.required]],
228 229
       careLevel: [null, [Validators.required]],
@@ -255,6 +256,7 @@ export class PatientSearchComponent implements OnInit {
255 256
           residenceNo: this.validateForm.value.residenceNo,
256 257
           barCode: this.validateForm.value.barCode,
257 258
           bedNum: this.validateForm.value.bedNum,
259
+					patientPhone: this.validateForm.value.patientPhone || undefined,
258 260
           department: {
259 261
             id: this.validateForm.value.department,
260 262
           },
@@ -285,6 +287,7 @@ export class PatientSearchComponent implements OnInit {
285 287
           residenceNo: this.validateForm.value.residenceNo,
286 288
           barCode: this.validateForm.value.barCode,
287 289
           bedNum: this.validateForm.value.bedNum,
290
+					patientPhone: this.validateForm.value.patientPhone || undefined,
288 291
           department: {
289 292
             id: this.validateForm.value.department,
290 293
           },
@@ -349,6 +352,12 @@ export class PatientSearchComponent implements OnInit {
349 352
     this.validateForm.controls.residenceNo.setValue(data.residenceNo);
350 353
     this.validateForm.controls.barCode.setValue(data.barCode);
351 354
     this.validateForm.controls.bedNum.setValue(data.bedNum);
355
+		
356
+		if(data.patientPhone){
357
+		  this.validateForm.controls.patientPhone.setValue(data.patientPhone);
358
+		}else{
359
+		  this.validateForm.controls.patientPhone.setValue(null);
360
+		}
352 361
     if(data.department){
353 362
       this.deptList = [data.department];
354 363
       this.validateForm.controls.department.setValue(data.department.id);

+ 16 - 1
src/app/views/quick-combination/quick-combination.component.html

@@ -46,7 +46,8 @@
46 46
             <th nzWidth="10%" *ngIf="queryParamsType==1">科室</th>
47 47
             <th nzWidth="8%" *ngIf="queryParamsType==1">分配人员/组</th>
48 48
             <th nzWidth="8%" *ngIf="queryParamsType==2">分配组</th>
49
-            <th nzWidth="33%">操作</th>
49
+						<th nzWidth="8%">是否发送抢单提醒</th>
50
+            <th nzWidth="25%">操作</th>
50 51
           </tr>
51 52
         </thead>
52 53
         <tbody>
@@ -75,6 +76,11 @@
75 76
               <div class="orderPlanTimeShow2" nz-tooltip nzTooltipTitle="{{data.allName?data.allName.join('、'):''}}">
76 77
                 {{data.allName?data.allName.join('、'):''}}</div>
77 78
             </td>
79
+						<td>
80
+							<div *ngIf="data.sendOrderRemind != undefined">
81
+								{{data.sendOrderRemind==1 ? '是' : '否'}}
82
+							</div>
83
+						</td>
78 84
             <td>
79 85
               <div class="coop">
80 86
                 <span (click)="addPersonModal($event,data)" *ngIf="data.ruleType == 3&&queryParamsType==1">分配人员</span>
@@ -157,6 +163,15 @@
157 163
               </nz-radio-group>
158 164
             </nz-form-control>
159 165
           </nz-form-item>
166
+					<nz-form-item>
167
+					  <nz-form-label [nzSm]="24" [nzXs]="24" nzRequired nzFor="sendOrderRemind">是否发送抢单提醒</nz-form-label>
168
+					  <nz-form-control nzErrorTip="请选择是否发送抢单提醒!">
169
+					    <nz-radio-group formControlName="sendOrderRemind">
170
+					      <label nz-radio nzValue="1">是</label>
171
+					      <label nz-radio nzValue="0">否</label>
172
+					    </nz-radio-group>
173
+					  </nz-form-control>
174
+					</nz-form-item>
160 175
           <nz-form-item *ngIf="queryParamsType == 2 && quickCombinationModel == 3">
161 176
             <nz-form-label [nzSm]="6" [nzXs]="24" [nzRequired]="requireDeptType" nzFor="deptTypeIds">选择科室类型
162 177
             </nz-form-label>

+ 8 - 1
src/app/views/quick-combination/quick-combination.component.ts

@@ -526,6 +526,11 @@ export class QuickCombinationComponent implements OnInit {
526 526
     }else{
527 527
       this.validateForm.controls.quickCombinationDispatchWeight.setValue(this.info.maxWeight);
528 528
     }
529
+		if(this.add){
530
+		  this.validateForm.controls.sendOrderRemind.setValue(null);
531
+		}else{
532
+		  this.validateForm.controls.sendOrderRemind.setValue(this.info.sendOrderRemind != undefined ? this.info.sendOrderRemind +"" : null);
533
+		}
529 534
   }
530 535
   //获取派单方式
531 536
   dispatchMethods:any[] = [];
@@ -1064,6 +1069,7 @@ export class QuickCombinationComponent implements OnInit {
1064 1069
       quickCombinationDispatchMethod: [null],
1065 1070
       quickCombinationDispatchType: [null],
1066 1071
       quickCombinationDispatchWeight: [null],
1072
+			sendOrderRemind: ['0', [Validators.required]],
1067 1073
     });
1068 1074
   }
1069 1075
   // 初始化新增form表单
@@ -1136,7 +1142,8 @@ export class QuickCombinationComponent implements OnInit {
1136 1142
         dispatchMethod: this.dispatchMethods.find(v => v.value == this.validateForm.value.quickCombinationDispatchMethod),
1137 1143
         dispatchType: this.validateForm.value.quickCombinationDispatchMethod == 2 ? (this.dispatchTypes.find(v => v.value == this.validateForm.value.quickCombinationDispatchType)) : undefined,
1138 1144
         maxWeight: (this.validateForm.value.quickCombinationDispatchMethod == 2 && this.validateForm.value.quickCombinationDispatchType == 1) ? this.validateForm.value.quickCombinationDispatchWeight : undefined,
1139
-      },
1145
+				sendOrderRemind: this.validateForm.value.sendOrderRemind
1146
+			},
1140 1147
     };
1141 1148
     console.log(this.validateForm.value.deptTypeIds);
1142 1149
     //添加科室类型字段

+ 5 - 0
src/app/views/specimen-search/specimen-search.component.html

@@ -168,6 +168,7 @@
168 168
             <th nzWidth="7%">患者信息</th>
169 169
             <th>标本信息</th>
170 170
             <th>采集信息</th>
171
+						<th>核收信息</th>
171 172
             <th nzWidth="8%">标本类型</th>
172 173
             <th nzWidth="7%">状态</th>
173 174
             <th nzShowSort nzSortKey="arrive_time" [(nzSort)]="sortCurrent.arrive_time">收取信息</th>
@@ -197,6 +198,10 @@
197 198
 							<div>{{ data.collectNurseName || "-" }}</div>
198 199
 							<div>{{ data.printDate || "-" }}</div>
199 200
 						</td>
201
+						<td> 
202
+							<div>{{ data.checkCollectUserDTO ? data.checkCollectUserDTO.name : "" }}</div>
203
+							<div>{{ data.checkCollectTime|date:'yyyy-MM-dd HH:mm:ss' || "" }}</div>
204
+						</td>
200 205
             <td>{{ data.stype ? data.stype.name : "-" }}<span *ngIf="data.tubeType">,</span>{{data.tubeType && data.tubeType.name}}</td>
201 206
             <td>{{ data.speState ? data.speState.name : "-" }}</td>
202 207
             <td>