|
@@ -148,27 +148,23 @@ export default {
|
|
|
let ret = []
|
|
|
let no = 0
|
|
|
listData.map((item, i) => {
|
|
|
- let rebateScopeList = item.rebateScopeList || [{ productBrandName: null, productTypeName1: null, productTypeName2: null, productTypeName3: null }]
|
|
|
- const rebateDealerList = item.rebateDealerList.find(b => b.rebateParentType == 'SUPERIORS')
|
|
|
+ const rebateScopeList = item.rebateScopeList ? this.filterData(item.rebateScopeList, queryParam) : [{ productBrandName: null, productTypeName1: null, productTypeName2: null, productTypeName3: null }]
|
|
|
+ const supDealerList = item.rebateDealerList.find(b => b.rebateParentType == 'SUPERIORS')
|
|
|
// this.checkedDealerSn.push(rebateScopeList)
|
|
|
- // 筛选条件
|
|
|
- if (item.rebateScopeList) {
|
|
|
- rebateScopeList = this.filterData(rebateScopeList, queryParam)
|
|
|
- }
|
|
|
// 组织展开数据
|
|
|
- rebateScopeList.map((a, j) => {
|
|
|
- if (j == 0) {
|
|
|
- a.rowspan = rebateScopeList.length
|
|
|
- }
|
|
|
- a.dealerUpsSn = item.dealerUpsSn
|
|
|
- a.dealerSn = item.dealerSn
|
|
|
- a.no = no + j + 1
|
|
|
- if (rebateDealerList) {
|
|
|
- a.rebateDealerList = rebateDealerList
|
|
|
- a.superDealerName = rebateDealerList.parentDealer.dealerName
|
|
|
- }
|
|
|
- a.rebateDealerList = item.rebateDealerList
|
|
|
- })
|
|
|
+ // rebateScopeList.map((a, j) => {
|
|
|
+ // if (j == 0) {
|
|
|
+ // a.rowspan = rebateScopeList.length
|
|
|
+ // }
|
|
|
+ // a.dealerUpsSn = item.dealerUpsSn
|
|
|
+ // a.dealerSn = item.dealerSn
|
|
|
+ // a.no = no + j + 1
|
|
|
+ // if (supDealerList) {
|
|
|
+ // a.supDealerList = supDealerList
|
|
|
+ // a.superDealerName = supDealerList.parentDealer.dealerName
|
|
|
+ // }
|
|
|
+ // a.rebateDealerList = item.rebateDealerList
|
|
|
+ // })
|
|
|
no = no + rebateScopeList.length
|
|
|
ret = ret.concat(rebateScopeList)
|
|
|
})
|