seimin 8 ヶ月 前
コミット
e295409e58

+ 69 - 0
src/app/views/hushijiandan/hushijiandan.component.html

@@ -873,6 +873,9 @@
873 873
                         <div *ngIf="coopBtns.surgery" nz-col nzSpan="3" [ngClass]="{txtC: true, cur: true, checked: checkedTableType == 'surgery'}" (click)="checkTable('surgery')">
874 874
                           <div class="text">手术排程信息</div>
875 875
                         </div>
876
+                        <div *ngIf="coopBtns.outpatientHelpAppointment" nz-col nzSpan="3" [ngClass]="{txtC: true, cur: true, checked: checkedTableType == 'outpatientHelpAppointment'}" (click)="checkTable('outpatientHelpAppointment')">
877
+                          <div class="text">门诊帮扶预约</div>
878
+                        </div>
876 879
                         <div *ngIf="coopBtns.inquiryOfHistoricalSpecimens && currentDept.typeValue != 'outpatientService'" nz-col nzSpan="3" [ngClass]="{txtC: true, cur: true, checked: checkedTableType == 'historySpecimen'}" (click)="checkTable('historySpecimen')">
877 880
                           <div class="text">历史标本查询</div>
878 881
                         </div>
@@ -1683,6 +1686,72 @@
1683 1686
                   </div>
1684 1687
                 </div>
1685 1688
               </div>
1689
+              <!-- 门诊帮扶预约 -->
1690
+              <div *ngIf="checkedTableType == 'outpatientHelpAppointment'" style="flex: 1; height: 100%">
1691
+                <div class="searchBox display_flex align-items_center justify-content_space-between">
1692
+                  <div class="left alignC display_flex justify-content_flex-center align-items_center">
1693
+                    <div>预约时间:</div>
1694
+                    <div>
1695
+                      <nz-date-picker [(ngModel)]="outpatientHelpAppointmentDateSearchInp"></nz-date-picker>
1696
+                    </div>
1697
+                  </div>
1698
+                  <div class="btns">
1699
+                    <button
1700
+                      nz-button
1701
+                      nzType="primary"
1702
+                      nzGhost
1703
+                      (click)="getOutpatientHelpAppointment(true)"
1704
+                    >
1705
+                      搜索
1706
+                    </button>
1707
+                  </div>
1708
+                </div>
1709
+                <div class="table">
1710
+                  <div class="box">
1711
+                    <nz-table
1712
+                      class="hospitalTable"
1713
+                      [nzData]="outpatientHelpAppointmentList"
1714
+                      nzSize="middle"
1715
+                      [nzShowPagination]="false"
1716
+                      [nzLoading]="outpatientHelpAppointmentInfoLoading"
1717
+                    >
1718
+                      <thead>
1719
+                        <tr class="thead">
1720
+                          <th nzWidth="20%">患者姓名</th>
1721
+                          <th nzWidth="20%">申请类型</th>
1722
+                          <th nzWidth="20%">联系电话</th>
1723
+                          <th nzWidth="20%">陪诊时间<br>状态</th>
1724
+                          <th nzWidth="20%">操作</th>
1725
+                        </tr>
1726
+                      </thead>
1727
+                      <tbody>
1728
+                        <tr *ngFor="let item of outpatientHelpAppointmentList;let i = index">
1729
+                          <td>{{ item.patientName }}<br>{{ item.sex?.name }}<ng-container *ngIf="item.age !== undefined"> {{item.age}}岁</ng-container></td>
1730
+                          <td>{{ item.applyType?.name }}<br>{{ item.equipment?.name }}</td>
1731
+                          <td>患者:{{ item.patientPhone }}<br>代表:{{ item.agent_phone }}</td>
1732
+                          <td>{{ item.escortTime | date:'yyyy-MM-dd' }}<br>{{ item.status?.name }}</td>
1733
+                          <td>
1734
+                            <div class="coop">
1735
+                              <span (click)="createOrder($event, item)">一键申请</span>
1736
+                              <span (click)="openOutpatientServiceModal(item.patientDTO)">打印</span>
1737
+                            </div>
1738
+                          </td>
1739
+                        </tr>
1740
+                      </tbody>
1741
+                    </nz-table>
1742
+                    <div class="pagination">
1743
+                      <nz-pagination
1744
+                        [(nzPageIndex)]="outpatientHelpAppointmentPageIndex"
1745
+                        [(nzTotal)]="outpatientHelpAppointmentListLength"
1746
+                        [(nzPageSize)]="outpatientHelpAppointmentPageSize"
1747
+                        (nzPageIndexChange)="getOutpatientHelpAppointment()"
1748
+                        (nzPageSizeChange)="getOutpatientHelpAppointment()"
1749
+                      >
1750
+                      </nz-pagination>
1751
+                    </div>
1752
+                  </div>
1753
+                </div>
1754
+              </div>
1686 1755
               <!-- 历史标本查询 -->
1687 1756
               <div
1688 1757
                 *ngIf="checkedTableType == 'historySpecimen'"

+ 11 - 7
src/app/views/hushijiandan/hushijiandan.component.less

@@ -1351,20 +1351,23 @@
1351 1351
                       border: none;
1352 1352
 
