瀏覽代碼

Merge branch 'lmm' into develop

seimin 4 年之前
父節點
當前提交
fb9eb5e747

+ 3 - 0
src/app/services/tool.service.ts

@@ -87,6 +87,9 @@ export class ToolService {
87 87
         case "generateQRcode":
88 88
           coopBtns.generateQRcode = true; //生成二维码
89 89
           break;
90
+        case "deleted":
91
+          coopBtns.deleted = true; //已删除
92
+          break;
90 93
       }
91 94
     });
92 95
     console.log(coopBtns);

+ 8 - 4
src/app/share/hs-prompt-modal/hs-prompt-modal.component.html

@@ -1,13 +1,17 @@
1 1
 <div class="modal display_flex justify-content_flex-center align-items_center" *ngIf="show">
2 2
   <div class="modalBody" *ngIf="changeShow">
3
-    <div class="title">当前科室<i class="icon_transport transport-guanbi" (click)="hideModal()"></i></div>
3
+    <div class="title">当前科室<i *ngIf="closeTimeFlag<=0||closeTimeFlag>0&&closeTime===0"
4
+        class="icon_transport transport-guanbi" (click)="hideModal()"></i></div>
4 5
     <div class="content">
5 6
       <div class="defeat">{{currentDept.dept}}</div>
6
-      <div class="countDown">关闭倒计时<em>{{closeTime}}s</em></div>
7
+      <div class="countDown" *ngIf="closeTimeFlag<0||closeTimeFlag>0&&closeTime>0"><span
8
+          *ngIf="closeTimeFlag<0">关闭</span>倒计时<em>{{closeTime}}s</em></div>
7 9
     </div>
8 10
     <div class="display_flex justify-content_flex-center">
9
-      <button class="btn know" nz-button nzType="primary" (click)="hideModal()">知道了</button>
10
-      <button class="btn know" nz-button nzType="primary" nzGhost (click)="changeModal()">切换科室</button>
11
+      <button *ngIf="closeTimeFlag<=0||closeTimeFlag>0&&closeTime===0" class="btn know" nz-button nzType="primary"
12
+        (click)="hideModal()">知道了</button>
13
+      <button *ngIf="closeTimeFlag<=0||closeTimeFlag>0&&closeTime===0" class="btn know" nz-button nzType="primary"
14
+        nzGhost (click)="changeModal()">切换科室</button>
11 15
     </div>
12 16
   </div>
13 17
   <div class="modalBody modalBody-search" *ngIf="!changeShow">

+ 1 - 0
src/app/share/hs-prompt-modal/hs-prompt-modal.component.ts

@@ -23,6 +23,7 @@ export class HsPromptModalComponent implements OnInit {
23 23
   @Input() show: Boolean;
24 24
   @Input() changeShow: Boolean;
25 25
   @Input() closeTime: Number;
26
+  @Input() closeTimeFlag;
26 27
 
27 28
   @Output() closeModelHs = new EventEmitter<any>(); //1.组件暴露一个 EventEmitter 属性,当事件发生时,子组件利用该属性 emits(向上弹射)事件
28 29
   @Output() clearModelHs = new EventEmitter<any>(); //1.组件暴露一个 EventEmitter 属性,当事件发生时,子组件利用该属性 emits(向上弹射)事件

+ 5 - 3
src/app/views/hushijiandan/hushijiandan.component.html

@@ -95,7 +95,8 @@
95 95
       <nz-header>
96 96
         <div class="app-header borderB display_flex justify-content_space-between align-items_center">
97 97
           <div class="nurseTitle display_flex justify-content_space-between align-items_center">
98
-            护士端
98
+            <span>护士端</span>
99
+            <p class="updateTipsForNurses red">{{updateTipsForNurses}}</p>
99 100
             <div class="nurseCode" (click)="showNurseCode()">
100 101
               <i class="nurseCodeIcon icon_transport transport-erweima"></i>二维码
101 102
             </div>
@@ -1268,8 +1269,9 @@
1268 1269
 <app-prompt-modal *ngIf="promptModalShow" [content]="promptContent" [success]="ifSuccess" [show]="promptModalShow"
1269 1270
   [info]="promptInfo" [back]="back" (closeModel)="closeModel($event)"></app-prompt-modal>
1270 1271
 <!-- 护士端科室切换提示框 -->
1271
-<app-hs-prompt-modal [changeShow]="changeShow" [closeTime]="closeTime" [show]="hsPromptModalShow"
1272
-  (closeModelHs)="closeModelHs($event)" (clearModelHs)="clearModelHs($event)"></app-hs-prompt-modal>
1272
+<app-hs-prompt-modal [changeShow]="changeShow" [closeTime]="closeTime" [closeTimeFlag]="closeTimeFlag"
1273
+  [show]="hsPromptModalShow" (closeModelHs)="closeModelHs($event)" (clearModelHs)="clearModelHs($event)">
1274
+</app-hs-prompt-modal>
1273 1275
 <!-- 标本历史记录查看 -->
1274 1276
 <app-history-prompt-modal *ngIf="historyPromptModalShow" [show]="historyPromptModalShow" [scode]="scode"
1275 1277
   (closeModelHs)="closeModelHistory($event)"></app-history-prompt-modal>

+ 8 - 2
src/app/views/hushijiandan/hushijiandan.component.less

@@ -14,9 +14,9 @@
14 14
       border: 1px solid red !important;
15 15
     }
