maotao vor 5 Monaten
Ursprung
Commit
9dd1bf97e2

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

@@ -4,14 +4,14 @@
4 4
       <div class="contentBody2">
5 5
         <div class="TaskTypeManagement">
6 6
           <div class="taskTypeInfo">
7
-<!--            <div class="top">
7
+           <div class="top">
8 8
               <div class="item" (click)="tabModal('characteristics')" [ngClass]="{'items':tabModalName=='characteristics'}">
9
-                特性配置
9
+                {{hosName}}
10 10
               </div>
11
-              <div class="item" (click)="tabModal('automaticOrderCreation')" [ngClass]="{'items':tabModalName=='automaticOrderCreation'}">
11
+          <!--    <div class="item" (click)="tabModal('automaticOrderCreation')" [ngClass]="{'items':tabModalName=='automaticOrderCreation'}">
12 12
                 自动建单配置
13
-              </div>
14
-            </div> -->
13
+              </div> -->
14
+            </div>
15 15
             <div class="list" *ngIf="!loading">
16 16
               <!-- 动态数字密钥 -->
17 17
               <div>

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

@@ -263,7 +263,7 @@
263 263
 
264 264
         & > div {
265 265
           border-right: 1px solid #e5e9ed;
266
-          width: 30%;
266
+          width: 100%;
267 267
           text-align: center; // display: flex;
268 268
           // align-items: center;
269 269
           cursor: pointer;

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

@@ -15,7 +15,7 @@ export class ConfigurationKeyComponent implements OnInit {
15 15
   btnLoading:boolean = false; //提交按钮的loading
16 16
   tabModalName:string = 'characteristics'; //当前选中的tab
17 17
   hosId = this.tool.getCurrentHospital().id; //当前院区
18
-
18
+	hosName = this.tool.getCurrentHospital().hosName //当前院区名称
19 19
   // 数字密钥
20 20
   returnSpecimenWhetherHandover:any[] = [
21 21
     {label:'是否开启',value: 0}

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

@@ -1,8 +1,13 @@
1 1
 <div class="content specimen">
2 2
   <div class="contentInner">
3
+		<div class="address">
4
+		  <overlay-scrollbars #osComponentRef1 class="contentBody">
5
+		    <div class="contentItem" [title]="item.name" [ngClass]="{ active: item.key == activeDictionaryKey }" (click)="clickDictionaryKey(item)" *ngFor="let item of dictionaryKeyList">{{ item.name }}</div>
6
+		  </overlay-scrollbars>
7
+		</div>
3 8
     <div class="addressAssign">
4 9
       <div class="contentBody2">
5
-        <div class="TaskTypeManagement">
10
+        <div class="TaskTypeManagement" *ngIf="activeDictionaryKey=='examine'">
6 11
           <div class="taskTypeInfo">
7 12
             <div class="top">
8 13
               <div class="item" (click)="tabModal('characteristics')" [ngClass]="{'items':tabModalName=='characteristics'}">
@@ -99,6 +104,18 @@
99 104
             </div>
100 105
           </div>
101 106
         </div>
107
+				<div *ngIf="activeDictionaryKey=='pathology'">
108
+					<div class="list">
109
+						<!--是否支持根据手术新建申请单 -->
110
+						<div class="display_flex align-items_center mb8">
111
+						  <nz-form-label class="label">是否支持根据手术新建申请单</nz-form-label>
112
+						  <nz-checkbox-group [(ngModel)]="support"></nz-checkbox-group>
113
+						</div>
114
+						<div class="bottom">
115
+						  <button class="login-form-button" nzType="primary" [nzLoading]="btnLoading" nz-button (click)="submitPathologyForm()">保存</button>
116
+						</div>
117
+					</div>
118
+				</div>
102 119
       </div>
103 120
     </div>
104 121
   </div>

+ 16 - 15
src/app/components/configurationCenter/configuration-specimen/configuration-specimen.component.less

@@ -19,25 +19,25 @@
19 19
     flex: 1;
20 20
     min-height: 0;
21 21
     display: flex;
22
-    flex-direction: column;
22
+    // flex-direction: column;
23 23
     justify-content: space-between;
24 24
     border: 1px solid #EEF3F9;
25 25
     &.specimen{
26 26
       margin: 24px 24px 0;
27 27
       background-color: #fff;
28 28
       .contentInner{
29
-        padding: 40px 158px 72px;
29
+        // padding: 40px 158px 72px;
30 30
         border: 1px solid #E8EBEF;
31 31
         .addressAssign{
32 32
           width: 100%;
33 33
           border: none;
34 34
         }
35 35
         .contentBody{
36
-          flex: 1;
37
-          display: flex;
38
-          flex-direction: column;
39
-          align-items: center;
40
-          padding: 0 16px;
36
+          // flex: 1;
37
+          // display: flex;
38
+          // flex-direction: column;
39
+          // align-items: center;
40
+          padding: 16px;
41 41
           gap: 32px;
42 42
         }
43 43
         .hospital{
@@ -52,23 +52,24 @@
52 52
       }
53 53
     }
54 54
     .contentItem{
55
-      padding: 4px 16px;
55
+      padding: 8px;
56 56
       cursor: pointer;
57 57
       overflow: hidden;
58 58
       text-overflow: ellipsis;
59 59
       white-space: nowrap;
60
+			margin: 0 16px;
60 61
       &.active{
61
-        color: @primary-color;
62
-        background-color: #F0F6ED;
62
+        color: #fff;
63
+        background-color: #49b856;
63 64
         border-radius: 4px;
64 65
       }
65 66
     }
66 67
     .contentInner{
67 68
       flex: 1;
68 69
       display: flex;
69
-      flex-direction: column;
70
+      // flex-direction: column;
70 71
       align-items: center;
71
-      padding: 0 16px;
72
+      // padding: 0 16px;
72 73
       gap: 32px;
73 74
       .contentHead{
74 75
         height: 45px;
@@ -101,13 +102,13 @@
101 102
         flex: 1;
102 103
         height: 100%;
103 104
         background: #FFFFFF;
104
-        border: 1px solid #E8EBEF;
105
+        // border: 1px solid #E8EBEF;
105 106
         display: flex;
106
-        flex-direction: column;
107
+        // flex-direction: column;
107 108
         width: 0;
108 109
       }
109 110
       .addressAssign{
110
-        flex: 3;
111
+        flex: 7;
111 112
         height: 100%;
112 113
         background: #FFFFFF;
113 114
         border: 1px solid #E8EBEF;

+ 49 - 3
src/app/components/configurationCenter/configuration-specimen/configuration-specimen.component.ts

@@ -15,7 +15,22 @@ export class ConfigurationSpecimenComponent implements OnInit {
15 15
   btnLoading:boolean = false; //提交按钮的loading
16 16
   tabModalName:string = 'characteristics'; //当前选中的tab
17 17
   hosId = this.tool.getCurrentHospital().id; //当前院区
18
-
18
+	
19
+	// tab类型
20
+	dictionaryKeyList:any[] = [
21
+		{
22
+			name:'检查标本',key:'examine'
23
+		},
24
+		{
25
+			name:'病理标本',key:'pathology'
26
+		}
27
+	];
28
+	
29
+	// 扫描时指定科室不提醒勾选项
30
+	support:any[] = [
31
+	  {label:'是否开启',value: 0}
32
+	];
33
+	
19 34
   // 扫描时指定科室不提醒勾选项
20 35
   deptNotAlert:any[] = [
21 36
     {label:'是否开启',value: 0}
@@ -77,7 +92,15 @@ export class ConfigurationSpecimenComponent implements OnInit {
77 92
     this.getDeptList();
78 93
     this.getTaskType();
79 94
   }
80
-
95
+	
96
+	// 点击数据字典key
97
+	activeDictionaryKey:any = 'examine';
98
+	clickDictionaryKey(item){
99
+	  this.activeDictionaryKey = item.key;
100
+	  this.getDeptList();
101
+	  this.getTaskType();
102
+	}
103
+	
81 104
   // 扫描时指定科室不提醒勾选项
82 105
   changeDeptNotAlert(e){
83 106
     console.log(e);
@@ -135,7 +158,27 @@ export class ConfigurationSpecimenComponent implements OnInit {
135 158
   tabModal(tabModalName:string){
136 159
     this.tabModalName = tabModalName;
137 160
   }
138
-  // 保存
161
+	
162
+	//病理标本保存
163
+	submitPathologyForm(){
164
+		let postData:any = {
165
+		  id: this.configs.id,
166
+		  taskType: this.tasktype.id,
167
+		  hosId: this.hosId,
168
+		  support: this.deptNotAlert[0].checked ? 1 : 0,
169
+		};
170
+		this.btnLoading = true;
171
+		this.mainService
172
+		  .simplePost("addData", "taskTypeConfig", postData)
173
+		  .subscribe((result) => {
174
+		    this.btnLoading = false;
175
+		    if (result.status == 200) {
176
+		      this.getConfig();
177
+		    }
178
+		  });
179
+	}
180
+	
181
+  // 检查标本保存
139 182
   submitForm() {
140 183
     if(!this.tasktype.id){
141 184
       this.msg.create("warning", "请先配置患者陪检任务类型!");
@@ -218,6 +261,9 @@ export class ConfigurationSpecimenComponent implements OnInit {
218 261
         this.loading = false;
219 262
         if (result.status == 200) {
220 263
           this.configs = result.list[0] || {};
264
+					// 病理标本
265
+					this.support[0].checked = this.configs.support == 1;
266
+					// 检查标本
221 267
           this.deptNotAlert[0].checked = this.configs.deptNotAlert == 1;
222 268
           this.arriveScanCode[0].checked = this.configs.arriveScanCode == 1;
223 269
           this.arriveScanDynamicCode[0].checked = this.configs.arriveScanDynamicCode == 1;