test_user 2 年之前
父節點
當前提交
55626163b6
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      src/xt_pages/outpatientTool/components/detail.vue

+ 5 - 1
src/xt_pages/outpatientTool/components/detail.vue 查看文件

389
                   // new_name = new_name.replace('( ', '')
389
                   // new_name = new_name.replace('( ', '')
390
                   // new_name = new_name.replace(' )', '')
390
                   // new_name = new_name.replace(' )', '')
391
                   if (new_name.length != 0) {
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