maotao 2 miesięcy temu
rodzic
commit
119b874958
17 zmienionych plików z 446 dodań i 254 usunięć
  1. 40 12
      src/app/components/configurationCenter/configuration-inspect/configuration-inspect-inspects/configuration-inspect-inspects.component.html
  2. 15 0
      src/app/components/configurationCenter/configuration-inspect/configuration-inspect-inspects/configuration-inspect-inspects.component.less
  3. 46 4
      src/app/components/configurationCenter/configuration-inspect/configuration-inspect-inspects/configuration-inspect-inspects.component.ts
  4. 4 4
      src/app/components/configurationCenter/configuration-message/configuration-message.component.html
  5. 103 56
      src/app/components/configurationCenter/configuration-message/configuration-message.component.ts
  6. 20 0
      src/app/components/configurationCenter/configuration-message/configuration-message.module.ts
  7. 1 0
      src/app/type/types.ts
  8. 1 1
      src/app/views/incident-config/incident-config.component.html
  9. 2 2
      src/app/views/incident-config/incident-config.module.ts
  10. 5 0
      src/app/views/inspect-and-patient-transport-config/inspect-and-patient-transport-config.component.html
  11. 6 0
      src/app/views/inspect-and-patient-transport-config/inspect-and-patient-transport-config.component.ts
  12. 3 2
      src/app/views/main/main.component.html
  13. 180 173
      src/app/views/main/main.component.ts
  14. 10 0
      src/app/views/page-config/page-config.component.html
  15. 5 0
      src/app/views/page-config/page-config.component.ts
  16. 4 0
      src/app/views/page-config/page-config.module.ts
  17. 1 0
      src/assets/js/http.ts

+ 40 - 12
src/app/components/configurationCenter/configuration-inspect/configuration-inspect-inspects/configuration-inspect-inspects.component.html

@@ -12,8 +12,8 @@
12 12
                 </nz-select>
13 13
               </div>
14 14
               <div class="list-template__searchItem">
15
-                <span class="label">检查科室</span>:
16
-                <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" nzPlaceHolder="请选择检查科室" [(ngModel)]="queryData.extra4" nzAllowClear nzServerSearch nzShowSearch (nzOnSearch)="changeDeptInp($event)" (nzOpenChange)="openChangeDept($event)" (ngModelChange)="setIsSelecting(true)">
15
+                <span class="label label--big">默认检查科室</span>:
16
+                <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" nzPlaceHolder="请选择默认检查科室" [(ngModel)]="queryData.extra4" nzAllowClear nzServerSearch nzShowSearch (nzOnSearch)="changeDeptInp($event)" (nzOpenChange)="openChangeDept($event)" (ngModelChange)="setIsSelecting(true)">
17 17
                   <ng-container *ngFor="let option of deptList">
18 18
                     <nz-option *ngIf="!isLoading" [nzLabel]="option.dept" [nzValue]="option.id"></nz-option>
19 19
                   </ng-container>
@@ -26,6 +26,13 @@
26 26
                 <span class="label">项目名称</span>:
27 27
                 <input nz-input class="formItem" placeholder="请输入项目名称" [(ngModel)]="queryData.name" />
28 28
               </div>
29
+              <div class="list-template__searchItem">
30
+                <span class="label">是否初始化</span>:
31
+                <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" nzPlaceHolder="请选择是否初始化" [(ngModel)]="queryData.extra8" nzAllowClear>
32
+                  <nz-option nzLabel="已初始化" nzValue="1"></nz-option>
33
+                  <nz-option nzLabel="未初始化" nzValue="0"></nz-option>
34
+                </nz-select>
35
+              </div>
29 36
             </div>
30 37
             <div nz-col nzXl="7" class="list-template__btns">
31 38
               <button nz-button class="btn default" (click)="addWechatModal()">新增</button>
@@ -38,17 +45,17 @@
38 45
             <thead>
39 46
               <tr class="thead">
40 47
                 <th nzWidth="20%">排序号</th>
41
-                <th nzWidth="20%">项目名称</th>
42
-                <th nzWidth="20%">检查科室</th>
48
+                <th nzWidth="20%">检查项目标识</th>
49
+                <th nzWidth="20%">检查项目名称</th>
43 50
                 <th nzWidth="20%">检查类型</th>
44 51
                 <th nzWidth="20%">操作</th>
45 52
               </tr>
46 53
             </thead>
47 54
             <tbody>
48 55
               <tr *ngFor="let data of dataList;let i = index">
49
-                <td>{{data.orders}}</td>
56
+                <td><span class="circleWrap"><span class="circle" [ngClass]="{ red: data.extra8 != 1 }" title="未初始化"></span>{{data.orders}}</span></td>
57
+                <td>{{data.extra6}}</td>
50 58
                 <td>{{data.name}}</td>
51
-                <td>{{data.extra4DTO?.dept}}</td>
52 59
                 <td>{{data.extra5DTO?.name}}</td>
