Browse Source

森语-质量事故单-总金额小数位

jbb 2 years ago
parent
commit
60ea8df938
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/activiti/form/demoForm2.vue

+ 1 - 1
src/views/activiti/form/demoForm2.vue

@@ -1196,7 +1196,7 @@ export default {
                         all+= Number(item.accident_sum)
                         PlanNum.push(item.plan_number)
                     })
-                    formData.total_money = all
+                    formData.total_money = Number(all).toFixed(2)
                     formData.plan_number = PlanNum.toString()
                     sonTable.every(item=>{
                         if(item.accident_type=='不涉及金额' && item.accident_sum !=='0'){