Sfoglia il codice sorgente

打印单日期修改

huangyw 3 anni fa
parent
commit
d5efdc51a3

+ 2 - 2
src/xt_pages/hospitalStation/invoiceTemplate/printTwo.vue Vedi File

188
                 var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
188
                 var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
189
                 var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
189
                 var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
190
                 this.printDate = data.getFullYear() + "-" + month + "-" + date;
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
         smalltoBIG(n) {
195
         smalltoBIG(n) {