浏览代码

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

seimin 2 周之前
父节点
当前提交
f9312c237b

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

@@ -88,6 +88,16 @@
88
 									  <nz-form-label class="label">药单显示患者</nz-form-label>
88
 									  <nz-form-label class="label">药单显示患者</nz-form-label>
89
 									  <nz-checkbox-group [(ngModel)]="item.postData.showPatientInfo"></nz-checkbox-group>
89
 									  <nz-checkbox-group [(ngModel)]="item.postData.showPatientInfo"></nz-checkbox-group>
90
 									</div>
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
                 </div>
101
                 </div>
92
                 <!-- 自动建单配置 -->
102
                 <!-- 自动建单配置 -->
93
                 <div *ngIf="tabModalName=='automaticOrderCreation'">
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
 				showPatientInfo: [{ label:'是否开启', value: 0 }],//药单显示患者
61
 				showPatientInfo: [{ label:'是否开启', value: 0 }],//药单显示患者
62
         drugsEndManual: undefined,//终点科室手动填写
62
         drugsEndManual: undefined,//终点科室手动填写
63
         drugsEndPhoto: [{ label:'是否开启', value: 0 }],//终点科室支持拍照留存
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
 				showPatientInfo: [{ label:'是否开启', value: 0 }],//药单显示患者
81
 				showPatientInfo: [{ label:'是否开启', value: 0 }],//药单显示患者
80
         drugsEndManual: undefined,//终点科室手动填写
82
         drugsEndManual: undefined,//终点科室手动填写
81
         drugsEndPhoto: [{ label:'是否开启', value: 0 }],//终点科室支持拍照留存
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
 				showPatientInfo: [{ label:'是否开启', value: 0 }],//药单显示患者
101
 				showPatientInfo: [{ label:'是否开启', value: 0 }],//药单显示患者
98
         drugsEndManual: undefined,//终点科室手动填写
102
         drugsEndManual: undefined,//终点科室手动填写
99
         drugsEndPhoto: [{ label:'是否开启', value: 0 }],//终点科室支持拍照留存
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
 				showPatientInfo: [{ label:'是否开启', value: 0 }],//药单显示患者
121
 				showPatientInfo: [{ label:'是否开启', value: 0 }],//药单显示患者
116
         drugsEndManual: undefined,//终点科室手动填写
122
         drugsEndManual: undefined,//终点科室手动填写
117
         drugsEndPhoto: [{ label:'是否开启', value: 0 }],//终点科室支持拍照留存
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
 				showPatientInfo: [{ label:'是否开启', value: 0 }],//药单显示患者
141
 				showPatientInfo: [{ label:'是否开启', value: 0 }],//药单显示患者
134
         drugsEndManual: undefined,//终点科室手动填写
142
         drugsEndManual: undefined,//终点科室手动填写
135
         drugsEndPhoto: [{ label:'是否开启', value: 0 }],//终点科室支持拍照留存
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
       drugsEndManual: this.activeDictionary.postData.drugsEndManual ? { id: this.activeDictionary.postData.drugsEndManual } : undefined,
216
       drugsEndManual: this.activeDictionary.postData.drugsEndManual ? { id: this.activeDictionary.postData.drugsEndManual } : undefined,
207
       drugsEndPhoto: this.activeDictionary.postData.drugsEndPhoto[0].checked ? 1 : 0,
217
       drugsEndPhoto: this.activeDictionary.postData.drugsEndPhoto[0].checked ? 1 : 0,
208
 			showPatientInfo: this.activeDictionary.postData.showPatientInfo[0].checked ? 1 : 0,
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
     this.btnLoading = true;
222
     this.btnLoading = true;
211
     this.mainService
223
     this.mainService
