Bladeren bron

Merge branch 'master' of http://git.dashitech.com/seimin/zy-pc

maotao 2 maanden geleden
bovenliggende
commit
bfd3e66ece

+ 9 - 5
src/app/components/configurationCenter/configuration-inspect/configuration-inspect-inspects/configuration-inspect-inspects.component.html

@@ -44,11 +44,13 @@
44 44
             [nzLoading]="loading1" [nzScroll]="{ y: tableWechatHeight + 'px' }">
45 45
             <thead>
46 46
               <tr class="thead">
47
-                <th nzWidth="20%">排序号</th>
48
-                <th nzWidth="20%">检查项目标识</th>
49
-                <th nzWidth="20%">检查项目名称</th>
50
-                <th nzWidth="20%">检查类型</th>
51
-                <th nzWidth="20%">操作</th>
47
+                <th nzWidth="7%">排序号</th>
48
+                <th nzWidth="12%">检查项目标识</th>
49
+                <th nzWidth="12%">检查项目名称</th>
50
+                <th nzWidth="12%">检查类型</th>
51
+                <th nzWidth="12%">默认检查科室</th>
52
+                <th nzWidth="30%">检查科室</th>
53
+                <th nzWidth="15%">操作</th>
52 54
               </tr>
53 55
             </thead>
54 56
             <tbody>
@@ -57,6 +59,8 @@
57 59
                 <td>{{data.extra6}}</td>
58 60
                 <td>{{data.name}}</td>
59 61
                 <td>{{data.extra5DTO?.name}}</td>
62
+                <td>{{data.extra4DTO?.dept}}</td>
63
+                <td>{{data.deptList | multipleName: 'dept'}}</td>
60 64
                 <td>
61 65
                   <div class="coop">
62 66
                     <span (click)="showDelModal(data,'您确认要删除吗?','删除','del')">删除</span>

+ 7 - 9
src/app/components/configurationCenter/configuration-inspect/configuration-inspect-inspects/configuration-inspect-inspects.component.ts

@@ -120,15 +120,13 @@ export class ConfigurationInspectInspectsComponent implements OnInit {
120 120
       postData = {
121 121
         // dictionary: {
122 122
           ...this.coopData,
123
-          ...{
124
-            orders: this.validateForm.value.orders,
125
-            name: this.validateForm.value.name,
126
-            extra6: this.validateForm.value.extra6,
127
-            value: this.validateForm.value.value,
128
-            extra4: this.validateForm.value.extra4,
129
-            extra5: this.validateForm.value.extra5,
130
-            extra7: this.validateForm.value.extra7.toString(),
131
-          }
123
+          orders: this.validateForm.value.orders,
124
+          name: this.validateForm.value.name,
125
+          extra6: this.validateForm.value.extra6,
126
+          value: this.validateForm.value.extra6,
127
+          extra4: this.validateForm.value.extra4,
128
+          extra5: this.validateForm.value.extra5,
129
+          extra7: this.validateForm.value.extra7.toString(),
132 130
         // }
133 131
       };
134 132
     }

+ 17 - 0
src/app/pipes/multiple-name.pipe.ts

@@ -0,0 +1,17 @@
1
+import { Pipe, PipeTransform } from '@angular/core';
2
+
3
+@Pipe({
4
+  name: 'multipleName'
5
+})
6
+export class MultipleNamePipe implements PipeTransform {
7
+
8
+  transform(value: any[], ...args: any[]): any {
9
+    if(value){
10
+      return value.map(v => v[args[0]]).toString();
11
+    }else{
12
+      return '';
13
+    }
14
+
15
+  }
16
+
17
+}

+ 3 - 0
src/app/share/share.module.ts

@@ -35,6 +35,7 @@ import { BatchOrdersComponent } from './batch-orders/batch-orders.component';
35 35
 import { CollapseComponent } from './collapse/collapse.component';
36 36
 import { CollapsePanelComponent } from './collapse-panel/collapse-panel.component';
37 37
 import { HtmlTransformPipe } from '../pipes/html-transform.pipe';
38
+import { MultipleNamePipe } from '../pipes/multiple-name.pipe';
38 39
 import { BxPromptModalComponent } from './bx-prompt-modal/bx-prompt-modal.component';
