Преглед изворни кода

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

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,