Browse Source

数据对接

seimin 2 months ago
parent
commit
f529b0ce1e

+ 1 - 5
src/app/share/select-date-yytime/select-date-yytime.component.ts

@@ -49,11 +49,7 @@ export class SelectDateYytimeComponent implements OnInit {
49 49
 
50 50
   // 立即执行
51 51
   submitFormDirect(): void {
52
-    if(!this.yyDate || !this.yyTime) {
53
-      this.message.warning('请选择完整预约时间');
54
-      return;
55
-    }
56
-    this.submitFormDirectE.emit(format(this.yyDate, 'yyyy-MM-dd') + ' ' + format(startOfMinute(this.yyTime), 'HH:mm:ss'));
52
+    this.submitFormDirectE.emit();
57 53
   }
58 54
 }
59 55
 

+ 1 - 2
src/app/views/batch-inspection/batch-inspection.component.ts

@@ -413,8 +413,7 @@ export class BatchInspectionComponent implements OnInit {
413 413
   }
414 414
 
415 415
   // 批量发起陪检-立即执行
416
-  submitSelectDateDirect(date){
417
-    console.log(date)
416
+  submitSelectDateDirect(){
418 417
     let pilList = cloneDeep(this.listOfData);
419 418
     pilList.forEach(v => {
420 419
       delete v.inspectList;

+ 38 - 12
src/app/views/info-search/info-search.component.html

@@ -32,7 +32,7 @@
32 32
             <!-- 检查列表 -->
33 33
             <div *ngSwitchCase="'inspectList'" class="list-template__bottom">
34 34
               <nz-table class="list-template__nzTable" #inspectListTpl [nzData]="panel.list" nzSize="middle"
35
-                [nzShowPagination]="false" [nzLoading]="loading1" [ngStyle]="{width:panel.list[0].length*130+292+'px'}">
35
+                [nzFrontPagination]="false" [nzLoading]="loading1" [ngStyle]="{width:panel.list[0].length*130+292+'px'}">
36 36
                 <thead>
37 37
                   <tr class="thead">
38 38
                     <th nzWidth="130px">序号</th>
@@ -105,7 +105,7 @@
105 105
             <!-- 工单信息 -->
106 106
             <div *ngSwitchCase="'order'" class="list-template__bottom">
107 107
               <nz-table class="list-template__nzTable" #orderTpl [nzData]="panel.list" nzSize="middle"
108
-                [nzShowPagination]="false" [nzLoading]="loading1" [ngStyle]="{width:panel.list[0].length*130+292+'px'}">
108
+                [nzFrontPagination]="false" [nzLoading]="loading1" [ngStyle]="{width:panel.list[0].length*130+292+'px'}">
109 109
                 <thead>
110 110
                   <tr class="thead">
111 111
                     <th nzWidth="130px">序号</th>
@@ -207,7 +207,7 @@
207 207
             <!-- 工单日志 -->
208 208
             <div *ngSwitchCase="'orderLogs'" class="list-template__bottom">
209 209
               <nz-table class="list-template__nzTable" #orderLogsTpl [nzData]="panel.list" nzSize="middle"
210
-                [nzShowPagination]="false" [nzLoading]="loading1" [ngStyle]="{width:panel.list[0].length*130+292+'px'}">
210
+                [nzFrontPagination]="false" [nzLoading]="loading1" [ngStyle]="{width:panel.list[0].length*130+292+'px'}">
211 211
                 <thead>
212 212
                   <tr class="thead">
213 213
                     <th nzWidth="130px">序号</th>
@@ -231,7 +231,7 @@
231 231
             <!-- 检查日志 -->
232 232
             <div *ngSwitchCase="'inspectLogs'" class="list-template__bottom">
233 233
               <nz-table class="list-template__nzTable" #inspectLogsTpl [nzData]="panel.list" nzSize="middle"
234
-                [nzShowPagination]="false" [nzLoading]="loading1" [ngStyle]="{width:panel.list[0].length*130+292+'px'}">
234
+                [nzFrontPagination]="false" [nzLoading]="loading1" [ngStyle]="{width:panel.list[0].length*130+292+'px'}">
235 235
                 <thead>
236 236
                   <tr class="thead">
237 237
                     <th nzWidth="130px">序号</th>
@@ -253,7 +253,7 @@
253 253
             <!-- 标本列表 -->
254 254
             <div *ngSwitchCase="'specimenList'" class="list-template__bottom">
255 255
               <nz-table class="list-template__nzTable" #specimenListTpl [nzData]="panel.list" nzSize="middle"
256
-                [nzShowPagination]="false" [nzLoading]="loading1" [ngStyle]="{width:panel.list[0].length*130+292+'px'}">
256
+                [nzFrontPagination]="false" [nzLoading]="loading1" [ngStyle]="{width:panel.list[0].length*130+292+'px'}">
257 257
                 <thead>
258 258
                   <tr class="thead">
259 259
                     <th nzWidth="130px">序号</th>
@@ -330,7 +330,7 @@
330 330
             <!-- 标本日志 -->
331 331
             <div *ngSwitchCase="'specimenLogs'" class="list-template__bottom">
332 332
               <nz-table class="list-template__nzTable" #specimenLogsTpl [nzData]="panel.list" nzSize="middle"
333
-                [nzShowPagination]="false" [nzLoading]="loading1" [ngStyle]="{width:panel.list[0].length*130+292+'px'}">
333
+                [nzFrontPagination]="false" [nzLoading]="loading1" [ngStyle]="{width:panel.list[0].length*130+292+'px'}">
334 334
                 <thead>
335 335
                   <tr class="thead">
336 336
                     <th nzWidth="130px">序号</th>
@@ -352,7 +352,7 @@
352 352
             <!-- 药品列表 -->
353 353
             <div *ngSwitchCase="'drugsBagList'" class="list-template__bottom">
354 354
               <nz-table class="list-template__nzTable" #drugsBagListTpl [nzData]="panel.list" nzSize="middle"
355
-                [nzShowPagination]="false" [nzLoading]="loading1" [ngStyle]="{width:panel.list[0].length*130+292+'px'}">
355
+                [nzFrontPagination]="false" [nzLoading]="loading1" [ngStyle]="{width:panel.list[0].length*130+292+'px'}">
356 356
                 <thead>
357 357
                   <tr class="thead">
358 358
                     <th nzWidth="130px">序号</th>
@@ -420,7 +420,7 @@
420 420
             <!-- 药包日志 -->
421 421
             <div *ngSwitchCase="'drugsBagLogs'" class="list-template__bottom">
422 422
               <nz-table class="list-template__nzTable" #drugsBagLogsTpl [nzData]="panel.list" nzSize="middle"
423
-                [nzShowPagination]="false" [nzLoading]="loading1" [ngStyle]="{width:panel.list[0].length*130+292+'px'}">
423
+                [nzFrontPagination]="false" [nzLoading]="loading1" [ngStyle]="{width:panel.list[0].length*130+292+'px'}">
424 424
                 <thead>
425 425
                   <tr class="thead">
426 426
                     <th nzWidth="130px">序号</th>
@@ -442,7 +442,7 @@
442 442
             <!-- 药品日志 -->
443 443
             <div *ngSwitchCase="'drugsLogs'" class="list-template__bottom">
444 444
               <nz-table class="list-template__nzTable" #drugsLogsTpl [nzData]="panel.list" nzSize="middle"
445
-                [nzShowPagination]="false" [nzLoading]="loading1" [ngStyle]="{width:panel.list[0].length*130+292+'px'}">
445
+                [nzFrontPagination]="false" [nzLoading]="loading1" [ngStyle]="{width:panel.list[0].length*130+292+'px'}">
446 446
                 <thead>
447 447
                   <tr class="thead">
448 448
                     <th nzWidth="130px">序号</th>
@@ -464,7 +464,7 @@
464 464
             <!-- 静配包列表 -->
465 465
             <div *ngSwitchCase="'jpBagList'" class="list-template__bottom">
466 466
               <nz-table class="list-template__nzTable" #jpBagListTpl [nzData]="panel.list" nzSize="middle"
467
-                [nzShowPagination]="false" [nzLoading]="loading1" [ngStyle]="{width:panel.list[0].length*130+292+'px'}">
467
+                [nzFrontPagination]="false" [nzLoading]="loading1" [ngStyle]="{width:panel.list[0].length*130+292+'px'}">
468 468
                 <thead>
469 469
                   <tr class="thead">
470 470
                     <th nzWidth="130px">序号</th>
@@ -515,7 +515,7 @@
515 515
             <!-- 静配包日志 -->
516 516
             <div *ngSwitchCase="'jpBagLogs'" class="list-template__bottom">
517 517
               <nz-table class="list-template__nzTable" #jpBagLogsTpl [nzData]="panel.list" nzSize="middle"
518
-                [nzShowPagination]="false" [nzLoading]="loading1" [ngStyle]="{width:panel.list[0].length*130+292+'px'}">
518
+                [nzFrontPagination]="false" [nzLoading]="loading1" [ngStyle]="{width:panel.list[0].length*130+292+'px'}">
519 519
                 <thead>
520 520
                   <tr class="thead">
521 521
                     <th nzWidth="130px">序号</th>
@@ -537,7 +537,7 @@
537 537
             <!-- 静配日志 -->
538 538
             <div *ngSwitchCase="'jpLogs'" class="list-template__bottom">
539 539
               <nz-table class="list-template__nzTable" #jpLogsTpl [nzData]="panel.list" nzSize="middle"
540
-                [nzShowPagination]="false" [nzLoading]="loading1" [ngStyle]="{width:panel.list[0].length*130+292+'px'}">
540
+                [nzFrontPagination]="false" [nzLoading]="loading1" [ngStyle]="{width:panel.list[0].length*130+292+'px'}">
541 541
                 <thead>
542 542
                   <tr class="thead">
543 543
                     <th nzWidth="130px">序号</th>
@@ -556,6 +556,32 @@
556 556
                 </tbody>
557 557
               </nz-table>
558 558
             </div>
559
+            <!-- 原始数据日志 -->
560
+            <div *ngSwitchCase="'dataSourceList'" class="list-template__bottom">
561
+              <nz-table class="list-template__nzTable" #dataSourceTpl [nzData]="panel.list" nzSize="middle"
562
+                [nzFrontPagination]="false" [nzLoading]="loading1" [ngStyle]="{width:panel.list[0].length*130+292+'px'}">
563
+                <thead>
564
+                  <tr class="thead">
565
+                    <th nzWidth="110px">业务标识</th>
566
+                    <th nzWidth="150px">时间</th>
567
+                    <th nzWidth="800px">原始数据</th>
568
+                    <th nzWidth="110px">优先级</th>
569
+                    <th nzWidth="110px">状态标识</th>
570
+                    <th nzWidth="150px">业务唯一标识</th>
571
+                  </tr>
572
+                </thead>
573
+                <tbody>
574
+                  <tr *ngFor="let data of dataSourceTpl.data;let i = index">
575
+                    <td>{{data[5]}}</td>
576
+                    <td>{{data[1]|date:'yyyy-MM-dd HH:mm:ss'}}</td>
577
+                    <td (click)="toSource(data[2], '原始数据')" class="wordBreak">{{data[2]}}</td>
578
+                    <td>{{data[3]}}</td>
579
+                    <td>{{data[4]}}</td>
580
+                    <td>{{data[6]}}</td>
581
+                  </tr>
582
+                </tbody>
583
+              </nz-table>
584
+            </div>
559 585
           </ng-container>
560 586
         </app-collapse-panel>
561 587
       </app-collapse>

+ 26 - 2
src/app/views/info-search/info-search.component.ts

@@ -1,7 +1,7 @@
1 1
 import { Component, OnInit } from "@angular/core";
2 2
 import { MainService } from "src/app/services/main.service";
3 3
 import { ToolService } from "src/app/services/tool.service";
4
-import { NzModalService } from "ng-zorro-antd";
4
+import { NzModalService, NzMessageService } from "ng-zorro-antd";
5 5
 
6 6
 @Component({
7 7
   selector: "app-info-search",
@@ -12,7 +12,8 @@ export class InfoSearchComponent implements OnInit {
12 12
   constructor(
13 13
     private mainService: MainService,
14 14
     private tool: ToolService,
15
-    private modalService: NzModalService
15
+    private modalService: NzModalService,
16
+    private message: NzMessageService,
16 17
   ) {}
17 18
 
18 19
   searchCriteria = {
@@ -41,6 +42,10 @@ export class InfoSearchComponent implements OnInit {
41 42
       type: "jpBag",
42 43
       name: "静配",
43 44
     },
45
+    {
46
+      type: "dataSource",
47
+      name: "原始数据",
48
+    },
44 49
   ]; // 类型列表
45 50
   hosId;
46 51
   ngOnInit() {
@@ -155,6 +160,12 @@ export class InfoSearchComponent implements OnInit {
155 160
       extra: "jpLogs",
156 161
       list: [],
157 162
     },
163
+    {
164
+      active: true,
165
+      name: "原始数据日志",
166
+      extra: "dataSourceList",
167
+      list: [],
168
+    },
158 169
   ];
159 170
   // 获取数据
160 171
   getList() {
@@ -181,4 +192,17 @@ export class InfoSearchComponent implements OnInit {
181 192
       nzMaskClosable: true,
182 193
     });
183 194
   }
195
+  // 弹窗
196
+  toSource(string, name) {
197
+    this.modalService.info({
198
+      nzTitle: name,
199
+      nzContent: "<pre>" + string + "</pre>",
200
+      nzWidth: 1000,
201
+      nzMaskClosable: true,
202
+      nzOnOk: () => {
203
+        navigator.clipboard.writeText(string);
204
+        this.message.info(`复制${name}成功`);
205
+      }
206
+    });
207
+  }
184 208
 }