csx 5 years ago
parent
commit
458d0435e9
1 changed files with 10 additions and 6 deletions
  1. 10 6
      src/pages/main/dialog/AssessmentDialog.vue

+ 10 - 6
src/pages/main/dialog/AssessmentDialog.vue View File

232
         setTimeout(function () {
232
         setTimeout(function () {
233
           input.scrollIntoView()
233
           input.scrollIntoView()
234
         }, 0);
234
         }, 0);
235
-        
235
+
236
         if (input.setSelectionRange) {
236
         if (input.setSelectionRange) {
237
           setTimeout(function () {
237
           setTimeout(function () {
238
               input.setSelectionRange(0, input.value.length);
238
               input.setSelectionRange(0, input.value.length);
279
             } else {
279
             } else {
280
               this.propForm.result = []
280
               this.propForm.result = []
281
             }
281
             }
282
-            
282
+
283
             this.propForm.click_ref = "last_post_dialysis"
283
             this.propForm.click_ref = "last_post_dialysis"
284
 
284
 
285
             break
285
             break
346
             } else {
346
             } else {
347
               this.propForm.result = []
347
               this.propForm.result = []
348
             }
348
             }
349
-            
349
+
350
             this.propForm.click_ref = "catheter"
350
             this.propForm.click_ref = "catheter"
351
 
351
 
352
             break
352
             break
370
             } else {
370
             } else {
371
               this.propForm.result = []
371
               this.propForm.result = []
372
             }
372
             }
373
-            
373
+
374
             this.propForm.click_ref = "complication"
374
             this.propForm.click_ref = "complication"
375
             break
375
             break
376
 
376
 
570
       },
570
       },
571
       commitInfo:function () {
571
       commitInfo:function () {
572
         Toast.loading({forbidClick: true, duration: 0})
572
         Toast.loading({forbidClick: true, duration: 0})
573
+        console.log(this.formValue)
573
         EditAssessmentBeforeDislysis(this.$route.query.patient_id,  this.record_date, this.formValue).then(response=>{
574
         EditAssessmentBeforeDislysis(this.$route.query.patient_id,  this.record_date, this.formValue).then(response=>{
574
           if (response.data.state == 0) {
575
           if (response.data.state == 0) {
575
             Toast(response.data.msg);
576
             Toast(response.data.msg);
614
       // console.log(this.predialysis)
615
       // console.log(this.predialysis)
615
       this.formValue = this.predialysis
616
       this.formValue = this.predialysis
616
       if (this.predialysis.id == undefined && this.last_predialysis.id != undefined) {
617
       if (this.predialysis.id == undefined && this.last_predialysis.id != undefined) {
617
-        this.$set(this.formValue, "dry_weight", this.last_predialysis["dry_weight"])
618
+
619
+
620
+        this.$set(this.formValue, "dry_weight", this.last_predialysis["dry_weight"].toString())
618
         this.$set(this.formValue, "internal_fistula", this.last_predialysis["internal_fistula"])
621
         this.$set(this.formValue, "internal_fistula", this.last_predialysis["internal_fistula"])
619
         this.$set(this.formValue, "internal_fistula_skin", this.last_predialysis["internal_fistula_skin"])
622
         this.$set(this.formValue, "internal_fistula_skin", this.last_predialysis["internal_fistula_skin"])
620
         this.$set(this.formValue, "blood_access_part_id", this.last_predialysis["blood_access_part_id"])
623
         this.$set(this.formValue, "blood_access_part_id", this.last_predialysis["blood_access_part_id"])
621
         this.$set(this.formValue, "blood_access_part_opera_id", this.last_predialysis["blood_access_part_opera_id"])
624
         this.$set(this.formValue, "blood_access_part_opera_id", this.last_predialysis["blood_access_part_opera_id"])
622
       }
625
       }
626
+      console.log(this.formValue)
623
       this.hemorrhage_state = this.formValue.is_hemorrhage == 1
627
       this.hemorrhage_state = this.formValue.is_hemorrhage == 1
624
     }
628
     }
625
   };
629
   };
636
   border: none;
640
   border: none;
637
   border-bottom: 1px #e5e5e5 solid;
641
   border-bottom: 1px #e5e5e5 solid;
638
   }
642
   }
639
- 
643
+
640
 </style>
644
 </style>
641
 
645