瀏覽代碼

打印单日期修改

huangyw 3 年之前
父節點
當前提交
d5efdc51a3
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/xt_pages/hospitalStation/invoiceTemplate/printTwo.vue

+ 2 - 2
src/xt_pages/hospitalStation/invoiceTemplate/printTwo.vue 查看文件

@@ -188,8 +188,8 @@ export default {
188 188
                 var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
189 189
                 var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
190 190
                 this.printDate = data.getFullYear() + "-" + month + "-" + date;
191
-                this.in_hosptial_time = this.list.his_hospital_record.in_hosptial_time
192
-                this.out_hosptial_time = this.list.his_hospital_record.out_hosptial_time
191
+                this.in_hosptial_time = this.list.his_hospital_record.in_hosptial_time.split(' ')[0]
192
+                this.out_hosptial_time = this.list.his_hospital_record.out_hosptial_time.split(' ')[0]
193 193
             })
194 194
         },
195 195
         smalltoBIG(n) {