Sfoglia il codice sorgente

问题修复

master
huxinglu 4 anni fa
parent
commit
c9f838f48c
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. +3
    -1
      src/views/business/inspect.vue

+ 3
- 1
src/views/business/inspect.vue Vedi 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…
Annulla
Salva