Sfoglia il codice sorgente

修改打印病例日期

csx 4 anni fa
parent
commit
ab97097f07
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4 1
      src/xt_pages/user/components/PatientDetail.vue

+ 4 - 1
src/xt_pages/user/components/PatientDetail.vue Vedi File

@@ -492,7 +492,7 @@
492 492
                     </tbody>
493 493
                 </table>
494 494
                 <div class="print_footnote_panel">
495
-                    <div class="proj"><span class="proj_title">日期:</span>{{ print_time }}</div>
495
+                    <div class="proj"><span class="proj_title">日期:</span>{{getTime(patientPrint.created_time)}}</div>
496 496
                     <div class="proj"><span class="proj_title">医生签名:</span></div>
497 497
                 </div>
498 498
             </div>
@@ -714,6 +714,9 @@ export default {
714 714
     // this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}');
715 715
   },
716 716
   methods: {
717
+    getTime(val){
718
+     return uParseTime(val, '{y}年{m}月{d}日')
719
+    },
717 720
     printThisInfo() {
718 721
       var ptime = Math.round(new Date().getTime() / 1000)
719 722
       this.print_time = uParseTime(ptime, '{y}年{m}月{d}日')