Browse Source

送病人回病房

seimin 3 months ago
parent
commit
728afe79a8

+ 13 - 0
pages/newSendBack/sendBackPatient/sendBackPatient.vue

@@ -208,6 +208,19 @@
208
                       url: `/pages/receiptpage/receiptpage`,
208
                       url: `/pages/receiptpage/receiptpage`,
209
                     });
209
                     });
210
                   }, 2000)
210
                   }, 2000)
211
+                } else if(res.status == 400){
212
+                    // 校验患者是否没有住院科室
213
+                    uni.showToast({
214
+                      icon: "none",
215
+                      title: res.msg,
216
+                      duration: 2000,
217
+                      mask: true,
218
+                    });
219
+                    setTimeout(() => {
220
+                      uni.navigateTo({
221
+                        url: `/pages/receiptpage/receiptpage`,
222
+                      });
223
+                    }, 2000)
211
                 } else {
224
                 } else {
212
                   uni.showToast({
225
                   uni.showToast({
213
                     icon: "none",
226
                     icon: "none",

+ 8 - 1
pages/scanning_ins/scanning_ins.vue

@@ -589,7 +589,8 @@
589
                 // 科室扫描
589
                 // 科室扫描
590
                 let postData = {
590
                 let postData = {
591
                   "type": "query",
591
                   "type": "query",
592
-                  "qrCode": code
592
+                  "qrCode": code,
593
+                  "patientCode": infoDATA.patientCode,
593
                 };
594
                 };
594
                 post("/dept/scanChangeDept", postData).then((res) => {
595
                 post("/dept/scanChangeDept", postData).then((res) => {
595
                   uni.hideLoading();
596
                   uni.hideLoading();
@@ -617,6 +618,12 @@
617
                         title: "请扫描正确的科室码!",
618
                         title: "请扫描正确的科室码!",
618
                       });
619
                       });
619
                     }
620
                     }
621
+                  } else if(res.status == 400){
622
+                    // 校验患者是否没有住院科室
623
+                    uni.showToast({
624
+                      icon: "none",
625
+                      title: res.msg,
626
+                    });
620
                   } else {
627
                   } else {
621
                     uni.hideLoading();
628
                     uni.hideLoading();
622
                     uni.showToast({
629
                     uni.showToast({