Bladeren bron

Merge branch 'lmm' into develop

seimin 3 jaren geleden
bovenliggende
commit
d02c20ff09

+ 1 - 1
proxy.conf.json

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

+ 15 - 9
src/app/share/order-detail/order-detail.component.html

@@ -73,18 +73,22 @@
73 73
           <div class="info" nz-row>
74 74
             <div nz-col nzSpan="6">工单日期:{{orderInfo.startTime|date:'yyyy-MM-dd HH:mm'}}</div>
75 75
             <div nz-col nzSpan="6">总耗时:{{orderInfo.showTimeNum}}</div>
76
-            <div nz-col nzSpan="8">申请类型:{{orderInfo.taskType?orderInfo.taskType.taskName:''}}</div>
77
-            <div nz-col nzSpan="4">支助人员信息:{{orderInfo.worker?orderInfo.worker.name:''}}</div>
76
+            <div nz-col nzSpan="6">申请类型:{{orderInfo.taskType?orderInfo.taskType.taskName:''}}</div>
77
+            <div nz-col nzSpan="6">支助人员信息:{{orderInfo.worker?orderInfo.worker.name:''}}</div>
78 78
           </div>
79 79
           <div class="info" nz-row>
80
-            <div nz-col nzSpan="4">申请科室:{{orderInfo.createDeptDTO?orderInfo.createDeptDTO.dept:''}}
80
+            <div nz-col nzSpan="6">预计接收:{{orderInfo.expectReceiveNum}}</div>
81
+            <div nz-col nzSpan="6">送达:{{orderInfo.deliveryNum||'无'}}</div>
82
+            <div nz-col nzSpan="6">实际接收:{{orderInfo.actualReceiveNum||'无'}}</div>
83
+          </div>
84
+          <div class="info" nz-row>
85
+            <div nz-col nzSpan="24">申请科室:{{orderInfo.createDeptDTO?orderInfo.createDeptDTO.dept:''}}
81 86
             </div>
82
-            <div nz-col nzSpan="9">
87
+          </div>
88
+          <div class="info" nz-row>
89
+            <div nz-col nzSpan="24">
83 90
               目标科室:{{endDepts}}
84 91
             </div>
85
-            <div nz-col nzSpan="4">预计接收:{{orderInfo.expectReceiveNum}}</div>
86
-            <div nz-col nzSpan="3">送达:{{orderInfo.deliveryNum}}</div>
87
-            <div nz-col nzSpan="4">实际接收:{{orderInfo.actualReceiveNum}}</div>
88 92
           </div>
89 93
           <div class="info" nz-row *ngIf="orderInfo.urgentDetails">
90 94
             <div nz-col nzSpan="8">
@@ -244,7 +248,8 @@
244 248
     </overlay-scrollbars>
245 249
     <!-- 药品/静配配送类型工单信息 -->
246 250
     <overlay-scrollbars #osComponentRef6 style="max-height: 400px;">
247
-      <div *ngIf="tabType==1&&(orderInfo.taskType.associationType.value=='drugsBag'||orderInfo.taskType.associationType.value=='jPBag')"
251
+      <div
252
+        *ngIf="tabType==1&&(orderInfo.taskType.associationType.value=='drugsBag'||orderInfo.taskType.associationType.value=='jPBag')"
248 253
         class="content orders">
249 254
         <div class="top">
250 255
           <div class="num">
@@ -353,7 +358,8 @@
353 358
     </overlay-scrollbars>
354 359
     <!-- 患者陪检/患者转运类型工单信息 -->
355 360
     <overlay-scrollbars #osComponentRef1 style="max-height: 400px;">
356
-      <div *ngIf="tabType==1&&(orderInfo.taskType.associationType.value=='inspect'||orderInfo.taskType.associationType.value=='patientTransport')"
361
+      <div
362
+        *ngIf="tabType==1&&(orderInfo.taskType.associationType.value=='inspect'||orderInfo.taskType.associationType.value=='patientTransport')"
357 363
         class="content orders">
