Explorar el Código

518合并代码

XMLWAN hace 2 años
padre
commit
7b12ec0ad0
Se han modificado 1 ficheros con 15 adiciones y 8 borrados
  1. 15 8
      src/xt_pages/outpatientDoctorStation/recordTemplate/printTwo.vue

+ 15 - 8
src/xt_pages/outpatientDoctorStation/recordTemplate/printTwo.vue Ver fichero

@@ -14,30 +14,30 @@
14 14
           <span v-if="patient.gender == 1">男</span>
15 15
           <span v-if="patient.gender == 2">女</span>
16 16
         </div>
17
-        <div>工作单位:</div>
17
+        <div>工作单位:{{patient.work_unit}}</div>
18 18
        
19 19
       </div>
20 20
       <div class="infoTitle">
21
-        <div>出生日期:</div>
22
-        <div>身份证号:</div>
21
+        <div>出生日期:{{getTime(patient.birth)}}</div>
22
+        <div>身份证号:{{patient.id_card_no}}</div>
23 23
       </div>
24 24
       <div class="infoTitle">
25
-        <div>联系人:</div>
25
+        <div>联系人:{{patient.contact_name}}</div>
26 26
         <div>联系电话:{{ patient.phone ? patient.phone : "" }}</div>
27 27
       </div>
28 28
       <div class="otherInfo" style="border-bottom: 1px solid">
29
-        <div>进入透析时间:</div>
29
+        <div>进入透析时间:{{getTime(patient.first_dialysis_date)}}</div>
30 30
         <div style="flex: 1"></div>
31 31
       </div>
32 32
       <div class="infoTitle">
33
-        <div style="width: 300px">原发病:</div>
34
-        <div>确诊肾衰日期:</div>
33
+        <div style="width: 300px">原发病:{{history.primary_disease}}</div>
34
+        <div>确诊肾衰日期:{{getTime(history.confirm_failure_date)}}</div>
35 35
       </div>
36 36
       <div class="infoTitle">
37 37
         <div style="width: 300px">
38 38
           药物过敏史:{{ patient.past_history ? patient.past_history : "" }}
39 39
         </div>
40
-        <div>初始透析日期:</div>
40
+        <div>初始透析日期:{{getTime(patient.first_dialysis_date)}}</div>
41 41
       </div>
42 42
       <div class="otherInfo" style="border-bottom: 1px solid">
43 43
         <div>血管通路:</div>
@@ -220,6 +220,13 @@ export default {
220 220
       }
221 221
       return name;
222 222
     },
223
+     getTime(val) {
224
+         if(val == ""){
225
+          return ""
226
+         }else {
227
+          return uParseTime(val, '{y}-{m}-{d}')
228
+         }
229
+      },
223 230
   },
224 231
   created() {
225 232
     this.educationOptions = getDataConfig("patient", "education_types");