Browse Source

开始配药

seimin 3 years ago
parent
commit
3db6e9efdc
1 changed files with 3 additions and 3 deletions
  1. 3 3
      pages/pharmacyDetails/pharmacyDetails.vue

+ 3 - 3
pages/pharmacyDetails/pharmacyDetails.vue

@@ -83,7 +83,7 @@ export default {
83
           id: this.infoDATA.id,
83
           id: this.infoDATA.id,
84
         }).then((result) => {
84
         }).then((result) => {
85
           this.isLoading = false;
85
           this.isLoading = false;
86
-          if (result.state == 200) {
86
+          if (result.status == 200) {
87
             uni.showToast({
87
             uni.showToast({
88
               title: "开始配药成功!",
88
               title: "开始配药成功!",
89
               success() {
89
               success() {
@@ -119,7 +119,7 @@ export default {
119
             //     });
119
             //     });
120
             //   }
120
             //   }
121
             // });
121
             // });
122
-          } else if(result.state == 501){
122
+          } else if(result.status == 503){//未建单
123
             uni.showToast({
123
             uni.showToast({
124
               icon: "none",
124
               icon: "none",
125
               title: result.error,
125
               title: result.error,
@@ -137,7 +137,7 @@ export default {
137
           id: this.infoDATA.id,
137
           id: this.infoDATA.id,
138
         }).then((result) => {
138
         }).then((result) => {
139
           this.isLoading = false;
139
           this.isLoading = false;
140
-          if (result.state == 200) {
140
+          if (result.status == 200) {
141
             uni.showToast({
141
             uni.showToast({
142
               title: "完成配药成功!",
142
               title: "完成配药成功!",
143
               success() {
143
               success() {