seimin 4 kuukautta sitten
vanhempi
commit
78877b5463

+ 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.105",
4 4
     "logLevel": "debug",
5 5
     "changeOrigin": true,
6 6
     "pathRewrite": {

+ 85 - 0
src/app/components/display-form/display-form.component.html

@@ -0,0 +1,85 @@
1
+<!-- 展示形式 -->
2
+<div class="init recallOrder display_flex justify-content_flex-center align-items_center">
3
+  <div class="con modalBody">
4
+    <div class="title">
5
+      展示形式<i class="icon_transport transport-guanbi" (click)="cancelInit()"></i>
6
+    </div>
7
+    <div class="content">
8
+      <div class="conditions" *ngIf="!isLoading">
9
+        <div nz-row>
10
+          <div nz-col nzSpan="4">护工信息隐藏:</div>
11
+          <div nz-col nzSpan="20">
12
+            <nz-radio-group class="w100" [(ngModel)]="hurseInfoHiding">
13
+              <label nz-radio [nzValue]="1">是</label>
14
+              <label nz-radio [nzValue]="0">否</label>
15
+            </nz-radio-group>
16
+          </div>
17
+        </div>
18
+        <div nz-row>
19
+          <div nz-col nzSpan="4">护工信息:</div>
20
+          <div nz-col nzSpan="20">
21
+            <nz-radio-group class="w100" [(ngModel)]="patientCareCol">
22
+              <!-- <label nz-radio [nzValue]="6">单排</label> -->
23
+              <label nz-radio [nzValue]="7">14人</label>
24
+              <!-- <label nz-radio [nzValue]="4">8人</label> -->
25
+            </nz-radio-group>
26
+          </div>
27
+        </div>
28
+        <div nz-row>
29
+          <div nz-col nzSpan="4">工单信息:</div>
30
+          <div nz-col nzSpan="20">
31
+            <nz-radio-group class="w100" [(ngModel)]="txtLabelCol">
32
+              <label nz-radio [nzValue]="1">一排一列</label>
33
+              <!-- <label nz-radio [nzValue]="2">一排两列</label> -->
34
+            </nz-radio-group>
35
+          </div>
36
+        </div>
37
+        <div nz-row>
38
+          <div nz-col nzSpan="4">配送人员刷新:</div>
39
+          <div nz-col nzSpan="4">
40
+            <nz-input-group nzAddOnAfter="秒">
41
+              <nz-input-number class="w100" [(ngModel)]="workerInfoTime" [nzMin]="60" [nzStep]="1" placeholder="请输入配送人员刷新时间"></nz-input-number>
42
+            </nz-input-group>
43
+          </div>
44
+        </div>
45
+        <div nz-row>
46
+          <div nz-col nzSpan="4">工单刷新:</div>
47
+          <div nz-col nzSpan="4">
48
+            <nz-input-group nzAddOnAfter="秒">
49
+              <nz-input-number class="w100" [(ngModel)]="orderInfoTime" [nzMin]="60" [nzStep]="1" placeholder="请输入工单刷新时间"></nz-input-number>
50
+            </nz-input-group>
51
+          </div>
52
+        </div>
53
+        <div nz-row>
54
+          <div nz-col nzSpan="8">是否开启定时播报未派出工单提示音:</div>
55
+          <div nz-col nzSpan="16">
56
+            <nz-radio-group class="w100" [(ngModel)]="audioNotDispatched">
57
+              <label nz-radio [nzValue]="true">是</label>
58
+              <label nz-radio [nzValue]="false">否</label>
59
+            </nz-radio-group>
60
+          </div>
61
+        </div>
62
+        <div nz-row>
63
+          <div nz-col nzSpan="4">排序方式:</div>
64
+          <div nz-col nzSpan="20">
65
+            <nz-radio-group class="w100" [(ngModel)]="orderType">
66
+              <label nz-radio nzValue="priority">优先级</label>
67
+              <label nz-radio nzValue="time">建单时间</label>
68
+            </nz-radio-group>
69
+          </div>
70
+        </div>
71
+      </div>
72
+      <div class="conditions display_flex align-items_center justify-content_flex-center" *ngIf="isLoading">
73
+        <nz-spin nzSimple></nz-spin>
74
+      </div>
75
+    </div>
76
+    <div class="btns display_flex justify-content_flex-center">
77
+      <button class="btn" nz-button nzType="primary" [nzLoading]="saveLoading" (click)="saveOrderScope()" *ngIf="!isLoading">
78
+        保存
79
+      </button>
80
+      <button class="btn cancel" nz-button nzType="default" (click)="cancelInit()">
81
+        知道了
82
+      </button>
83
+    </div>
84
+  </div>
85
+</div>

+ 184 - 0
src/app/components/display-form/display-form.component.less

@@ -0,0 +1,184 @@
1
+@import "../../../../src/theme.less";
2
+:host {
3
+  ::ng-deep .ant-checkbox-wrapper + .ant-checkbox-wrapper{
4
+    margin-left: 0!important;
5
+  }
6
+  .required{
7
+    position: relative;
8
+    &::before{
9
+      font-family: icon_transport;
10
+      font-size: 10px;
11
+      content:'\e606';
12
+      color: red;
13
+      position: absolute;
14
+      right: 100%;
15
+      top: 50%;
16
+      transform: translateY(-50%);
17
+      margin-right: 2px;
18
+    }
19
+  }
20
+  // 撤回工单
21
+  .recallOrder {
22
+    position: fixed;
23
+    left: 0;
24
+    top: 0;
25
+    width: 100%;
26
+    height: 100%;
27
+    background: rgba(0, 0, 0, 0.4);
28
+    z-index: 9999999;
29
+
30
+    .modalBody {
31
+      width: 350px;
32
+      height: 220px;
33
+      background: #fff;
34
+      border-radius: 5px;
35
+      padding: 10px 20px;
36
+      color: #333;
37
+
38
+      .title {
39
+        width: 100%;
40
+        text-align: center;
41
+        font-size: 18px;
42
+        position: relative;
43
+
44
+        i {
45
+          position: absolute;
46
+          right: 0;
47
+          top: 0;
48
+          font-size: 20px;
49
+          color: #666;
50
+          cursor: pointer;
51
+          padding: 0 5px;
52
+        }
53
+      }
54
+
55
+      .content {
56
+        width: 310px;
57
+        height: 117px;
58
+        background: #f9fafb;
59
+        border: 1px solid #e5e9ed;
60
+        border-radius: 5px;
61
+        overflow: hidden;
62
+        margin-top: 12px;
63
+
64
+        div {
65
+          text-align: center;
66
+          margin: 0;
67
+
68
+          &.icon {
69
+            margin-top: 17px;
70
+
71
+            i {
72
+              color: #ff3b53;
73
+              font-size: 30px !important;
74
+
75
+              &.transport-wenhao {
76
+                color: #f5a523;
77
+              }
78
+            }
79
+          }
80
+
81
+          &.defeat {
82
+            color: #333;
83
+            font-size: 18px;
84
+          }
85
+
86
+          &:nth-child(3) {
87
+            font-size: 14px;
88
+            color: #666;
89
+          }
90
+        }
91
+
92
+        .conditions {
93
+          height: 400px;
94
+          overflow: auto;
95
+          padding: 16px 20px;
96
+
97
+          div {
98
+            text-align: left;
99
+            margin-bottom: 8px;
100
+          }
101
+        }
102
+      }
103
+
104
+      .btns {
105
+        button {
106
+          margin-top: 10px;
107
+          margin-left: 5px;
108
+        }
109
+
110
+        .recDelBtn {
111
+          width: 115px;
112
+        }
113
+      }
114
+    }
115
+  }
116
+
117
+  // 初始化设置
118
+  .init {
119
+    position: fixed;
120
+    left: 0;
121
+    top: 0;
122
+    width: 100%;
123
+    height: 100%;
124
+    background: rgba(0, 0, 0, 0.4);
125
+    z-index: 99;
126
+
127
+    .con {
128
+      width: 832px;
129
+      height: auto;
130
+      background: #fff;
131
+      border-radius: 5px;
132
+      padding: 10px 20px;
133
+      color: #333;
134
+
135
+      .content {
136
+        width: 100%;
137
+        height: auto;
138
+
139
+        .scopeTab{
140
+          display: flex;
141
+          height: 60px;
142
+          border-bottom: 1px solid #D9D9D9;
143
+          .scopeTabItem{
144
+            flex: 1;
145
+            display: flex;
146
+            justify-content: center;
147
+            align-items: center;
148
+            border-right: 1px solid #D9D9D9;
149
+            background-color: #fff;
150
+            cursor: pointer;
151
+            &:last-of-type{
152
+              border-right: none;
153
+            }
154
+            &.active{
155
+              background-color: #F0F6ED;
156
+            }
157
+          }
158
+        }
159
+
160
+        .remin {
161
+          font-size: 14px;
162
+          color: #666;
163
+          line-height: 48px;
164
+          border-bottom: 1px solid #e5e9ed;
165
+        }
166
+
167
+        .boxes {
168
+          color: #333;
169
+          padding: 8px 12px;
170
+
171
+          & > div:nth-child(1) {
172
+            color: #333;
173
+            text-align: left;
174
+          }
175
+
176
+          & > div:nth-child(2) {
177
+            color: #666;
178
+            text-align: left;
179
+          }
180
+        }
181
+      }
182
+    }
183
+  }
184
+}

+ 125 - 0
src/app/components/display-form/display-form.component.ts

@@ -0,0 +1,125 @@
1
+import { Component, OnInit, Output, Input } from '@angular/core';
2
+import { EventEmitter } from '@angular/core';
3
+import { MainService } from 'src/app/services/main.service';
4
+import { ToolService } from 'src/app/services/tool.service';
5
+import { NzMessageService } from 'ng-zorro-antd';
6
+
7
+@Component({
8
+  selector: 'app-display-form',
9
+  templateUrl: './display-form.component.html',
10
+  styleUrls: ['./display-form.component.less']
11
+})
12
+export class DisplayFormComponent implements OnInit {
13
+  @Output() confirmModal = new EventEmitter();
14
+  @Output() cancelModal = new EventEmitter();
15
+  constructor(
16
+    private mainService: MainService,
17
+    private tool: ToolService,
18
+    private message: NzMessageService,
19
+  ) { }
20
+
21
+  controlView = {}; //展示形式
22
+  patientCareCol: number = 7; //顶部工单列数(4列-8人,7列-14人,6列-单排 )
23
+  hurseInfoHiding = 1; //护工信息隐藏
24
+  txtLabelCol: number = 1; //工单信息列数
25
+  orderRefreshTime: number = 30; //工单刷新倒计时
26
+  orderInfoTime: number = 60; //工单刷新时间
27
+  workerRefreshTime: number = 30; //配送人员刷新倒计时
28
+  workerInfoTime: number = 60; //配送人员刷新时间
29
+  audioNotDispatched: boolean = true; //是否开启定时播报未派出工单提示音
30
+  orderType: string = 'priority'; //排序方式
31
+
32
+  ngOnInit() {
33
+    this.initControlView();
34
+  }
35
+
36
+  isLoading:boolean = false;
37
+  initControlView() {
38
+    this.isLoading = true;
39
+    let postData = {
40
+      controlView: {},
41
+      idx: 0,
42
+      sum: 1,
43
+    };
44
+    this.mainService
45
+      .coopTypeConfig("fetchDataList", "controlView", postData)
46
+      .subscribe((data) => {
47
+        this.isLoading = false;
48
+        this.controlView = data.list[0] ? data.list[0] : [];
49
+        if (!data.list.length) return;
50
+        // switch (data.list[0].workerNum) {
51
+        //   case 1:
52
+        //     this.patientCareCol = 6;
53
+        //     break;
54
+        //   case 2:
55
+        //     this.patientCareCol = 7;
56
+        //     break;
57
+        //   case 3:
58
+        //     this.patientCareCol = 4;
59
+        //     break;
60
+        // }
61
+        this.patientCareCol = 7;
62
+        this.hurseInfoHiding = data.list[0].hurseInfoHiding ? 1 : 0;
63
+        // this.txtLabelCol = data.list[0].labelNum;
64
+        this.txtLabelCol = 1;
65
+        this.orderRefreshTime = this.orderInfoTime = data.list[0].orderInfoTime;
66
+        this.workerRefreshTime = this.workerInfoTime = data.list[0].workerInfoTime;
67
+        this.audioNotDispatched = data.list[0].unsendOrderVoice !== false;
68
+        this.orderType = data.list[0].orderType || 'priority';
69
+      });
70
+  }
71
+
72
+  // 保存展示形式
73
+  saveLoading: boolean = false; //保存按钮loading状态
74
+  saveOrderScope() {
75
+    if(!this.workerInfoTime){
76
+      this.message.warning('配送人员刷新时间必填!')
77
+      return;
78
+    }
79
+    if(!this.orderInfoTime){
80
+      this.message.warning('工单刷新时间必填!')
81
+      return;
82
+    }
83
+    this.saveLoading = true;
84
+    let wn;
85
+    switch (this.patientCareCol) {
86
+      case 6:
87
+        wn = 1;
88
+        break;
89
+      case 7:
90
+        wn = 2;
91
+        break;
92
+      case 4:
93
+        wn = 3;
94
+        break;
95
+    }
96
+
97
+    let postData = {
98
+      controlView: {
99
+        workerNum: wn,
100
+        labelNum: this.txtLabelCol,
101
+        workerInfoTime: this.workerInfoTime,
102
+        orderInfoTime: this.orderInfoTime,
103
+        unsendOrderVoice: this.audioNotDispatched,
104
+        hurseInfoHiding: this.hurseInfoHiding == 1,
105
+        orderType: this.orderType,
106
+      },
107
+    };
108
+    if (this.controlView["id"]) {
109
+      postData.controlView["id"] = this.controlView["id"];
110
+    }
111
+
112
+    console.log(postData);
113
+    this.mainService
114
+      .coopTypeConfig("addData", "controlView", postData)
115
+      .subscribe((data) => {
116
+        this.saveLoading = false;
117
+        this.confirmModal.emit(data);
118
+      });
119
+  }
120
+
121
+  // 关闭弹窗
122
+  cancelInit() {
123
+    this.cancelModal.emit();
124
+  }
125
+}

+ 20 - 0
src/app/components/display-form/display-form.module.ts

@@ -0,0 +1,20 @@
1
+import { NgModule } from '@angular/core';
2
+import { CommonModule } from '@angular/common';
3
+
4
+import { DisplayFormComponent } from './display-form.component';
5
+import { ShareModule } from 'src/app/share/share.module';
6
+
7
+
8
+@NgModule({
9
+  declarations: [
10
+    DisplayFormComponent,
11
+  ],
12
+  imports: [
13
+    CommonModule,
14
+    ShareModule,
15
+  ],
16
+  exports: [
17
+    DisplayFormComponent,
18
+  ]
19
+})
20
+export class DisplayFormModule { }

+ 8 - 6
src/app/views/fuwutai/fuwutai.component.html

@@ -93,7 +93,7 @@
93 93
           </nz-select>
94 94
         </div>
95 95
         <span class="toLastTime">
96
-          <span class="order" (click)="orderList(1)">{{orderType1 === 'priority' ? '优先级' : '时间'}}</span>
96
+          <span class="order" (click)="orderList()">{{orderType === 'priority' ? '优先级' : '建单时间'}}</span>
97 97
           <span class="itsmOrHsms" [ngClass]="{bold: flagList.itsmFlag1}" *ngIf="itsmData.mdv2Switch" (click)="filterOrderList('itsm', 1)">运维</span>
98 98
           <span class="itsmOrHsms" *ngIf="itsmData.mdv2Switch && hsmsData.hsmsSwitch">|</span>
99 99
           <span class="itsmOrHsms" [ngClass]="{bold: flagList.hsmsFlag1}" *ngIf="hsmsData.hsmsSwitch" (click)="filterOrderList('hsms', 1)">配送</span>
@@ -313,7 +313,7 @@
313 313
       <div class="head">
314 314
         <span class="auto_tit"><span *ngIf="flagList.hsmsFlag2">待到达</span><span *ngIf="flagList.itsmFlag2 && flagList.hsmsFlag2">/</span><span *ngIf="flagList.itsmFlag2">待接单</span>({{ arriveList.length }}条)</span>
315 315
         <span class="toLastTime">
316
-          <span class="order" (click)="orderList(2)">{{orderType2 === 'priority' ? '优先级' : '时间'}}</span>
316
+          <span class="order" (click)="orderList()">{{orderType === 'priority' ? '优先级' : '建单时间'}}</span>
317 317
           <span class="itsmOrHsms" [ngClass]="{bold: flagList.itsmFlag2}" *ngIf="itsmData.mdv2Switch" (click)="filterOrderList('itsm', 2)">运维</span>
318 318
           <span class="itsmOrHsms" *ngIf="itsmData.mdv2Switch && hsmsData.hsmsSwitch">|</span>
319 319
           <span class="itsmOrHsms" [ngClass]="{bold: flagList.hsmsFlag2}" *ngIf="hsmsData.hsmsSwitch" (click)="filterOrderList('hsms', 2)">配送</span>
@@ -527,7 +527,7 @@
527 527
       <div class="head">
528 528
         <span class="auto_tit"><span *ngIf="flagList.hsmsFlag3">执行中</span><span *ngIf="flagList.itsmFlag3 && flagList.hsmsFlag3">/</span><span *ngIf="flagList.itsmFlag3">处理中</span>({{ executionList.length }}条)</span>
529 529
         <span class="toLastTime">
530
-          <span class="order" (click)="orderList(3)">{{orderType3 === 'priority' ? '优先级' : '时间'}}</span>
530
+          <span class="order" (click)="orderList()">{{orderType === 'priority' ? '优先级' : '建单时间'}}</span>
531 531
           <span class="itsmOrHsms" [ngClass]="{bold: flagList.itsmFlag3}" *ngIf="itsmData.mdv2Switch" (click)="filterOrderList('itsm', 3)">运维</span>
532 532
           <span class="itsmOrHsms" *ngIf="itsmData.mdv2Switch && hsmsData.hsmsSwitch">|</span>
533 533
           <span class="itsmOrHsms" [ngClass]="{bold: flagList.hsmsFlag3}" *ngIf="hsmsData.hsmsSwitch" (click)="filterOrderList('hsms', 3)">配送</span>
@@ -737,7 +737,7 @@
737 737
   <div id="fixedMenu" class="fixed">
738 738
     <div class="left" *ngIf="fixedTab != '' && showLastItems && fixedTab != 'newOrder' && fixedTab != 'toSystem' && fixedTab != 'logout'">
739 739
       <!-- 展示形式 -->
740
-      <div class="con" *ngIf="fixedTab == 'colType' && fixedTab != 'newOrder'">
740
+      <!-- <div class="con" *ngIf="fixedTab == 'colType'">
741 741
         <div class="title">展示形式</div>
742 742
         <div class="conditions">
743 743
           <div nz-row>
@@ -824,7 +824,7 @@
824 824
             保存
825 825
           </button>
826 826
         </div>
827
-      </div>
827
+      </div> -->
828 828
       <!-- 叫号信息 -->
829 829
       <div
830 830
         class="con tableCon"
@@ -963,7 +963,7 @@
963 963
             <div [ngClass]="{ item: true, checked: fixedTab == 'orderScope' }" (click)="showOrderScope()">
964 964
               工单范围
965 965
             </div>
966
-            <div [ngClass]="{ item: true, checked: fixedTab == 'colType' }" (click)="checkFixedTab('colType')">
966
+            <div [ngClass]="{ item: true, checked: fixedTab == 'colType' }" (click)="showDisplayForm()">
967 967
               展示形式
968 968
             </div>
969 969
             <div [ngClass]="{ item: true, checked: fixedTab == 'nucleicAcidPrinting' }" (click)="checkFixedTab('nucleicAcidPrinting')" *ngIf="isShowNucleicAcidPrinting">
@@ -2168,6 +2168,8 @@
2168 2168
 <app-bind-extension-number [hsmsData]="hsmsData" [itsmData]="itsmData" [websocketLoading]="websocketLoading" *ngIf="showBindExtensionNumberModal" (confirmModal)="checkIn($event)" (cancelModal)="cancelBindExtensionNumber($event)"></app-bind-extension-number>
2169 2169
 <!-- 工单范围 -->
2170 2170
 <app-order-scope *ngIf="showInitModal" [hsmsData]="hsmsData" [itsmData]="itsmData" (confirmModal)="confirmOrderScope($event)" (cancelModal)="cancelOrderScope($event)"></app-order-scope>
2171
+<!-- 展示形式 -->
2172
+<app-display-form *ngIf="showDisplayFormModal" (confirmModal)="confirmDisplayForm($event)" (cancelModal)="cancelDisplayForm($event)"></app-display-form>
2171 2173
 <!-- 消息弹框模板 -->
2172 2174
 <ng-template #msgTemplate let-msg="data">
2173 2175
   <div class="msgTemBox ant-notification-notice-content">

+ 74 - 55
src/app/views/fuwutai/fuwutai.component.ts

@@ -764,9 +764,6 @@ export class FuwutaiComponent implements OnInit {
764 764
     this.retract();
765 765
     this.refresh();
766 766
     this.initOrderScope();
767
-    this.getOrderList(1);
768
-    this.getOrderList(2);
769
-    this.getOrderList(3);
770 767
     this.getVisitList();
771 768
     this.getMessageList();
772 769
     this.initControlView();
@@ -1196,8 +1193,8 @@ export class FuwutaiComponent implements OnInit {
1196 1193
   executionSearchCon: string = ""; //执行中搜索框内容
1197 1194
   workerMessage: any = []; //顶部全部工单
1198 1195
   // 展示形式
1199
-  patientCareCol: number = 6; //顶部工单列数(4列-8人,7列-14人,6列-单排 )
1200
-  hurseInfoHiding = '1'; //护工信息隐藏
1196
+  patientCareCol: number = 7; //顶部工单列数(4列-8人,7列-14人,6列-单排 )
1197
+  hurseInfoHiding = 1; //护工信息隐藏
1201 1198
   txtLabelCol: number = 1; //工单信息列数
1202 1199
   workerInfoTime: number = 60; //配送人员刷新时间
1203 1200
   orderInfoTime: number = 60; //工单刷新时间
@@ -1336,7 +1333,6 @@ export class FuwutaiComponent implements OnInit {
1336 1333
       this.user.user.scope = data.data;
1337 1334
       localStorage.setItem("user", JSON.stringify(this.user));
1338 1335
       this.initOrderScope();
1339
-      this.initControlView();
1340 1336
     } else {
1341 1337
       this.showPromptModal("保存", false, data.msg);
1342 1338
     }
@@ -1352,6 +1348,26 @@ export class FuwutaiComponent implements OnInit {
1352 1348
     this.showInitModal = true;
1353 1349
   }
1354 1350
 
1351
+  // 展示形式
1352
+  showDisplayFormModal: boolean = false;
1353
+  cancelDisplayForm() {
1354
+    this.showDisplayFormModal = false;
1355
+  }
1356
+
1357
+  showDisplayForm() {
1358
+    this.showDisplayFormModal = true;
1359
+  }
1360
+
1361
+  confirmDisplayForm(data){
1362
+    if (data.status == 200) {
1363
+      this.cancelDisplayForm();
1364
+      this.msg.success('保存成功');
1365
+      this.initControlView();
1366
+    } else {
1367
+      this.msg.error(data.msg || '保存失败');
1368
+    }
1369
+  }
1370
+
1355 1371
   // 绑定分机
1356 1372
   showBindExtensionNumberModal: boolean = false;
1357 1373
   cancelBindExtensionNumber() {
@@ -1883,7 +1899,7 @@ export class FuwutaiComponent implements OnInit {
1883 1899
         //   });
1884 1900
         //   postData.groups = groups;
1885 1901
         // }
1886
-        if (this.hurseInfoHiding == '1'){
1902
+        if (this.hurseInfoHiding == 1){
1887 1903
           that.workerMessage = [];
1888 1904
           that.initTopCount();
1889 1905
           return;
@@ -1901,7 +1917,7 @@ export class FuwutaiComponent implements OnInit {
1901 1917
         let postData = {
1902 1918
           groups: [typeId],
1903 1919
         };
1904
-        if (this.hurseInfoHiding == '1'){
1920
+        if (this.hurseInfoHiding == 1){
1905 1921
           that.workerMessage = [];
1906 1922
           that.initTopCount();
1907 1923
           return;
@@ -1978,7 +1994,7 @@ export class FuwutaiComponent implements OnInit {
1978 1994
     let types = "";
1979 1995
 
1980 1996
     let postData:any = {
1981
-      orderType: this['orderType' + stateId],
1997
+      orderType: this.orderType,
1982 1998
     };
1983 1999
     // 配送
1984 2000
     if(this.flagList['hsmsFlag' + stateId]){
@@ -2307,9 +2323,9 @@ export class FuwutaiComponent implements OnInit {
2307 2323
   }
2308 2324
 
2309 2325
   // 护工信息展示形式
2310
-  changPatientCareCol(e) {
2311
-    this.initTopCount();
2312
-  }
2326
+  // changPatientCareCol(e) {
2327
+  //   this.initTopCount();
2328
+  // }
2313 2329
 
2314 2330
   // 获取配置文件写死的任务类型ID(送病人回病房9),选择此任务类型的话,患者信息从终点科室获取
2315 2331
   getConfigTasktypeLoading: boolean = false;
@@ -4593,9 +4609,6 @@ export class FuwutaiComponent implements OnInit {
4593 4609
   // 初始化展示形式
4594 4610
   controlView = {}; //展示形式
4595 4611
   initControlView() {
4596
-    if(!this.hsmsData.hsmsSwitch){
4597
-      return;
4598
-    }
4599 4612
     let that = this;
4600 4613
     let postData = {
4601 4614
       controlView: {},
@@ -4607,24 +4620,31 @@ export class FuwutaiComponent implements OnInit {
4607 4620
       .subscribe((data) => {
4608 4621
         that.controlView = data.list[0] ? data.list[0] : [];
4609 4622
         if (!data.list.length) return;
4610
-        switch (data.list[0].workerNum) {
4611
-          case 1:
4612
-            that.patientCareCol = 6;
4613
-            break;
4614
-          case 2:
4615
-            that.patientCareCol = 7;
4616
-            break;
4617
-          case 3:
4618
-            that.patientCareCol = 4;
4619
-            break;
4620
-        }
4621
-        this.hurseInfoHiding = data.list[0].hurseInfoHiding ? "1" : "0";
4622
-        that.txtLabelCol = data.list[0].labelNum;
4623
+        // switch (data.list[0].workerNum) {
4624
+        //   case 1:
4625
+        //     that.patientCareCol = 6;
4626
+        //     break;
4627
+        //   case 2:
4628
+        //     that.patientCareCol = 7;
4629
+        //     break;
4630
+        //   case 3:
4631
+        //     that.patientCareCol = 4;
4632
+        //     break;
4633
+        // }
4634
+        that.patientCareCol = 7;
4635
+        this.hurseInfoHiding = data.list[0].hurseInfoHiding ? 1 : 0;
4636
+        // that.txtLabelCol = data.list[0].labelNum;
4637
+        that.txtLabelCol = 1;
4623 4638
         that.orderRefreshTime = that.orderInfoTime = data.list[0].orderInfoTime;
4624 4639
         that.workerRefreshTime = that.workerInfoTime =
4625 4640
           data.list[0].workerInfoTime;
4626 4641
         that.audioNotDispatched = data.list[0].unsendOrderVoice !== false;
4642
+        this.orderType = data.list[0].orderType || 'priority';
4627 4643
         that.checkTab(this.typeId);
4644
+
4645
+        this.getOrderList(1);
4646
+        this.getOrderList(2);
4647
+        this.getOrderList(3);
4628 4648
       });
4629 4649
   }
4630 4650
 
@@ -4652,7 +4672,8 @@ export class FuwutaiComponent implements OnInit {
4652 4672
         workerInfoTime: that.workerInfoTime,
4653 4673
         orderInfoTime: that.orderInfoTime,
4654 4674
         unsendOrderVoice: that.audioNotDispatched,
4655
-        hurseInfoHiding: that.hurseInfoHiding === "1",
4675
+        hurseInfoHiding: that.hurseInfoHiding === 1,
4676
+        orderType: this.orderType,
4656 4677
       },
4657 4678
     };
4658 4679
     if (that.controlView["id"]) {
@@ -4665,10 +4686,10 @@ export class FuwutaiComponent implements OnInit {
4665 4686
       .subscribe((data) => {
4666 4687
         that.saveLoading = false;
4667 4688
         if (data.status == 200) {
4668
-          that.showPromptModal("保存", true, "");
4669
-          that.initControlView();
4689
+          that.msg.success('排序成功');
4690
+          this.initControlView();
4670 4691
         } else {
4671
-          that.showPromptModal("保存", false, data.msg);
4692
+          that.msg.error(data.msg || '排序失败');
4672 4693
         }
4673 4694
       });
4674 4695
   }
@@ -4695,23 +4716,23 @@ export class FuwutaiComponent implements OnInit {
4695 4716
 
4696 4717
   showPromptModalRefresh(){
4697 4718
     this.getUnassignedBuilding2();
4698
-      this.resetList();
4699
-      this.getOrderList(1);
4700
-      this.getOrderList(2);
4701
-      this.getOrderList(3);
4702
-      this.getVisitList();
4703
-      this.getMessageList();
4704
-      if (this.currentRTab === 0) {
4705
-        this.getWorkOrders(this.applyDept);
4706
-      } else if (this.currentRTab === 1) {
4707
-        this.getPatientLog(this.applyDept);
4708
-      } else if (this.currentRTab === 2) {
4709
-        this.getItsmOrders(this.incidentModel.department);
4710
-      } else if (this.currentRTab === 3) {
4711
-        this.getDictionaryList();
4712
-      }
4713
-      this.fixedTab = "";
4714
-      this.fixedMenuShangla();
4719
+    this.resetList();
4720
+    this.getOrderList(1);
4721
+    this.getOrderList(2);
4722
+    this.getOrderList(3);
4723
+    this.getVisitList();
4724
+    this.getMessageList();
4725
+    if (this.currentRTab === 0) {
4726
+      this.getWorkOrders(this.applyDept);
4727
+    } else if (this.currentRTab === 1) {
4728
+      this.getPatientLog(this.applyDept);
4729
+    } else if (this.currentRTab === 2) {
4730
+      this.getItsmOrders(this.incidentModel.department);
4731
+    } else if (this.currentRTab === 3) {
4732
+      this.getDictionaryList();
4733
+    }
4734
+    this.fixedTab = "";
4735
+    this.fixedMenuShangla();
4715 4736
   }
4716 4737
 
4717 4738
   // 格式化时分秒
@@ -4867,12 +4888,10 @@ export class FuwutaiComponent implements OnInit {
4867 4888
   }
4868 4889
 
4869 4890
   // 排序
4870
-  orderType1:any = 'priority';//priority:优先级,time:时间
4871
-  orderType2:any = 'priority';//priority:优先级,time:时间
4872
-  orderType3:any = 'priority';//priority:优先级,time:时间
4873
-  orderList(state){
4874
-    this['orderType' + state] = this['orderType' + state] === 'priority' ? 'time' : 'priority';
4875
-    this.getOrderList(state, state === 1);
4891
+  orderType: string = 'priority'; //排序方式 priority:优先级,time:时间
4892
+  orderList(){
4893
+    this.orderType = this.orderType === 'priority' ? 'time' : 'priority';
4894
+    this.saveControlView();
4876 4895
   }
4877 4896
 
4878 4897
   // 优先级颜色

+ 2 - 0
src/app/views/fuwutai/fuwutai.module.ts

@@ -18,6 +18,7 @@ import { IncidentSerMessageModule } from 'src/app/components/incidentManagement/
18 18
 import { IncidentSerCallModule } from 'src/app/components/incidentManagement/incident-ser-call/incident-ser-call.module';
19 19
 import { VirtualScrollerModule } from 'ngx-virtual-scroller';
20 20
 import { BindExtensionNumberModule } from 'src/app/components/bind-extension-number/bind-extension-number.module';
21
+import { DisplayFormModule } from 'src/app/components/display-form/display-form.module';
21 22
 
22 23
 
23 24
 @NgModule({
@@ -41,6 +42,7 @@ import { BindExtensionNumberModule } from 'src/app/components/bind-extension-num
41 42
     IncidentSerCallModule,
42 43
     VirtualScrollerModule,
43 44
     BindExtensionNumberModule,
45
+    DisplayFormModule,
44 46
   ]
45 47
 })
46 48
 export class FuwutaiModule { }