53 60
                 <td>
54 61
                   <div class="coop">
@@ -97,9 +104,17 @@
97 104
           </nz-form-control>
98 105
         </nz-form-item>
99 106
         <nz-form-item>
100
-          <nz-form-label [nzSpan]="6" nzRequired nzFor="extra4">检查科室</nz-form-label>
101
-          <nz-form-control [nzSpan]="18" nzErrorTip="请选择检查科室!">
102
-            <nz-select [nzDropdownMatchSelectWidth]="false" formControlName="extra4" nzPlaceHolder="请选择检查科室" nzAllowClear nzServerSearch nzShowSearch (nzOnSearch)="changeDeptInp($event)" (nzOpenChange)="openChangeDept($event)" (ngModelChange)="setIsSelecting(true)">
107
+          <nz-form-label [nzSpan]="6" nzRequired nzFor="extra6">项目标识</nz-form-label>
108
+          <nz-form-control [nzSpan]="18" nzErrorTip="请输入项目标识!">
109
+            <nz-input-group>
110
+              <input formControlName="extra6" nz-input placeholder="请输入项目标识">
111
+            </nz-input-group>
112
+          </nz-form-control>
113
+        </nz-form-item>
114
+        <nz-form-item>
115
+          <nz-form-label [nzSpan]="6" nzRequired nzFor="extra4">默认检查科室</nz-form-label>
116
+          <nz-form-control [nzSpan]="18" nzErrorTip="请选择默认检查科室!">
117
+            <nz-select [nzDropdownMatchSelectWidth]="false" formControlName="extra4" nzPlaceHolder="请选择默认检查科室" nzAllowClear nzServerSearch nzShowSearch (nzOnSearch)="changeDeptInp($event)" (nzOpenChange)="openChangeDept($event)" (ngModelChange)="setIsSelecting(true)">
103 118
               <ng-container *ngFor="let option of deptList">
104 119
                 <nz-option *ngIf="!isLoading" [nzLabel]="option.dept" [nzValue]="option.id"></nz-option>
105 120
               </ng-container>
@@ -110,9 +125,9 @@
110 125
           </nz-form-control>
111 126
         </nz-form-item>
112 127
         <nz-form-item>
113
-          <nz-form-label [nzSpan]="6" nzRequired nzFor="extra5">检查项目</nz-form-label>
114
-          <nz-form-control [nzSpan]="18" nzErrorTip="请选择检查项目!">
115
-            <nz-select [nzDropdownMatchSelectWidth]="false" formControlName="extra5" nzPlaceHolder="请选择检查项目" nzServerSearch>
128
+          <nz-form-label [nzSpan]="6" nzRequired nzFor="extra5">检查类型</nz-form-label>
129
+          <nz-form-control [nzSpan]="18" nzErrorTip="请选择检查类型!">
130
+            <nz-select [nzDropdownMatchSelectWidth]="false" formControlName="extra5" nzPlaceHolder="请选择检查类型" nzServerSearch>
116 131
               <ng-container *ngFor="let data of typeList">
117 132
                 <nz-option *ngIf="!isLoading" [nzLabel]="data.name" [nzValue]="data.id"></nz-option>
118 133
               </ng-container>
@@ -122,6 +137,19 @@
122 137
             </nz-select>
123 138
           </nz-form-control>
124 139
         </nz-form-item>
140
+        <nz-form-item>
141
+          <nz-form-label [nzSpan]="6" nzFor="extra7">检查科室</nz-form-label>
142
+          <nz-form-control [nzSpan]="18" nzErrorTip="请选择检查科室!">
143
+            <nz-select nzMode="multiple" [nzDropdownMatchSelectWidth]="false" formControlName="extra7" nzPlaceHolder="请选择检查科室" nzAllowClear nzServerSearch nzShowSearch (nzOnSearch)="changeDeptsInp($event)" (nzOpenChange)="openChangeDepts($event)" (ngModelChange)="setIsSelecting(true)">
144
+              <ng-container *ngFor="let option of deptsList">
145
+                <nz-option *ngIf="!isLoading" [nzLabel]="option.dept" [nzValue]="option.id"></nz-option>
146
+              </ng-container>
147
+              <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
148
+                <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
149
+              </nz-option>
150
+            </nz-select>
151
+          </nz-form-control>
152
+        </nz-form-item>
125 153
       </form>
126 154
     </div>
127 155
     <div class=" display_flex justify-content_flex-center">

+ 15 - 0
src/app/components/configurationCenter/configuration-inspect/configuration-inspect-inspects/configuration-inspect-inspects.component.less

@@ -16,6 +16,21 @@
16 16
     height: 100%!important;
17 17
     padding: 0!important;
18 18
   }
