Parcourir la source

Merge remote-tracking branch 'origin/20220812' into 20220812

mainqaq il y a 2 ans
Parent
révision
83816ae5de

+ 2 - 2
src/xt_pages/hospitalStation/components/deskPrescription.vue Voir le fichier

@@ -2658,8 +2658,8 @@ export default {
2658 2658
         }
2659 2659
       }
2660 2660
       for(let i = 0; i < this.prescriptions.length; i++){
2661
-        if (this.prescriptions[i].order_status == 2) {
2662
-          this.$message.error('处方中包含已收费处方,无法新增')
2661
+        if (this.prescriptions[i].order_status == 2 || this.prescriptions[i].order_status == 4) {
2662
+          this.$message.error('处方中包含已收费处方或者包含已上传的处方,无法新增')
2663 2663
           return
2664 2664
         }
2665 2665
       }

+ 12 - 9
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Voir le fichier

@@ -2202,16 +2202,17 @@
2202 2202
       },
2203 2203
       open(index, isLoading) {
2204 2204
 
2205
-        if(this.curStatus == 0){
2206
-          this.prescriptions = []
2207
-        }
2205
+        // if(this.curStatus == 0){
2206
+        //   this.prescriptions = []
2207
+        // }
2208 2208
         if(!isLoading){
2209 2209
           if (this.dayorMonth == 'day') {
2210
-            if (this.prescriptions[0].advices.length == 0 && this.prescriptions[0].project.length == 0) {
2211
-              this.$message.error('请先开处方')
2212
-              return
2210
+            for(let i = 0; i < this.prescriptions.length;i++){
2211
+              if (this.prescriptions[i].advices.length == 0 && this.prescriptions[i].project.length == 0) {
2212
+                this.$message.error('请先开处方')
2213
+                return
2214
+              }
2213 2215
             }
2214
-
2215 2216
           }
2216 2217
 
2217 2218
           if (this.dayorMonth == 'day') {
@@ -2663,13 +2664,15 @@
2663 2664
 
2664 2665
 
2665 2666
         for(let i = 0; i < this.prescriptions.length; i++){
2666
-          if (this.prescriptions[i].order_status == 2) {
2667
-            this.$message.error('处方中包含已收费处方,无法新增')
2667
+          if (this.prescriptions[i].order_status == 2 || this.prescriptions[i].order_status == 4) {
2668
+            this.$message.error('处方中包含已收费处方或者包含已经上传的处方,无法新增')
2668 2669
             return
2669 2670
           }
2670 2671
         }
2671 2672
 
2672 2673
 
2674
+
2675
+
2673 2676
         if (this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length == 0) {
2674 2677
           this.$message.error('当前处方无数据,新增数据后才能新增处方')
2675 2678
           return