XMLWAN 4 lat temu
rodzic
commit
50c69b76a8

+ 94 - 74
src/xt_pages/dialysis/details/BasicInfor.vue Wyświetl plik

@@ -1,63 +1,72 @@
1 1
 <template>
2 2
   <div>
3
-    <h2 class="DetailsTit"><span>{{ title }}</span></h2>
4
-      <div class="ui-step clearfix">
5
-        <ul class="ui-step-ul">
6
-          <li v-for="(step, index) in steps" :key="index" class="ui-step-done" :class="step.finish ? 'ui-step-done' : 'unfinished'">
7
-            <div class="ui-step-number"><i /></div>
8
-            <div class="ui-step-title">{{ step.title }}</div>
9
-          </li>
10
-        </ul>
11
-      </div>
12
-      <ul class="info clearfix">
13
-        <li>
14
-          <label>姓名 : </label>
15
-          <span>{{ patient.id == 0 ? "" : patient.name }}</span>
16
-        </li>
17
-        <li>
18
-          <label>性别 : </label>
19
-          <span>{{ patient.id == 0 ? "" : (patient.gender == 1 ? "男" : "女") }}</span>
20
-        </li>
21
-        <li>
22
-          <label>年龄:</label>
23
-          <span>{{ getAge(patient) }}</span>
24
-        </li>
25
-        <li>
26
-          <label>透析号 : </label>
27
-          <span>{{ patient.dialysis_no }}</span>
28
-        </li>
29
-        <li>
30
-          <label>床位号 : </label>
31
-          <span>{{ device_number }}</span>
32
-        </li>
33
-        <li>
34
-          <label>来源 : </label>
35
-          <span>{{ source }}</span>
36
-        </li>
37
-        <li>
38
-          <label>住院号 : </label>
39
-          <span>{{ patient.admission_number }}</span>
40
-        </li>
41
-        <li>
42
-          <label>透析日期:</label>
43
-          <span>{{dialysis_time}}</span>
3
+    <h2 class="DetailsTit">
4
+      <span>{{ title }}</span>
5
+    </h2>
6
+    <div class="ui-step clearfix">
7
+      <ul class="ui-step-ul">
8
+        <li
9
+          v-for="(step, index) in steps"
10
+          :key="index"
11
+          class="ui-step-done"
12
+          :class="step.finish ? 'ui-step-done' : 'unfinished'"
13
+        >
14
+          <div class="ui-step-number"><i /></div>
15
+          <div class="ui-step-title">{{ step.title }}</div>
44 16
         </li>
17
+      </ul>
18
+    </div>
19
+    <ul class="info clearfix">
20
+      <li>
21
+        <label>姓名 : </label>
22
+        <span>{{ patient.id == 0 ? "" : patient.name }}</span>
23
+      </li>
24
+      <li>
25
+        <label>性别 : </label>
26
+        <span>{{
27
+          patient.id == 0 ? "" : patient.gender == 1 ? "男" : "女"
28
+        }}</span>
29
+      </li>
30
+      <li>
31
+        <label>年龄:</label>
32
+        <span>{{ getAge(patient) }}</span>
33
+      </li>
34
+      <li>
35
+        <label>透析号 : </label>
36
+        <span>{{ patient.dialysis_no }}</span>
37
+      </li>
38
+      <li>
39
+        <label>床位号 : </label>
40
+        <span>{{ device_number }}</span>
41
+      </li>
42
+      <li>
43
+        <label>来源 : </label>
44
+        <span>{{ source }}</span>
45
+      </li>
46
+      <li>
47
+        <label>住院号 : </label>
48
+        <span>{{ patient.admission_number }}</span>
49
+      </li>
50
+      <li>
51
+        <label>透析日期:</label>
52
+        <span>{{ dialysis_time }}</span>
53
+      </li>
45 54
     </ul>
46 55
     <div class="middleLine"></div>
47 56
   </div>
