|
@@ -2148,6 +2148,7 @@ export default {
|
2148
|
2148
|
|
2149
|
2149
|
tabclickEvent(val) {
|
2150
|
2150
|
console.log('li3333333333333li')
|
|
2151
|
+
|
2151
|
2152
|
for (let i = 0; i < this.prescriptions.length; i++) {
|
2152
|
2153
|
if (this.prescriptions[i].name == val.name) {
|
2153
|
2154
|
this.prescription_id = this.prescriptions[i].id
|
|
@@ -2182,6 +2183,7 @@ export default {
|
2182
|
2183
|
}
|
2183
|
2184
|
|
2184
|
2185
|
if (this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length == 0) {
|
|
2186
|
+ console.log(this.rightTab)
|
2185
|
2187
|
this.customTabIndex = this.rightTab
|
2186
|
2188
|
this.curStatus = 0
|
2187
|
2189
|
}
|
|
@@ -3753,6 +3755,9 @@ export default {
|
3753
|
3755
|
})
|
3754
|
3756
|
this.customTabIndex = 2
|
3755
|
3757
|
}
|
|
3758
|
+ console.log(this.customTabIndex)
|
|
3759
|
+ console.log( this.rightTab )
|
|
3760
|
+
|
3756
|
3761
|
this.rightTab = index
|
3757
|
3762
|
|
3758
|
3763
|
//用来区分处方属于项目还是药品
|
|
@@ -3767,8 +3772,16 @@ export default {
|
3767
|
3772
|
}
|
3768
|
3773
|
if (this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length == 0) {
|
3769
|
3774
|
// this.customTabIndex = this.rightTab
|
3770
|
|
- this.customTabIndex = 2
|
3771
|
|
- this.curStatus = 2
|
|
3775
|
+ if(index == 1){
|
|
3776
|
+ this.customTabIndex = 1
|
|
3777
|
+ this.curStatus = 1
|
|
3778
|
+ }else if(inedx == 2){
|
|
3779
|
+ this.customTabIndex = 2
|
|
3780
|
+ this.curStatus = 2
|
|
3781
|
+ }else{
|
|
3782
|
+ this.customTabIndex = 2
|
|
3783
|
+ this.curStatus = 2
|
|
3784
|
+ }
|
3772
|
3785
|
|
3773
|
3786
|
}
|
3774
|
3787
|
|