csx hace 2 años
padre
commit
463d63bfb4

+ 10 - 3
src/xt_pages/hospitalStation/components/deskPrescription.vue Ver fichero

@@ -2464,7 +2464,7 @@ export default {
2464 2464
                               return
2465 2465
                              }
2466 2466
                            }
2467
-                       
2467
+
2468 2468
                         }
2469 2469
                       }
2470 2470
                       console.log("newArr",newArr )
@@ -2538,7 +2538,7 @@ export default {
2538 2538
                               return
2539 2539
                             }
2540 2540
                           }
2541
-                        
2541
+
2542 2542
                         }
2543 2543
                       }
2544 2544
                       console.log("newArr",newArr )
@@ -2652,6 +2652,13 @@ export default {
2652 2652
           return
2653 2653
         }
2654 2654
       }
2655
+      for(let i = 0; i < this.prescriptions.length; i++){
2656
+        if (this.prescriptions[i].order_status == 2) {
2657
+          this.$message.error('处方中包含已收费处方,无法新增')
2658
+          return
2659
+        }
2660
+      }
2661
+
2655 2662
       // if (this.curPrescriptions.order_status == 2) {
2656 2663
       //   this.$message.error('该处方已经结算或者退费,无法继续添加处方')
2657 2664
       //   return
@@ -2933,7 +2940,7 @@ export default {
2933 2940
       //     return
2934 2941
       //   }
2935 2942
       // }
2936
-    
2943
+
2937 2944
       if(row.is_user!=1){
2938 2945
         if (row.sum_count <= 0) {
2939 2946
           if (selection) {

+ 11 - 3
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Ver fichero

@@ -2480,7 +2480,7 @@
2480 2480
                               return
2481 2481
                             }
2482 2482
                           }
2483
-                         
2483
+
2484 2484
                         }
2485 2485
                       }
2486 2486
                       console.log("newArr",newArr )
@@ -2542,7 +2542,7 @@
2542 2542
                               return
2543 2543
                             }
2544 2544
                           }
2545
-                        
2545
+
2546 2546
                         }
2547 2547
                       }
2548 2548
                       console.log("newArr",newArr )
@@ -2659,6 +2659,14 @@
2659 2659
         }
2660 2660
 
2661 2661
 
2662
+        for(let i = 0; i < this.prescriptions.length; i++){
2663
+          if (this.prescriptions[i].order_status == 2) {
2664
+            this.$message.error('处方中包含已收费处方,无法新增')
2665
+            return
2666
+          }
2667
+        }
2668
+
2669
+
2662 2670
         if (this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length == 0) {
2663 2671
           this.$message.error('当前处方无数据,新增数据后才能新增处方')
2664 2672
           return
@@ -2940,7 +2948,7 @@
2940 2948
         //       return
2941 2949
         //     }
2942 2950
         // }
2943
-        
2951
+
2944 2952
         if(row.is_user!=1){
2945 2953
           if (row.sum_count <= 0) {
2946 2954
           if (selection) {