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)

Loading…
Отказ
Запис