48 57
 </template>
49 58
 
50 59
 <script>
51
-const moment = require('moment')
52
-import { parseTime } from '@/utils'
53
-import { jsGetAge, uParseTime } from '@/utils/tools'
60
+const moment = require("moment");
61
+import { parseTime } from "@/utils";
62
+import { jsGetAge, uParseTime } from "@/utils/tools";
54 63
 
55 64
 export default {
56
-  name: 'BasicInfor',
65
+  name: "BasicInfor",
57 66
   data() {
58 67
     return {
59
-      title: '基本信息',
60
-      dialysis_time:0,
68
+      title: "基本信息",
69
+      dialysis_time: 0
61 70
       // steps: [
62 71
       //   { title: "透析处方" },
63 72
       //   { title: "接诊评估" },
@@ -70,13 +79,13 @@ export default {
70 79
       //   { title: "透后评估" },
71 80
       //   { title: "治疗小结" }
72 81
       // ]
73
-    }
82
+    };
74 83
   },
75 84
   props: {
76 85
     patient: {
77 86
       type: Object,
78 87
       default: function() {
79
-        return { id: 0 }
88
+        return { id: 0 };
80 89
       }
81 90
     },
82 91
     device_number: {
@@ -85,38 +94,50 @@ export default {
85 94
     steps: {
86 95
       type: Array,
87 96
       default: function() {
88
-        return []
97
+        return [];
89 98
       }
90 99
     }
91 100
   },
92 101
   computed: {
93 102
     created_time: function() {
94 103
       if (this.patient.id == 0) {
95
-        return ''
104
+        return "";
96 105
       } else {
97
-        return parseTime(this.patient.created_time, '{y}-{m}-{d}')
106
+        return parseTime(this.patient.created_time, "{y}-{m}-{d}");
98 107
       }
99 108
     },
100 109
     source: function() {
101
-      return this.patient.source == 1 ? '门诊' : '住院'
110
+      return this.patient.source == 1 ? "门诊" : "住院";
102 111
     }
103 112
   },
104 113
   methods: {
105 114
     getAge: function(val) {
106
-        if (val.birthday == 0) {
107
-          return ''
108
-        }
109
-        return jsGetAge(uParseTime(val.birthday, '{y}-{m}-{d}'), '-')
115
+      var thisLen = val.id_card_no.length;
116
+      var birth = "";
117
+      if (thisLen == 15) {
118
+        birth = "19" + val.id_card_no.substr(6, 6);
119
+      } else {
120
+        birth = val.id_card_no.substr(6, 8);
121
+      }
122
+      var birthtwo =
123
+        birth.substr(0, 4) +
124
+        "-" +
125
+        birth.substr(4, 2) +
126
+        "-" +
127
+        birth.substr(6, 2);
128
+
129
+      var age = jsGetAge(birthtwo, "-");
130
+      return age;
110 131
     },
132
+
111 133
     stepState: function() {
112
-      return parseInt((Math.random() * 1000) + '') % 2 == 1
134
+      return parseInt(Math.random() * 1000 + "") % 2 == 1;
113 135
     }
114 136
   },
115 137
   created() {
116
-    this.dialysis_time = parseTime(this.$route.query.date, '{y}-{m}-{d}')
117
-
138
+    this.dialysis_time = parseTime(this.$route.query.date, "{y}-{m}-{d}");
118 139
   }
119
-}
140
+};
120 141
 </script>
121 142
 
122 143
 <style style="stylesheet/scss" lang="scss" scoped>
@@ -214,18 +235,17 @@ export default {
214 235
   }
215 236
 }
