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

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

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