Browse Source

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

XMLWAN 3 years ago
parent
commit
141f8efc93

+ 8 - 1
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

@@ -2185,11 +2185,11 @@
2185 2185
       },
2186 2186
       open(index, isLoading) {
2187 2187
         if (this.dayorMonth == 'day') {
2188
-
2189 2188
           if (this.prescriptions[0].advices.length == 0 && this.prescriptions[0].project.length == 0) {
2190 2189
             this.$message.error('请先开处方')
2191 2190
             return
2192 2191
           }
2192
+
2193 2193
         }
2194 2194
 
2195 2195
         if (this.dayorMonth == 'day') {
@@ -2233,6 +2233,13 @@
2233 2233
               }
2234 2234
           }
2235 2235
           if (index == 1) {
2236
+            for(let i =0; i < this.prescriptions.length; i++){
2237
+              if (this.prescriptions[i].advices.length == 0 && this.prescriptions[i].project.length == 0) {
2238
+                this.$message.error('处方内容不能为空')
2239
+                return
2240
+              }
2241
+            }
2242
+
2236 2243
             let params = {
2237 2244
               p_type: 2,
2238 2245
               patient_id: this.patientInfo.id,