1353 1353
                       .coop {
1354
-                        span {
1354
+                        button{
1355
+                          color: #333;
1356
+                        }
1357
+                        span,button {
1355 1358
                           display: inline-block;
1356
-                          width: 60px;
1359
+                          padding: 0 8px;
1357 1360
                           cursor: pointer;
1361
+                          position: relative;
1358 1362
 
1359 1363
                           &::after {
1360 1364
                             content: "|";
1361
-                            float: right;
1362
-                          }
1363
-
1364
-                          &:hover {
1365
-                            color: @primary-color;
1365
+                            position: absolute;
1366
+                            top: 0;
1367
+                            right: 0;
1366 1368
                           }
1367 1369
 
1370
+                          &:hover,
1368 1371
                           &:active {
1369 1372
                             color: @primary-color;
1370 1373
                           }
@@ -2161,3 +2164,4 @@
2161 2164
     }
2162 2165
   }
2163 2166
 }
2167
+

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

@@ -285,6 +285,9 @@ export class HushijiandanComponent implements OnInit {
285 285
         case "surgery":
286 286
           coopBtns.surgery = true; //手术排程信息
287 287
           break;
288
+        case "outpatientHelpAppointment":
289
+          coopBtns.outpatientHelpAppointment = true; //门诊帮扶预约
290
+          break;
288 291
         case "inquiryOfHistoricalSpecimens":
289 292
           coopBtns.inquiryOfHistoricalSpecimens = true; //历史标本查询
290 293
           break;
@@ -450,6 +453,9 @@ export class HushijiandanComponent implements OnInit {
450 453
             }else if(this.coopBtns.surgery){
451 454
               this.checkedTableType = 'surgery';
452 455
               this.checkTable(this.checkedTableType);
456
+            }else if(this.coopBtns.outpatientHelpAppointment){
457
+              this.checkedTableType = 'outpatientHelpAppointment';
458
+              this.checkTable(this.checkedTableType);
453 459
             }else if(this.coopBtns.inquiryOfHistoricalSpecimens){
454 460
               this.checkedTableType = 'historySpecimen';
455 461
               this.checkTable(this.checkedTableType);
@@ -1452,6 +1458,9 @@ export class HushijiandanComponent implements OnInit {
1452 1458
           }else if(this.coopBtns.surgery){
1453 1459
             this.checkedTableType = 'surgery';
1454 1460
             this.checkTable(this.checkedTableType);
1461
+          }else if(this.coopBtns.outpatientHelpAppointment){
1462
+            this.checkedTableType = 'outpatientHelpAppointment';
1463
+            this.checkTable(this.checkedTableType);
1455 1464
           }else if(this.coopBtns.inquiryOfHistoricalSpecimens){
1456 1465
             this.checkedTableType = 'historySpecimen';
1457 1466
             this.checkTable(this.checkedTableType);
@@ -3568,6 +3577,8 @@ export class HushijiandanComponent implements OnInit {
3568 3577
     this.otherSearch = '';
3569 3578
     if (type === "surgery") {
3570 3579
       this.getSurgery(true);
3580
+    } else if (type === "outpatientHelpAppointment") {
3581
+      this.getOutpatientHelpAppointment(true);
3571 3582
     } else if (type === "historySpecimen") {
3572 3583
       this.getHistorySpecimen(true);
3573 3584
     } else if (type === "historyDrugsbag") {
@@ -3715,6 +3726,35 @@ export class HushijiandanComponent implements OnInit {
3715 3726
         this.surgeryListLength = data.totalNum || 0;
3716 3727
       });
3717 3728
   }
3729
+  // 门诊帮扶表格数据
3730
+  outpatientHelpAppointmentList: any = [];
3731
+  outpatientHelpAppointmentPageIndex: number = 1; //表格当前页码
3732
+  outpatientHelpAppointmentPageSize: number = 10; //表格每页展示条数
3733
+  outpatientHelpAppointmentListLength: number = 10; //表格总数据量
3734
+  outpatientHelpAppointmentDateSearchInp = new Date(); //预约时间搜索
3735
+  outpatientHelpAppointmentInfoLoading = false;
3736
+  getOutpatientHelpAppointment(idx?) {
3737
+    if (idx) {
3738
+      this.outpatientHelpAppointmentPageIndex = 1;
3739
+    }
3740
+    let postData:any = {
3741
+      patientAppointment: {
3742
+        escortTime: this.outpatientHelpAppointmentDateSearchInp ? format(startOfDay(this.outpatientHelpAppointmentDateSearchInp), "yyyy-MM-dd HH:mm:ss") : undefined,
3743
+        hosId: this.currentHospital.id,
3744
+      },
3745
+      idx: this.outpatientHelpAppointmentPageIndex - 1,
3746
+      sum: this.outpatientHelpAppointmentPageSize,
3747
+    };
3748
+
3749
+    this.outpatientHelpAppointmentInfoLoading = true;
3750
+    this.mainService
3751
+      .getFetchDataList("simple/data", "patientAppointment", postData)
3752
+      .subscribe((data) => {
3753
+        this.outpatientHelpAppointmentInfoLoading = false;
3754
+        this.outpatientHelpAppointmentList = data.list || [];
3755
+        this.outpatientHelpAppointmentListLength = data.totalNum || 0;
3756
+      });
3757
+  }
3718 3758
   // 历史标本查询表格数据
3719 3759
   historySpecimenList: any = [];
3720 3760
   historySpecimenPageIndex: number = 1; //表格当前页码