浏览代码

518合并代码

XMLWAN 3 年前
父节点
当前提交
7b12ec0ad0
共有 1 个文件被更改,包括 15 次插入8 次删除
  1. 15 8
      src/xt_pages/outpatientDoctorStation/recordTemplate/printTwo.vue

+ 15 - 8
src/xt_pages/outpatientDoctorStation/recordTemplate/printTwo.vue 查看文件

14
           <span v-if="patient.gender == 1">男</span>
14
           <span v-if="patient.gender == 1">男</span>
15
           <span v-if="patient.gender == 2">女</span>
15
           <span v-if="patient.gender == 2">女</span>
16
         </div>
16
         </div>
17
-        <div>工作单位:</div>
17
+        <div>工作单位:{{patient.work_unit}}</div>
18
        
18
        
19
       </div>
19
       </div>
20
       <div class="infoTitle">
20
       <div class="infoTitle">
21
-        <div>出生日期:</div>
22
-        <div>身份证号:</div>
21
+        <div>出生日期:{{getTime(patient.birth)}}</div>
22
+        <div>身份证号:{{patient.id_card_no}}</div>
23
       </div>
23
       </div>
24
       <div class="infoTitle">
24
       <div class="infoTitle">
25
-        <div>联系人:</div>
25
+        <div>联系人:{{patient.contact_name}}</div>
26
         <div>联系电话:{{ patient.phone ? patient.phone : "" }}</div>
26
         <div>联系电话:{{ patient.phone ? patient.phone : "" }}</div>
27
       </div>
27
       </div>
28
       <div class="otherInfo" style="border-bottom: 1px solid">
28
       <div class="otherInfo" style="border-bottom: 1px solid">
29
-        <div>进入透析时间:</div>
29
+        <div>进入透析时间:{{getTime(patient.first_dialysis_date)}}</div>
30
         <div style="flex: 1"></div>
30
         <div style="flex: 1"></div>
31
       </div>
31
       </div>
32
       <div class="infoTitle">
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
       </div>
35
       </div>
36
       <div class="infoTitle">
36
       <div class="infoTitle">
37
         <div style="width: 300px">
37
         <div style="width: 300px">
38
           药物过敏史:{{ patient.past_history ? patient.past_history : "" }}
38
           药物过敏史:{{ patient.past_history ? patient.past_history : "" }}
39
         </div>
39
         </div>
40
-        <div>初始透析日期:</div>
40
+        <div>初始透析日期:{{getTime(patient.first_dialysis_date)}}</div>
41
       </div>
41
       </div>
42
       <div class="otherInfo" style="border-bottom: 1px solid">
42
       <div class="otherInfo" style="border-bottom: 1px solid">
43
         <div>血管通路:</div>
43
         <div>血管通路:</div>
220
       }
220
       }
221
       return name;
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
   created() {
231
   created() {
225
     this.educationOptions = getDataConfig("patient", "education_types");
232
     this.educationOptions = getDataConfig("patient", "education_types");