陈少旭 4 月之前
父節點
當前提交
df7f419f8d
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      src/xt_pages/outpatientDoctorStation/components/callPrescription.vue

+ 4 - 2
src/xt_pages/outpatientDoctorStation/components/callPrescription.vue 查看文件

@@ -251,7 +251,6 @@
251 251
             }
252 252
           }
253 253
         }
254
-
255 254
         for (let i = 0; i < targetPrescriptions.length; i++) {
256 255
           var prescription = targetPrescriptions[i];
257 256
           for (let b = 0; b < prescription.doctor_advice.length; b++) {
@@ -362,17 +361,20 @@
362 361
           }
363 362
         }
364 363
 
364
+
365
+
365 366
         if(this.srcPrescriptions.length == 1){
366 367
           if(this.srcPrescriptions[0].advices.length == 0 && this.srcPrescriptions[0].project.length == 0){
367 368
             this.srcPrescriptions = [];
368 369
             this.srcPrescriptions = prescriptions;
369 370
             this.$emit('call', this.srcPrescriptions)
370 371
           }else{
371
-
372
+            this.srcPrescriptions = [];
372 373
             this.srcPrescriptions =  this.srcPrescriptions.concat(prescriptions);
373 374
             this.$emit('call', this.srcPrescriptions)
374 375
           }
375 376
         }else{
377
+          this.srcPrescriptions = [];
376 378
           this.srcPrescriptions =  this.srcPrescriptions.concat(prescriptions);
377 379
           this.$emit('call', this.srcPrescriptions)
378 380
         }