seimin 1 rok temu
rodzic
commit
2984b72f41

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

+ 7 - 0
src/app/services/main.service.ts

@@ -740,4 +740,11 @@ export class MainService {
740 740
       headers: this.headers,
741 741
     });
742 742
   }
743
+
744
+  // 获取检验项目列表
745
+  specimenCount(data): any {
746
+    return this.http.post(host.host + "/api/specimenDesc/specimenCount", data, {
747
+      headers: this.headers,
748
+    });
749
+  }
743 750
 }

+ 8 - 1
src/app/share/businessData-detail-modal/businessData-detail-modal.component.html

@@ -39,11 +39,18 @@
39 39
             <div nz-col nzXl='24' class="list-template__searchBox">
40 40
               <div class="list-template__searchItem">
41 41
                 <span class="label">标本类型</span>:
42
-                <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" nzShowSearch nzAllowClear
42
+                <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" nzShowSearch
43 43
                   nzPlaceHolder="请选择标本类型" [(ngModel)]="searchCriteria.stype" (ngModelChange)="selectStype($event)">
44 44
                   <nz-option *ngFor="let option of specimentTypeList" [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
45 45
                 </nz-select>
46 46
               </div>
47
+              <div class="list-template__searchItem">
48
+                <span class="label">检验项目</span>:
49
+                <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" nzShowSearch
50
+                  nzPlaceHolder="请选择检验项目" [(ngModel)]="searchCriteria.specimenDesc" (ngModelChange)="selectStype($event)">
51
+                  <nz-option *ngFor="let option of specimenDescList" [nzLabel]="option.nameNum" [nzValue]="option.id"></nz-option>
52
+                </nz-select>
53
+              </div>
47 54
             </div>
48 55
           </div>
49 56
         </div>

+ 1 - 0
src/app/share/businessData-detail-modal/businessData-detail-modal.component.less

@@ -12,6 +12,7 @@
12 12
     td {
13 13
       text-align: center !important;
14 14
       position: relative;
15
+      word-break: break-all;
15 16
     }
16 17
     .thead {
17 18
       background-image: linear-gradient(to right, @bg-start, @bg-end);

+ 18 - 0
src/app/share/businessData-detail-modal/businessData-detail-modal.component.ts

@@ -19,6 +19,7 @@ export class BusinessDataDetailModalComponent implements OnInit {
19 19
   total: number = 0;//表格总数据量
20 20
   searchCriteria:any = {
21 21
     stype: 0,
22
+    specimenDesc: 0,
22 23
   }
23 24
   @Input() show: Boolean;
24 25
   @Input() orderId: String;
@@ -39,6 +40,7 @@ export class BusinessDataDetailModalComponent implements OnInit {
39 40
       case 'specimen':
40 41
           this.getSpecimen(1);
41 42
           this.getSpecimenType();
43
+          this.getSpecimenDesc();
42 44
           break;
43 45
       case 'deptInspectionRateStatistics':
44 46
           this.getDeptInspectionRateStatistics(1);
@@ -103,6 +105,21 @@ export class BusinessDataDetailModalComponent implements OnInit {
103 105
     })
104 106
   }
105 107
 
108
+  // 获取检验项目
109
+  specimenDescList: any[] = [{ id: 0, name: '', nameNum: '全部' }];
110
+  id:number = 0;
111
+  getSpecimenDesc() {
112
+    let postData = {
113
+      "hosId": this.hosId,
114
+      "gdId": this.orderId,
115
+    };
116
+    this.mainService.specimenCount(postData).subscribe((data:any) => {
117
+      data.data = data.data || [];
118
+      let specimenDescList = [{ id: 0, name: '全部', nameNum: '全部' }];
119
+      this.specimenDescList = specimenDescList.concat( data.data.map(v => ({id: --this.id, name: v[0] || '', nameNum: (v[0] || '') + `(${v[1]})`})));
120
+    })
121
+  }
122
+
106 123
   // 获取标本列表
107 124
   getSpecimen(idx?) {
108 125
     if (idx) {
@@ -116,6 +133,7 @@ export class BusinessDataDetailModalComponent implements OnInit {
116 133
         hosId: this.hosId,
117 134
         gdid: this.orderId,
118 135
         stype: this.searchCriteria.stype ? { id: this.searchCriteria.stype } : undefined,
136
+        specimenDesc: this.searchCriteria.specimenDesc ? this.specimenDescList.find(v => v.id == this.searchCriteria.specimenDesc).name: undefined,
119 137
       }
120 138
     }
121 139
     this.hsLoading = true;

+ 2 - 2
src/app/views/specimen-search/specimen-search.component.html

@@ -197,8 +197,8 @@
197 197
           [(nzPageIndex)]="pageIndex"
198 198
           [(nzTotal)]="listLength"
199 199
           [(nzPageSize)]="pageSize"
200
-          (nzPageIndexChange)="getList(0)"
201
-          (nzPageSizeChange)="getList(0)"
200
+          (nzPageIndexChange)="getList(0, sortCurrentKey, sortCurrentValue)"
201
+          (nzPageSizeChange)="getList(0, sortCurrentKey, sortCurrentValue)"
202 202
         >
203 203
         </nz-pagination>
204 204
       </div>

+ 0 - 2
src/app/views/worker-statistics-detail/worker-statistics-detail.component.ts

@@ -73,8 +73,6 @@ export class WorkerStatisticsDetailComponent implements OnInit {
73 73
       postData.worker = currentPersonId;
74 74
     }else if(this.type === 'deptInspectionRateStatistics'){
75 75
       postData.deptId = this.deptId === 'null' ? undefined : this.deptId;
76
-      postData.key = "association_types";
77
-      postData.value = "inspect";
78 76
     }
79 77
     this.mainService.postCustom("report", "userDetails", postData).subscribe(
80 78
       (result) => {