19
+  .circleWrap{
20
+    position: relative;
21
+    .circle{
22
+      width: 8px;
23
+      height: 8px;
24
+      border-radius: 50%;
25
+      position: absolute;
26
+      top: 50%;
27
+      left: -8px;
28
+      transform: translate(-50%,-50%);
29
+      &.red{
30
+        background-color: red;
31
+      }
32
+    }
33
+  }
19 34
   .content{
20 35
     flex: 1;
21 36
     min-height: 0;

+ 46 - 4
src/app/components/configurationCenter/configuration-inspect/configuration-inspect-inspects/configuration-inspect-inspects.component.ts

@@ -61,10 +61,13 @@ export class ConfigurationInspectInspectsComponent implements OnInit {
61 61
     this.coopData = data;
62 62
     this.validateForm.controls.orders.setValue(data.orders);
63 63
     this.validateForm.controls.name.setValue(data.name);
64
+    this.validateForm.controls.extra6.setValue(data.extra6);
64 65
     this.validateForm.controls.extra4.setValue(data.extra4DTO ? data.extra4DTO.id : null);
65 66
     this.validateForm.controls.extra5.setValue(data.extra5DTO ? data.extra5DTO.id : null);
67
+    this.validateForm.controls.extra7.setValue(data.deptList ? data.deptList.map(v => v.id) : []);
66 68
 
67 69
     data.extra4DTO && (this.deptList = [data.extra4DTO]);
70
+    data.deptList && (this.deptsList = data.deptList);
68 71
   }
69 72
 
70 73
   // 新增/编辑表单提交
@@ -112,8 +115,11 @@ export class ConfigurationInspectInspectsComponent implements OnInit {
112 115
           desc: "检查项目",
113 116
           orders: this.validateForm.value.orders,
114 117
           name: this.validateForm.value.name,
118
+          extra6: this.validateForm.value.extra6,
115 119
           extra4: this.validateForm.value.extra4,
116 120
           extra5: this.validateForm.value.extra5,
121
+          extra7: this.validateForm.value.extra7.toString(),
122
+          extra8: '1',
117 123
         // }
118 124
       };
119 125
     } else {
@@ -124,8 +130,10 @@ export class ConfigurationInspectInspectsComponent implements OnInit {
124 130
           ...{
125 131
             orders: this.validateForm.value.orders,
126 132
             name: this.validateForm.value.name,
133
+            extra6: this.validateForm.value.extra6,
127 134
             extra4: this.validateForm.value.extra4,
128 135
             extra5: this.validateForm.value.extra5,
136
+            extra7: this.validateForm.value.extra7.toString(),
129 137
           }
130 138
         // }
131 139
       };
@@ -155,8 +163,10 @@ export class ConfigurationInspectInspectsComponent implements OnInit {
155 163
     this.validateForm = this.fb.group({
156 164
       orders: [null, [Validators.required]],
157 165
       name: [null, [Validators.required]],
166
+      extra6: [null, [Validators.required]],
158 167
       extra4: [null, [Validators.required]],
159 168
       extra5: [null, [Validators.required]],
169
+      extra7: [[]],
160 170
     });
161 171
   }
162 172
 
@@ -177,9 +187,10 @@ export class ConfigurationInspectInspectsComponent implements OnInit {
177 187
       sum: 9999,
178 188
       dictionary: {
179 189
         key: "inspect_check_type",
180
-        name: this.queryData.name,
181
-        extra4: this.queryData.extra4,
182
-        extra5: this.queryData.extra5,
190
+        name: this.queryData.name || undefined,
191
+        extra4: this.queryData.extra4 || undefined,
192
+        extra5: this.queryData.extra5 || undefined,
193
+        extra8: this.queryData.extra8 || undefined,
183 194
       },
184 195
     };
185 196
     this.loading1 = true;
@@ -222,7 +233,7 @@ export class ConfigurationInspectInspectsComponent implements OnInit {
222 233
     this.searchTimer(this.getDeptList, e);
223 234
   }
224 235
 
225
-  // 获取检查科室
236
+  // 获取默认检查科室
226 237
   deptList: any = [];
227 238
   getDeptList(e = undefined) {
228 239
     let postData = {
@@ -243,6 +254,37 @@ export class ConfigurationInspectInspectsComponent implements OnInit {
243 254
       });
244 255
   }
245 256
 
257
+  openChangeDepts(flag){
258
+    flag && this.setIsSelecting(false);
259
+    flag && this.getDeptsList();
260
+  }
261
+
262
+  // 科室搜索
263
+  changeDeptsInp(e) {
264
+    this.searchTimer(this.getDeptsList, e);
265
+  }
266
+
267
+  // 获取检查科室
268
+  deptsList: any = [];
269
+  getDeptsList(e = undefined) {
270
+    let postData = {
271
+      idx: 0,
272
+      sum: 20,
273
+      department: {
274
+        searchType: 1,// 简单查询
275
+        cascadeHosId: this.hosId,
276
+        dept: e,
277
+      }
278
+    };
279
+    this.isLoading = true;
280
+    this.mainService
281
+      .getFetchDataList("simple/data", "department", postData)
282
+      .subscribe((data) => {
283
+        this.isLoading = false;
284
+        this.deptsList = data.list || [];
285
+      });
286
+  }
287
+
246 288
   // 获取检查类型
247 289
   typeList: any = [];
248 290
   getTypes() {

+ 4 - 4
src/app/components/configurationCenter/configuration-message/configuration-message.component.html

@@ -58,12 +58,12 @@
58 58
         </span>
59 59
       </div>
60 60
       <div class="message_tab">
61
-        <div class="tab" *ngFor="let item of tabs;let i = index;" (click)="selectTab(i)" [ngClass]="{ active: i == currentIndex }">
61
+        <div class="tab" *ngFor="let item of tabs;let i = index;" (click)="selectTab(i)" [ngClass]="{ active: i == currentIndex }" [hidden]="item.hidden">
62 62
           <label nz-checkbox [(ngModel)]="item.checkboxFlag" (ngModelChange)="selectThis($event, i)"></label><span class="ml8">{{item.tabName}}</span>
63 63
         </div>
64 64
       </div>
65 65
       <div class="message_body">
66
-        <div class="message_body_list" *ngFor="let item of tabs;let i = index;" [hidden]="i != currentIndex">
66
+        <div class="message_body_list" *ngFor="let item of tabs;let i = index;" [hidden]="item.hidden && i != currentIndex">
67 67
           <div class="message_body_list_title" *ngIf="!(i == 1)">
68 68
             <span>通知标题:</span><input nz-input placeholder="请输入通知标题" [(ngModel)]="item.processTitle" [disabled]="item.disable" />
69 69
           </div>
@@ -74,7 +74,7 @@
74 74
             <span style="visibility: hidden">变量名称{{currentIndex}}:</span>
75 75
             <p>备注:[$变量名称$]可添加<em *ngFor="let v of varArr;let first = first;let last = last;"><span (click)="writeIn(item, v, $event, 'processContent')">{{v}}</span><i *ngIf="!last">、</i><i *ngIf="last">。</i></em></p>
76 76
           </div>
77
-          <div class="message_body_list_wechatConfig" *ngIf="currentIndex == 2">
77
+          <!-- <div class="message_body_list_wechatConfig" *ngIf="currentIndex == 2">
78 78
             <span><i class="icon_transport transport-required red"></i>配置类型:</span>
79 79
             <nz-select class="w100" [nzDropdownMatchSelectWidth]="false" nzAllowClear [(ngModel)]="editData.wechatConfigTypeId"
80 80
               nzPlaceHolder="请选择微信配置类型" nzServerSearch>
@@ -85,7 +85,7 @@
85 85
                 <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
86 86
               </nz-option>
87 87
             </nz-select>
88
-          </div>
88
+          </div> -->
89 89
           <div class="message_body_list_title">
90 90
             <span><i class="icon_transport transport-required red"></i>是否开启:</span>
91 91
             <nz-radio-group [(ngModel)]="editData.flag">

+ 103 - 56
src/app/components/configurationCenter/configuration-message/configuration-message.component.ts

@@ -1,4 +1,4 @@
1
-import { Component, OnInit } from "@angular/core";
1
+import { Component, OnInit, Input } from "@angular/core";
2 2
 import { ActivatedRoute } from "@angular/router";
3 3
 import { MainService } from "../../../services/main.service";
4 4
 import { ToolService } from 'src/app/services/tool.service';
@@ -10,6 +10,7 @@ import { NzMessageService } from 'ng-zorro-antd';
10 10
   styleUrls: ["./configuration-message.component.less"],
11 11
 })