216 237
 .info {
217
-    padding:20px 40px;
218
-    li {
219
-      float: left;
220
-      width: 28%;
221
-      // margin: 0 1rem 0 0;
222
-      font-size: 15px;
223
-      height: 35px;
224
-      line-height: 35px;
225
-      color: #34495e;
226
-      margin-left: 60px;
227
-    }
228
-    // border: solid red 1px;
238
+  padding: 20px 40px;
239
+  li {
240
+    float: left;
241
+    width: 28%;
242
+    // margin: 0 1rem 0 0;
243
+    font-size: 15px;
244
+    height: 35px;
245
+    line-height: 35px;
246
+    color: #34495e;
247
+    margin-left: 60px;
229 248
   }
249
+  // border: solid red 1px;
250
+}
230 251
 </style>
231
-

+ 14 - 1
src/xt_pages/management/components/QualityForm.vue Wyświetl plik

@@ -1049,7 +1049,8 @@ export default {
1049 1049
         { id: 1, name: "透析液入口" },
1050 1050
         { id: 2, name: "透析液取样口" },
1051 1051
         { id: 3, name: "置换液出口" },
1052
-        { id: 4, name: "透析机反渗水入口" }
1052
+        { id: 4, name: "透析机反渗水入口" },
1053
+        { id: 5, name: "反渗水末端取样口" }
1053 1054
       ],
1054 1055
       rules: {
1055 1056
         detection_unit: [{ required: true, message: "请填写检测单位" }],
@@ -1162,6 +1163,9 @@ export default {
1162 1163
             if (cultures[index].sampling_locationa === 4) {
1163 1164
               cultures[index].sampling_locationa = "透析机反渗水入口";
1164 1165
             }
1166
+            if (cultures[index].sampling_locationa === 5) {
1167
+              cultures[index].sampling_locationa = "反渗水末端取样口";
1168
+            }
1165 1169
           }
1166 1170
           this.tableData = cultures;
1167 1171
           var dialyste = response.data.data.dialysate;
@@ -1202,6 +1206,9 @@ export default {
1202 1206
             if (dialyste[index].sampling_locationb === 4) {
1203 1207
               dialyste[index].sampling_locationb = "透析机反渗水入口";
1204 1208
             }
1209
+            if (dialyste[index].sampling_locationb === 5) {
1210
+              dialyste[index].sampling_locationb = "反渗水末端取样口";
1211
+            }
1205 1212
           }
1206 1213
           this.table = dialyste;
1207 1214
           var ions = response.data.data.ions;
@@ -1688,6 +1695,9 @@ export default {
1688 1695
             if (cultures[index].sampling_locationa === 4) {
1689 1696
               cultures[index].sampling_locationa = "透析机反渗水入口";
1690 1697
             }
1698
+            if (cultures[index].sampling_locationa === 5) {
1699
+              cultures[index].sampling_locationa = "反渗水末端取样口";
1700
+            }
1691 1701
           }
1692 1702
           this.tableData = cultures;
1693 1703
           var dialysate = response.data.data.dialysate;
@@ -1727,6 +1737,9 @@ export default {
1727 1737
             if (dialyste[index].sampling_locationb === 4) {
1728 1738
               dialyste[index].sampling_locationb = "透析机反渗水入口";
1729 1739
             }
1740
+            if (dialyste[index].sampling_locationb === 5) {
1741
+              dialyste[index].sampling_locationb = "反渗水末端取样口";
1742
+            }
1730 1743
           }
1731 1744
           this.table = dialysate;
1732 1745
           var ions = response.data.data.ions;

+ 2 - 1
src/xt_pages/management/home.vue Wyświetl plik

@@ -2503,7 +2503,8 @@ export default {
2503 2503
           { id: 1, name: '透析液入口' },
2504 2504
           { id: 2, name: '透析液取样口' },
2505 2505
           { id: 3, name: '置换液出口' },
2506
-          { id: 4, name: '透析机反渗水入口' }
2506
+          { id: 4, name: '透析机反渗水入口' },
2507
+          { id: 5, name:'反渗水末端取样口'}
2507 2508
         ],
2508 2509
         breakDown: [
2509 2510
           { id: 1, name: '是' },