瀏覽代碼

Merge branch 'lmm' into develop

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

+ 1 - 1
proxy.conf.json

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

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

@@ -73,18 +73,22 @@
73
           <div class="info" nz-row>
73
           <div class="info" nz-row>
74
             <div nz-col nzSpan="6">工单日期:{{orderInfo.startTime|date:'yyyy-MM-dd HH:mm'}}</div>
74
             <div nz-col nzSpan="6">工单日期:{{orderInfo.startTime|date:'yyyy-MM-dd HH:mm'}}</div>
75
             <div nz-col nzSpan="6">总耗时:{{orderInfo.showTimeNum}}</div>
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
           </div>
78
           </div>
79
           <div class="info" nz-row>
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
             </div>
86
             </div>
82
-            <div nz-col nzSpan="9">
87
+          </div>
88
+          <div class="info" nz-row>
89
+            <div nz-col nzSpan="24">
83
               目标科室:{{endDepts}}
90
               目标科室:{{endDepts}}
84
             </div>
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
           </div>
92
           </div>
89
           <div class="info" nz-row *ngIf="orderInfo.urgentDetails">
93
           <div class="info" nz-row *ngIf="orderInfo.urgentDetails">
90
             <div nz-col nzSpan="8">
94
             <div nz-col nzSpan="8">
@@ -244,7 +248,8 @@
244
     </overlay-scrollbars>
248
     </overlay-scrollbars>
245
     <!-- 药品/静配配送类型工单信息 -->
249
     <!-- 药品/静配配送类型工单信息 -->
246
     <overlay-scrollbars #osComponentRef6 style="max-height: 400px;">
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
         class="content orders">
253
         class="content orders">
249
         <div class="top">
254
         <div class="top">
250
           <div class="num">
255
           <div class="num">
@@ -353,7 +358,8 @@
353
     </overlay-scrollbars>
358
     </overlay-scrollbars>
354
     <!-- 患者陪检/患者转运类型工单信息 -->
359
     <!-- 患者陪检/患者转运类型工单信息 -->
355
     <overlay-scrollbars #osComponentRef1 style="max-height: 400px;">
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
         class="content orders">
363
         class="content orders">
358
         <div class="top">
364
         <div class="top">
359
           <div class="num">
365
           <div class="num">

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

@@ -142,7 +142,7 @@
142
                   color: #e5e9ed;
142
                   color: #e5e9ed;
143
 
143
 
144
                   &.green {
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
   timerCloseTime = null;
125
   timerCloseTime = null;
126
   changeShow = true;
126
   changeShow = true;
127
   currentHospital; //当前院区
127
   currentHospital; //当前院区
128
+  currentUser; //当前用户
128
   logTimer = null; //综合日志定时器
129
   logTimer = null; //综合日志定时器
129
   logTime = 0; //综合日志自动刷新秒数
130
   logTime = 0; //综合日志自动刷新秒数
130
   logTimeConst = 30; //综合日志自动刷新秒数
131
   logTimeConst = 30; //综合日志自动刷新秒数
131
   ngOnInit() {
132
   ngOnInit() {
133
+    this.currentUser = this.tool.getCurrentUserDept();
134
+    console.log(this.currentUser, this.tabSearchCont);
132
     //防抖
135
     //防抖
133
     this.searchTabInpSubject.pipe(debounceTime(500)).subscribe((v) => {
136
     this.searchTabInpSubject.pipe(debounceTime(500)).subscribe((v) => {
134
       this.getPatient(v);
137
       this.getPatient(v);
@@ -614,13 +617,13 @@ export class HushijiandanComponent implements OnInit {
614
           that.othersList = [];
617
           that.othersList = [];
615
           that.patientMsgList = [];
618
           that.patientMsgList = [];
616
           data.data.allTaskTypes.forEach((e) => {
619
           data.data.allTaskTypes.forEach((e) => {
617
-            if (e.associationType.value=='other') {
620
+            if (e.associationType.value == "other") {
618
               that.othersList.push(e);
621
               that.othersList.push(e);
619
-            } else if (e.associationType.value=='specimen') {
622
+            } else if (e.associationType.value == "specimen") {
620
               that.bbMsg = e;
623
               that.bbMsg = e;
621
             } else if (
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
               that.patientMsgList.push(e);
628
               that.patientMsgList.push(e);
626
             }
629
             }
@@ -709,19 +712,37 @@ export class HushijiandanComponent implements OnInit {
709
   // 获取患者信息
712
   // 获取患者信息
710
   snum = 0;
713
   snum = 0;
711
   getPatient(e?) {
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
     let postData = {
727
     let postData = {
715
-      idx: that.infoPageIdx - 1,
716
-      sum: 9999,
728
+      idx: this.infoPageIdx - 1,
729
+      sum: 10,
717
     };
730
     };
718
     // 患者信息
731
     // 患者信息
719
     postData["patient"] = {
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
     this.snum++;
744
     this.snum++;
724
-    that.mainService
745
+    this.mainService
725
       .getFetchDataList("nurse", "patient", postData)
746
       .getFetchDataList("nurse", "patient", postData)
726
       .subscribe((data) => {
747
       .subscribe((data) => {
727
         this.snum--;
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
         if (this.snum === 0) {
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
     let flag = this.checkTypeLis.some((item) => {
1018
     let flag = this.checkTypeLis.some((item) => {
998
       return (
1019
       return (
999
         item.id == this.patientForm.controls.checkedType.value &&
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
     let appointmentZyBuildFlag = this.checkTypeLis.filter(
1340
     let appointmentZyBuildFlag = this.checkTypeLis.filter(
1320
       (item) =>
1341
       (item) =>
1321
         item.id == this.patientForm.controls.checkedType.value &&
1342
         item.id == this.patientForm.controls.checkedType.value &&
1322
-        item.associationType.value=='patientTransport'
1343
+        item.associationType.value == "patientTransport"
1323
     );
1344
     );
1324
     if (appointmentZyBuildFlag.length) {
1345
     if (appointmentZyBuildFlag.length) {
1325
       this.appointmentZyBuildFlag =
1346
       this.appointmentZyBuildFlag =

+ 4 - 4
src/app/views/sys-config/sys-config.component.html

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