39 40
 import { ExcelExportComponent } from './excel-export/excel-export.component';
40 41
 import { ExcelImportComponent } from './excel-import/excel-import.component';
@@ -118,6 +119,7 @@ import { AddInspectThreeModalComponent } from './add-inspect-three-modal/add-ins
118 119
     CollapseComponent,
119 120
     CollapsePanelComponent,
120 121
     HtmlTransformPipe,
122
+    MultipleNamePipe,
121 123
     StripHtmlPipe,
122 124
     FilterSelfPipe,
123 125
     ExcelExportComponent,
@@ -206,6 +208,7 @@ import { AddInspectThreeModalComponent } from './add-inspect-three-modal/add-ins
206 208
     CollapseComponent,
207 209
     CollapsePanelComponent,
208 210
     HtmlTransformPipe,
211
+    MultipleNamePipe,
209 212
     StripHtmlPipe,
210 213
     FilterSelfPipe,
211 214
     ExcelExportComponent,

+ 2 - 2
src/app/share/specimen-package-list-modal/specimen-package-list-modal.component.html

@@ -70,7 +70,7 @@
70 70
 <!-- 打印的内容 -->
71 71
 <div id="print-section-package" hidden>
72 72
   <!-- 80mm*80mm -->
73
-  <div style="overflow: hidden;padding: 4mm;font-size: 4mm;width: 80mm;height: 80mm;" *ngIf="configs.spePackageCodeSize == 1">
73
+  <div style="overflow: hidden;padding: 2mm;font-size: 4mm;width: 75mm;height: 75mm;" *ngIf="configs.spePackageCodeSize == 1">
74 74
     <div style="display: flex;">
75 75
       <img [src]="base64" style="width: 23mm;height: 23mm;margin-right: 3mm;">
76 76
       <div style="flex: 1;">
@@ -87,7 +87,7 @@
87 87
     </div>
88 88
   </div>
89 89
   <!-- 70mm*50mm -->
90
-  <div style="overflow: hidden;padding: 4mm;font-size: 4mm;width: 70mm;height: 50mm;" *ngIf="configs.spePackageCodeSize == 2">
90
+  <div style="overflow: hidden;padding: 2mm;font-size: 4mm;width: 65mm;height: 45mm;" *ngIf="configs.spePackageCodeSize == 2">
91 91
     <div style="display: flex;">
92 92
       <img [src]="base64" style="width: 23mm;height: 23mm;margin-right: 3mm;">
93 93
       <div style="flex: 1;">

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

@@ -80,7 +80,7 @@
80 80
 <!-- 打印的内容 -->
81 81
 <div id="print-section" hidden>
82 82
   <!-- 80mm*80mm -->
83
-  <div style="overflow: hidden;padding: 4mm;font-size: 4mm;width: 80mm;max-height: 80mm;" *ngIf="configs.spePackageCodeSize == 1">
83
+  <div style="overflow: hidden;padding: 2mm;font-size: 4mm;width: 75mm;height: 75mm;" *ngIf="configs.spePackageCodeSize == 1">
84 84
     <div style="display: flex;">
85 85
       <img [src]="base64" style="width: 23mm;height: 23mm;margin-right: 3mm;">
86 86
       <div style="flex: 1;">
@@ -97,9 +97,9 @@
97 97
     </div>
98 98
   </div>
99 99
   <!-- 70mm*50mm -->
100
-  <div style="overflow: hidden;padding: 4mm;font-size: 4mm;width: 70mm;max-height: 50mm;" *ngIf="configs.spePackageCodeSize == 2">
100
+  <div style="overflow: hidden;padding: 2mm;font-size: 4mm;width: 65mm;height: 45mm;" *ngIf="configs.spePackageCodeSize == 2">
101 101
     <div style="display: flex;">
102
-      <img [src]="base64" style="width: 23mm;height: 23mm;margin-right: 1mm;">
102
+      <img [src]="base64" style="width: 23mm;height: 23mm;margin-right: 3mm;">
103 103
       <div style="flex: 1;">
104 104
         <div>包号:{{package.packCode}}</div>
105 105
         <div>{{package.packDeptDTO?.dept}}</div>