Commit cb22d9c2 by 李伟康

Merge branch 'feature/584/lwk' into 'SAAS+V5.8.4'

Feature/584/lwk

See merge request !888
2 parents 962a1a83 d90e75c9
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<div class="block" :key="index"> <div class="block" :key="index">
<div class="item"> <div class="item">
<div class="item-label">兜底标准:</div> <div class="item-label">兜底标准:</div>
<div class="item-value">{{ metricName(item) }}</div> <div class="item-value">{{ metricName(item) }}{{guaranteeStandard(item)}}</div>
</div> </div>
<div class="item"> <div class="item">
<div class="item-label">赔付标准:</div> <div class="item-label">赔付标准:</div>
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<template v-else> <template v-else>
<template v-if="item.compensationMode == 1"> <template v-if="item.compensationMode == 1">
固定模式 固定模式
<div class="text">差距订单数每单赔付{{ item.guaranteeStandard }}元</div> <div class="text">差距订单数每单赔付{{ item.fixedCompensation }}元</div>
</template> </template>
<template v-else> <template v-else>
阶梯模式 阶梯模式
...@@ -168,6 +168,15 @@ export default { ...@@ -168,6 +168,15 @@ export default {
this.$message.error(error) this.$message.error(error)
} }
}, },
guaranteeStandard(item){
let { metricConfigs } = this
if (metricConfigs && metricConfigs.length && item.guaranteeIndex){
let type = metricConfigs.find(e => e.metricCode == item.guaranteeIndex)?.dataType,
unit = ''
if(type == 1) unit = '%'
return `${item.guaranteeStandard}${unit}`
} else return ''
},
metricName(item) { metricName(item) {
let { metricConfigs } = this let { metricConfigs } = this
if (metricConfigs && metricConfigs.length) return metricConfigs.find(e => e.metricCode == item.guaranteeIndex)?.metricName || '-' if (metricConfigs && metricConfigs.length) return metricConfigs.find(e => e.metricCode == item.guaranteeIndex)?.metricName || '-'
...@@ -178,7 +187,7 @@ export default { ...@@ -178,7 +187,7 @@ export default {
}, },
formatGuaranteeItem(i, item) { formatGuaranteeItem(i, item) {
let unit = i.unit || '' let unit = i.unit || ''
return `满足${i.startValue}${unit} &le; ${this.metricName(item)}&lt;${i.endValue}${unit}时,差距订单数每单赔付${i.compensationAmount}元` return `满足${i.startValue}${unit} &le; ${this.metricName(item)} &lt; ${i.endValue}${unit}时,差距订单数每单赔付${i.compensationAmount}元`
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!