chenrui 3 éve
szülő
commit
5622b4deac

+ 1 - 1
src/views/inventoryManagement/inventoryQuery/detailModal.vue

@@ -97,7 +97,7 @@ export default {
     stockCost () { //  库存总成本 合计
       const currentStockCost = Number(this.currentStock.currentStockCost) || 0
       const freezeStockCost = Number(this.currentStock.freezeStockCost) || 0
-      return (currentStockCost * 1000 + freezeStockCost * 1000) / 1000
+      return ((currentStockCost * 1000 + freezeStockCost * 1000) / 1000).toFixed(2)
     }
   },
   methods: {

+ 2 - 2
src/views/inventoryManagement/inventoryQuery/list.vue

@@ -95,7 +95,7 @@
         <span v-if="record.freezeQty">(冻结{{ record.freezeQty }})</span>
       </template>
       <template slot="currentStockCost" slot-scope="text, record">
-        {{ (Number(record.currentStockCost)*1000 + Number(record.freezeCost)*1000)/1000 || 0 }}
+        {{ ((Number(record.currentStockCost)*1000 + Number(record.freezeCost)*1000)/1000).toFixed(2) || 0 }}
       </template>
       <!-- 操作 -->
       <template slot="action" slot-scope="text, record">
@@ -200,7 +200,7 @@ export default {
     stockCost () { //  库存总成本 合计
       const currentStockCost = this.currentStock && this.currentStock.currentStockCost ? Number(this.currentStock.currentStockCost) : 0
       const freezeCost = this.currentStock && this.currentStock.freezeCost ? Number(this.currentStock.freezeCost) : 0
-      return (currentStockCost * 100 + freezeCost * 100) / 100
+      return ((currentStockCost * 1000 + freezeCost * 1000) / 1000).toFixed(2)
     }
   },
   methods: {