Browse Source

药房详细页

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

+ 9 - 1
pages/pharmacyDetails/pharmacyDetails.vue

@@ -78,14 +78,20 @@ export default {
78
     // 开始配药,完成配药,,,1是待配药,2是配药中
78
     // 开始配药,完成配药,,,1是待配药,2是配药中
79
     dispensing(type) {
79
     dispensing(type) {
80
       this.isLoading = true;
80
       this.isLoading = true;
81
+      uni.showLoading({
82
+        title: "加载中",
83
+        mask: true,
84
+      });
81
       if (type == 1) {
85
       if (type == 1) {
82
         post("/drugsBag/changeToIng", {
86
         post("/drugsBag/changeToIng", {
83
           id: this.infoDATA.id,
87
           id: this.infoDATA.id,
84
         }).then((result) => {
88
         }).then((result) => {
85
           this.isLoading = false;
89
           this.isLoading = false;
90
+          uni.hideLoading();
86
           if (result.state == 200) {
91
           if (result.state == 200) {
87
             uni.showToast({
92
             uni.showToast({
88
               title: result.info || "开始配药成功!",
93
               title: result.info || "开始配药成功!",
94
+              duration: 5000,
89
               success() {
95
               success() {
90
                 uni.navigateTo({
96
                 uni.navigateTo({
91
                   url: "../pharmacy/pharmacy",
97
                   url: "../pharmacy/pharmacy",
@@ -137,9 +143,11 @@ export default {
137
           id: this.infoDATA.id,
143
           id: this.infoDATA.id,
138
         }).then((result) => {
144
         }).then((result) => {
139
           this.isLoading = false;
145
           this.isLoading = false;
146
+          uni.hideLoading();
140
           if (result.state == 200) {
147
           if (result.state == 200) {
141
             uni.showToast({
148
             uni.showToast({
142
               title: result.info || "完成配药成功!",
149
               title: result.info || "完成配药成功!",
150
+              duration: 5000,
143
               success() {
151
               success() {
144
                 uni.navigateTo({
152
                 uni.navigateTo({
145
                   url: "../pharmacy/pharmacy",
153
                   url: "../pharmacy/pharmacy",
@@ -377,7 +385,7 @@ export default {
377
     line-height: 68rpx;
385
     line-height: 68rpx;
378
     position: fixed;
386
     position: fixed;
379
     left: 20rpx;
387
     left: 20rpx;
380
-    bottom: 32rpx;
388
+    bottom: 160rpx;
381
     border-radius: 8rpx;
389
     border-radius: 8rpx;
382
     background: linear-gradient(to right, #72c172, #3bb197);
390
     background: linear-gradient(to right, #72c172, #3bb197);
383
     font-size: 36rpx;
391
     font-size: 36rpx;