test_user vor 2 Jahren
Ursprung
Commit
55626163b6
1 geänderte Dateien mit 5 neuen und 1 gelöschten Zeilen
  1. 5 1
      src/xt_pages/outpatientTool/components/detail.vue

+ 5 - 1
src/xt_pages/outpatientTool/components/detail.vue Datei anzeigen

@@ -389,7 +389,11 @@
389 389
                   // new_name = new_name.replace('( ', '')
390 390
                   // new_name = new_name.replace(' )', '')
391 391
                   if (new_name.length != 0) {
392
-                    total = parseFloat(total) + parseFloat((parseFloat(tempPatientsTwo[i].new_order_info[b].count.toString()) * parseFloat(tempPatientsTwo[i].new_order_info[b].price.toString().toString())).toFixed(2))
392
+                    console.log(tempPatientsTwo[i].new_order_info[b].count)
393
+                    console.log(tempPatientsTwo[i].new_order_info[b].price)
394
+                    console.log(parseFloat(tempPatientsTwo[i].new_order_info[b].count) * parseFloat(tempPatientsTwo[i].new_order_info[b].price))
395
+                    console.log(total)
396
+                    total = total + parseFloat(tempPatientsTwo[i].new_order_info[b].count) * parseFloat(tempPatientsTwo[i].new_order_info[b].price.toFixed(2))
393 397
                   }
394 398
 
395 399