增加网格员评价

This commit is contained in:
TS-QD1 2023-07-12 09:42:33 +08:00
parent 1a6b33da4a
commit 79dfb00c47

View File

@ -613,6 +613,17 @@ export default {
return vueSelf.computeAE(row); return vueSelf.computeAE(row);
} }
}, },
{
align: 'center',
title: '评级',
key: 'AH',
keyName: 'evaluation',
fixed: 'right',
width: 100,
render(row, index) {
return vueSelf.computeAH(row);
}
},
{ {
align: 'center', align: 'center',
title: '应发绩效工资', title: '应发绩效工资',
@ -621,8 +632,7 @@ export default {
fixed: 'right', fixed: 'right',
width: 100, width: 100,
render(row, index) { render(row, index) {
return h('a', { return vueSelf.computeAF(row);
}, row.AF * row.gridCount)
} }
}, },
{ {
@ -633,7 +643,7 @@ export default {
fixed: 'right', fixed: 'right',
width: 100, width: 100,
render(row, index) { render(row, index) {
return (vueSelf.computeAE(row) * (row.AF * row.gridCount) / 100).toFixed(2); return (vueSelf.computeAE(row) * vueSelf.computeAF(row) / 100).toFixed(2);
} }
} }
], ],
@ -909,6 +919,28 @@ export default {
result = Math.min(result, 100); result = Math.min(result, 100);
return result < 0 ? 0 : result.toFixed(2); return result < 0 ? 0 : result.toFixed(2);
}, },
computeAF(row) {
let score = this.computeAE(row);
if(score <= 100 && score >= 85) {
return 500 * row.gridCount;
} else if(score >= 75) {
return 333 * row.gridCount;
} else if(score >= 60) {
return 333 * row.gridCount;
}
return 0
},
computeAH(row) {
let score = this.computeAE(row);
if(score <= 100 && score >= 85) {
return '优';
} else if(score >= 75) {
return '良';
} else if(score >= 60) {
return '一般';
}
return '差';
},
onSearchClick() { onSearchClick() {
this.listData(); this.listData();
}, },
@ -917,7 +949,9 @@ export default {
let tableDatas = []; let tableDatas = [];
vueSelf.table.data.forEach(item => { vueSelf.table.data.forEach(item => {
item.AE = vueSelf.computeAE(item); item.AE = vueSelf.computeAE(item);
item.AF = vueSelf.computeAF(item);
item.AG = (item.AE * item.AF / 100).toFixed(2); item.AG = (item.AE * item.AF / 100).toFixed(2);
item.AH = vueSelf.computeAH(item);
tableDatas.push({...item}); tableDatas.push({...item});
}) })
vueSelf.dialog.warning({ vueSelf.dialog.warning({