seimin 3 weeks ago
parent
commit
4e650dfaf9

+ 1 - 1
src/app/share/dialog-delete/dialog-delete.component.html

@@ -1,6 +1,6 @@
1 1
 <!-- 删除模态框 -->
2 2
 <div class="dialog-delete" *ngIf="delModal" [ngStyle]="{'z-index': (isSelected || isShowEndDeptId) ? '9' : '9999999'}">
3
-  <div class="modalBody" [ngStyle]="{'height': isSelected ? 'auto' : '220px'}">
3
+  <div class="modalBody">
4 4
     <div class="title">提示<i class="icon_transport transport-guanbi" (click)="hideDelModal('x')"></i></div>
5 5
     <div class="content">
6 6
       <div class="icon"><i class="icon_transport transport-wenhao"></i></div>

+ 3 - 0
src/app/share/package-specimen-rule/package-specimen-rule.component.html

@@ -6,6 +6,7 @@
6 6
       <div class="block">
7 7
         <div class="name">标本紧急度:</div>
8 8
         <div class="value">
9
+          <ng-container *ngIf="configs.spePackageUrgentsList.length == 0">无限制条件</ng-container>
9 10
           <ng-container *ngFor="let item of configs.spePackageUrgentsList;let last = last">
10 11
             {{item.name}}<ng-container *ngIf="!last">、</ng-container>
11 12
           </ng-container>
@@ -14,6 +15,7 @@
14 15
       <div class="block">
15 16
         <div class="name">关联检验科室:</div>
16 17
         <div class="value">
18
+          <ng-container *ngIf="configs.spePackageDeptList.length == 0">无限制条件</ng-container>
17 19
           <ng-container *ngFor="let item of configs.spePackageDeptList;let last = last">
18 20
             {{item.dept}}<br *ngIf="!last">
19 21
           </ng-container>
@@ -22,6 +24,7 @@
22 24
       <div class="block">
23 25
         <div class="name">关联试管类型:</div>
24 26
         <div class="value">
27
+          <ng-container *ngIf="configs.spePackageTubeList.length == 0">无限制条件</ng-container>
25 28
           <ng-container *ngFor="let item of configs.spePackageTubeList;let last = last">
26 29
             {{item.name}}<ng-container *ngIf="!last">、</ng-container>
27 30
           </ng-container>

+ 3 - 0
src/app/views/batch-specimen/batch-specimen.component.html

@@ -74,6 +74,9 @@
74 74
 
75 75
 <app-package-specimen-rule *ngIf="isShowPackageSpecimenRule" (cancelFlagHand)="closePackageSpecimenRule($event)"></app-package-specimen-rule>
76 76
 
77
+<!-- 遮罩 -->
78
+<app-mask *ngIf="maskFlag"></app-mask>
79
+
77 80
 <!-- 打印的内容 -->
78 81
 <div id="print-section" hidden>
79 82
   <!-- 80mm*80mm -->

+ 7 - 0
src/app/views/batch-specimen/batch-specimen.component.ts

@@ -89,7 +89,12 @@ export class BatchSpecimenComponent implements OnInit, AfterViewInit {
89 89
   typeSpecimentList:any[] = [];
90 90
   patientSpecimentList:any[] = [];
91 91
   package:any = {};
92
+  maskFlag: any = false;
92 93
   querySaveSpePackage(){
94
+    this.maskFlag = this.message.loading("正在加载中..", {
95
+      nzDuration: 0,
96
+    }).messageId;
97
+
93 98
     let postData:any = {
94 99
       deptId: this.deptDTO.id,
95 100
     };
@@ -101,6 +106,8 @@ export class BatchSpecimenComponent implements OnInit, AfterViewInit {
101 106
     this.mainService
102 107
       .querySaveSpePackage(postData)
103 108
       .subscribe((result:any) => {
109
+        this.message.remove(this.maskFlag);
110
+        this.maskFlag = false;
104 111
         if (result.state == 200) {
105 112
           this.total = result.totalCount;
106 113
           this.typeSpecimentList = result.tube || [];

+ 8 - 0
src/app/views/specimen-package/specimen-package-routing.module.ts

@@ -1,12 +1,20 @@
1 1
 import { NgModule } from '@angular/core';
2 2
 import { Routes, RouterModule } from '@angular/router';
3 3
 import { SpecimenPackageComponent } from './specimen-package.component';
4
+import { OrderDetailComponent } from 'src/app/share/order-detail/order-detail.component';
4 5
 
5 6
 
6 7
 const routes: Routes = [
7 8
   {
8 9
     path: '',
9 10
     component: SpecimenPackageComponent,
11
+    children: [
12
+      {
13
+        // 查看详情
14
+        path: 'orderDetail/:id',
15
+        component: OrderDetailComponent,
16
+      }
17
+    ]
10 18
   }
11 19
 ];
12 20
 

+ 4 - 1
src/app/views/specimen-package/specimen-package.component.html

@@ -72,7 +72,7 @@
72 72
             <td>{{ data.receiveUserDTO?.name }}<br>{{ data.receiveTime | date: 'yyyy-MM-dd HH:mm'}}</td>
73 73
             <td>{{ data.deliveryUserDTO?.name }}<br>{{ data.deliveryTime | date: 'yyyy-MM-dd HH:mm'}}</td>
74 74
             <td>{{ data.status?.name }}</td>
75
-            <td>{{ data.gdDTO?.gdcode }}</td>
75
+            <td class="clickable" (click)="detail($event, data.gdid)">{{ data.gdDTO?.gdcode }}</td>
76 76
             <td>
77 77
               <div class="coop">
78 78
                 <span (click)="showLogs(data)">查看日志</span>
@@ -101,3 +101,6 @@
101 101
   [id]="packId"
102 102
   (closeModelHs)="closeModelLog($event)"
103 103
 ></app-specimen-package-log-prompt-modal>
104
+
105
+<!-- 查看详情 -->
106
+<router-outlet></router-outlet>

+ 6 - 0
src/app/views/specimen-package/specimen-package.component.ts

@@ -237,4 +237,10 @@ export class SpecimenPackageComponent implements OnInit {
237 237
   closeModelLog(e) {
238 238
     this.logPromptModalShow = JSON.parse(e).show;
239 239
   }
240
+
241
+  // 查看
242
+  detail(e, id) {
243
+    e.stopPropagation();
244
+    this.router.navigateByUrl(`/main/specimenPackage/orderDetail/${id}`);
245
+  }
240 246
 }