فهرست منبع

Vitals - bmi logic update

Vijayakrishnan 4 سال پیش
والد
کامیت
b2bc443ca0
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      resources/views/app/patient/canvas-sections/vitals/form.blade.php

+ 3 - 1
resources/views/app/patient/canvas-sections/vitals/form.blade.php

@@ -140,10 +140,12 @@ $formID = rand(0, 100000);
                 computed: {
                     bmi: function () {
                         let result = '';
-                        let h = this.items.heightInches.value, w = this.items.weightPounds.value;
+                        let h = this.items.heightInches, w = this.items.weightPounds;
                         if(!h || !w) {
                             return result;
                         }
+                        h = h.value;
+                        w = w.value;
                         try {
                             h = parseFloat(h);
                             w = parseFloat(w);