|
@@ -2141,10 +2141,25 @@
|
2141
|
2141
|
submitEditAdvice(formName) {
|
2142
|
2142
|
this.$refs[formName].validate(valid => {
|
2143
|
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
|
2159
|
EditNewDoctorAdvice(
|
2145
|
2160
|
this.patientID,
|
2146
|
2161
|
this.adviceForm.id,
|
2147
|
|
- this.adviceForm
|
|
2162
|
+ this.adviceForm,mode
|
2148
|
2163
|
).then(response => {
|
2149
|
2164
|
if (response.data.state == 0) {
|
2150
|
2165
|
this.$message.error(response.data.msg)
|
|
@@ -2629,16 +2644,18 @@
|
2629
|
2644
|
|
2630
|
2645
|
let mode =""
|
2631
|
2646
|
if (row.advice_type == 3){
|
2632
|
|
- mode = "1-6"
|
|
2647
|
+ mode = "4-1"
|
2633
|
2648
|
|
2634
|
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
|
2653
|
}else if (row.advice_type == 1){
|
2639
|
2654
|
|
|
2655
|
+ mode = "1-6"
|
|
2656
|
+
|
2640
|
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
|
|