Browse Source

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

csx 4 years ago
parent
commit
6606c114ba
1 changed files with 14 additions and 0 deletions
  1. 14 0
      src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue

+ 14 - 0
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

@@ -518,6 +518,12 @@
518 518
           this.$message.error('处方已经结算,无法添加')
519 519
           return
520 520
         }
521
+        if (this.patientInfo.id == 0) {
522
+          this.$message.error('请选择患者')
523
+          return
524
+        }
525
+
526
+
521 527
         if (val == 1) {
522 528
           this.isVisibility = false
523 529
           this.request_record_date = this.record_date
@@ -545,6 +551,10 @@
545 551
           this.$message.error('处方已经结算,无法添加')
546 552
           return
547 553
         }
554
+        if (this.patientInfo.id == 0) {
555
+          this.$message.error('请选择患者')
556
+          return
557
+        }
548 558
         if (val == 2) {
549 559
           this.isVisibility = false
550 560
           this.request_record_date = this.record_date
@@ -933,6 +943,10 @@
933 943
           this.$message.error('处方已经结算,无法添加')
934 944
           return
935 945
         }
946
+        if (this.patientInfo == null || this.patientInfo.id == 0) {
947
+          this.$message.error('请选择患者')
948
+          return
949
+        }
936 950
         let params = {
937 951
           end_time: this.record_date,
938 952
           start_time: moment(new Date()).subtract(30, 'days').format('YYYY-MM-DD'),