16 16
   }
17
-  .pos{
17
+  .pos {
18 18
     position: relative;
19
-    .pos-item{
19
+    .pos-item {
20 20
       position: absolute;
21 21
       left: 100px;
22 22
       top: -10px;
@@ -665,6 +665,12 @@
665 665
           font-size: 22px;
666 666
           color: #333;
667 667
           flex: 1;
668
+          .updateTipsForNurses {
669
+            margin: 0;
670
+            width: 50%;
671
+            line-height: normal;
672
+            font-size: 14px;
673
+          }
668 674
           .nurseCode {
669 675
             width: 80px;
670 676
             font-size: 14px;

+ 51 - 5
src/app/views/hushijiandan/hushijiandan.component.ts

@@ -122,6 +122,7 @@ export class HushijiandanComponent implements OnInit {
122 122
   }
123 123
   // 关闭倒计时
124 124
   closeTime = 3;
125
+  closeTimeFlag;
125 126
   timerCloseTime = null;
126 127
   changeShow = true;
127 128
   currentHospital; //当前院区
@@ -130,6 +131,8 @@ export class HushijiandanComponent implements OnInit {
130 131
   logTime = 0; //综合日志自动刷新秒数
131 132
   logTimeConst = 30; //综合日志自动刷新秒数
132 133
   ngOnInit() {
134
+    this.getUpdateTipsForNurses();
135
+    this.getCloseTimeFlag();
133 136
     this.currentUser = this.tool.getCurrentUserDept();
134 137
     console.log(this.currentUser, this.tabSearchCont);
135 138
     //防抖
@@ -140,7 +143,7 @@ export class HushijiandanComponent implements OnInit {
140 143
       this.getDeptTaskType(v);
141 144
     });
142 145
     this.currentHospital = this.tool.getCurrentHospital();
143
-    this.changeKs();
146
+
144 147
     this.initLogin();
145 148
     this.getDeptTaskType();
146 149
     this.initForm();
@@ -210,6 +213,41 @@ export class HushijiandanComponent implements OnInit {
210 213
     this.remarksEle.nativeElement.focus();
211 214
     this.workOrderRemark += item;
212 215
   }
216
+  // 获取护士端更新提示
217
+  updateTipsForNurses = '';
218
+  getUpdateTipsForNurses(){
219
+    let postData = {
220
+      idx: 0,
221
+      sum: 1,
222
+      systemConfiguration: { keyconfig: "updateTipsForNurses" },
223
+    };
224
+    this.mainService
225
+      .getFetchDataList("simple/data", "systemConfiguration", postData)
226
+      .subscribe((result) => {
227
+        if (result.status == 200) {
228
+          this.updateTipsForNurses = result.list[0].valueconfig;
229
+        }
230
+      });
231
+  }
232
+  // 获取护士端弹窗的配置
233
+  // (1)	当用户设置为正数时,用户必须查看此窗体指定秒数。
234
+  // (2)	当用户设置为负数时,用户可点击知道了也可倒计时自动关闭。
235
+  // (3)	如果用户填写0则为无自动关闭和强制查看时间。
236
+  getCloseTimeFlag() {
237
+    let postData = {
238
+      idx: 0,
239
+      sum: 1,
240
+      systemConfiguration: { keyconfig: "nurseDeptSwitchTip" },
241
+    };
242
+    this.mainService
243
+      .getFetchDataList("simple/data", "systemConfiguration", postData)
244
+      .subscribe((result) => {
245
+        if (result.status == 200) {
246
+          this.closeTimeFlag = result.list[0].valueconfig - 0;
247
+          this.changeKs();
248
+        }
249
+      });
250
+  }
213 251
   //获取综合日志
214 252
   rLoading = false;
215 253
   listDeptOrderRecords: any = [];
@@ -349,12 +387,20 @@ export class HushijiandanComponent implements OnInit {
349 387
   // 切换科室
350 388
   changeKs() {
351 389
     this.hsPromptModalShow = true;
352
-    this.closeTime = 3;
390
+    // (1)	当用户设置为正数时,用户必须查看此窗体指定秒数。
391
+    // (2)	当用户设置为负数时,用户可点击知道了也可倒计时自动关闭。
392
+    // (3)	如果用户填写0则为无自动关闭和强制查看时间。
393
+    if (this.closeTimeFlag === 0) {
394
+      return;
395
+    }
396
+    this.closeTime = Math.abs(this.closeTimeFlag);
353 397
     clearInterval(this.timerCloseTime);
354 398
     this.timerCloseTime = setInterval(() => {
355
-      this.closeTime = Math.max(--this.closeTime, -1);
356
-      if (this.closeTime === -1) {
357
-        this.hsPromptModalShow = false;
399
+      this.closeTime = Math.max(--this.closeTime, 0);
400
+      if (this.closeTime === 0) {
401
+        if (this.closeTimeFlag <= 0) {
402
+          this.hsPromptModalShow = false;
403
+        }
358 404
         clearInterval(this.timerCloseTime);
359 405
       }
360 406
     }, 1000);

+ 2 - 2
src/app/views/login/login.component.html

@@ -41,8 +41,8 @@
41 41
     <div class="bottom">
42 42
       <span>@大势科技.[京ICO:143]</span>
43 43
       <strong>点击下载谷歌浏览器👉</strong>
44
-      <a href="http://192.168.220.84/chrome64/ChromeSetup32.exe">win32</a>
45
-      <a href="http://192.168.220.84/chrome64/ChromeSetup64.exe">win64</a>
44
+      <a [href]="http.domain+'/chrome64/ChromeSetup32.exe'">win32</a>
45
+      <a [href]="http.domain+'/chrome64/ChromeSetup64.exe'">win64</a>
46 46
     </div>
47 47
   </div>
48 48
 </div>

+ 3 - 0
src/app/views/login/login.component.ts

@@ -4,6 +4,7 @@ import { FormBuilder, Validators, FormGroup } from "@angular/forms";
4 4
 import { NzMessageService } from "ng-zorro-antd/message";
5 5
 
6 6
 import { MainService } from "../../services/main.service";
7
+import http from "../../../assets/js/http";
7 8
 import { AES, mode, pad, enc } from "crypto-js";
8 9
 
9 10
 @Component({
@@ -12,6 +13,7 @@ import { AES, mode, pad, enc } from "crypto-js";
12 13
   styleUrls: ["./login.component.less"],
13 14
 })
14 15
 export class LoginComponent implements OnInit {
16
+  http;
15 17
   validateForm: FormGroup;
16 18
   loading: boolean = false;
17 19
   // 是否单点登录
@@ -23,6 +25,7 @@ export class LoginComponent implements OnInit {
23 25
     private msg: NzMessageService
24 26
   ) {}
25 27
   ngOnInit() {
28
+    this.http = http;
26 29
     let url = location.href;
27 30
     this.isSingleSignOn = url.includes("?");
28 31
     if (this.isSingleSignOn) {

+ 3 - 3
src/app/views/order-management/order-management.component.html

@@ -71,8 +71,8 @@
71 71
         </div>
72 72
       </div>
73 73
       <div nz-col nzXl='7' class="list-template__btns">
74
-        <button nz-button class="btn default" *ngIf="coopBtns.del" [disabled]="!checkedDepIds.length"
75
-          (click)='showDelModals($event)'>批量删除</button>
74
+        <button nz-button class="btn default" *ngIf="coopBtns.del"
75
+          [disabled]="!checkedDepIds.length||(checkOptionsOne[3]?.checked)" (click)='showDelModals($event)'>批量删除</button>
76 76
         <button nz-button class="btn default ml8" (click)='search()'>搜索</button>
77 77
         <button nz-button *ngIf="coopBtns.export" class="btn default ml8" (click)='export()'
78 78
           [nzLoading]="loading2">导出</button>
@@ -121,7 +121,7 @@
121 121
             <td>
122 122
               <div class="coop">
123 123
                 <span *ngIf="coopBtns.look" (click)="detail($event,data.id)">查看</span>
124
-                <span *ngIf="coopBtns.del&&data.gdState.value!=6&&data.gdState.value!=7"
124
+                <span *ngIf="coopBtns.del&&data.gdState.value!=6&&data.gdState.value!=7&&!(checkOptionsOne[3]?.checked)"
125 125
                   (click)="showDelModal($event,data.id)">删除</span>
126 126
               </div>
127 127
             </td>

+ 15 - 0
src/app/views/order-management/order-management.component.ts

@@ -25,6 +25,14 @@ export class OrderManagementComponent implements OnInit {
25 25
     });
26 26
     this.initOrderType();
27 27
     this.coopBtns = this.tool.initCoopBtns(this.route);
28
+    if (this.coopBtns.deleted) {
29
+      //是否显示已删除
30
+      this.checkOptionsOne.push({
31
+        label: "已删除",
32
+        value: "3",
33
+        checked: false,
34
+      });
35
+    }
28 36
     this.getAllHos();
29 37
     this.getGdStates();
30 38
   }
@@ -190,6 +198,13 @@ export class OrderManagementComponent implements OnInit {
190 198
         timeOut: that.checkOptionsOne[0].checked ? 1 : 0,
191 199
       },
192 200
     };
201
+    if (that.checkOptionsOne[3]) {
202
+      if (that.checkOptionsOne[3].checked) {
203
+        data.workOrder.deleteFlag = 1;
204
+      } else {
205
+        delete data.workOrder.deleteFlag;
206
+      }
207
+    }
193 208
     if (that.association) {
194 209
       data.workOrder.taskType = {
195 210
         associationType: { id: that.association },

+ 17 - 2
src/app/views/sys-config/sys-config.component.html

@@ -62,9 +62,9 @@
62 62
           </nz-form-control>
63 63
         </nz-form-item>
64 64
         <nz-form-item class="formItem">
65
-          <nz-form-label [nzSpan]="11" nzFor="deptQRCode" nzRequired class="label">是否开通科室二维码设置
65
+          <nz-form-label [nzSpan]="10" nzFor="deptQRCode" nzRequired class="label">是否开通科室二维码设置
66 66
           </nz-form-label>
67
-          <nz-form-control [nzSpan]="13" nzErrorTip="是否开通科室二维码设置是必填项!">
67
+          <nz-form-control [nzSpan]="14" nzErrorTip="是否开通科室二维码设置是必填项!">
68 68
             <nz-radio-group formControlName="deptQRCode">
69 69
               <label nz-radio nzValue="1">是</label>
70 70
               <label nz-radio nzValue="0">否</label>
@@ -92,6 +92,21 @@
92 92
             </nz-select>
93 93
           </nz-form-control>
94 94
         </nz-form-item>
95
+        <nz-form-item class="formItem">
96
+          <nz-form-label [nzSpan]="13" nzFor="nurseDeptSwitchTip" nzRequired class="label">护士科室切换提示自动关闭设置
97
+          </nz-form-label>
98
+          <nz-form-control [nzSpan]="11" nzErrorTip="护士科室切换提示自动关闭设置是必填项!">
99
+            <nz-input-number class="w100" formControlName="nurseDeptSwitchTip" [nzStep]="1"></nz-input-number>
100
+          </nz-form-control>
101
+        </nz-form-item>
102
+        <nz-form-item class="formItem">
103
+          <nz-form-label [nzSpan]="7" nzFor="updateTipsForNurses" class="label">护士端更新提示
104
+          </nz-form-label>
105
+          <nz-form-control [nzSpan]="17" nzErrorTip="护士端更新提示是必填项!">
106
+            <textarea nz-input placeholder="最多50个字" formControlName="updateTipsForNurses"
107
+              [nzAutosize]="{ minRows: 3, maxRows: 3 }" maxlength="50"></textarea>
108
+          </nz-form-control>
109
+        </nz-form-item>
95 110
       </div>
96 111
     </form>
97 112
   </div>

+ 14 - 0
src/app/views/sys-config/sys-config.component.ts

@@ -37,6 +37,8 @@ export class SysConfigComponent implements OnInit {
37 37
       orderClearUserSwitch: [null, [Validators.required]],
38 38
       deptQRCode: [null, [Validators.required]],
39 39
       workOrderSettings: [5, [Validators.required]],
40
+      nurseDeptSwitchTip: [0, [Validators.required]],
41
+      updateTipsForNurses: [""],
40 42
       defaultRoleOfNurse: [null, [Validators.required]],
41 43
       formUrl: [{ value: null, disabled: true }, [Validators.required]],
42 44
       serviceUrl: [{ value: null, disabled: true }, [Validators.required]],
@@ -94,6 +96,8 @@ export class SysConfigComponent implements OnInit {
94 96
         item.keyconfig === "orderClearUserSwitch" ||
95 97
         item.keyconfig === "deptQRCode" ||
96 98
         item.keyconfig === "workOrderSettings" ||
99
+        item.keyconfig === "nurseDeptSwitchTip" ||
100
+        item.keyconfig === "updateTipsForNurses" ||
97 101
         item.keyconfig === "defaultRoleOfNurse" ||
98 102
         item.keyconfig === "busiViewDeptId"
99 103
     );
@@ -109,6 +113,10 @@ export class SysConfigComponent implements OnInit {
109 113
         item.valueconfig = this.validateForm.controls.deptQRCode.value;
110 114
       } else if (item.keyconfig === "workOrderSettings") {
111 115
         item.valueconfig = this.validateForm.controls.workOrderSettings.value;
116
+      } else if (item.keyconfig === "nurseDeptSwitchTip") {
117
+        item.valueconfig = this.validateForm.controls.nurseDeptSwitchTip.value;
118
+      } else if (item.keyconfig === "updateTipsForNurses") {
119
+        item.valueconfig = this.validateForm.controls.updateTipsForNurses.value;
112 120
       } else if (item.keyconfig === "defaultRoleOfNurse") {
113 121
         item.valueconfig = this.validateForm.controls.defaultRoleOfNurse.value;
114 122
       } else if (item.keyconfig === "busiViewDeptId") {
@@ -176,6 +184,12 @@ export class SysConfigComponent implements OnInit {
176 184
                 case "workOrderSettings":
177 185
                   this.validateForm.controls.workOrderSettings.setValue(c[1]);
178 186
                   break;
187
+                case "nurseDeptSwitchTip":
188
+                  this.validateForm.controls.nurseDeptSwitchTip.setValue(c[1]);
189
+                  break;
190
+                case "updateTipsForNurses":
191
+                  this.validateForm.controls.updateTipsForNurses.setValue(c[1]);
192
+                  break;
179 193
                 case "defaultRoleOfNurse":
180 194
                   this.validateForm.controls.defaultRoleOfNurse.setValue(
181 195
                     c[1] - 0

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

@@ -3,6 +3,7 @@ var port = location.port;//端口
3 3
 var protocolName = document.location.protocol;//http协议
4 4
 var wsName = protocolName === 'http:' ? 'ws' : 'wss';//ws协议
5 5
 module.exports = {
6
+  domain: protocolName + '//' + domainName + ':' + port,//chrome下载
6 7
   host: protocolName + '//' + domainName + ':' + port + '/service',//测试接口
7 8
   specimenViewHost: protocolName + '//' + domainName + ':' + port + '/specimenView',//业务视图
8 9
   bigScreenHost: protocolName + '//' + domainName + ':' + port + '/largeScreen',//大屏地址