123
chenjingwu
2024-04-11 3d7c6c96eb1fd9c193623b418038671f4fff6252
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);