浏览代码

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

XMLWAN 3 年前
父节点
当前提交
141f8efc93
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 8 1
      src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue

+ 8 - 1
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue 查看文件

@@ -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,