seimin преди 1 година
родител
ревизия
803a9e3e50
променени са 2 файла, в които са добавени 30 реда и са изтрити 1 реда
  1. 1 1
      src/app/views/blood-search/blood-search.component.html
  2. 29 0
      src/app/views/blood-search/blood-search.component.ts

+ 1 - 1
src/app/views/blood-search/blood-search.component.html

@@ -47,7 +47,7 @@
47 47
             <td>{{ data.type ? data.type.name : "无" }}</td>
48 48
             <td>{{ data.aboType || '无' }}</td>
49 49
             <td>{{ data.rhType || '无' }}</td>
50
-            <td>{{ data.volume ? data.volume+'ML':'无' }}</td>
50
+            <td>{{ data.volume ? (ttconfig_sign_type4 ? data.volume + data.unit : data.volume + 'ML') : '无' }}</td>
51 51
             <td>{{ data.patientName }}<span *ngIf="data.hosNum">({{ data.hosNum }})</span></td>
52 52
             <td>{{ data.printDate | date:"yyyy-MM-dd HH:mm:ss" }}</td>
53 53
             <td>{{ data.arriverDTO ? data.arriverDTO.name: '无' }}</td>

+ 29 - 0
src/app/views/blood-search/blood-search.component.ts

@@ -45,6 +45,35 @@ export class BloodSearchComponent implements OnInit {
45 45
   getHospital() {
46 46
     this.hosId = this.tool.getCurrentHospital().id;
47 47
     this.getList(1);
48
+    this.getBloodProductsConfig();
49
+  }
50
+  // 血制品页面控制
51
+  bloodProductsConfig:any = {};
52
+  ttconfig_sign_type4:boolean = false;
53
+  getBloodProductsConfig(){
54
+    let postData = {
55
+      "idx": 0,
56
+      "sum": 10,
57
+      "taskTypeConfig": {
58
+          "taskTypeDTO": {
59
+              "hosId": {
60
+                  "id": this.hosId
61
+              },
62
+              "ordinaryField": {
63
+                  "key": "ordinary_field",
64
+                  "value": "blood"
65
+              }
66
+          }
67
+      }
68
+    };
69
+    this.mainService
70
+      .getFetchDataList("simple/data", "taskTypeConfig", postData)
71
+      .subscribe((result) => {
72
+        if (result.status == 200) {
73
+          this.bloodProductsConfig = result.list[0] || {};
74
+          this.ttconfig_sign_type4 = this.bloodProductsConfig.signTypeList.some(v => v.value == 4);
75
+        }
76
+      });
48 77
   }
49 78
   // 查看标本历史记录
50 79
   historyPromptModalShow = false; //标本历史记录弹窗开关