Browse Source

Merge branch 'master' of http://git.shengws.com/csx/Vue_New

csx 5 years ago
parent
commit
d5c4787d95
1 changed files with 21 additions and 4 deletions
  1. 21 4
      src/xt_pages/user/doctorAdvice.vue

+ 21 - 4
src/xt_pages/user/doctorAdvice.vue View File

2141
       submitEditAdvice(formName) {
2141
       submitEditAdvice(formName) {
2142
         this.$refs[formName].validate(valid => {
2142
         this.$refs[formName].validate(valid => {
2143
           if (valid) {
2143
           if (valid) {
2144
+            let mode = ""
2145
+            if (this.adviceForm.advice_type == 1){
2146
+              mode = "1-3"
2147
+              if(this.adviceForm.advice_doctor != this.$store.getters.xt_user.user.id){
2148
+                mode = "1-4"
2149
+              }
2150
+
2151
+            }else if(this.adviceForm.advice_type == 3){
2152
+              mode = "2-1"
2153
+              if(this.adviceForm.advice_doctor != this.$store.getters.xt_user.user.id){
2154
+                mode = "3-1"
2155
+              }
2156
+            }
2157
+
2158
+
2144
             EditNewDoctorAdvice(
2159
             EditNewDoctorAdvice(
2145
               this.patientID,
2160
               this.patientID,
2146
               this.adviceForm.id,
2161
               this.adviceForm.id,
2147
-              this.adviceForm
2162
+              this.adviceForm,mode
2148
             ).then(response => {
2163
             ).then(response => {
2149
               if (response.data.state == 0) {
2164
               if (response.data.state == 0) {
2150
                 this.$message.error(response.data.msg)
2165
                 this.$message.error(response.data.msg)
2629
 
2644
 
2630
             let mode =""
2645
             let mode =""
2631
             if (row.advice_type == 3){
2646
             if (row.advice_type == 3){
2632
-              mode = "1-6"
2647
+              mode = "4-1"
2633
 
2648
 
2634
               if (row.advice_doctor != this.$store.getters.xt_user.user.id){
2649
               if (row.advice_doctor != this.$store.getters.xt_user.user.id){
2635
-                mode = "1-7"
2650
+                mode = "5-1"
2636
               }
2651
               }
2637
 
2652
 
2638
             }else if (row.advice_type == 1){
2653
             }else if (row.advice_type == 1){
2639
 
2654
 
2655
+              mode = "1-6"
2656
+
2640
               if (row.advice_doctor != this.$store.getters.xt_user.user.id){
2657
               if (row.advice_doctor != this.$store.getters.xt_user.user.id){
2641
-                mode = "5-1"
2658
+                mode = "1-7"
2642
               }
2659
               }
2643
             }
2660
             }
2644
 
2661