Kaynağa Gözat

药品详情,数量,种类开关

seimin 1 hafta önce
ebeveyn
işleme
f9312c237b

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

@@ -88,6 +88,16 @@
88 88
 									  <nz-form-label class="label">药单显示患者</nz-form-label>
89 89
 									  <nz-checkbox-group [(ngModel)]="item.postData.showPatientInfo"></nz-checkbox-group>
90 90
 									</div>
91
+                  <!-- 是否显示药品数、种类数 -->
92
+									<div class="display_flex align-items_center mb8">
93
+									  <nz-form-label class="label">是否显示药品数、种类数</nz-form-label>
94
+									  <nz-checkbox-group [(ngModel)]="item.postData.showDrugsBagTypeCount"></nz-checkbox-group>
95
+									</div>
96
+                  <!-- 是否支持查看药品详情信息 -->
97
+									<div class="display_flex align-items_center mb8">
98
+									  <nz-form-label class="label">是否支持查看药品详情信息</nz-form-label>
99
+									  <nz-checkbox-group [(ngModel)]="item.postData.showDrugsBagDetails"></nz-checkbox-group>
100
+									</div>
91 101
                 </div>
92 102
                 <!-- 自动建单配置 -->
93 103
                 <div *ngIf="tabModalName=='automaticOrderCreation'">

+ 14 - 0
src/app/components/configurationCenter/configuration-drug/configuration-drug.component.ts

@@ -61,6 +61,8 @@ export class ConfigurationDrugComponent implements OnInit {
61 61
 				showPatientInfo: [{ label:'是否开启', value: 0 }],//药单显示患者
62 62
         drugsEndManual: undefined,//终点科室手动填写
63 63
         drugsEndPhoto: [{ label:'是否开启', value: 0 }],//终点科室支持拍照留存
64
+				showDrugsBagTypeCount: [{ label:'是否开启', value: 0 }],//是否显示药品数、种类数
65
+				showDrugsBagDetails: [{ label:'是否开启', value: 0 }],//是否支持查看药品详情信息
64 66
       }
65 67
     },
66 68
     {
@@ -79,6 +81,8 @@ export class ConfigurationDrugComponent implements OnInit {
79 81
 				showPatientInfo: [{ label:'是否开启', value: 0 }],//药单显示患者
80 82
         drugsEndManual: undefined,//终点科室手动填写
81 83
         drugsEndPhoto: [{ label:'是否开启', value: 0 }],//终点科室支持拍照留存
84
+        showDrugsBagTypeCount: [{ label:'是否开启', value: 0 }],//是否显示药品数、种类数
85
+				showDrugsBagDetails: [{ label:'是否开启', value: 0 }],//是否支持查看药品详情信息
82 86
       }
83 87
     },
84 88
     {
@@ -97,6 +101,8 @@ export class ConfigurationDrugComponent implements OnInit {
97 101
 				showPatientInfo: [{ label:'是否开启', value: 0 }],//药单显示患者
98 102
         drugsEndManual: undefined,//终点科室手动填写
99 103
         drugsEndPhoto: [{ label:'是否开启', value: 0 }],//终点科室支持拍照留存
104
+        showDrugsBagTypeCount: [{ label:'是否开启', value: 0 }],//是否显示药品数、种类数
105
+				showDrugsBagDetails: [{ label:'是否开启', value: 0 }],//是否支持查看药品详情信息
100 106
       }
101 107
     },
102 108
     {
@@ -115,6 +121,8 @@ export class ConfigurationDrugComponent implements OnInit {
115 121
 				showPatientInfo: [{ label:'是否开启', value: 0 }],//药单显示患者
116 122
         drugsEndManual: undefined,//终点科室手动填写
117 123
         drugsEndPhoto: [{ label:'是否开启', value: 0 }],//终点科室支持拍照留存
124
+        showDrugsBagTypeCount: [{ label:'是否开启', value: 0 }],//是否显示药品数、种类数
125
+				showDrugsBagDetails: [{ label:'是否开启', value: 0 }],//是否支持查看药品详情信息
118 126
       }
119 127
     },
120 128
     {
@@ -133,6 +141,8 @@ export class ConfigurationDrugComponent implements OnInit {
133 141
 				showPatientInfo: [{ label:'是否开启', value: 0 }],//药单显示患者
134 142
         drugsEndManual: undefined,//终点科室手动填写
135 143
         drugsEndPhoto: [{ label:'是否开启', value: 0 }],//终点科室支持拍照留存
144
+        showDrugsBagTypeCount: [{ label:'是否开启', value: 0 }],//是否显示药品数、种类数
145
+				showDrugsBagDetails: [{ label:'是否开启', value: 0 }],//是否支持查看药品详情信息
136 146
       }
137 147
     },
138 148
   ];
@@ -206,6 +216,8 @@ export class ConfigurationDrugComponent implements OnInit {
206 216
       drugsEndManual: this.activeDictionary.postData.drugsEndManual ? { id: this.activeDictionary.postData.drugsEndManual } : undefined,
207 217
       drugsEndPhoto: this.activeDictionary.postData.drugsEndPhoto[0].checked ? 1 : 0,
208 218
 			showPatientInfo: this.activeDictionary.postData.showPatientInfo[0].checked ? 1 : 0,
219
+			showDrugsBagTypeCount: this.activeDictionary.postData.showDrugsBagTypeCount[0].checked ? 1 : 0,
220
+			showDrugsBagDetails: this.activeDictionary.postData.showDrugsBagDetails[0].checked ? 1 : 0,
209 221
 		};
210 222
     this.btnLoading = true;
211 223
     this.mainService
