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