Browse Source

药品和标本优化

seimin 2 weeks ago
parent
commit
72dfa01a9a

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

@@ -103,6 +103,11 @@
103 103
 									  <nz-form-label class="label">是否支持查看药品详情信息</nz-form-label>
104 104
 									  <nz-checkbox-group [(ngModel)]="item.postData.showDrugsBagDetails"></nz-checkbox-group>
105 105
 									</div>
106
+                  <!-- 待送达合并工单 -->
107
+									<div class="display_flex align-items_center mb8">
108
+									  <nz-form-label class="label">待送达合并工单</nz-form-label>
109
+									  <nz-checkbox-group [(ngModel)]="item.postData.drugsBagSendMergeOrder"></nz-checkbox-group>
110
+									</div>
106 111
                 </div>
107 112
                 <!-- 自动建单配置 -->
108 113
                 <div *ngIf="tabModalName=='automaticOrderCreation'">

+ 10 - 3
src/app/components/configurationCenter/configuration-drug/configuration-drug.component.ts

@@ -64,6 +64,7 @@ export class ConfigurationDrugComponent implements OnInit {
64 64
         drugsEndPhoto: [{ label:'是否开启', value: 0 }],//终点科室支持拍照留存
65 65
 				showDrugsBagTypeCount: [{ label:'是否开启', value: 0 }],//是否显示药品数、种类数
66 66
 				showDrugsBagDetails: [{ label:'是否开启', value: 0 }],//是否支持查看药品详情信息
67
+				drugsBagSendMergeOrder: [{ label:'是否开启', value: 0 }],//待送达合并工单
67 68
 				autoCreate: [{ label:'是否开启', value: 0 }], // 是否自动建单
68 69
 				autoCreateState: undefined // 药品自动建单状态
69 70
 			}
@@ -86,6 +87,7 @@ export class ConfigurationDrugComponent implements OnInit {
86 87
         drugsEndPhoto: [{ label:'是否开启', value: 0 }],//终点科室支持拍照留存
87 88
         showDrugsBagTypeCount: [{ label:'是否开启', value: 0 }],//是否显示药品数、种类数
88 89
 				showDrugsBagDetails: [{ label:'是否开启', value: 0 }],//是否支持查看药品详情信息
90
+				drugsBagSendMergeOrder: [{ label:'是否开启', value: 0 }],//待送达合并工单
89 91
 				autoCreate: [{ label:'是否开启', value: 0 }], // 是否自动建单
90 92
 				autoCreateState: undefined // 药品自动建单状态
91 93
 			}
@@ -108,6 +110,7 @@ export class ConfigurationDrugComponent implements OnInit {
108 110
         drugsEndPhoto: [{ label:'是否开启', value: 0 }],//终点科室支持拍照留存
109 111
         showDrugsBagTypeCount: [{ label:'是否开启', value: 0 }],//是否显示药品数、种类数
110 112
 				showDrugsBagDetails: [{ label:'是否开启', value: 0 }],//是否支持查看药品详情信息
113
+				drugsBagSendMergeOrder: [{ label:'是否开启', value: 0 }],//待送达合并工单
111 114
 				autoCreate: [{ label:'是否开启', value: 0 }], // 是否自动建单
112 115
 				autoCreateState: undefined // 药品自动建单状态
113 116
 			}
@@ -130,6 +133,7 @@ export class ConfigurationDrugComponent implements OnInit {
130 133
         drugsEndPhoto: [{ label:'是否开启', value: 0 }],//终点科室支持拍照留存
131 134
         showDrugsBagTypeCount: [{ label:'是否开启', value: 0 }],//是否显示药品数、种类数
132 135
 				showDrugsBagDetails: [{ label:'是否开启', value: 0 }],//是否支持查看药品详情信息
136
+				drugsBagSendMergeOrder: [{ label:'是否开启', value: 0 }],//待送达合并工单
133 137
 				autoCreate: [{ label:'是否开启', value: 0 }], // 是否自动建单
134 138
 				autoCreateState: undefined // 药品自动建单状态
135 139
 			}
