瀏覽代碼

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
       },
2185
       },
2186
       open(index, isLoading) {
2186
       open(index, isLoading) {
2187
         if (this.dayorMonth == 'day') {
2187
         if (this.dayorMonth == 'day') {
2188
-
2189
           if (this.prescriptions[0].advices.length == 0 && this.prescriptions[0].project.length == 0) {
2188
           if (this.prescriptions[0].advices.length == 0 && this.prescriptions[0].project.length == 0) {
2190
             this.$message.error('请先开处方')
2189
             this.$message.error('请先开处方')
2191
             return
2190
             return
2192
           }
2191
           }
2192
+
2193
         }
2193
         }
2194
 
2194
 
2195
         if (this.dayorMonth == 'day') {
2195
         if (this.dayorMonth == 'day') {
2233
               }
2233
               }
2234
           }
2234
           }
2235
           if (index == 1) {
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
             let params = {
2243
             let params = {
2237
               p_type: 2,
2244
               p_type: 2,
2238
               patient_id: this.patientInfo.id,
2245
               patient_id: this.patientInfo.id,