@@ -301,6 +313,8 @@ export class ConfigurationDrugComponent implements OnInit {
301
           this.activeDictionary.postData.drugsEndManual = this.configs.drugsEndManual ? this.configs.drugsEndManual.id : undefined;
313
           this.activeDictionary.postData.drugsEndManual = this.configs.drugsEndManual ? this.configs.drugsEndManual.id : undefined;
302
           this.activeDictionary.postData.drugsEndPhoto[0].checked = this.configs.drugsEndPhoto == 1;
314
           this.activeDictionary.postData.drugsEndPhoto[0].checked = this.configs.drugsEndPhoto == 1;
303
 					this.activeDictionary.postData.showPatientInfo[0].checked = this.configs.showPatientInfo == 1;
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
       <div>发药科室:{{drugsBag.launch ? drugsBag.launch.dept : ''}}</div>
10
       <div>发药科室:{{drugsBag.launch ? drugsBag.launch.dept : ''}}</div>
11
     </div>
11
     </div>
12
     <div class="content">
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
         <nz-table class="hospitalTable" [nzData]="drugsBugSingleList" nzSize="middle" [nzShowPagination]="false"
15
         <nz-table class="hospitalTable" [nzData]="drugsBugSingleList" nzSize="middle" [nzShowPagination]="false"
16
           [nzLoading]="hsLoading" [nzScroll]="{ y: '500px' }">
16
           [nzLoading]="hsLoading" [nzScroll]="{ y: '500px' }">

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

@@ -41,7 +41,7 @@
41
         </tbody>
41
         </tbody>
42
       </nz-table>
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
         [nzLoading]="hsLoading" [nzScroll]="{ y: '500px' }">
45
         [nzLoading]="hsLoading" [nzScroll]="{ y: '500px' }">
46
         <thead>
46
         <thead>
47
           <tr class="thead">
47
           <tr class="thead">
@@ -71,8 +71,8 @@
71
             <th nzWidth="5%">序号</th>
71
             <th nzWidth="5%">序号</th>
72
             <th nzWidth="11%">单号</th>
72
             <th nzWidth="11%">单号</th>
73
 						<th nzWidth="10%" *ngIf="configs.showPatientInfo==1">患者信息</th>
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
             <th nzWidth="10%">收取人/交接人</th>
76
             <th nzWidth="10%">收取人/交接人</th>
77
             <!-- <th nzWidth="10%">收取交接人</th> -->
77
             <!-- <th nzWidth="10%">收取交接人</th> -->
78
             <th nzWidth="14%">收取时间</th>
78
             <th nzWidth="14%">收取时间</th>
@@ -82,15 +82,15 @@
82
           </tr>
82
           </tr>
83
         </thead>
83
         </thead>
84
         <tbody>
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
             <td>{{i+1}}</td>
86
             <td>{{i+1}}</td>
87
-            <td>{{ data.packid }}</td>
87
+            <td [ngStyle]="{ 'text-decoration': configs.showDrugsBagDetails == 1 ? 'underline' : '' }">{{ data.packid }}</td>
88
 						<td *ngIf="configs.showPatientInfo==1">
88
 						<td *ngIf="configs.showPatientInfo==1">
89
 							<div>{{ data.patientName }}{{(data.bedNum)}}</div>
89
 							<div>{{ data.patientName }}{{(data.bedNum)}}</div>
90
 							<div>{{data.residenceNo}}</div>
90
 							<div>{{data.residenceNo}}</div>
91
 						</td>
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
             <td>
94
             <td>
95
 							<ng-container *ngIf="data.startLog">
95
 							<ng-container *ngIf="data.startLog">
96
 								<div>{{data.startLog.username}}</div>
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
   businessDataModalType = ''; //业务数据类型
433
   businessDataModalType = ''; //业务数据类型
434
   infoId = ''; //业务数据id
434
   infoId = ''; //业务数据id
435
   viewDetail(type, id) {
435
   viewDetail(type, id) {
436
+    if(this.configs.showDrugsBagDetails != 1){
437
+      return;
438
+    }
436
     this.infoId = id;
439
     this.infoId = id;
437
     this.businessDataModalType = type;
440
     this.businessDataModalType = type;
438
     this.businessDataModalShow = true;
441
     this.businessDataModalShow = true;