seimin 1 年之前
父節點
當前提交
c2891f3716

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

+ 29 - 20
src/app/views/hushijiandan/hushijiandan.component.html

@@ -852,27 +852,36 @@
852 852
                   </div>
853 853
                 </ng-template>
854 854
                 <div class="tab borderB" nz-row style="padding: 4px 0">
855
-                  <div *ngIf="coopBtns.buildOrdersForOtherTasks" nz-col nzSpan="3" [ngClass]="{txtC: true, cur: true, checked: checkedTableType == 'other'}" (click)="checkTable('other')">
856
-                    <div class="text">其他任务建单</div>
857
-                  </div>
858
-                  <div *ngIf="coopBtns.suggestionBox" nz-col nzSpan="3" [ngClass]="{txtC: true, cur: true, checked: checkedTableType == 'advice'}" (click)="checkTable('advice')">
859
-                    <div class="text">意见箱</div>
860
-                  </div>
861
-                  <div *ngIf="coopBtns.inquiryOfHistoricalSpecimens" nz-col nzSpan="3" [ngClass]="{txtC: true, cur: true, checked: checkedTableType == 'historySpecimen'}" (click)="checkTable('historySpecimen')">
862
-                    <div class="text">历史标本查询</div>
863
-                  </div>
864
-                  <div *ngIf="coopBtns.historicalMedicineListInquiry" nz-col nzSpan="3" [ngClass]="{txtC: true, cur: true, checked: checkedTableType == 'historyDrugsbag'}" (click)="checkTable('historyDrugsbag')">
865
-                    <div class="text">历史药单查询</div>
866
-                  </div>
867
-                  <div *ngIf="coopBtns.quickReportForRepair && isShowBx" nz-col nzSpan="3" [ngClass]="{txtC: true, cur: true, checked: checkedTableType == 'kjbx'}" (click)="checkTable('kjbx')">
868
-                    <div class="text">快捷报修</div>
869
-                  </div>
870
-                  <div *ngIf="coopBtns.repairList && isShowBx" nz-col nzSpan="3" [ngClass]="{txtC: true, cur: true, checked: checkedTableType == 'bxlb'}" (click)="checkTable('bxlb')">
871
-                    <div class="text">
872
-                      报修列表<strong class="red">&nbsp;({{processing}})</strong>
873
-                    </div>
855
+                  <div nz-col nzSpan="21" class="h100p">
856
+                    <overlay-scrollbars #osComponentRef11 nz-row class="h100p w100">
857
+                      <div style="height: 100%; display: flex;">
858
+                        <div *ngIf="coopBtns.buildOrdersForOtherTasks" nz-col nzSpan="3" [ngClass]="{txtC: true, cur: true, checked: checkedTableType == 'other'}" (click)="checkTable('other')">
859
+                          <div class="text">其他任务建单</div>
860
+                        </div>
861
+                        <div *ngFor="let item of tabPermission" nz-col nzSpan="3" [ngClass]="{txtC: true, cur: true, checked: checkedTableType == 'other'}" (click)="checkTable('other')">
862
+                          <div class="text">其他任务建单1</div>
863
+                        </div>
864
+                        <div *ngIf="coopBtns.suggestionBox" nz-col nzSpan="3" [ngClass]="{txtC: true, cur: true, checked: checkedTableType == 'advice'}" (click)="checkTable('advice')">
865
+                          <div class="text">意见箱</div>
866
+                        </div>
867
+                        <div *ngIf="coopBtns.inquiryOfHistoricalSpecimens" nz-col nzSpan="3" [ngClass]="{txtC: true, cur: true, checked: checkedTableType == 'historySpecimen'}" (click)="checkTable('historySpecimen')">
868
+                          <div class="text">历史标本查询</div>
869
+                        </div>
870
+                        <div *ngIf="coopBtns.historicalMedicineListInquiry" nz-col nzSpan="3" [ngClass]="{txtC: true, cur: true, checked: checkedTableType == 'historyDrugsbag'}" (click)="checkTable('historyDrugsbag')">
871
+                          <div class="text">历史药单查询</div>
872
+                        </div>
873
+                        <div *ngIf="coopBtns.quickReportForRepair && isShowBx" nz-col nzSpan="3" [ngClass]="{txtC: true, cur: true, checked: checkedTableType == 'kjbx'}" (click)="checkTable('kjbx')">
874
+                          <div class="text">快捷报修</div>
875
+                        </div>
876
+                        <div *ngIf="coopBtns.repairList && isShowBx" nz-col nzSpan="3" [ngClass]="{txtC: true, cur: true, checked: checkedTableType == 'bxlb'}" (click)="checkTable('bxlb')">
877
+                          <div class="text">
878
+                            报修列表<strong class="red">&nbsp;({{processing}})</strong>
879
+                          </div>
880
+                        </div>
881
+                      </div>
882
+                    </overlay-scrollbars>
874 883
                   </div>
