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