Browse Source

拉取代码

maotao 5 months ago
parent
commit
9dd1bf97e2

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

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

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

@@ -263,7 +263,7 @@
263
 
263
 
264
         & > div {
264
         & > div {
265
           border-right: 1px solid #e5e9ed;
265
           border-right: 1px solid #e5e9ed;
266
-          width: 30%;
266
+          width: 100%;
267
           text-align: center; // display: flex;
267
           text-align: center; // display: flex;
268
           // align-items: center;
268
           // align-items: center;
269
           cursor: pointer;
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
   btnLoading:boolean = false; //提交按钮的loading
15
   btnLoading:boolean = false; //提交按钮的loading
16
   tabModalName:string = 'characteristics'; //当前选中的tab
16
   tabModalName:string = 'characteristics'; //当前选中的tab
17
   hosId = this.tool.getCurrentHospital().id; //当前院区
17
   hosId = this.tool.getCurrentHospital().id; //当前院区
18
-
18
+	hosName = this.tool.getCurrentHospital().hosName //当前院区名称
19
   // 数字密钥
19
   // 数字密钥
20
   returnSpecimenWhetherHandover:any[] = [
20
   returnSpecimenWhetherHandover:any[] = [
21
     {label:'是否开启',value: 0}
21
     {label:'是否开启',value: 0}

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

@@ -1,8 +1,13 @@
1
 <div class="content specimen">
1
 <div class="content specimen">
2
   <div class="contentInner">
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
     <div class="addressAssign">
8
     <div class="addressAssign">
4
       <div class="contentBody2">
9
       <div class="contentBody2">
5
-        <div class="TaskTypeManagement">
10
+        <div class="TaskTypeManagement" *ngIf="activeDictionaryKey=='examine'">
6
           <div class="taskTypeInfo">
11
           <div class="taskTypeInfo">
7
             <div class="top">
12
             <div class="top">
8
               <div class="item" (click)="tabModal('characteristics')" [ngClass]="{'items':tabModalName=='characteristics'}">
13
               <div class="item" (click)="tabModal('characteristics')" [ngClass]="{'items':tabModalName=='characteristics'}">
@@ -99,6 +104,18 @@
99
             </div>
104
             </div>
100
           </div>
105
           </div>
101
         </div>
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
       </div>
119
       </div>
103
     </div>
120
     </div>
104
   </div>
121
   </div>

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

@@ -19,25 +19,25 @@
19
     flex: 1;
19
     flex: 1;
20
     min-height: 0;
20
     min-height: 0;
21
     display: flex;
21
     display: flex;
22
-    flex-direction: column;
22
+    // flex-direction: column;
23
     justify-content: space-between;
23
     justify-content: space-between;
24
     border: 1px solid #EEF3F9;
24
     border: 1px solid #EEF3F9;
25
     &.specimen{
25
     &.specimen{
26
       margin: 24px 24px 0;
26
       margin: 24px 24px 0;
27
       background-color: #fff;
27
       background-color: #fff;
28
       .contentInner{
28
       .contentInner{
29
-        padding: 40px 158px 72px;
29
+        // padding: 40px 158px 72px;
30
         border: 1px solid #E8EBEF;
30
         border: 1px solid #E8EBEF;
31
         .addressAssign{
31
         .addressAssign{
32
           width: 100%;
32
           width: 100%;
33
           border: none;
33
           border: none;
34
         }
34
         }
35
         .contentBody{
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
           gap: 32px;
41
           gap: 32px;
42
         }
42
         }
43
         .hospital{
43
         .hospital{
@@ -52,23 +52,24 @@
52
       }
52
       }
53
     }
53
     }
54
     .contentItem{
54
     .contentItem{
55
-      padding: 4px 16px;
55
+      padding: 8px;
56
       cursor: pointer;
56
       cursor: pointer;
57
       overflow: hidden;
57
       overflow: hidden;
58
       text-overflow: ellipsis;
58
       text-overflow: ellipsis;
59
       white-space: nowrap;
59
       white-space: nowrap;
60
+			margin: 0 16px;
60
       &.active{
61
       &.active{
61
-        color: @primary-color;
62
-        background-color: #F0F6ED;
62
+        color: #fff;
63
+        background-color: #49b856;
63
         border-radius: 4px;
64
         border-radius: 4px;
64
       }
65
       }
65
     }
66
     }
66
     .contentInner{
67
     .contentInner{
67
       flex: 1;
68
       flex: 1;
68
       display: flex;
69
       display: flex;
69
-      flex-direction: column;
70
+      // flex-direction: column;
70
       align-items: center;
71
       align-items: center;
71
-      padding: 0 16px;
72
+      // padding: 0 16px;
72
       gap: 32px;
73
       gap: 32px;
73
       .contentHead{
74
       .contentHead{
74
         height: 45px;
75
         height: 45px;
@@ -101,13 +102,13 @@
101
         flex: 1;
102
         flex: 1;
102
         height: 100%;
103
         height: 100%;
103
         background: #FFFFFF;
104
         background: #FFFFFF;
104
-        border: 1px solid #E8EBEF;
105
+        // border: 1px solid #E8EBEF;
105
         display: flex;
106
         display: flex;
106
-        flex-direction: column;
107
+        // flex-direction: column;
107
         width: 0;
108
         width: 0;
108
       }
109
       }
109
       .addressAssign{
110
       .addressAssign{
110
-        flex: 3;
111
+        flex: 7;
111
         height: 100%;
112
         height: 100%;
112
         background: #FFFFFF;
113
         background: #FFFFFF;
113
         border: 1px solid #E8EBEF;
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
   btnLoading:boolean = false; //提交按钮的loading
15
   btnLoading:boolean = false; //提交按钮的loading
16
   tabModalName:string = 'characteristics'; //当前选中的tab
16
   tabModalName:string = 'characteristics'; //当前选中的tab
17
   hosId = this.tool.getCurrentHospital().id; //当前院区
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
   deptNotAlert:any[] = [
35
   deptNotAlert:any[] = [
21
     {label:'是否开启',value: 0}
36
     {label:'是否开启',value: 0}
@@ -77,7 +92,15 @@ export class ConfigurationSpecimenComponent implements OnInit {
77
     this.getDeptList();
92
     this.getDeptList();
78
     this.getTaskType();
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
   changeDeptNotAlert(e){
105
   changeDeptNotAlert(e){
83
     console.log(e);
106
     console.log(e);
@@ -135,7 +158,27 @@ export class ConfigurationSpecimenComponent implements OnInit {
135
   tabModal(tabModalName:string){
158
   tabModal(tabModalName:string){
136
     this.tabModalName = tabModalName;
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
   submitForm() {
182
   submitForm() {
140
     if(!this.tasktype.id){
183
     if(!this.tasktype.id){
141
       this.msg.create("warning", "请先配置患者陪检任务类型!");
184
       this.msg.create("warning", "请先配置患者陪检任务类型!");
@@ -218,6 +261,9 @@ export class ConfigurationSpecimenComponent implements OnInit {
218
         this.loading = false;
261
         this.loading = false;
219
         if (result.status == 200) {
262
         if (result.status == 200) {
220
           this.configs = result.list[0] || {};
263
           this.configs = result.list[0] || {};
264
+					// 病理标本
265
+					this.support[0].checked = this.configs.support == 1;
266
+					// 检查标本
221
           this.deptNotAlert[0].checked = this.configs.deptNotAlert == 1;
267
           this.deptNotAlert[0].checked = this.configs.deptNotAlert == 1;
222
           this.arriveScanCode[0].checked = this.configs.arriveScanCode == 1;
268
           this.arriveScanCode[0].checked = this.configs.arriveScanCode == 1;
223
           this.arriveScanDynamicCode[0].checked = this.configs.arriveScanDynamicCode == 1;
269
           this.arriveScanDynamicCode[0].checked = this.configs.arriveScanDynamicCode == 1;