Browse Source

问题修复

master
huxinglu 4 years ago
parent
commit
c9f838f48c
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/views/business/inspect.vue

+ 3
- 1
src/views/business/inspect.vue View File

@@ -417,7 +417,9 @@
let ruleForm = JSON.parse(JSON.stringify(this.ruleForm))
ruleForm.inspectLength=0
this.dataList.map(item=>{
ruleForm.inspectLength = ruleForm.inspectLength + parseFloat(item.length)
if(item.length){
ruleForm.inspectLength = ruleForm.inspectLength + parseFloat(item.length)
}
})
ruleForm.inspectLength = parseFloat(Number(ruleForm.inspectLength).toFixed(4))
this.ruleForm = Object.assign({}, ruleForm)

Loading…
Cancel
Save