|
@@ -68,7 +68,7 @@ export default {
|
|
|
const colors = { 'ASSIGN': '#00aaff', 'SUPERIORS': '#ff0000', 'HEAD': '#55aa7f' }
|
|
|
if (data) {
|
|
|
return (
|
|
|
- data.sort((a, b) => b.rebateParentType.localeCompare(a.rebateParentType)).map(item => {
|
|
|
+ data.map(item => {
|
|
|
return (
|
|
|
<a-tag style="margin:5px;" color={colors[item.rebateParentType]}>{item.parentDealer.dealerName}({Number(item.allotRate * 100).toFixed(2) + '%'})</a-tag>
|
|
|
)
|
|
@@ -160,7 +160,7 @@ export default {
|
|
|
rebateScopeList[j].no = no + j + 1
|
|
|
if (j == 0) {
|
|
|
rebateScopeList[j].rowspan = rebateScopeList.length
|
|
|
- rebateScopeList[j].rebateDealerList = item.rebateDealerList
|
|
|
+ rebateScopeList[j].rebateDealerList = item.rebateDealerList.sort((a, b) => b.rebateParentType.localeCompare(a.rebateParentType))
|
|
|
}
|
|
|
rebateScopeList[j].dealerUpsSn = item.dealerUpsSn
|
|
|
rebateScopeList[j].dealerSn = item.dealerSn
|