| | |
| | | key2.forEach(item=>{ |
| | | priceMap.set(item,map2[item]); |
| | | }); |
| | | console.log('loh'); |
| | | console.log(this.jzDataToBeproduct); |
| | | this.jzDataToBeproduct.forEach(item=>{ |
| | | if(result){ |
| | | item.Learning_CommunityOptions = optionMap.get(item.pageObject.Id__c); |
| | | item.multiYearWarrantyList = priceMap.get(item.pageObject.Id__c); |
| | | if(item.Learning_Community){ |
| | | item.multiYearWarrantyList.forEach(it=>{ |
| | | if('' + (it.AgeLimit__c) == item.Learning_Community){ |
| | | item.exPrice = it.MultiOneYearWarrantyPrice__c; |
| | | } |
| | | }); |
| | | if(item.exPrice == null || item.exPrice == '' || item.exPrice == undefined){ |
| | | item.exPrice = 0; |
| | | } |
| | | } |
| | | } |
| | | }); |
| | | console.log(this.jzDataToBeproduct); |
| | | } |
| | | // cjw |
| | | //新增报价产品模态框取消按钮 |