seimin преди 1 месец
родител
ревизия
1f2cf42894

+ 13 - 0
src/app/components/configurationCenter/configuration-quick/configuration-quick.component.html

@@ -125,6 +125,19 @@
125 125
 						</nz-select>
126 126
           </nz-form-control>
127 127
         </nz-form-item>
128
+        <nz-form-item *ngIf="validatePriorityForm.value.bussType === 'inspect'">
129
+          <nz-form-label nzFor="taskTypeInspectIds" nzRequired [nzSpan]="6">任务类型</nz-form-label>
130
+          <nz-form-control [nzSpan]="18" nzErrorTip="请选择任务类型!">
131
+						<nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch nzAllowClear nzPlaceHolder="请选择任务类型" formControlName="taskTypeInspectIds" (nzOnSearch)="changeCommonInp('taskTypeInspect', $event)">
132
+						  <ng-container *ngFor="let option of malfunctionInspectData">
133
+						    <nz-option *ngIf="!isLoading" [nzLabel]="option.taskName" [nzValue]="option.id"></nz-option>
134
+						  </ng-container>
135
+						  <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
136
+						    <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
137
+						  </nz-option>
138
+						</nz-select>
139
+          </nz-form-control>
140
+        </nz-form-item>
128 141
         <nz-form-item *ngIf="validatePriorityForm.value.bussType === 'goods' && hasSpecimen">
129 142
           <nz-form-label nzFor="urgentIds" [nzSpan]="8">是否显示标本数量</nz-form-label>
130 143
           <nz-form-control [nzSpan]="16" nzErrorTip="请选择是否显示标本数量!">

+ 52 - 6
src/app/components/configurationCenter/configuration-quick/configuration-quick.component.ts

