|
@@ -190,7 +190,7 @@
|
190
|
190
|
<span slot="footer" class="dialog-footer">
|
191
|
191
|
<el-button @click="centerDialogVisible = false">取 消</el-button>
|
192
|
192
|
<el-button type="primary" @click="savePrint">确 定</el-button>
|
193
|
|
- </span>。
|
|
193
|
+ </span>
|
194
|
194
|
</el-dialog>
|
195
|
195
|
<el-dialog
|
196
|
196
|
class="centerDialog"
|
|
@@ -3577,7 +3577,7 @@
|
3577
|
3577
|
this.$refs.prescriptions.open(1, this.saveLoading)
|
3578
|
3578
|
} else if (index == 2) {
|
3579
|
3579
|
|
3580
|
|
- this.getPrescriptionList(this.patientInfo.id)
|
|
3580
|
+ this.getPrescriptionList(this.patientInfo.id,1)
|
3581
|
3581
|
// this.$router.push("/outpatientDoctorStation/print?record="+this.record_date+"&prescription_id="+this.prescription_id)
|
3582
|
3582
|
} else if (index == 3) {
|
3583
|
3583
|
this.$refs.prescriptions.open(3)
|
|
@@ -3585,7 +3585,7 @@
|
3585
|
3585
|
this.$refs.prescriptions.open(4)
|
3586
|
3586
|
} else if (index == 6) {
|
3587
|
3587
|
// this.$router.push("/outpatientDoctorStation/treatPrint?record="+this.record_date+"&prescription_id="+this.prescription_id)
|
3588
|
|
- this.getPrescriptionList(this.patientInfo.id)
|
|
3588
|
+ this.getPrescriptionList(this.patientInfo.id,2)
|
3589
|
3589
|
// this.$router.push("/outpatientDoctorStation/treatPrint?record="+this.record_date+"&prescription_id="+this.prescription_id)
|
3590
|
3590
|
|
3591
|
3591
|
}
|
|
@@ -3626,15 +3626,20 @@
|
3626
|
3626
|
this.prescription_id = data
|
3627
|
3627
|
},
|
3628
|
3628
|
|
3629
|
|
- getPrescriptionList(id) {
|
|
3629
|
+ getPrescriptionList(id,type) {
|
3630
|
3630
|
getPrescriptionList(id,2).then(response => {
|
3631
|
3631
|
if (response.data.state == 1) {
|
3632
|
3632
|
this.centerDialogVisible = true
|
3633
|
3633
|
var list = response.data.data.list
|
|
3634
|
+ let arr = []
|
3634
|
3635
|
for (let i = 0; i < list.length; i++) {
|
3635
|
|
- list[i].prescription_number = list[i].prescription_number + i
|
|
3636
|
+ if(list[i].type == type){
|
|
3637
|
+ list[i].prescription_number = list[i].prescription_number + i
|
|
3638
|
+ arr.push(list[i])
|
|
3639
|
+ }
|
|
3640
|
+
|
3636
|
3641
|
}
|
3637
|
|
- this.tableData = list
|
|
3642
|
+ this.tableData = arr
|
3638
|
3643
|
}
|
3639
|
3644
|
})
|
3640
|
3645
|
},
|
|
@@ -3643,7 +3648,25 @@
|
3643
|
3648
|
},
|
3644
|
3649
|
handleClick() {
|
3645
|
3650
|
if(this.titleType == "电子处方"){
|
3646
|
|
- this.getPatientInfo()
|
|
3651
|
+ if(this.radio == 1){
|
|
3652
|
+ this.un_cure_data.map(item => {
|
|
3653
|
+ if(item.id == this.patientid){
|
|
3654
|
+ this.getPatientInfo(item)
|
|
3655
|
+ }
|
|
3656
|
+ })
|
|
3657
|
+ }else if(this.radio == 2){
|
|
3658
|
+ this.cure_data.map(item => {
|
|
3659
|
+ if(item.id == this.patientid){
|
|
3660
|
+ this.getPatientInfo(item)
|
|
3661
|
+ }
|
|
3662
|
+ })
|
|
3663
|
+ }else{
|
|
3664
|
+ this.all_data.map(item => {
|
|
3665
|
+ if(item.id == this.patientid){
|
|
3666
|
+ this.getPatientInfo(item)
|
|
3667
|
+ }
|
|
3668
|
+ })
|
|
3669
|
+ }
|
3647
|
3670
|
}
|
3648
|
3671
|
|
3649
|
3672
|
},
|