875
-                  <div nz-col nzSpan="6" style="float: right;" class="txtC h100p alignR display_flex justify-content_flex-end align-items_center">
884
+                  <div nz-col nzSpan="3" class="txtC h100p alignR display_flex justify-content_flex-end align-items_center">
876 885
                     <div class="btn txtC" *ngIf="mainRole && loginUser.usertype.value != 1" (click)="toMain()">
877 886
                       回到系统管理
878 887
                     </div>

+ 4 - 0
src/app/views/hushijiandan/hushijiandan.component.less

@@ -1155,6 +1155,10 @@
1155 1155
               cursor: default;
1156 1156
               overflow: hidden;
1157 1157
 
1158
+              & /deep/ .os-scrollbar-vertical{
1159
+                display: none!important;
1160
+              }
1161
+
1158 1162
               .cur {
1159 1163
                 height: 100%;
1160 1164
                 border-radius: 4px;

+ 8 - 0
src/app/views/hushijiandan/hushijiandan.component.ts

@@ -96,6 +96,12 @@ export class HushijiandanComponent implements OnInit {
96 96
     static: false,
97 97
   })
98 98
   osComponentRef10: OverlayScrollbarsComponent;
99
+  @ViewChild("osComponentRef11", {
100
+    read: OverlayScrollbarsComponent,
101
+    static: false,
102
+  })
103
+  osComponentRef11: OverlayScrollbarsComponent;
104
+
99 105
   othersListOptions: any;
100 106
   sortableTimer = null;
101 107
   searchAccountSubject = new Subject(); //查工号防抖
