浏览代码

%小数处理

1 年之前
父节点
当前提交
679bc048ab
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/views/GATHER/index.vue

+ 1 - 1
src/views/GATHER/index.vue

@@ -1288,7 +1288,7 @@ export default {
         //深拷贝,而不是拷贝地址
         this.form = JSON.parse(JSON.stringify(response.data));
         this.form.feeLists.forEach((item) => {
-          if(item.funit == "%"){
+          if(item.funit == "%" && item.collCalue){
             item.collCalue = item.collCalue.toFixed(2);
           }
         })