|
@@ -237,6 +237,7 @@
|
237
|
237
|
{ path: false, name: '门诊收费' },
|
238
|
238
|
{ path: false, name: '门诊收费管理' }
|
239
|
239
|
],
|
|
240
|
+ current_index:0,
|
240
|
241
|
cal_one:'',
|
241
|
242
|
cal_two:'',
|
242
|
243
|
cal_three:'',
|
|
@@ -464,6 +465,11 @@
|
464
|
465
|
this.$router.push('/outpatientCharges/treatPrint?record_date=' + this.record_date + '&patient_id=' + this.patient_id + '&prescription_id=' + this.prescription_id)
|
465
|
466
|
} else if (index == 4) {
|
466
|
467
|
|
|
468
|
+ if(this.hisPatientInfo.id == 0){
|
|
469
|
+ this.$message({ message: '该患者尚未挂号,请先挂号', type: 'error' })
|
|
470
|
+ return
|
|
471
|
+ }
|
|
472
|
+
|
467
|
473
|
let params = {
|
468
|
474
|
'id': this.patientInfo.id,
|
469
|
475
|
'record_time': this.record_date
|
|
@@ -473,17 +479,17 @@
|
473
|
479
|
if (response.data.state == 0) {
|
474
|
480
|
this.$message.error(response.data.msg)
|
475
|
481
|
this.loadingtwo = false
|
476
|
|
-
|
477
|
482
|
return false
|
478
|
|
-
|
479
|
483
|
} else {
|
|
484
|
+ this.state = '已收费'
|
|
485
|
+ this.$message({ message: '收费成功', type: 'success' })
|
480
|
486
|
this.loadingtwo = false
|
481
|
|
-
|
|
487
|
+ this.cal_one = this.cal_one-1
|
|
488
|
+ this.cal_two = this.cal_two + 1
|
|
489
|
+ this.patientTableData.splice(this.current_index,1)
|
482
|
490
|
}
|
483
|
491
|
})
|
484
|
492
|
|
485
|
|
- this.state = '已收费'
|
486
|
|
- this.$message({ message: '收费成功', type: 'success' })
|
487
|
493
|
} else if (index == 5) {
|
488
|
494
|
let params = {
|
489
|
495
|
'order_id': this.order.id,
|
|
@@ -493,16 +499,14 @@
|
493
|
499
|
if (response.data.state == 0) {
|
494
|
500
|
this.$message.error(response.data.msg)
|
495
|
501
|
this.loadingtwo = false
|
496
|
|
-
|
497
|
502
|
return false
|
498
|
|
-
|
499
|
503
|
} else {
|
|
504
|
+ this.$message({ message: '退费成功', type: 'success' })
|
500
|
505
|
this.loadingtwo = false
|
501
|
506
|
|
502
|
507
|
}
|
503
|
508
|
})
|
504
|
509
|
|
505
|
|
- this.$message({ message: '退费成功', type: 'success' })
|
506
|
510
|
} else if (index == 6) {
|
507
|
511
|
|
508
|
512
|
if (this.patientInfo.id == 0) {
|
|
@@ -522,6 +526,8 @@
|
522
|
526
|
return false
|
523
|
527
|
|
524
|
528
|
} else {
|
|
529
|
+ this.$message({ message: '挂号成功', type: 'success' })
|
|
530
|
+
|
525
|
531
|
this.loadingone = false
|
526
|
532
|
var his_info = response.data.data.his_info
|
527
|
533
|
this.hisPatientInfo = his_info
|
|
@@ -631,6 +637,7 @@
|
631
|
637
|
this.cal_two = two_count
|
632
|
638
|
this.cal_three = three_count
|
633
|
639
|
|
|
640
|
+ this.current_index = 0
|
634
|
641
|
this.$refs.tab.setCurrentRow(this.patientTableData[0])
|
635
|
642
|
this.getPatientInformation(this.patientTableData[0].patients.id,"")
|
636
|
643
|
|
|
@@ -646,6 +653,14 @@
|
646
|
653
|
console.log('val', val)
|
647
|
654
|
this.getPatientInformation(val.patients.id, val.info.batch_number)
|
648
|
655
|
this.patient_id = val.patients.id
|
|
656
|
+
|
|
657
|
+ for (let i =0; i < this.patientTableData.length; i++){
|
|
658
|
+ if(this.patientTableData[i].patients.id == val.patients.id){
|
|
659
|
+ this.current_index = i
|
|
660
|
+ }
|
|
661
|
+
|
|
662
|
+ }
|
|
663
|
+
|
649
|
664
|
},
|
650
|
665
|
|
651
|
666
|
//获取患者的基本信息
|