浏览代码

问题修复

master
huxinglu 4 年前
父节点
当前提交
c9f838f48c
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      src/views/business/inspect.vue

+ 3
- 1
src/views/business/inspect.vue 查看文件

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

正在加载...
取消
保存