12 12
 export class ConfigurationMessageComponent implements OnInit {
13
+  @Input() wechatConfigTypeValue: string;
13 14
   constructor(
14 15
     private route: ActivatedRoute,
15 16
     private mainService: MainService,
@@ -43,36 +44,7 @@ export class ConfigurationMessageComponent implements OnInit {
43 44
   tabs = []
44 45
 
45 46
   //变量参数
46
-  varArr = [
47
-    "[$报修单号$]",
48
-    "[$报修科室$]",
49
-    "[$报修时间$]",
50
-    "[$报修人$]",
51
-    "[$详细地址$]",
52
-    "[$不受理时间$]",
53
-    "[$不受理原因$]",
54
-    "[$故障描述$]",
55
-    "[$服务台人员$]",
56
-    "[$受理时间$]",
57
-    "[$事件单号$]",
58
-    "[$地点$]",
59
-    "[$区域$]",
60
-    "[$学工号$]",
61
-    "[$联系人电话$]",
62
-    "[$受理人$]",
63
-    "[$受理人电话$]",
64
-    "[$处理人$]",
65
-    "[$处理人电话$]",
66
-    "[$指派人$]",
67
-    "[$转派人$]",
68
-    "[$延期原因$]",
69
-    "[$进入系统$]",
70
-    "[$回访满意度$]",
71
-    "[$回访备注$]",
72
-    "[$回访处理结果$]",
73
-    "[$评价满意度$]",
74
-    "[$评价内容$]",
75
-  ];
47
+  varArr = [];
76 48
 
77 49
   // 写入
78 50
   writeIn(tab, content, event, type){
@@ -124,31 +96,103 @@ export class ConfigurationMessageComponent implements OnInit {
124 96
         wechatConfigTypeId: data.wechatConfigType ? data.wechatConfigType.id : null,//微信配置类型
125 97
     };
126 98
 
127
-    this.tabs = [
128
-      {
129
-        tabName: "站内消息",
130
-        processTitle: this.editData.messageStationTitle,
131
-        processContent: this.editData.messageStationContent,
132
-        checkboxFlag: this.editData.messageStationFlag,
133
-        disable: !this.editData.messageStationFlag,
134
-      },
135
-      {
136
-        tabName: "短信",
137
-        processTitle: '',
138
-        processContent: this.editData.shortMessageContent,
139
-        checkboxFlag: this.editData.shortMessageFlag,
140
-        disable: !this.editData.shortMessageFlag,
141
-      },
142
-      {
143
-        tabName: "微信",
144
-        processTitle: this.editData.wechatMessageTitle,
145
-        processContent: this.editData.wechatMessageContent,
146
-        checkboxFlag: this.editData.wechatMessageFlag,
147
-        disable: !this.editData.wechatMessageFlag,
148
-      }
149
-    ];
99
+    if(this.wechatConfigTypeValue === 'hsms'){
100
+      // 转运
101
+      this.tabs = [
102
+        {
103
+          tabName: "站内消息",
104
+          processTitle: this.editData.messageStationTitle,
105
+          processContent: this.editData.messageStationContent,
106
+          checkboxFlag: this.editData.messageStationFlag,
107
+          disable: !this.editData.messageStationFlag,
108
+          hidden: true,
109
+        },
110
+        {
111
+          tabName: "短信",
112
+          processTitle: '',
113
+          processContent: this.editData.shortMessageContent,
114
+          checkboxFlag: this.editData.shortMessageFlag,
115
+          disable: !this.editData.shortMessageFlag,
116
+          hidden: true,
117
+        },
118
+        {
119
+          tabName: "微信",
120
+          processTitle: this.editData.wechatMessageTitle,
121
+          processContent: this.editData.wechatMessageContent,
122
+          checkboxFlag: this.editData.wechatMessageFlag,
123
+          disable: !this.editData.wechatMessageFlag,
124
+          hidden: false,
125
+        }
126
+      ];
127
+
128
+      this.varArr = [
129
+        "[$患者信息$]",
130
+        "[$建单人$]",
131
+      ];
150 132
 
151
-    this.currentIndex = 0;
133
+      this.currentIndex = 2;
134
+    }else if(this.wechatConfigTypeValue === 'mdv2_handle'){
135
+      // 运维
136
+      this.tabs = [
137
+        {
138
+          tabName: "站内消息",
139
+          processTitle: this.editData.messageStationTitle,
140
+          processContent: this.editData.messageStationContent,
141
+          checkboxFlag: this.editData.messageStationFlag,
142
+          disable: !this.editData.messageStationFlag,
143
+          hidden: false,
144
+        },
145
+        {
146
+          tabName: "短信",
147
+          processTitle: '',
148
+          processContent: this.editData.shortMessageContent,
149
+          checkboxFlag: this.editData.shortMessageFlag,
150
+          disable: !this.editData.shortMessageFlag,
151
+          hidden: false,
152
+        },
153
+        {
154
+          tabName: "微信",
155
+          processTitle: this.editData.wechatMessageTitle,
156
+          processContent: this.editData.wechatMessageContent,
157
+          checkboxFlag: this.editData.wechatMessageFlag,
158
+          disable: !this.editData.wechatMessageFlag,
159
+          hidden: false,
160
+        }
161
+      ];
162
+
163
+      this.varArr = [
164
+        "[$报修单号$]",
165
+        "[$报修科室$]",
166
+        "[$报修时间$]",
167
+        "[$报修人$]",
168
+        "[$详细地址$]",
169
+        "[$不受理时间$]",
170
+        "[$不受理原因$]",
171
+        "[$故障描述$]",
172
+        "[$服务台人员$]",
173
+        "[$受理时间$]",
174
+        "[$事件单号$]",
175
+        "[$地点$]",
176
+        "[$区域$]",
177
+        "[$学工号$]",
178
+        "[$联系人电话$]",
179
+        "[$受理人$]",
180
+        "[$受理人电话$]",
181
+        "[$处理人$]",
182
+        "[$处理人电话$]",
183
+        "[$指派人$]",
184
+        "[$转派人$]",
185
+        "[$延期原因$]",
186
+        "[$进入系统$]",
187
+        "[$回访满意度$]",
188
+        "[$回访备注$]",
189
+        "[$回访处理结果$]",
190
+        "[$评价满意度$]",
191
+        "[$评价内容$]",
192
+      ];
193
+
194
+      this.currentIndex = 0;
195
+    }
152 196
   }
153 197
 
154 198
   //tab页面切换
@@ -267,7 +311,10 @@ export class ConfigurationMessageComponent implements OnInit {
267 311
       idx: 0,
268 312
       sum: 9999,
269 313
       messageManager: {
270
-        "noticeProcess": 1
314
+        "noticeProcess": 1,
315
+        "wechatConfigType": {
316
+          value: this.wechatConfigTypeValue,
317
+        },
271 318
       },
272 319
     };
273 320
     this.loading1 = true;

+ 20 - 0
src/app/components/configurationCenter/configuration-message/configuration-message.module.ts

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

+ 1 - 0
src/app/type/types.ts

@@ -16,6 +16,7 @@ export interface baseUrlType {
16 16
   specimenViewHost: string; //业务视图地址
17 17
   bigScreenHost: string; //大屏地址地址
18 18
   bigScreenHost2: string; //大屏地址2地址
19
+  bigScreenHost3: string; //大屏地址3地址
19 20
   homeWs: string; //websocket首页地址
20 21
   mainWs: string; //websocket管理端地址
21 22
   nurseWs: string; //websocket护士端地址

+ 1 - 1
src/app/views/incident-config/incident-config.component.html

@@ -22,7 +22,7 @@
22 22
   </ng-container>
23 23
   <!-- 消息通知 -->
24 24
   <ng-container *ngIf="activeTagLink === 'incidentConfigMessage'">
25
-    <app-configuration-message></app-configuration-message>
25
+    <app-configuration-message wechatConfigTypeValue="mdv2_handle"></app-configuration-message>
26 26
   </ng-container>
27 27
 	<!-- 工时管理 -->
28 28
 	<ng-container *ngIf="activeTagLink === 'incidentConfigManHour'">

+ 2 - 2
src/app/views/incident-config/incident-config.module.ts

@@ -8,9 +8,9 @@ import { ConfigurationCategoryComponent } from 'src/app/components/configuration
8 8
 import { ConfigurationPriorityComponent } from 'src/app/components/configurationCenter/configuration-priority/configuration-priority.component';
9 9
 import { ConfigurationManHourComponent } from 'src/app/components/configurationCenter/configuration-manHour/configuration-manHour.component';
10 10
 import { ConfigurationDeptUserComponent } from 'src/app/components/configurationCenter/configuration-deptUser/configuration-deptUser.component';
11
-import { ConfigurationMessageComponent } from 'src/app/components/configurationCenter/configuration-message/configuration-message.component';
12 11
 import { ConfigurationHospitalComponent } from 'src/app/components/configurationCenter/configuration-hospital/configuration-hospital.component';
13 12
 import { ConfigurationDictionaryModule } from 'src/app/components/configurationCenter/configuration-dictionary/configuration-dictionary.module';
13
+import { ConfigurationMessageModule } from 'src/app/components/configurationCenter/configuration-message/configuration-message.module';
14 14
 import { ConfigurationCommonFaultsComponent } from 'src/app/components/configurationCenter/configuration-commonFaults/configuration-commonFaults.component';
15 15
 import { ConfigurationSysComponent } from 'src/app/components/configurationCenter/configuration-sys/configuration-sys.component';
16 16
 
@@ -22,7 +22,6 @@ import { ConfigurationSysComponent } from 'src/app/components/configurationCente
22 22
     ConfigurationPriorityComponent,
23 23
 		ConfigurationManHourComponent,
24 24
 		ConfigurationDeptUserComponent,
25
-    ConfigurationMessageComponent,
26 25
     ConfigurationHospitalComponent,
27 26
     ConfigurationCommonFaultsComponent,
28 27
 		ConfigurationSysComponent
@@ -32,6 +31,7 @@ import { ConfigurationSysComponent } from 'src/app/components/configurationCente
32 31
     IncidentConfigRoutingModule,
33 32
     ShareModule,
34 33
     ConfigurationDictionaryModule,
34
+    ConfigurationMessageModule,
35 35
   ]
36 36
 })
37 37
 export class IncidentConfigModule { }

+ 5 - 0
src/app/views/inspect-and-patient-transport-config/inspect-and-patient-transport-config.component.html

@@ -162,6 +162,11 @@
162 162
           <nz-form-label class="label">是否开启护士端追加检查</nz-form-label>
163 163
           <nz-checkbox-group [(ngModel)]="nurseAppendInspect"></nz-checkbox-group>
164 164
         </div>
165
+        <!-- 是否支持签到并转派 -->
166
+        <div class="display_flex align-items_center mb8">
167
+          <nz-form-label class="label">是否支持签到并转派</nz-form-label>
168
+          <nz-checkbox-group [(ngModel)]="signReassign"></nz-checkbox-group>
169
+        </div>
165 170
         <!-- 检查预约不进行工单合并 -->
166 171
         <!-- <div class="display_flex align-items_center mb8">
167 172
           <nz-form-label class="label">检查预约不进行工单合并</nz-form-label>

+ 6 - 0
src/app/views/inspect-and-patient-transport-config/inspect-and-patient-transport-config.component.ts

@@ -96,6 +96,10 @@ export class InspectAndPatientTransportConfigComponent implements OnInit {
96 96
   nurseAppendInspect:any[] = [
97 97
     {label:'是否开启',value: 0}
98 98
   ];
99
+  // 是否支持签到并转派
100
+  signReassign:any[] = [
101
+    {label:'是否开启',value: 0}
102
+  ];
99 103
   // 检查预约不进行工单合并
100 104
   // yyInspectMergeOrder:any[] = [
101 105
   //   {label:'是否开启',value: 0}
@@ -297,6 +301,7 @@ export class InspectAndPatientTransportConfigComponent implements OnInit {
297 301
       enableGoods: this.enableGoods[0].checked ? 1 : 0,
298 302
       enableTripType: this.enableTripType[0].checked ? 1 : 0,
299 303
       nurseAppendInspect: this.nurseAppendInspect[0].checked ? 1 : 0,
304
+      signReassign: this.signReassign[0].checked ? 1 : 0,
300 305
       // yyInspectMergeOrder: this.yyInspectMergeOrder[0].checked ? 1 : 0,
301 306
       addService: this.addService[0].checked ? 1 : 0,
302 307
       addServiceTaskIds: this.addServiceTaskIds.length ? this.addServiceTaskIds.toString() : undefined,
@@ -428,6 +433,7 @@ export class InspectAndPatientTransportConfigComponent implements OnInit {
428 433
           this.enableGoods[0].checked = this.configs.enableGoods == 1;
429 434
           this.enableTripType[0].checked = this.configs.enableTripType == 1;
430 435
           this.nurseAppendInspect[0].checked = this.configs.nurseAppendInspect == 1;
436
+          this.signReassign[0].checked = this.configs.signReassign == 1;
431 437
           // this.yyInspectMergeOrder[0].checked = this.configs.yyInspectMergeOrder == 1;
432 438
           this.addService[0].checked = this.configs.addService == 1;
433 439
           this.addServiceTaskIds = this.configs.addServiceTaskIds ? this.configs.addServiceTaskIds.split(',').map(v => +v) : [];

+ 3 - 2
src/app/views/main/main.component.html

@@ -42,13 +42,14 @@
42 42
           <i class="icon_transport transport-tongji-2 green" *ngIf="newStatisticsRole" (click)="toNewStatistics()" nz-tooltip nzTooltipTitle="统计"></i>
43 43
           <i class="icon_transport transport-shangban green" *ngIf='PCCommutesToWork && userInfo.user && !userInfo.user.online' (click)="GoWork()" nz-tooltip nzTooltipTitle="我要上班"></i>
44 44
           <i class="icon_transport transport-shangban green" *ngIf='PCCommutesToWork && userInfo.user && userInfo.user.online' (click)="GoWork()" nz-tooltip nzTooltipTitle="我要下班"></i>
45
-          <div class="dropdown" *ngIf="pharmacyRole || largeScreenRole || largeScreenRole2 || specimenViewRole || specimenViewRole2 || specimenRoomView || pathology || disinfectionSupplyRole || sampling || communicationBook || realtimeBroadcastRole || inspectClosedLoopViewRole">
45
+          <div class="dropdown" *ngIf="pharmacyRole || largeScreenRole || largeScreenRole2 || largeScreenRole3 || specimenViewRole || specimenViewRole2 || specimenRoomView || pathology || disinfectionSupplyRole || sampling || communicationBook || realtimeBroadcastRole || inspectClosedLoopViewRole">
46 46
             <i class="icon_transport transport-gengduoda-copy" (mouseenter)="showDropdown1 = true" (mouseleave)="showDropdown1 = false"></i>
47 47
             <div class="dropdown-content ct" [hidden]="!showDropdown1" (mouseenter)="showDropdown1 = true" (mouseleave)="showDropdown1 = false">
48 48
               <div class="dropdownItem" *ngIf="pharmacyRole" (click)="toPharmacy()">药房端</div>
49 49
               <div class="dropdownItem" *ngIf="pharmacyRole" (click)="toPharmacy2()">药房端2</div>
50 50
               <div class="dropdownItem" *ngIf="largeScreenRole" (click)="toBigScreen('largeScreen')">大屏端</div>
51 51
               <div class="dropdownItem" *ngIf="largeScreenRole2" (click)="toBigScreen('largeScreen2')">大屏端2</div>
52
+              <div class="dropdownItem" *ngIf="largeScreenRole3" (click)="toBigScreen('largeScreen3')">大屏端3</div>
52 53
               <div class="dropdownItem" *ngIf="specimenViewRole" (click)="toBigScreen('specimenView')">业务视图</div>
53 54
               <div class="dropdownItem" *ngIf="specimenViewRole2" (click)="toSpecimenView2()">标本视图</div>
54 55
               <div class="dropdownItem" *ngIf="specimenRoomView" (click)="toSpecimenRoomView()">标本间端</div>
@@ -508,7 +509,7 @@
508 509
 						</div>
509 510
 					</overlay-scrollbars>
510 511
 				</div>
511
-			
512
+
512 513
 				<!-- 近期维修 start -->
513 514
 				<div class="cots_body weifenpai" *ngIf="currentRTab == 2" [ngClass]="{ top185: hurseInfoHiding != 1 }">
514 515
 					<overlay-scrollbars #osComponentRef16 [ngStyle]="{ height: '100%' }">

Plik diff jest za duży
+ 180 - 173
src/app/views/main/main.component.ts


+ 10 - 0
src/app/views/page-config/page-config.component.html

@@ -22,6 +22,16 @@
22 22
   <ng-container *ngIf="activeTagLink === 'pageConfigInspect'">
23 23
     <app-configuration-inspect></app-configuration-inspect>
24 24
   </ng-container>
25
+
26
+  <!-- 数据字典 -->
27
+  <ng-container *ngIf="activeTagLink === 'pageConfigDictionary'">
28
+    <app-configuration-dictionary [dictionaryKeyList]="dictionaryKeyList"></app-configuration-dictionary>
29
+  </ng-container>
30
+
31
+  <!-- 消息通知 -->
32
+  <ng-container *ngIf="activeTagLink === 'pageConfigMessage'">
33
+    <app-configuration-message wechatConfigTypeValue="hsms"></app-configuration-message>
34
+  </ng-container>
25 35
 </div>
26 36
 
27 37
 

+ 5 - 0
src/app/views/page-config/page-config.component.ts

@@ -16,6 +16,11 @@ export class PageConfigComponent implements OnInit, AfterViewInit {
16 16
     // { id: 1, name: '标本',},
17 17
   ];
18 18
 
19
+  // 数据字典
20
+  dictionaryKeyList:any[] = [
21
+    { id: 1, name: '检查类型', key: "inspect_check_item"},
22
+  ]
23
+
19 24
   ngOnInit(): void {}
20 25
 
21 26
   ngAfterViewInit(){

+ 4 - 0
src/app/views/page-config/page-config.module.ts

@@ -7,6 +7,8 @@ import { ShareModule } from 'src/app/share/share.module';
7 7
 import { ConfigurationSpecimenComponent } from 'src/app/components/configurationCenter/configuration-specimen/configuration-specimen.component';
8 8
 import { ConfigurationDrugComponent } from 'src/app/components/configurationCenter/configuration-drug/configuration-drug.component';
9 9
 import { ConfigurationInspectModule } from 'src/app/components/configurationCenter/configuration-inspect/configuration-inspect.module';
10
+import { ConfigurationDictionaryModule } from 'src/app/components/configurationCenter/configuration-dictionary/configuration-dictionary.module';
11
+import { ConfigurationMessageModule } from 'src/app/components/configurationCenter/configuration-message/configuration-message.module';
10 12
 
11 13
 
12 14
 @NgModule({
@@ -20,6 +22,8 @@ import { ConfigurationInspectModule } from 'src/app/components/configurationCent
20 22
     PageConfigRoutingModule,
21 23
     ShareModule,
22 24
     ConfigurationInspectModule,
25
+    ConfigurationDictionaryModule,
26
+    ConfigurationMessageModule,
23 27
   ]
24 28
 })
25 29
 export class PageConfigModule { }

+ 1 - 0
src/assets/js/http.ts

@@ -10,6 +10,7 @@ const baseUrl: baseUrlType = {
10 10
   specimenViewHost: `${protocolName}//${domainName}:${port}/specimenView`, //业务视图地址
11 11
   bigScreenHost: `${protocolName}//${domainName}:${port}/largeScreen`, //大屏地址地址
12 12
   bigScreenHost2: `${protocolName}//${domainName}:${port}/largeScreen2`, //大屏地址2地址
13
+  bigScreenHost3: `${protocolName}//${domainName}:${port}/largeScreen3`, //大屏地址3地址
13 14
   homeWs: `${wsName}://${domainName}:${port}/webSocket/index`, //websocket首页地址
14 15
   mainWs: `${wsName}://${domainName}:${port}/webSocket/message/manage`, //websocket管理端地址
15 16
   nurseWs: `${wsName}://${domainName}:${port}/webSocket/message/nurse`, //websocket护士端地址