陈少旭 4 months ago
parent
commit
df7f419f8d

+ 4 - 2
src/xt_pages/outpatientDoctorStation/components/callPrescription.vue View File

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