Commit fdfca2b0 by zhangxw

绩效配置示例说明文案修改

1 parent 7e31e563
...@@ -17,11 +17,11 @@ export default { ...@@ -17,11 +17,11 @@ export default {
tableParams: { tableParams: {
tableColumns: [ tableColumns: [
{ {
label: '区间开始值', label: '区间开始值/元',
prop: 'startValue' prop: 'startValue'
}, },
{ {
label: '区间结束值', label: '区间结束值/元',
prop: 'endValue' prop: 'endValue'
}, },
{ {
...@@ -81,40 +81,46 @@ export default { ...@@ -81,40 +81,46 @@ export default {
}, },
watch: { watch: {
diffExplain(newVal) { diffExplain(newVal) {
if (newVal == 'customerUnitBonus') { // 高客单 this.tableParams.tableColumns[0].label = '区间开始值/元'
this.tableData = [ this.tableParams.tableColumns[1].label = '区间结束值/元'
{ startValue: 0, endValue: 2000, calculateValue: 0 }, this.tableParams.tableColumns[2].label = '提成比例/%'
{ startValue: 2000.01, endValue: '--', calculateValue: 100 } switch (newVal) {
] case 'customerUnitBonus':
} else if (newVal == 'upgradeRateBonus') { // 成交率 this.tableData = [
this.tableData = [ { startValue: 0, endValue: 2000, calculateValue: 0 },
{ startValue: 0, endValue: '45%', calculateValue: '5%' }, { startValue: 2000.01, endValue: '--', calculateValue: 100 }
{ startValue: '45.01%', endValue: '--', calculateValue: '10%' } ]
] this.tableParams.tableColumns[2].label = '奖励金额/元'
} else if (newVal == 'averagePriceBonus') { // 均客单 break
this.tableData = [ case 'upgradeRateBonus':
{ startValue: 0, endValue: 2000, calculateValue: '10%' }, this.tableData = [
{ startValue: 2000.01, endValue: '--', calculateValue: '20%' } { startValue: 0, endValue: '45%', calculateValue: '5%' },
] { startValue: '45.01%', endValue: '--', calculateValue: '10%' }
} else if (newVal == 'outputBonus') { // 高产值 ]
this.tableData = [ this.tableParams.tableColumns[0].label = '区间开始值/%'
{ startValue: 0, endValue: 20000, calculateValue: '5%' }, this.tableParams.tableColumns[1].label = '区间结束值/%'
{ startValue: 20000.01, endValue: '--', calculateValue: '10%' } break
] case 'averagePriceBonus':
} else { // 导师附加提成 this.tableData = [
this.tableData = [ { startValue: 0, endValue: 2000, calculateValue: '10%' },
{ startValue: 0, endValue: 3, calculateValue: '20%' }, { startValue: 2000.01, endValue: '--', calculateValue: '20%' }
{ startValue: 4, endValue: 6, calculateValue: '10%' } ]
] break
} case 'outputBonus':
if (newVal == 'customerUnitBonus') { // 高客单奖励 this.tableData = [
this.tableParams.tableColumns[2].label = '奖励金额/元' { startValue: 0, endValue: 20000, calculateValue: '5%' },
} else if (newVal = 'montorAdditionalBonus') { // 导师附加提成 { startValue: 20000.01, endValue: '--', calculateValue: '10%' }
this.tableParams.tableColumns[0].label = '区间开始值/月(含当月)' ]
this.tableParams.tableColumns[1].label = '区间结束值/月' break
this.tableParams.tableColumns[2].label = '提成比例' case 'montorAdditionalBonus':
} else { this.tableData = [
this.tableParams.tableColumns[2].label = '提成比例' { startValue: 0, endValue: 3, calculateValue: '20%' },
{ startValue: 4, endValue: 6, calculateValue: '10%' }
]
this.tableParams.tableColumns[0].label = '区间开始值/月(含当月)'
this.tableParams.tableColumns[1].label = '区间结束值/月'
this.tableParams.tableColumns[2].label = '提成比例/%'
break
} }
} }
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!