Commit aabeaabb by 李伟康

测试跳转

1 parent 82aa2975
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
></el-input> ></el-input>
</template> </template>
<template v-else> <template v-else>
{{scope.scope.buyValue || '-'}} {{scope.scope.cashBackValue || '-'}}
</template> </template>
</template> </template>
<template <template
...@@ -326,7 +326,7 @@ export default { ...@@ -326,7 +326,7 @@ export default {
const { passageService } = cell, const { passageService } = cell,
{ passageServiceCharge } = chargeObject, { passageServiceCharge } = chargeObject,
passageSum = passageService.reduce((acc, cur) => acc + cur, 0), passageSum = passageService.reduce((acc, cur) => acc + cur, 0),
sum = NP.times(passageSum, passageServiceCharge).toFixed(2) sum = NP.times(passageSum, NP.divide(passageServiceCharge, 100)).toFixed(2)
return `${passageSum}*${passageServiceCharge}%=${sum}` return `${passageSum}*${passageServiceCharge}%=${sum}`
} }
}, },
...@@ -337,7 +337,7 @@ export default { ...@@ -337,7 +337,7 @@ export default {
const { gasService } = cell, const { gasService } = cell,
{ gasCardServiceCharge } = chargeObject, { gasCardServiceCharge } = chargeObject,
gasCardSum = gasService.reduce((acc, cur) => acc + cur, 0), gasCardSum = gasService.reduce((acc, cur) => acc + cur, 0),
sum = NP.times(gasCardSum, gasCardServiceCharge).toFixed(2) sum = NP.times(gasCardSum, NP.divide(gasCardServiceCharge, 100)).toFixed(2)
return `${gasCardSum}*${gasCardServiceCharge}%=${sum}` return `${gasCardSum}*${gasCardServiceCharge}%=${sum}`
} }
}, },
...@@ -347,8 +347,8 @@ export default { ...@@ -347,8 +347,8 @@ export default {
formatter: (cell) => { formatter: (cell) => {
const { total, gasService, passageService } = cell, const { total, gasService, passageService } = cell,
{ gasCardServiceCharge, passageServiceCharge } = chargeObject, { gasCardServiceCharge, passageServiceCharge } = chargeObject,
gasPrice = NP.times(gasService.reduce((acc, cur) => acc + cur, 0), gasCardServiceCharge), gasPrice = NP.times(gasService.reduce((acc, cur) => acc + cur, 0), NP.divide(gasCardServiceCharge, 100)),
passagePrice = NP.times(passageService.reduce((acc, cur) => acc + cur, 0), passageServiceCharge), passagePrice = NP.times(passageService.reduce((acc, cur) => acc + cur, 0), NP.divide(passageServiceCharge, 100)),
totalPrice = total.reduce((acc, cur) => acc + cur, 0) totalPrice = total.reduce((acc, cur) => acc + cur, 0)
return NP.plus(gasPrice, passagePrice, totalPrice).toFixed(2) return NP.plus(gasPrice, passagePrice, totalPrice).toFixed(2)
...@@ -592,9 +592,8 @@ export default { ...@@ -592,9 +592,8 @@ export default {
if (res) { if (res) {
this.totalFormData.map(e => { this.totalFormData.map(e => {
if (['gasCardServiceCharge', 'passageServiceCharge'].includes(e.name)) { if (['gasCardServiceCharge', 'passageServiceCharge'].includes(e.name)) {
const val = NP.divide(res[e.name] || 0, 100) e.label = e.label.replace(/\d+/g, res[e.name] || 0)
e.label = e.label.replace(/\d+/g, val) chargeObject[e.name] = res[e.name] || 0
chargeObject[e.name] = val
} }
}) })
this.updateView() this.updateView()
......
...@@ -214,7 +214,8 @@ export default { ...@@ -214,7 +214,8 @@ export default {
}[row.useType] }[row.useType]
}, },
addCoupon () { addCoupon () {
util.openTab('/tools/couponManage/index') // util.openTab('/tools/couponManage/index')
window.open('/tools/couponManage/index')
}, },
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!