@@ -1160,6 +1166,7 @@ export class HushijiandanComponent implements OnInit {
1160 1166
   patientMsgList: any = []; // 患者转运,患者陪检一键建单
1161 1167
   tabFlag = true; //页面初始化获取一次患者陪检的任务类型信息
1162 1168
   allowUrgentFlag = false; //检查列表的患者陪检类型是否允许加急
1169
+  tabPermission:any = []; //tab自定义
1163 1170
   getDeptTaskType(search?, clear?) {
1164 1171
     let that = this;
1165 1172
     this.otherNum++;
@@ -1230,6 +1237,7 @@ export class HushijiandanComponent implements OnInit {
1230 1237
         if (data.data.allTaskTypes) {
1231 1238
           that.othersList = [];
1232 1239
           that.patientMsgList = [];
1240
+          that.tabPermission = Object.values(data.data.tabPermission.data);
1233 1241
           data.data.allTaskTypes.forEach((e) => {
1234 1242
             if (e.associationType.value == "other") {
1235 1243
               that.othersList.push(e);

+ 3 - 3
src/app/views/tab-custom/tab-custom.component.html

@@ -27,7 +27,7 @@
27 27
             <td>
28 28
               <div class="coop">
29 29
                 <span *ngIf="coopBtns.edit" (click)="edit(data)">编辑</span>
30
-                <span *ngIf="coopBtns.del && data.taskTypeList.length" (click)="del(data)">删除</span>
30
+                <span *ngIf="coopBtns.del && data.tabTypeList.length" (click)="del(data)">删除</span>
31 31
               </div>
32 32
             </td>
33 33
           </tr>
@@ -65,9 +65,9 @@
65 65
           </nz-form-control>
66 66
         </nz-form-item>
67 67
         <nz-form-item>
68
-          <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="taskTypeList">关联任务类型</nz-form-label>
68
+          <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="tabTypeList">关联任务类型</nz-form-label>
69 69
           <nz-form-control nzErrorTip="请选择关联任务类型!">
70
-            <nz-select [nzDropdownMatchSelectWidth]="false" formControlName="taskTypeList" nzShowSearch nzAllowClear nzMode="multiple" nzPlaceHolder="请选择关联任务类型" nzServerSearch (nzOnSearch)="changeInp($event)" (nzOpenChange)="openOtherTasktype($event)">
70
+            <nz-select [nzDropdownMatchSelectWidth]="false" formControlName="tabTypeList" nzShowSearch nzAllowClear nzMode="multiple" nzPlaceHolder="请选择关联任务类型" nzServerSearch (nzOnSearch)="changeInp($event)" (nzOpenChange)="openOtherTasktype($event)">
71 71
               <ng-container *ngFor="let data of otherTasktypeList">
72 72
                 <nz-option *ngIf="!isLoading" [nzLabel]="data.taskName" [nzValue]="data.id">
73 73
                 </nz-option>

+ 7 - 7
src/app/views/tab-custom/tab-custom.component.ts

@@ -97,7 +97,7 @@ export class TabCustomComponent implements OnInit {
97 97
         this.loading1 = false;
98 98
         data.list = data.list || [];
99 99
         data.list.forEach(v => {
100
-          v.taskNames = v.taskTypeList.map(v=>v.taskTypeDTO.taskName).toString()
100
+          v.taskNames = v.tabTypeList.map(v=>v.taskTypeDTO.taskName).toString()
101 101
         })
102 102
         this.listOfData = data.list;
103 103
         this.listLength = data.totalNum;
@@ -146,7 +146,7 @@ export class TabCustomComponent implements OnInit {
146 146
     this.validateForm = this.fb.group({
147 147
       title: ['', [Validators.required]],
148 148
       orders: [0, [Validators.required]],
149
-      taskTypeList: [null],
149
+      tabTypeList: [null],
150 150
     });
151 151
   }
152 152
   // 表单提交
@@ -157,11 +157,11 @@ export class TabCustomComponent implements OnInit {
157 157
     }
158 158
     if (this.validateForm.invalid) return;
159 159
     this.btnLoading = true;
160
-    let taskTypeList = [];
161
-    this.validateForm.value.taskTypeList.forEach(v => {
160
+    let tabTypeList = [];
161
+    this.validateForm.value.tabTypeList.forEach(v => {
162 162
       this.otherTasktypeList.forEach(vv => {
163 163
         if(v == vv.id){
164
-          taskTypeList.push({
164
+          tabTypeList.push({
165 165
             taskTypeId: vv.id,
166 166
             hosId: vv.hosId ? vv.hosId.id : undefined,
167 167
             typeParentHosid: vv.hosId.parent ? vv.hosId.parent.id : undefined,
@@ -174,7 +174,7 @@ export class TabCustomComponent implements OnInit {
174 174
       orders: this.validateForm.value.orders,
175 175
       hosId: this.hosId,
176 176
       deleteFlag: 0,
177
-      taskTypeList
177
+      tabTypeList
178 178
     };
179 179
     if (!this.add) {
180 180
       data = {...this.coopData, ...data};
@@ -200,7 +200,7 @@ export class TabCustomComponent implements OnInit {
200 200
   edit(data) {
201 201
     this.validateForm.controls.title.setValue(data.title);
202 202
     this.validateForm.controls.orders.setValue(data.orders);
203
-    this.validateForm.controls.taskTypeList.setValue(Array.isArray(data.taskTypeList) ? data.taskTypeList.map(v => +v.taskTypeId) : []);
203
+    this.validateForm.controls.tabTypeList.setValue(Array.isArray(data.tabTypeList) ? data.tabTypeList.map(v => +v.taskTypeId) : []);
204 204
     this.modal = true;
205 205
     this.add = false;
206 206
     this.coopId = data.id;