Commit 0b14d1c4 by zhangquan

价格错误

1 parent 591f7c07
......@@ -76,10 +76,14 @@
</div>
</template>
<div class="footer-btn">
<el-button @click="jumpListPage">取消</el-button>
<el-button type="primary" @click="firstPage = true">上一步</el-button>
<el-button type="primary" @click="nextStep">下一步</el-button>
<el-button type="primary" @click="commit">提交</el-button>
<template v-if="firstPage">
<el-button @click="jumpListPage">取消</el-button>
<el-button type="primary" @click="nextStep">下一步</el-button>
</template>
<template v-else>
<el-button type="primary" @click="firstPage = true">上一步</el-button>
<el-button type="primary" @click="commit">提交</el-button>
</template>
</div>
</div>
</template>
......@@ -296,11 +300,11 @@ export default {
let {priceGrade, priceCoefficient, minPrice, maxPrice} = ele
salePeriodData.forEach(element => {
let {id, servicePeriod, standardSalesCost, standardShelfCost} = element
minPrice = NP.times(minPrice || 0, 100)
maxPrice = NP.times(maxPrice || 0, 100)
let min_price = NP.times(minPrice || 0, 100)
let max_price = NP.times(maxPrice || 0, 100)
standardSalesCost = NP.times(standardSalesCost || 0, 100)
standardShelfCost = NP.times(standardShelfCost || 0, 100)
_gradeConfigList.push({id, priceGrade, priceCoefficient, minPrice , maxPrice, servicePeriod, standardSalesCost, standardShelfCost})
_gradeConfigList.push({id, priceGrade, priceCoefficient, minPrice: min_price , maxPrice: max_price, servicePeriod, standardSalesCost, standardShelfCost})
})
})
let _gradeObj = {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!