Kaynağa Gözat

Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch

28169 1 ay önce
ebeveyn
işleme
83762cbaf1

+ 15 - 2
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Dosyayı Görüntüle

2148
 
2148
 
2149
     tabclickEvent(val) {
2149
     tabclickEvent(val) {
2150
       console.log('li3333333333333li')
2150
       console.log('li3333333333333li')
2151
+
2151
       for (let i = 0; i < this.prescriptions.length; i++) {
2152
       for (let i = 0; i < this.prescriptions.length; i++) {
2152
         if (this.prescriptions[i].name == val.name) {
2153
         if (this.prescriptions[i].name == val.name) {
2153
           this.prescription_id = this.prescriptions[i].id
2154
           this.prescription_id = this.prescriptions[i].id
2182
           }
2183
           }
2183
 
2184
 
2184
           if (this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length == 0) {
2185
           if (this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length == 0) {
2186
+            console.log(this.rightTab)
2185
             this.customTabIndex = this.rightTab
2187
             this.customTabIndex = this.rightTab
2186
             this.curStatus = 0
2188
             this.curStatus = 0
2187
           }
2189
           }
3753
         })
3755
         })
3754
         this.customTabIndex = 2
3756
         this.customTabIndex = 2
3755
       }
3757
       }
3758
+      console.log(this.customTabIndex)
3759
+      console.log( this.rightTab )
3760
+
3756
       this.rightTab = index
3761
       this.rightTab = index
3757
 
3762
 
3758
       //用来区分处方属于项目还是药品
3763
       //用来区分处方属于项目还是药品
3767
       }
3772
       }
3768
       if (this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length == 0) {
3773
       if (this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length == 0) {
3769
         // this.customTabIndex = this.rightTab
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