|
@@ -603,7 +603,6 @@ export default{
|
603
|
603
|
for(let x=j+1; x<advicess.length;x++){
|
604
|
604
|
if(advicess[j].groupno == advicess[x].groupno){
|
605
|
605
|
this.advicePrint[i].advices[j]['arr'].push(advicess.splice(x,1))
|
606
|
|
- // advicess.splice(x,1)
|
607
|
606
|
x--
|
608
|
607
|
}
|
609
|
608
|
}
|
|
@@ -622,7 +621,6 @@ export default{
|
622
|
621
|
);
|
623
|
622
|
}
|
624
|
623
|
}
|
625
|
|
-
|
626
|
624
|
// console.log("处方222222", this.prescriptions);
|
627
|
625
|
var hisPatient = response.data.data.hisPatient;
|
628
|
626
|
console.log("hisPatient", hisPatient);
|
|
@@ -664,7 +662,7 @@ export default{
|
664
|
662
|
return name;
|
665
|
663
|
},
|
666
|
664
|
getTotalOne(id) {
|
667
|
|
- console.log('999999999',this.prescriptions);
|
|
665
|
+ // console.log('999999999',this.prescriptions);
|
668
|
666
|
var total = 0;
|
669
|
667
|
var addtotal = 0;
|
670
|
668
|
var zimuyao = 0;
|
|
@@ -699,7 +697,7 @@ export default{
|
699
|
697
|
for (let i = 0; i < this.prescriptions.length; i++) {
|
700
|
698
|
if (id == this.prescriptions[i].id) {
|
701
|
699
|
if (this.prescriptions[i].advices != null) {
|
702
|
|
- console.log('123456789',this.prescriptions[i].advices);
|
|
700
|
+ // console.log('123456789',this.prescriptions[i].advices);
|
703
|
701
|
|
704
|
702
|
for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
|
705
|
703
|
total =
|
|
@@ -713,18 +711,7 @@ export default{
|
713
|
711
|
this.prescriptions[i].advices[a].arr[b][0].price *
|
714
|
712
|
this.prescriptions[i].advices[a].arr[b][0].prescribing_number
|
715
|
713
|
}
|
716
|
|
- // if(this.prescriptions[i].advices[a].arr.length<2){
|
717
|
|
- // zimuyao = zimuyao +
|
718
|
|
- // this.prescriptions[i].advices[a].arr[0].price *
|
719
|
|
- // this.prescriptions[i].advices[a].arr[0].prescribing_number
|
720
|
|
- // }else{
|
721
|
|
- // const child = this.prescriptions[i].advices[a].arr
|
722
|
|
- // for(let i in child){
|
723
|
|
- // zimuyao = zimuyao +
|
724
|
|
- // child[i][0].price *
|
725
|
|
- // child[i][0].prescribing_number
|
726
|
|
- // }
|
727
|
|
- // }
|
|
714
|
+
|
728
|
715
|
}
|
729
|
716
|
}
|
730
|
717
|
}
|
|
@@ -759,13 +746,10 @@ export default{
|
759
|
746
|
|
760
|
747
|
getDiagnosis(id) {
|
761
|
748
|
let arr = id.split(",");
|
762
|
|
- console.log('vvvvvv',arr);
|
763
|
749
|
var name = "";
|
764
|
|
- const diagnoses = this.diagnoses.reverse()
|
765
|
|
- console.log('bbbbbb12121',this.diagnoses);
|
|
750
|
+ const diagnoses = this.diagnoses
|
766
|
751
|
for (let i = 0; i < diagnoses.length; i++) {
|
767
|
752
|
if (arr.indexOf(String(diagnoses[i].id)) > -1) {
|
768
|
|
- console.log('this.diagnoses[i].class_name',diagnoses[i].class_name);
|
769
|
753
|
name += diagnoses[i].class_name + " ";
|
770
|
754
|
}
|
771
|
755
|
}
|