test_user 2 years ago
parent
commit
55626163b6
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/xt_pages/outpatientTool/components/detail.vue

+ 5 - 1
src/xt_pages/outpatientTool/components/detail.vue View File

@@ -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