From 3d7c6c96eb1fd9c193623b418038671f4fff6252 Mon Sep 17 00:00:00 2001
From: chenjingwu <chenjingwu@prec-tech.com>
Date: 星期四, 11 四月 2024 16:58:11 +0800
Subject: [PATCH] 123
---
force-app/main/default/lwc/lexNewQuoteEntry/lexNexQuoteEntryUtil.js | 26 +++++++++++++++++++++++++-
1 files changed, 25 insertions(+), 1 deletions(-)
diff --git a/force-app/main/default/lwc/lexNewQuoteEntry/lexNexQuoteEntryUtil.js b/force-app/main/default/lwc/lexNewQuoteEntry/lexNexQuoteEntryUtil.js
index bac488e..99868fb 100644
--- a/force-app/main/default/lwc/lexNewQuoteEntry/lexNexQuoteEntryUtil.js
+++ b/force-app/main/default/lwc/lexNewQuoteEntry/lexNexQuoteEntryUtil.js
@@ -207,6 +207,22 @@
},
// chenjingwu 3+2澶氬勾淇濅慨 20240318 start
{
+ label: '寤朵繚閲戦',
+ fieldName: 'exPrice',
+ // editable: true,
+ cellAttributes: {
+ class: {},
+ alignment: 'right',
+ },
+ type: 'number',
+ typeAttributes: {
+ minimumFractionDigits: '2',
+ maximumFractionDigits: '2'
+ },
+ hideDefaultActions: true,
+ initialWidth: 150
+ },
+ {
label: '寤朵繚骞撮檺',
fieldName: 'Learning_Community',
type: 'picklistColumn',
@@ -218,7 +234,7 @@
},
hideDefaultActions: true,
initialWidth: 300
- },
+ }
// chenjingwu 3+2澶氬勾淇濅慨 20240318 end
],
@@ -2198,6 +2214,14 @@
}
if(datavaue.Learning_Community){
jzdtbt.Learning_Community = datavaue.Learning_Community;
+ jzdtbt.multiYearWarrantyList.forEach(item=>{
+ if('' + (item.AgeLimit__c) == jzdtbt.Learning_Community){
+ jzdtbt.exPrice = item.MultiOneYearWarrantyPrice__c;
+ }
+ });
+ if(jzdtbt.exPrice == null || jzdtbt.exPrice == '' || jzdtbt.exPrice == undefined){
+ jzdtbt.exPrice = 0;
+ }
}
x = localParseInt(jzdtbt.Quantity__c);
y = localParseFloat(jzdtbt.UnitPrice_Page__c);
--
Gitblit v1.9.1