123
chenjingwu
2024-04-11 61d3da83d22c63d9ae7d434e3fdf023d5915f566
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
        
    ],
@@ -2196,8 +2212,18 @@
                // jzdtbt.UnitPrice_Page__c = toNumComma(datavaue.UnitPrice_Page__c);
                jzdtbt.UnitPrice_Page__c = datavaue.UnitPrice_Page__c;
            }
            console.log("saf");
            console.log(jzdtbt);
            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);