Ver código fonte

问题修复

master
huxinglu 4 anos atrás
pai
commit
c9f838f48c
1 arquivos alterados com 3 adições e 1 exclusões
  1. +3
    -1
      src/views/business/inspect.vue

+ 3
- 1
src/views/business/inspect.vue Ver arquivo

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

Carregando…
Cancelar
Salvar