|
@@ -230,6 +230,8 @@
|
230
|
230
|
|
231
|
231
|
<script>
|
232
|
232
|
import { getInvoice } from '@/api/project/project'
|
|
233
|
+import {jsGetAge, uParseTime} from "@/utils/tools";
|
|
234
|
+
|
233
|
235
|
export default {
|
234
|
236
|
props:{
|
235
|
237
|
paramsObj:Object
|
|
@@ -266,6 +268,12 @@ export default {
|
266
|
268
|
this.org_name = this.$store.getters.xt_user.org.org_name
|
267
|
269
|
},
|
268
|
270
|
methods:{
|
|
271
|
+ getTime(value, temp) {
|
|
272
|
+ if (value != undefined) {
|
|
273
|
+ return uParseTime(value, temp);
|
|
274
|
+ }
|
|
275
|
+ return "";
|
|
276
|
+ },
|
269
|
277
|
getDay(dateString1,dateString2){
|
270
|
278
|
var startDate = Date.parse(dateString1);
|
271
|
279
|
var endDate = Date.parse(dateString2);
|
|
@@ -296,20 +304,20 @@ export default {
|
296
|
304
|
this.printDate = data.getFullYear() + "-" + month + "-" + date;
|
297
|
305
|
|
298
|
306
|
if(this.list.his.id > 0){
|
299
|
|
- this.in_hosptial_time = this.getTime()
|
300
|
|
- this.out_hosptial_time = this.list.order.setl_time.split(' ')[0]
|
|
307
|
+ this.in_hosptial_time = this.getTime(this.list.his.record_date,'{y}-{m}-{d}')
|
|
308
|
+ this.out_hosptial_time = this.getTime(this.list.his.record_date,'{y}-{m}-{d}')
|
301
|
309
|
}else{
|
302
|
310
|
this.in_hosptial_time = this.list.his_hospital_record.in_hosptial_time.split(' ')[0]
|
303
|
311
|
this.out_hosptial_time = this.list.his_hospital_record.out_hosptial_time.split(' ')[0]
|
304
|
312
|
}
|
305
|
313
|
this.insutype = this.list.order.insutype
|
306
|
|
- this.id_card_no = this.list.his_hospital_record.id_card_no
|
307
|
|
- this.number = this.list.his_hospital_record.number
|
308
|
|
- this.psn_no = this.list.his_hospital_record.psn_no
|
|
314
|
+ this.id_card_no = this.list.his.id_card_no
|
|
315
|
+ this.number = this.list.his.number
|
|
316
|
+ this.psn_no = this.list.his.psn_no
|
309
|
317
|
this.pre_pay_money = this.list.pre_pay_money
|
310
|
318
|
|
311
|
|
- this.balance_accounts_type = this.list.his_hospital_record.balance_accounts_type
|
312
|
|
- this.gend= this.list.his_hospital_record.gend
|
|
319
|
+ this.balance_accounts_type = this.list.his.balance_accounts_type
|
|
320
|
+ this.gend= this.list.his.gend
|
313
|
321
|
})
|
314
|
322
|
},
|
315
|
323
|
smalltoBIG(n) {
|