陈少旭 před 1 rokem
rodič
revize
c6fe334ad9

+ 7 - 1
src/xt_pages/outpatientDoctorStation/template/printOne.vue Zobrazit soubor

@@ -39,7 +39,7 @@
39 39
               科室:{{ item.info ? getDepart(item.info.departments) : "" }}
40 40
             </div>
41 41
             <div style="margin-bottom: 10px" v-if="org_id == 10537">
42
-              身份证号:{{item.patient.id_card_no}}
42
+              身份证号:{{newHisPatient.id_card_no | testfile}}
43 43
             </div>
44 44
             <div style="margin-bottom: 10px" v-else>
45 45
               医保卡号:
@@ -436,6 +436,12 @@ export default{
436 436
       operators: [],
437 437
       doctorList_1: [],
438 438
     };
439
+  },filters: {
440
+    testfile (value) {
441
+      const start = value.slice(0, 6)
442
+      const end = value.slice(-4)
443
+      return `${start}******${end}`
444
+    }
439 445
   },
440 446
   methods: {
441 447
     // 电子签名