| | |
| | | } |
| | | } |
| | | function SetProductId(lineno,selectv){ |
| | | //fy DB202312538864 2024.02.02 start |
| | | // var Product2 = {}; |
| | | // var PricebookEntry = {Product2:Product2}; |
| | | // var pageObject = {}; |
| | | // var addobj = {PricebookEntry:PricebookEntry, |
| | | // latestInfo:latestInfo, |
| | | // pageObject:pageObject}; |
| | | // var attributes1 = {type: "PricebookEntry"}; |
| | | // var attributes2 = {type: "Product2"}; |
| | | // var attributes3 = {type: "QuoteLineItem"}; |
| | | var Product2 = {}; |
| | | var PricebookEntry = {Product2:Product2}; |
| | | var latestInfo = {}; |
| | | var pageObject = {}; |
| | | var addobj = {PricebookEntry:PricebookEntry, |
| | | latestInfo:latestInfo, |
| | | var pageObject = {PricebookEntry:PricebookEntry,PricebookEntryId:''}; |
| | | var addobj = {latestInfo:latestInfo, |
| | | pageObject:pageObject}; |
| | | //fy DB202312538864 2024.02.02 end |
| | | var Asset_Model_No__c = selectv.Product2.Asset_Model_No__c; |
| | | var Product2Id = selectv.Product2Id; |
| | | var SFDA_Status__c = selectv.Product2.SFDA_Status__c |
| | |
| | | var Intra_Trade_Service_USD = selectv.Product2.NoDiscount_Foreign__c; |
| | | var Maintenance_Price_Year_USD = selectv.Product2.Repair_Contract_USD__c; |
| | | // chenijngwu 20240319 SP主机 start |
| | | addobj.PricebookEntry.Product2.ProductCategory__c = selectv.Product2.ProductCategory__c; |
| | | if(addobj.PricebookEntry.Product2.ProductCategory__c == 'SP主机'){ |
| | | addobj.pageObject.PricebookEntry.Product2.ProductCategory__c = selectv.Product2.ProductCategory__c; |
| | | if(addobj.pageObject.PricebookEntry.Product2.ProductCategory__c == 'SP主机'){ |
| | | addobj.SPAssistantFlag = true; |
| | | } |
| | | // chenijngwu 20240319 SP主机 end |
| | |
| | | console.warn(JSON.stringify(quoteLineItem)); |
| | | quoteLineItem.forEach(quotltiem=>{ |
| | | // chenjingwu 20240411 start |
| | | if(quotltiem.PricebookEntry === undefined){ |
| | | quotltiem.PricebookEntry = {Product2:{}}; |
| | | }else{ |
| | | if(quotltiem.PricebookEntry.Product2 === undefined){ |
| | | quotltiem.PricebookEntry.Product2 = {}; |
| | | } |
| | | } |
| | | if(quotltiem.ProductCategory !== undefined && quotltiem.ProductCategory !== null){ |
| | | quotltiem.PricebookEntry.Product2.ProductCategory__c = quotltiem.ProductCategory; |
| | | } |