Browse Source

成本分配表-余下数量的成本-保留两位小数

jbb 2 years ago
parent
commit
0d1905cc41
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/views/reportForms/cost-allocation-table.vue

+ 5 - 0
src/views/reportForms/cost-allocation-table.vue

@@ -366,6 +366,11 @@ export default {
             // 页面打开加载的数据
             var oneData = this.$refs.unitTabs.tabsAllData[0]
             this.$refs.unitTabs.fabData = oneData.syCostAllocationFabricList
+            this.$refs.unitTabs.fabData.map(item=>{
+              if(item.remainingQuantitycost!=='' && item.remainingQuantitycost){
+                item.remainingQuantitycost = item.remainingQuantitycost.toFixed(2)
+              }
+            })
             this.$refs.unitTabs.ingData = oneData.syCostAllocationIngredientList
             this.$refs.unitTabs.shipData = oneData.syCostAllocationShipdetail
             this.calculation(oneData.syCostAllocationShipdetail)