@@ -152,13 +156,14 @@ export class ConfigurationDrugComponent implements OnInit {
152 156
         drugsEndPhoto: [{ label:'是否开启', value: 0 }],//终点科室支持拍照留存
153 157
         showDrugsBagTypeCount: [{ label:'是否开启', value: 0 }],//是否显示药品数、种类数
154 158
 				showDrugsBagDetails: [{ label:'是否开启', value: 0 }],//是否支持查看药品详情信息
159
+				drugsBagSendMergeOrder: [{ label:'是否开启', value: 0 }],//待送达合并工单
155 160
 				autoCreate: [{ label:'是否开启', value: 0 }], // 是否自动建单
156 161
 				autoCreateState: undefined // 药品自动建单状态
157 162
 			}
158 163
     },
159 164
   ];
160
-	
161
-	
165
+
166
+
162 167
 	// 获取药品状态
163 168
 	drugStateData:any = []
164 169
 	getDrugState(){
@@ -166,7 +171,7 @@ export class ConfigurationDrugComponent implements OnInit {
166 171
 			this.drugStateData = data
167 172
 		});
168 173
 	}
169
-	
174
+
170 175
   // 点击数据字典key
171 176
   activeDictionary:any;
172 177
   clickDictionaryKey(item){
@@ -238,6 +243,7 @@ export class ConfigurationDrugComponent implements OnInit {
238 243
 			showPatientInfo: this.activeDictionary.postData.showPatientInfo[0].checked ? 1 : 0,
239 244
 			showDrugsBagTypeCount: this.activeDictionary.postData.showDrugsBagTypeCount[0].checked ? 1 : 0,
240 245
 			showDrugsBagDetails: this.activeDictionary.postData.showDrugsBagDetails[0].checked ? 1 : 0,
246
+			drugsBagSendMergeOrder: this.activeDictionary.postData.drugsBagSendMergeOrder[0].checked ? 1 : 0,
241 247
 			autoCreate: this.activeDictionary.postData.autoCreate[0].checked ? 1 : 0,
242 248
 			autoCreateState:{
243 249
 				id:this.activeDictionary.postData.autoCreateState || undefined
@@ -339,6 +345,7 @@ export class ConfigurationDrugComponent implements OnInit {
339 345
 					this.activeDictionary.postData.showPatientInfo[0].checked = this.configs.showPatientInfo == 1;
340 346
 					this.activeDictionary.postData.showDrugsBagTypeCount[0].checked = this.configs.showDrugsBagTypeCount == 1;
341 347
 					this.activeDictionary.postData.showDrugsBagDetails[0].checked = this.configs.showDrugsBagDetails == 1;
348
+					this.activeDictionary.postData.drugsBagSendMergeOrder[0].checked = this.configs.drugsBagSendMergeOrder == 1;
342 349
 					this.activeDictionary.postData.autoCreate[0].checked = this.configs.autoCreate == 1;
343 350
 					this.activeDictionary.postData.autoCreateState = this.configs.autoCreateState && this.configs.autoCreateState.id || undefined;
344 351
 				}

+ 31 - 9
src/app/components/configurationCenter/configuration-specimen/configuration-specimen.component.html

@@ -85,19 +85,19 @@
85 85
                   <nz-form-label class="label">默认扫描标本进入标本扫描页</nz-form-label>
86 86
                   <nz-checkbox-group [(ngModel)]="defaultScanSpe"></nz-checkbox-group>
87 87
                 </div>
88
-								
88
+
89 89
 								<!-- 是否开通收取限制 -->
90 90
 								<div class="display_flex align-items_center mb8">
91 91
 								  <nz-form-label class="label">是否开通收取限制</nz-form-label>
92 92
 								  <nz-checkbox-group [(ngModel)]="speCollectLimit" (ngModelChange)="changeSpeCollect($event)"></nz-checkbox-group>
93 93
 								</div>
94
-								
94
+
95 95
 								<!-- 是否支持非起点科室收取 -->
96 96
 								<div class="display_flex align-items_center mb8" *ngIf="speCollectLimit[0].checked">
97 97
 								  <nz-form-label class="label">是否支持非起点科室收取</nz-form-label>
98 98
 								  <nz-checkbox-group [(ngModel)]="speCollectSupportNotStartDept"></nz-checkbox-group>
99 99
 								</div>
100
-								
100
+
101 101
 								<!-- 限制标本状态收取 -->
102 102
 								<div class="display_flex align-items_center mb8" *ngIf="speCollectLimit[0].checked">
103 103
 									<nz-form-label class="label">限制标本状态收取</nz-form-label>
@@ -107,7 +107,7 @@
107 107
 										</ng-container>
108 108
 									</nz-select>
109 109
 								</div>
110
-								
110
+
111 111
 								<!-- 限制终点科室收取 -->
112 112
 								<div class="display_flex align-items_center mb8" *ngIf="speCollectLimit[0].checked">
113 113
 									<nz-form-label class="label">限制终点科室收取</nz-form-label>
@@ -121,7 +121,7 @@
121 121
 									  </nz-option>
122 122
 									</nz-select>
123 123
 								</div>
124
-								
124
+
125 125
 								<!-- 限制普通或紧急收取 -->
126 126
 								<div class="display_flex align-items_center mb8" *ngIf="speCollectLimit[0].checked">
127 127
 									<nz-form-label class="label">限制普通或紧急收取</nz-form-label>
@@ -131,13 +131,13 @@
131 131
 										</ng-container>
132 132
 									</nz-select>
133 133
 								</div>
134
-								
134
+
135 135
 								<!-- 是否限制重复收取标本 -->
136 136
 								<div class="display_flex align-items_center mb8" *ngIf="speCollectLimit[0].checked">
137 137
 								  <nz-form-label class="label">是否限制重复收取标本</nz-form-label>
138 138
 									<nz-checkbox-group [(ngModel)]="speCollectLimitRepeat"></nz-checkbox-group>
139 139
 								</div>
140
-								
140
+
141 141
 								<!-- 是否限制试管类型收取标本 -->
142 142
 								<div class="display_flex align-items_center mb8" *ngIf="speCollectLimit[0].checked">
143 143
 								  <nz-form-label class="label">是否限制试管类型收取标本</nz-form-label>
@@ -147,18 +147,40 @@
147 147
 										</ng-container>
148 148
 									</nz-select>
149 149
 								</div>
150
-								
150
+
151 151
 								<!-- 是否开始收取前进入配置页 -->
152 152
 								<div class="display_flex align-items_center mb8" *ngIf="speCollectLimit[0].checked">
153 153
 								  <nz-form-label class="label">是否开始收取前进入配置页</nz-form-label>
154 154
 								  <nz-checkbox-group [(ngModel)]="speStartCollectShowConfig"></nz-checkbox-group>
155 155
 								</div>
156
-								
156
+
157 157
 								<!-- 是否允许转派 -->
158 158
 								<div class="display_flex align-items_center mb8">
159 159
 								  <nz-form-label class="label">是否允许转派</nz-form-label>
160 160
 								  <nz-checkbox-group [(ngModel)]="handoverOrder"></nz-checkbox-group>
161 161
 								</div>
162
+
163
+                <!-- 标本交接默认界面 -->
164
+                <div class="display_flex align-items_center mb8">
165
+                  <nz-form-label class="label">标本交接默认界面</nz-form-label>
166
+                  <nz-radio-group [(ngModel)]="speHandoverTubeType">
167
+                    <label nz-radio [nzValue]="1">患者</label>
168
+                    <label nz-radio [nzValue]="2">试管类型</label>
169
+                    <label nz-radio [nzValue]="3">检验标本</label>
170
+                  </nz-radio-group>
171
+                </div>
172
+
173
+                <!-- 交接是否展示试管类型 -->
174
+								<div class="display_flex align-items_center mb8">
175
+								  <nz-form-label class="label">交接是否展示试管类型</nz-form-label>
176
+								  <nz-checkbox-group [(ngModel)]="speExpandTube" (ngModelChange)="changeSpeExpandTube($event)"></nz-checkbox-group>
177
+								</div>
178
+
179
+                <!-- 是否默认展开 -->
180
+								<div class="display_flex align-items_center mb8" *ngIf="speExpandTube[0].checked">
181
+								  <nz-form-label class="label">是否默认展开</nz-form-label>
182
+								  <nz-checkbox-group [(ngModel)]="speDefaultExpandTube"></nz-checkbox-group>
183
+								</div>
162 184
               </div>
163 185
               <!-- 自动建单配置 -->
164 186
               <div *ngIf="tabModalName=='automaticOrderCreation'">

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

@@ -30,6 +30,7 @@ export class ConfigurationSpecimenComponent implements OnInit {
30 30
 	];
31 31
 
32 32
   spePackageUnionReceive:any = undefined;//是否联合标本收取
33
+  speHandoverTubeType:any = undefined;//标本交接默认界面
33 34
   spePackageModel:any = undefined;//工单模式
34 35
   drugsCreateSign:any = [{ label:'是否开启', value: 0 }];//支持建单并签到
35 36
   drugsReceiveSign:any = [{ label:'是否开启', value: 0 }];//支持接单并签到
@@ -51,6 +52,16 @@ export class ConfigurationSpecimenComponent implements OnInit {
51 52
 	  {label:'是否开启',value: 0}
52 53
 	];
53 54
 
55
+  // 交接是否展示试管类型
56
+	speExpandTube:any[] = [
57
+	  {label:'是否开启',value: 0}
58
+	];
59
+
60
+  // 是否默认展开
61
+	speDefaultExpandTube:any[] = [
62
+	  {label:'是否开启',value: 0}
63
+	];
64
+
54 65
   // 工单模式
55 66
   spePackageModelList:any[] = [
56 67
     { label: '一单一包', value: 1 },
@@ -284,6 +295,14 @@ export class ConfigurationSpecimenComponent implements OnInit {
284 295
       this.deptNotAlertIds = [];
285 296
     }
286 297
   }
298
+
299
+  // 交接是否展示试管类型
300
+  changeSpeExpandTube(e){
301
+    console.log(e);
302
+    if(!e[0].checked){
303
+      this.speDefaultExpandTube[0].checked = false;
304
+    }
305
+  }
287 306
   // 收取时需扫描二维码
288 307
   changeArriveScanCode(e){
289 308
     console.log(e);
@@ -380,6 +399,7 @@ export class ConfigurationSpecimenComponent implements OnInit {
380 399
       id: this.configs.id,
381 400
       taskType: this.tasktype.id,
382 401
       hosId: this.hosId,
402
+      speHandoverTubeType: this.speHandoverTubeType,
383 403
       deptNotAlert: this.deptNotAlert[0].checked ? 1 : 0,
384 404
       arriveScanCode: this.arriveScanCode[0].checked ? 1 : 0,
385 405
       arriveScanDynamicCode: this.arriveScanDynamicCode[0].checked ? 1 : 0,
@@ -399,6 +419,8 @@ export class ConfigurationSpecimenComponent implements OnInit {
399 419
 			speCollectLimitEndDept: null,
400 420
 			speCollectLimitUrgent: null,
401 421
 			handoverOrder: this.handoverOrder[0].checked ? 1 : 0,
422
+			speExpandTube: this.speExpandTube[0].checked ? 1 : 0,
423
+			speDefaultExpandTube: this.speDefaultExpandTube[0].checked ? 1 : 0,
402 424
 		};
403 425
 		if(this.speCollectLimit[0].checked){
404 426
 			postData.speCollectSupportNotStartDept = this.speCollectSupportNotStartDept[0].checked ? 1 : 0;
@@ -603,7 +625,8 @@ export class ConfigurationSpecimenComponent implements OnInit {
603 625
         if (result.status == 200) {
604 626
           this.configs = result.list[0] || {};
605 627
 					if(this.activeDictionaryKey=='examine'){
606
-						// 检验标本
628
+            // 检验标本
629
+            this.speHandoverTubeType = this.configs.speHandoverTubeType;
607 630
 						this.deptNotAlert[0].checked = this.configs.deptNotAlert == 1;
608 631
 						this.arriveScanCode[0].checked = this.configs.arriveScanCode == 1;
609 632
 						this.arriveScanDynamicCode[0].checked = this.configs.arriveScanDynamicCode == 1;
@@ -617,6 +640,8 @@ export class ConfigurationSpecimenComponent implements OnInit {
617 640
 						this.deptList = this.configs.deptNotAlertList || [];
618 641
             this.speCollectLimit[0].checked = this.configs.speCollectLimit == 1;
619 642
 						this.handoverOrder[0].checked = this.configs.handoverOrder == 1;
643
+						this.speExpandTube[0].checked = this.configs.speExpandTube == 1;
644
+						this.speDefaultExpandTube[0].checked = this.configs.speDefaultExpandTube == 1;
620 645
 						if(this.configs.speCollectLimit == 1){
621 646
 							this.speCollectSupportNotStartDept[0].checked = this.configs.speCollectSupportNotStartDept == 1;
622 647
 							this.speCollectLimitRepeat[0].checked  = this.configs.speCollectLimitRepeat == 1;