csx 2 年 前
コミット
463d63bfb4
共有2 個のファイルを変更した21 個の追加6 個の削除を含む
  1. 10 3
      src/xt_pages/hospitalStation/components/deskPrescription.vue
  2. 11 3
      src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue

+ 10 - 3
src/xt_pages/hospitalStation/components/deskPrescription.vue ファイルの表示

2464
                               return
2464
                               return
2465
                              }
2465
                              }
2466
                            }
2466
                            }
2467
-                       
2467
+
2468
                         }
2468
                         }
2469
                       }
2469
                       }
2470
                       console.log("newArr",newArr )
2470
                       console.log("newArr",newArr )
2538
                               return
2538
                               return
2539
                             }
2539
                             }
2540
                           }
2540
                           }
2541
-                        
2541
+
2542
                         }
2542
                         }
2543
                       }
2543
                       }
2544
                       console.log("newArr",newArr )
2544
                       console.log("newArr",newArr )
2652
           return
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
       // if (this.curPrescriptions.order_status == 2) {
2662
       // if (this.curPrescriptions.order_status == 2) {
2656
       //   this.$message.error('该处方已经结算或者退费,无法继续添加处方')
2663
       //   this.$message.error('该处方已经结算或者退费,无法继续添加处方')
2657
       //   return
2664
       //   return
2933
       //     return
2940
       //     return
2934
       //   }
2941
       //   }
2935
       // }
2942
       // }
2936
-    
2943
+
2937
       if(row.is_user!=1){
2944
       if(row.is_user!=1){
2938
         if (row.sum_count <= 0) {
2945
         if (row.sum_count <= 0) {
2939
           if (selection) {
2946
           if (selection) {

+ 11 - 3
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue ファイルの表示

2480
                               return
2480
                               return
2481
                             }
2481
                             }
2482
                           }
2482
                           }
2483
-                         
2483
+
2484
                         }
2484
                         }
2485
                       }
2485
                       }
2486
                       console.log("newArr",newArr )
2486
                       console.log("newArr",newArr )
2542
                               return
2542
                               return
2543
                             }
2543
                             }
2544
                           }
2544
                           }
2545
-                        
2545
+
2546
                         }
2546
                         }
2547
                       }
2547
                       }
2548
                       console.log("newArr",newArr )
2548
                       console.log("newArr",newArr )
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
         if (this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length == 0) {
2670
         if (this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length == 0) {
2663
           this.$message.error('当前处方无数据,新增数据后才能新增处方')
2671
           this.$message.error('当前处方无数据,新增数据后才能新增处方')
2664
           return
2672
           return
2940
         //       return
2948
         //       return
2941
         //     }
2949
         //     }
2942
         // }
2950
         // }
2943
-        
2951
+
2944
         if(row.is_user!=1){
2952
         if(row.is_user!=1){
2945
           if (row.sum_count <= 0) {
2953
           if (row.sum_count <= 0) {
2946
           if (selection) {
2954
           if (selection) {