@@ -301,6 +313,8 @@ export class ConfigurationDrugComponent implements OnInit {
301 313
           this.activeDictionary.postData.drugsEndManual = this.configs.drugsEndManual ? this.configs.drugsEndManual.id : undefined;
302 314
           this.activeDictionary.postData.drugsEndPhoto[0].checked = this.configs.drugsEndPhoto == 1;
303 315
 					this.activeDictionary.postData.showPatientInfo[0].checked = this.configs.showPatientInfo == 1;
316
+					this.activeDictionary.postData.showDrugsBagTypeCount[0].checked = this.configs.showDrugsBagTypeCount == 1;
317
+					this.activeDictionary.postData.showDrugsBagDetails[0].checked = this.configs.showDrugsBagDetails == 1;
304 318
 				}
305 319
       });
306 320
   }

+ 1 - 1
src/app/share/businessData-detail-info-modal/businessData-detail-info-modal.component.html

@@ -10,7 +10,7 @@
10 10
       <div>发药科室:{{drugsBag.launch ? drugsBag.launch.dept : ''}}</div>
11 11
     </div>
12 12
     <div class="content">
13
-      <ng-container *ngIf="type === 'drugsJpbag' || type === 'drugsWestern' || type === 'drugsReturn' || type === 'drugsPoison' || type === 'drugsHerbal'">
13
+      <ng-container *ngIf="configs.showDrugsBagDetails === 1 && (type === 'drugsJpbag' || type === 'drugsWestern' || type === 'drugsReturn' || type === 'drugsPoison' || type === 'drugsHerbal')">
14 14
         <!-- 新药品 -->
15 15
         <nz-table class="hospitalTable" [nzData]="drugsBugSingleList" nzSize="middle" [nzShowPagination]="false"
16 16
           [nzLoading]="hsLoading" [nzScroll]="{ y: '500px' }">

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

@@ -41,7 +41,7 @@
41 41
         </tbody>
42 42
       </nz-table>
43 43
       <!-- 新药品-一单一码 -->
44
-      <nz-table *ngIf="configs.drugsModel === 1 && (type === 'drugsJpbag' || type === 'drugsWestern' || type === 'drugsReturn' || type === 'drugsPoison' || type === 'drugsHerbal')" class="hospitalTable" [nzData]="drugsBugSingleList" nzSize="middle" [nzShowPagination]="false"
44
+      <nz-table *ngIf="configs.showDrugsBagDetails === 1 && configs.drugsModel === 1 && (type === 'drugsJpbag' || type === 'drugsWestern' || type === 'drugsReturn' || type === 'drugsPoison' || type === 'drugsHerbal')" class="hospitalTable" [nzData]="drugsBugSingleList" nzSize="middle" [nzShowPagination]="false"
45 45
         [nzLoading]="hsLoading" [nzScroll]="{ y: '500px' }">
46 46
         <thead>
47 47
           <tr class="thead">
@@ -71,8 +71,8 @@
71 71
             <th nzWidth="5%">序号</th>
72 72
             <th nzWidth="11%">单号</th>
73 73
 						<th nzWidth="10%" *ngIf="configs.showPatientInfo==1">患者信息</th>
74
-            <th nzWidth="8%">种类数</th>
75
-            <th nzWidth="8%">总数</th>
74
+            <th nzWidth="8%" *ngIf="configs.showDrugsBagTypeCount==1">种类数</th>
75
+            <th nzWidth="8%" *ngIf="configs.showDrugsBagTypeCount==1">总数</th>
76 76
             <th nzWidth="10%">收取人/交接人</th>
77 77
             <!-- <th nzWidth="10%">收取交接人</th> -->
78 78
             <th nzWidth="14%">收取时间</th>
@@ -82,15 +82,15 @@
82 82
           </tr>
83 83
         </thead>
84 84
         <tbody>
85
-          <tr *ngFor="let data of drugsBugMultipleList;let i = index;" (click)="viewDetail(type, data.id)">
85
+          <tr *ngFor="let data of drugsBugMultipleList;let i = index;" (click)="viewDetail(type, data.id)" [ngStyle]="{ 'cursor': configs.showDrugsBagDetails == 1 ? 'pointer' : '' }">
86 86
             <td>{{i+1}}</td>
87
-            <td>{{ data.packid }}</td>
87
+            <td [ngStyle]="{ 'text-decoration': configs.showDrugsBagDetails == 1 ? 'underline' : '' }">{{ data.packid }}</td>
88 88
 						<td *ngIf="configs.showPatientInfo==1">
89 89
 							<div>{{ data.patientName }}{{(data.bedNum)}}</div>
90 90
 							<div>{{data.residenceNo}}</div>
91 91
 						</td>
92
-            <td>{{ data.drugsTypeCount }}</td>
93
-            <td>{{ data.drugsCount }}</td>
92
+            <td *ngIf="configs.showDrugsBagTypeCount==1">{{ data.drugsTypeCount }}</td>
93
+            <td *ngIf="configs.showDrugsBagTypeCount==1">{{ data.drugsCount }}</td>
94 94
             <td>
95 95
 							<ng-container *ngIf="data.startLog">
96 96
 								<div>{{data.startLog.username}}</div>

+ 3 - 0
src/app/share/businessData-detail-modal/businessData-detail-modal.component.ts

@@ -433,6 +433,9 @@ export class BusinessDataDetailModalComponent implements OnInit {
433 433
   businessDataModalType = ''; //业务数据类型
434 434
   infoId = ''; //业务数据id
435 435
   viewDetail(type, id) {
436
+    if(this.configs.showDrugsBagDetails != 1){
437
+      return;
438
+    }
436 439
     this.infoId = id;
437 440
     this.businessDataModalType = type;
438 441
     this.businessDataModalShow = true;