seimin 1 год назад
Родитель
Сommit
6fb5e8a3c1

+ 1 - 1
proxy.conf.json

@@ -1,6 +1,6 @@
1 1
 {
2 2
   "/service": {
3
-    "target": "http://192.168.3.108",
3
+    "target": "http://192.168.4.240",
4 4
     "logLevel": "debug",
5 5
     "changeOrigin": true,
6 6
     "pathRewrite": {

+ 4 - 4
src/app/share/allocation-worker/allocation-worker.component.html

@@ -24,8 +24,8 @@
24 24
             <tr class="thead">
25 25
               <th nzWidth="30px" style="text-align: center"></th>
26 26
               <th style="text-align: center">姓名</th>
27
-              <!-- <th nzWidth="140px" style="text-align: center">工作情况</th> -->
28
-              <!-- <th nzWidth="200px" style="text-align: center">最后地址以及目标地址</th> -->
27
+              <th nzWidth="303px" style="text-align: center" *ngIf="workerDispatchUserList === 'dynamic'">工单数</th>
28
+              <th nzWidth="303px" style="text-align: center" *ngIf="workerDispatchUserList === 'dynamic'">空闲时间</th>
29 29
             </tr>
30 30
           </thead>
31 31
           <tbody>
@@ -33,8 +33,8 @@
33 33
               <td nzShowCheckbox [(nzChecked)]="mapOfCheckedId[data.id]" (nzCheckedChange)="checkAllotWorker(data.id)">
34 34
               </td>
35 35
               <td nzAlign="center">{{ data.name }}</td>
36
-              <!-- <td nzAlign="center">{{ data.freetime }}</td> -->
37
-              <!-- <td nzAlign="center">{{ data.palce||'-' }}</td> -->
36
+              <td nzAlign="center" *ngIf="workerDispatchUserList === 'dynamic'">{{ data.totalCount }}</td>
37
+              <td nzAlign="center" *ngIf="workerDispatchUserList === 'dynamic'">{{ data.freetime }}</td>
38 38
             </tr>
39 39
           </tbody>
40 40
         </nz-table>

+ 2 - 0
src/app/share/allocation-worker/allocation-worker.component.ts

@@ -43,6 +43,7 @@ export class AllocationWorkerComponent implements OnInit {
43 43
   loading1 = false;
44 44
   nameMask = false; //是否禁用
45 45
   groupMask = false; //是否禁用
46
+  workerDispatchUserList = '';
46 47
   getWorkerList(pageIndex?) {
47 48
     this.id = this.route.snapshot.paramMap.get("id");
48 49
     this.stateId = this.route.snapshot.paramMap.get("stateId");
@@ -81,6 +82,7 @@ export class AllocationWorkerComponent implements OnInit {
81 82
           this.loading1 = false;
82 83
         }
83 84
         console.log(data);
85
+        this.workerDispatchUserList = data.type;
84 86
         this.workerList = data.data;
85 87
         this.listLength = data.totalNum;
86 88
       });

+ 1 - 0
src/app/views/fuwutai/fuwutai.component.ts

@@ -905,6 +905,7 @@ export class FuwutaiComponent implements OnInit {
905 905
       groups: [typeId],
906 906
       idx: 0,
907 907
       sum: 100,
908
+      hosId: this.checkedHos,
908 909
     };
909 910
     if (typeId == -1) {
910 911
       let groups = [];

+ 14 - 0
src/app/views/hospital-config/hospital-config.component.html

@@ -474,6 +474,20 @@
474 474
                 </nz-radio-group>
475 475
               </nz-form-control>
476 476
             </ng-container>
477
+            <ng-container *ngSwitchCase="'dispatchUserList'">
478
+              <nz-form-label [nzSpan]="24" [nzFor]="config.key" nzRequired class="label">{{ config.desc }}</nz-form-label>
479
+              <nz-form-control [nzSpan]="24" [nzErrorTip]="'请选择' + config.desc + '!'">
480
+                <nz-select [formControlName]="config.key" [nzPlaceHolder]="'请选择' + config.desc" nzShowSearch>
481
+                  <ng-container *ngFor="let o of dispatchUserList">
482
+                    <nz-option *ngIf="true" nzValue="{{o.id}}" nzLabel="{{o.name}}"></nz-option>
483
+                  </ng-container>
484
+                  <nz-option *ngIf="false" nzDisabled nzCustomContent>
485
+                    <i nz-icon nzType="loading" class="loading-icon"></i>
486
+                    正在加载中...
487
+                  </nz-option>
488
+                </nz-select>
489
+              </nz-form-control>
490
+            </ng-container>
477 491
             <ng-container *ngSwitchDefault>
478 492
               <nz-form-label
479 493
                 [nzSpan]="24"

+ 9 - 0
src/app/views/hospital-config/hospital-config.component.ts

@@ -27,6 +27,7 @@ export class HospitalConfigComponent implements OnInit {
27 27
   searchLoading: boolean = false;
28 28
   hospitalConfigList = []; //院区系统配置列表
29 29
   roleList = []; //角色列表
30
+  dispatchUserList = []; //派单列表
30 31
   taskTypeList = []; //任务类型列表
31 32
   allTaskTypeList = []; //任务类型列表
32 33
   deptList = []; //科室列表
@@ -162,6 +163,7 @@ export class HospitalConfigComponent implements OnInit {
162 163
   //初始化请求数据
163 164
   getInit() {
164 165
     this.isLoading = true;
166
+    this.getDispatchUserList();
165 167
     Promise.all([
166 168
       this.getRoleList(),
167 169
       this.getDeptList(this.hosId),
@@ -202,6 +204,7 @@ export class HospitalConfigComponent implements OnInit {
202 204
         if (result[7].status == 200) {
203 205
           this.isHosItsmIncident = result[7].list.find(v => v.keyconfig == 'itsmIncident').valueconfig == 1;
204 206
         }
207
+
205 208
         this.getHospitalConfigList(this.hosId).subscribe((res) => {
206 209
           if (res.status == 200) {
207 210
             this.hospitalConfigList = res.list;
@@ -362,6 +365,12 @@ export class HospitalConfigComponent implements OnInit {
362 365
       .getFetchDataList("user/data", "role", postData)
363 366
       .toPromise();
364 367
   }
368
+  // 获取派单列表
369
+  getDispatchUserList() {
370
+    this.mainService.getDictionary("list", "dispatchUserList").subscribe(result => {
371
+      this.dispatchUserList = result || [];
372
+    })
373
+  }
365 374
   // 获取任务类型列表(患者其他服务)
366 375
   getTaskTypeList(associationTypeIds?,keyword?) {
367 376
     let postData: any = {

+ 1 - 1
src/main.ts

@@ -8,7 +8,7 @@ if (environment.production) {
8 8
   enableProdMode();
9 9
   if (window) {
10 10
     window.console.log = function () { };
11
-    console.info('v2.4.43');
11
+    console.info('v2.4.44');
12 12
   }
13 13
 }
14 14
 platformBrowserDynamic().bootstrapModule(AppModule)