358 364
         <div class="top">
359 365
           <div class="num">

+ 1 - 1
src/app/share/order-detail/order-detail.component.less

@@ -142,7 +142,7 @@
142 142
                   color: #e5e9ed;
143 143
 
144 144
                   &.green {
145
-                    color: #bee1a7;
145
+                    color: @primary-color;
146 146
                   }
147 147
                 }
148 148
               }

+ 37 - 16
src/app/views/hushijiandan/hushijiandan.component.ts

@@ -125,10 +125,13 @@ export class HushijiandanComponent implements OnInit {
125 125
   timerCloseTime = null;
126 126
   changeShow = true;
127 127
   currentHospital; //当前院区
128
+  currentUser; //当前用户
128 129
   logTimer = null; //综合日志定时器
129 130
   logTime = 0; //综合日志自动刷新秒数
130 131
   logTimeConst = 30; //综合日志自动刷新秒数
131 132
   ngOnInit() {
133
+    this.currentUser = this.tool.getCurrentUserDept();
134
+    console.log(this.currentUser, this.tabSearchCont);
132 135
     //防抖
133 136
     this.searchTabInpSubject.pipe(debounceTime(500)).subscribe((v) => {
134 137
       this.getPatient(v);
@@ -614,13 +617,13 @@ export class HushijiandanComponent implements OnInit {
614 617
           that.othersList = [];
615 618
           that.patientMsgList = [];
616 619
           data.data.allTaskTypes.forEach((e) => {
617
-            if (e.associationType.value=='other') {
620
+            if (e.associationType.value == "other") {
618 621
               that.othersList.push(e);
619
-            } else if (e.associationType.value=='specimen') {
622
+            } else if (e.associationType.value == "specimen") {
620 623
               that.bbMsg = e;
621 624
             } else if (
622
-              e.associationType.value=='patientTransport' ||
623
-              e.associationType.value=='inspect'
625
+              e.associationType.value == "patientTransport" ||
626
+              e.associationType.value == "inspect"
624 627
             ) {
625 628
               that.patientMsgList.push(e);
626 629
             }
@@ -709,19 +712,37 @@ export class HushijiandanComponent implements OnInit {
709 712
   // 获取患者信息
710 713
   snum = 0;
711 714
   getPatient(e?) {
712
-    let that = this;
713
-    that.pLoading = true;
715
+    if (
716
+      (this.currentUser.typeValue == "checkRoom2" ||
717
+        this.currentUser.typeValue == "outpatientDept" ||
718
+        this.currentUser.typeValue == "checkRoom") &&
719
+      !this.tabSearchCont
720
+    ) {
721
+      this.pLoading = false;
722
+      this.patientList = [];
723
+      this.infoLength = 0;
724
+      return; //护士端如果登录后如果科室类型为“检查科室”、“门诊科室”、“检验科室”,默认不显示患者信息
725
+    }
726
+    this.pLoading = true;
714 727
     let postData = {
715
-      idx: that.infoPageIdx - 1,
716
-      sum: 9999,
728
+      idx: this.infoPageIdx - 1,
729
+      sum: 10,
717 730
     };
718 731
     // 患者信息
719 732
     postData["patient"] = {
720
-      keyWord: e ? e : that.tabSearchCont,
733
+      keyWord: e ? e : this.tabSearchCont,
721 734
     };
722
-    postData["patient"]["department"] = { id: that.loginUserDeptId };
735
+    if (
736
+      this.currentUser.typeValue == "checkRoom2" ||
737
+      this.currentUser.typeValue == "outpatientDept" ||
738
+      this.currentUser.typeValue == "checkRoom"
739
+    ) {
740
+      delete postData["patient"]["department"];//搜索范围为全院在院患者
741
+    } else {
742
+      postData["patient"]["department"] = { id: this.loginUserDeptId };
743
+    }
723 744
     this.snum++;
724
-    that.mainService
745
+    this.mainService
725 746
       .getFetchDataList("nurse", "patient", postData)
726 747
       .subscribe((data) => {
727 748
         this.snum--;
@@ -732,11 +753,11 @@ export class HushijiandanComponent implements OnInit {
732 753
             }
733 754
           });
734 755
         }
735
-        that.patientList = data.list || [];
756
+        this.patientList = data.list || [];
736 757
         if (this.snum === 0) {
737
-          that.pLoading = false;
758
+          this.pLoading = false;
738 759
         }
739
-        that.infoLength = data.totalNum || 0;
760
+        this.infoLength = data.totalNum || 0;
740 761
       });
741 762
   }
742 763
 
@@ -997,7 +1018,7 @@ export class HushijiandanComponent implements OnInit {
997 1018
     let flag = this.checkTypeLis.some((item) => {
998 1019
       return (
999 1020
         item.id == this.patientForm.controls.checkedType.value &&
1000
-        item.associationType.value=='patientTransport'
1021
+        item.associationType.value == "patientTransport"
1001 1022
       );
1002 1023
     });
1003 1024
     //预约时间-患者陪检不能为空
@@ -1319,7 +1340,7 @@ export class HushijiandanComponent implements OnInit {
1319 1340
     let appointmentZyBuildFlag = this.checkTypeLis.filter(
1320 1341
       (item) =>
1321 1342
         item.id == this.patientForm.controls.checkedType.value &&
1322
-        item.associationType.value=='patientTransport'
1343
+        item.associationType.value == "patientTransport"
1323 1344
     );
1324 1345
     if (appointmentZyBuildFlag.length) {
1325 1346
       this.appointmentZyBuildFlag =

+ 4 - 4
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]="10" nzFor="deptQRCode" nzRequired class="label">是否开通科室二维码设置
65
+          <nz-form-label [nzSpan]="11" nzFor="deptQRCode" nzRequired class="label">是否开通科室二维码设置
66 66
           </nz-form-label>
67
-          <nz-form-control [nzSpan]="14" nzErrorTip="是否开通科室二维码设置是必填项!">
67
+          <nz-form-control [nzSpan]="13" nzErrorTip="是否开通科室二维码设置是必填项!">
68 68
             <nz-radio-group formControlName="deptQRCode">
69 69
               <label nz-radio nzValue="1">是</label>
70 70
               <label nz-radio nzValue="0">否</label>
@@ -75,13 +75,13 @@
75 75
           <nz-form-label [nzSpan]="8" nzFor="workOrderSettings" nzRequired class="label">自动关闭工单设置
76 76
           </nz-form-label>
77 77
           <nz-form-control [nzSpan]="16" nzErrorTip="自动关闭工单设置是必填项!">
78
-            <nz-input-number formControlName="workOrderSettings" [nzMin]="5" [nzStep]="1"
78
+            <nz-input-number class="w100" formControlName="workOrderSettings" [nzMin]="5" [nzStep]="1"
79 79
               [nzFormatter]="formatterPercent" [nzParser]="parserPercent"></nz-input-number>
80 80
           </nz-form-control>
81 81
         </nz-form-item>
82 82
         <nz-form-item class="formItem">
83 83
           <nz-form-label [nzSpan]="6" nzFor="defaultRoleOfNurse" nzRequired class="label">护士默认角色</nz-form-label>
84
-          <nz-form-control [nzSpan]="12" nzErrorTip="护士默认角色是必填项!">
84
+          <nz-form-control [nzSpan]="18" nzErrorTip="护士默认角色是必填项!">
85 85
             <nz-select formControlName="defaultRoleOfNurse" nzPlaceHolder="请输入护士默认角色">
86 86
               <ng-container *ngFor="let role of roleList">
87 87
                 <nz-option *ngIf="!loading4" [nzValue]="role.id" [nzLabel]="role.role"></nz-option>