浏览代码

成本分配表-短出货值-两位小数

jbb 2 年之前
父节点
当前提交
42dd880eee
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/views/reportForms/cost-allocation-table.vue

+ 1 - 1
src/views/reportForms/cost-allocation-table.vue

@@ -434,7 +434,7 @@ export default {
        val.map(item=>{
          average += item.exportUnitPrice
        })
-       this.detailsPlanNum.shortvalue = this.detailsPlanNum.shortseveral*average
+       this.detailsPlanNum.shortvalue = Number(this.detailsPlanNum.shortseveral*average).toFixed(2)
 
        var shipQuantityAll =0,
         exportUnitPriceALll = 0,