Explorar o código

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

jbb %!s(int64=2) %!d(string=hai) anos
pai
achega
42dd880eee
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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,