@@ -28,6 +28,7 @@ export class ConfigurationQuickComponent implements OnInit {
28 28
 
29 29
 	currentHospital:any;
30 30
 	malfunctionData:any = [];
31
+	malfunctionInspectData:any = [];
31 32
 	allUserGroup:any = [];
32 33
 	userData:any = [];
33 34
 
@@ -37,6 +38,8 @@ export class ConfigurationQuickComponent implements OnInit {
37 38
 		this.changeCommonInpSubject.pipe(debounceTime(500)).subscribe((v) => {
38 39
       if(v[0] === 'taskType'){
39 40
         this.getTaskTypeList(v[1]);
41
+      }else if(v[0] === 'taskTypeInspect'){
42
+        this.getTaskTypeInspectList(v[1]);
40 43
       }
41 44
     });
42 45
 
@@ -48,6 +51,7 @@ export class ConfigurationQuickComponent implements OnInit {
48 51
 		this.currentHospital = this.tool.getCurrentHospital();
49 52
     this.getCommonFaultsList();
50 53
 		this.getTaskTypeList();
54
+		this.getTaskTypeInspectList();
51 55
     this.getPagePermissionIcon();
52 56
     this.getPagePermissionBussType();
53 57
     this.getPagePermissionQuickOperation();
@@ -72,7 +76,7 @@ export class ConfigurationQuickComponent implements OnInit {
72 76
     this.changeCommonInpSubject.next([type, e]);
73 77
   }
74 78
 
75
-	// 获取故障现象数据
79
+	// 获取任务类型数据-标本,其他,万能
76 80
   isLoading:boolean = false;
77 81
 	getTaskTypeList(keyWord?){
78 82
 		let postData = {
@@ -94,6 +98,27 @@ export class ConfigurationQuickComponent implements OnInit {
94 98
 		})
95 99
 	}
96 100
 
101
+	// 获取任务类型数据-陪检
102
+	getTaskTypeInspectList(keyWord?){
103
+		let postData = {
104
+      idx: 0,
105
+      sum: 9999,
106
+		  taskType: {
107
+        taskName: keyWord,
108
+        hosIds: this.hosId,
109
+        assTypeValues: 'inspect',
110
+        simpleQuery: true,
111
+		  },
112
+		};
113
+    this.isLoading = true;
114
+		this.mainService.getFetchDataList('configuration', "taskType", postData).subscribe(data => {
115
+		  this.isLoading = false;
116
+      if (data.status == 200) {
117
+        this.malfunctionInspectData = data.list || [];
118
+      }
119
+		})
120
+	}
121
+
97 122
   // 获取字典数据-图标名称
98 123
   pagePermissionIconList: any[] = [];
99 124
   getPagePermissionIcon() {
@@ -135,15 +160,23 @@ export class ConfigurationQuickComponent implements OnInit {
135 160
     console.log(e);
136 161
     this.validatePriorityForm.controls.quickOperation.setValue(null);
137 162
     this.validatePriorityForm.controls.taskTypeIds.setValue([]);
163
+    this.validatePriorityForm.controls.taskTypeInspectIds.setValue(null);
138 164
     this.validatePriorityForm.controls.urgentIds.setValue(this.gdEmergencyList.map(v => {v.checked = false;return v;}));
139 165
 
140 166
     if(e === 'service'){
141 167
       this.requiredChange('quickOperation', true);
142 168
       this.requiredChange('taskTypeIds', false);
169
+      this.requiredChange('taskTypeInspectIds', false);
143 170
       this.requiredChange('urgentIds', false);
144 171
     }else if(e === 'goods'){
145 172
       this.requiredChange('quickOperation', false);
146 173
       this.requiredChange('taskTypeIds', true);
174
+      this.requiredChange('taskTypeInspectIds', false);
175
+      this.requiredChange('urgentIds', false);
176
+    }else if(e === 'inspect'){
177
+      this.requiredChange('quickOperation', false);
178
+      this.requiredChange('taskTypeIds', false);
179
+      this.requiredChange('taskTypeInspectIds', true);
147 180
       this.requiredChange('urgentIds', false);
148 181
     }
149 182
   }
@@ -180,14 +213,20 @@ export class ConfigurationQuickComponent implements OnInit {
180 213
     this.coopData = data;
181 214
 
182 215
     this.changeBussType(data.bussType.value);
183
-    data.taskTypeIds && this.changeTaskTypeIds(data.taskTypeIds.split(',').map(v => +v));
216
+    if(data.bussType.value === 'goods'){
217
+      data.taskTypeIds && this.changeTaskTypeIds(data.taskTypeIds.split(',').map(v => +v));
218
+    }
184 219
 
185 220
     this.validatePriorityForm.controls.orders.setValue(data.orders);
186 221
     this.validatePriorityForm.controls.icon.setValue(data.icon.id);
187 222
     this.validatePriorityForm.controls.name.setValue(data.name);
188 223
     this.validatePriorityForm.controls.bussType.setValue(data.bussType.value);
189 224
     data.quickOperation && this.validatePriorityForm.controls.quickOperation.setValue(data.quickOperation.id);
190
-    data.taskTypeIds && this.validatePriorityForm.controls.taskTypeIds.setValue(data.taskTypeIds.split(',').map(v => +v));
225
+    if(data.bussType.value === 'goods'){
226
+      data.taskTypeIds && this.validatePriorityForm.controls.taskTypeIds.setValue(data.taskTypeIds.split(',').map(v => +v));
227
+    }else if(data.bussType.value === 'inspect'){
228
+      data.taskTypeIds && this.validatePriorityForm.controls.taskTypeInspectIds.setValue(+data.taskTypeIds);
229
+    }
191 230
     if(data.urgentIds){
192 231
       let ids = data.urgentIds.split(',').map(v => +v);
193 232
       let urgentIds = this.gdEmergencyList.map(v => {
@@ -212,6 +251,12 @@ export class ConfigurationQuickComponent implements OnInit {
212 251
     console.log(this.validatePriorityForm.value);
213 252
     this.btnLoading = true;
214 253
     let postData:any = {};
254
+    let taskTypeIds;
255
+    if(this.validatePriorityForm.value.bussType === 'goods'){
256
+      taskTypeIds = this.validatePriorityForm.value.taskTypeIds.length ? this.validatePriorityForm.value.taskTypeIds.toString() : undefined
257
+    }else if(this.validatePriorityForm.value.bussType === 'inspect'){
258
+      taskTypeIds = this.validatePriorityForm.value.taskTypeInspectIds ? this.validatePriorityForm.value.taskTypeInspectIds.toString() : undefined
259
+    }
215 260
     if (this.add) {
216 261
       //增加
217 262
       postData = {
@@ -221,7 +266,7 @@ export class ConfigurationQuickComponent implements OnInit {
221 266
         name: this.validatePriorityForm.value.name,
222 267
         bussType: this.validatePriorityForm.value.bussType ? this.pagePermissionBussTypeList.find(v => v.value === this.validatePriorityForm.value.bussType) : undefined,
223 268
         quickOperation: this.validatePriorityForm.value.quickOperation ? { id: this.validatePriorityForm.value.quickOperation } : undefined,
224
-        taskTypeIds: this.validatePriorityForm.value.taskTypeIds.length ? this.validatePriorityForm.value.taskTypeIds.toString() : undefined,
269
+        taskTypeIds,
225 270
         urgentIds: this.validatePriorityForm.value.urgentIds.length ? this.validatePriorityForm.value.urgentIds.filter(v => v.checked).map(v => v.value).toString() : undefined,
226 271
         active: this.validatePriorityForm.value.active,
227 272
       };
@@ -234,7 +279,7 @@ export class ConfigurationQuickComponent implements OnInit {
234 279
         name: this.validatePriorityForm.value.name,
235 280
         bussType: this.validatePriorityForm.value.bussType ? this.pagePermissionBussTypeList.find(v => v.value === this.validatePriorityForm.value.bussType) : undefined,
236 281
         quickOperation: this.validatePriorityForm.value.quickOperation ? { id: this.validatePriorityForm.value.quickOperation } : undefined,
237
-        taskTypeIds: this.validatePriorityForm.value.taskTypeIds.length ? this.validatePriorityForm.value.taskTypeIds.toString() : undefined,
282
+        taskTypeIds,
238 283
         urgentIds: this.validatePriorityForm.value.urgentIds.length ? this.validatePriorityForm.value.urgentIds.filter(v => v.checked).map(v => v.value).toString() : undefined,
239 284
         active: this.validatePriorityForm.value.active,
240 285
       };
@@ -268,7 +313,8 @@ export class ConfigurationQuickComponent implements OnInit {
268 313
       name: [null, [Validators.required]],//按钮名称
269 314
       bussType: [null, [Validators.required]],//关联业务
270 315
       quickOperation: [null, [Validators.required]],//快捷操作
271
-      taskTypeIds: [[], [Validators.required]],//关联任务类型
316
+      taskTypeIds: [[], [Validators.required]],//关联任务类型-标本,其他,万能
317
+      taskTypeInspectIds: [null, [Validators.required]],//关联任务类型-陪检
272 318
       urgentIds: [this.gdEmergencyList.map(v => {v.checked = false;return v;}), [Validators.required]],//是否显示标本数量
273 319
       active: [0, [Validators.required]],//是否启用
274 320
     });

+ 4 - 0
src/app/views/hushijiandan/hushijiandan.component.html

@@ -357,6 +357,10 @@
357 357
                           <span *ngIf="item.urgentFlag" (click)="changeSpeDetail($event, 1)">急:<span class="red">{{ specimenWorkOrderMsg.specimenCount ? specimenWorkOrderMsg.specimenCount.urgent : 0 }}</span></span>
358 358
                           <span *ngIf="item.ordinaryFlag" (click)="changeSpeDetail($event, 0)">普:{{ specimenWorkOrderMsg.specimenCount ? specimenWorkOrderMsg.specimenCount.noUrgent : 0 }}</span>
359 359
                         </div>
360
+                        <div class="navSpecimen" *ngIf="item.bussType.value === 'inspect'">
361
+                          <span>预:0</span>
362
+                          <span>检:0</span>
363
+                        </div>
360 364
                       </div>
361 365
                     </div>
362 366
                   </div>

+ 12 - 6
src/app/views/hushijiandan/hushijiandan.component.less

@@ -270,7 +270,7 @@
270 270
         padding: 0 5px;
271 271
       }
272 272
     }
273
-		
273
+
274 274
 		.new-title {
275 275
 		  width: 100%;
276 276
 		  text-align: center;
@@ -286,7 +286,7 @@
286 286
 		    padding: 0 5px;
287 287
 		  }
288 288
 		}
289
-		
289
+
290 290
 		.title-weight{
291 291
 			font-weight: bold;
292 292
 			font-size: 15px;
@@ -402,7 +402,7 @@
402 402
 				            text-decoration: underline;
403 403
 				            cursor: pointer;
404 404
 				          }
405
-									
405
+
406 406
 									.coop-btn{
407 407
 										button{
408 408
 											margin-top: 0 !important;
@@ -415,14 +415,14 @@
415 415
 										  display: inline-block;
416 416
 										  cursor: pointer;
417 417
 										  position: relative;
418
-										
418
+
419 419
 										  &::after {
420 420
 										    content: "|";
421 421
 										    position: absolute;
422 422
 										    top: 0;
423 423
 										    right: 0;
424 424
 										  }
425
-										
425
+
426 426
 										  &:nth-last-child(1) {
427 427
 										    &::after {
428 428
 										      content: "";
@@ -430,7 +430,7 @@
430 430
 										  }
431 431
 										}
432 432
 									}
433
-									
433
+
434 434
 				          .coop {
435 435
 				            button{
436 436
 				              color: #333;
@@ -1461,6 +1461,12 @@
1461 1461
                           font-size: 24px;
1462 1462
                         }
1463 1463
                       }
1464
+                      &.inspect{
1465
+                        background: linear-gradient( 41deg, #28EDD9 0%, #0FBBE2 100%);
1466
+                        .icon_transport{
1467
+                          font-size: 24px;
1468
+                        }
1469
+                      }
1464 1470
                     }
1465 1471
                     h2{
1466 1472
                       font-size: 12px;

+ 2 - 0
src/app/views/hushijiandan/hushijiandan.component.ts

@@ -783,6 +783,8 @@ export class HushijiandanComponent implements OnInit {
783 783
       return 'drugbag';
784 784
     }else if(icon === 'transport-baoxiu'){
785 785
       return 'incident';
786
+    }else if(icon === 'transport-peihuguanli'){
787
+      return 'inspect';
786 788
     }else{
787 789
       return '';
788 790
     }

+ 26 - 3
src/assets/iconfont/demo_index.html

@@ -55,6 +55,12 @@
55 55
           <ul class="icon_lists dib-box">
56 56
           
57 57
             <li class="dib">
58
+              <span class="icon icon_transport">&#xe670;</span>
59
+                <div class="name">陪护管理</div>
60
+                <div class="code-name">&amp;#xe670;</div>
61
+              </li>
62
+          
63
+            <li class="dib">
58 64
               <span class="icon icon_transport">&#xe6e1;</span>
59 65
                 <div class="name">数据生成规则</div>
60 66
                 <div class="code-name">&amp;#xe6e1;</div>
@@ -1068,9 +1074,9 @@
1068 1074
 <pre><code class="language-css"
1069 1075
 >@font-face {
1070 1076
   font-family: 'icon_transport';
1071
-  src: url('iconfont.woff2?t=1743147201353') format('woff2'),
1072
-       url('iconfont.woff?t=1743147201353') format('woff'),
1073
-       url('iconfont.ttf?t=1743147201353') format('truetype');
1077
+  src: url('iconfont.woff2?t=1743992402666') format('woff2'),
1078
+       url('iconfont.woff?t=1743992402666') format('woff'),
1079
+       url('iconfont.ttf?t=1743992402666') format('truetype');
1074 1080
 }
1075 1081
 </code></pre>
1076 1082
           <h3 id="-iconfont-">第二步:定义使用 iconfont 的样式</h3>
@@ -1097,6 +1103,15 @@
1097 1103
         <ul class="icon_lists dib-box">
1098 1104
           
1099 1105
           <li class="dib">
1106
+            <span class="icon icon_transport transport-peihuguanli"></span>
1107
+            <div class="name">
1108
+              陪护管理
1109
+            </div>
1110
+            <div class="code-name">.transport-peihuguanli
1111
+            </div>
1112
+          </li>
1113
+          
1114
+          <li class="dib">
1100 1115
             <span class="icon icon_transport transport-shujushengchengguize"></span>
1101 1116
             <div class="name">
1102 1117
               数据生成规则
@@ -2619,6 +2634,14 @@
2619 2634
           
2620 2635
             <li class="dib">
2621 2636
                 <svg class="icon svg-icon" aria-hidden="true">
2637
+                  <use xlink:href="#transport-peihuguanli"></use>
2638
+                </svg>
2639
+                <div class="name">陪护管理</div>
2640
+                <div class="code-name">#transport-peihuguanli</div>
2641
+            </li>
2642
+          
2643
+            <li class="dib">
2644
+                <svg class="icon svg-icon" aria-hidden="true">
2622 2645
                   <use xlink:href="#transport-shujushengchengguize"></use>
2623 2646
                 </svg>
2624 2647
                 <div class="name">数据生成规则</div>

+ 7 - 3
src/assets/iconfont/iconfont.css

@@ -1,8 +1,8 @@
1 1
 @font-face {
2 2
   font-family: "icon_transport"; /* Project id 4543613 */
3
-  src: url('iconfont.woff2?t=1743147201353') format('woff2'),
4
-       url('iconfont.woff?t=1743147201353') format('woff'),
5
-       url('iconfont.ttf?t=1743147201353') format('truetype');
3
+  src: url('iconfont.woff2?t=1743992402666') format('woff2'),
4
+       url('iconfont.woff?t=1743992402666') format('woff'),
5
+       url('iconfont.ttf?t=1743992402666') format('truetype');
6 6
 }
7 7
 
8 8
 .icon_transport {
@@ -13,6 +13,10 @@
13 13
   -moz-osx-font-smoothing: grayscale;
14 14
 }
15 15
 
16
+.transport-peihuguanli:before {
17
+  content: "\e670";
18
+}
19
+
16 20
 .transport-shujushengchengguize:before {
17 21
   content: "\e6e1";
18 22
 }

Файловите разлики са ограничени, защото са твърде много
+ 1 - 1
src/assets/iconfont/iconfont.js


+ 7 - 0
src/assets/iconfont/iconfont.json

@@ -6,6 +6,13 @@
6 6
   "description": "",
7 7
   "glyphs": [
8 8
     {
9
+      "icon_id": "24101601",
10
+      "name": "陪护管理",
11
+      "font_class": "peihuguanli",
12
+      "unicode": "e670",
13
+      "unicode_decimal": 58992
14
+    },
15
+    {
9 16
       "icon_id": "18532319",
10 17
       "name": "数据生成规则",
11 18
       "font_class": "shujushengchengguize",

BIN
src/assets/iconfont/iconfont.ttf


BIN
src/assets/iconfont/iconfont.woff


BIN
src/assets/iconfont/iconfont.woff2