From 3e13c5ebd0f27f18170078a56fb700e034b7d1ae Mon Sep 17 00:00:00 2001
From: chenjingwu <chenjingwu@prec-tech.com>
Date: 星期四, 11 四月 2024 14:15:15 +0800
Subject: [PATCH] 1
---
force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js b/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
index d7fd268..68e96d0 100644
--- a/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
+++ b/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
@@ -1775,8 +1775,11 @@
this.jzDataToBeproduct=quoteLineItem;
// cjw
var idList = [];
+ console.log('123');
+ console.log(reslut);
+ console.log(this.jzDataToBeproduct);
this.jzDataToBeproduct.forEach(item=>{
- idList.push(item.pageObject.PricebookEntry.Product2Id);
+ idList.push(item.pageObject.Id__c);
});
addOptions({idList: idList}).then(result=>{
this.addOptionsLogic(result);
@@ -1831,7 +1834,7 @@
// cjw
var idList = [];
this.jzDataToBeproduct.forEach(item=>{
- idList.push(item.pageObject.PricebookEntry.Product2Id);
+ idList.push(item.pageObject.Id__c);
});
addOptions({idList: idList}).then(result=>{
this.addOptionsLogic(result);
@@ -1885,7 +1888,7 @@
var idList = [];
// cjw
this.jzDataToBeproduct.forEach(item=>{
- idList.push(item.pageObject.PricebookEntry.Product2Id);
+ idList.push(item.pageObject.Id__c);
});
addOptions({idList: idList}).then(result=>{
this.addOptionsLogic(result);
@@ -1912,7 +1915,7 @@
});
this.jzDataToBeproduct.forEach(item=>{
if(result){
- item.Learning_CommunityOptions = Setmap.get(item.pageObject.PricebookEntry.Product2Id);
+ item.Learning_CommunityOptions = Setmap.get(item.pageObject.Id__c);
}
});
}
--
Gitblit v1.9.1