cmp
<aura:component
implements="lightning:actionOverride,flexipage:availableforallpagetypes,force:apphostable,force:lightningQuickAction,lightning:isUrlAddressable,force:hasRecordId"
access="global" controller="NewCustomerVisitPlanController">
<c:lax context="{!this}"/>
<aura:attribute name="visitDate" type="Date"/>
<aura:attribute name="visitType" type="String"/>
<aura:attribute name="visitDetail" type="String"/>
<aura:attribute name="visitPurpose" type="String"/>
<aura:attribute name="selectedCustomerTableData" type="Object"/>
<aura:attribute name="selectedCustomerId" type="List"/>
<aura:attribute name="dateMin" type="String"/>
<aura:attribute name="recordId" type="String"/>
<aura:attribute name="isLoading" type="Boolean" default="false"/>
<aura:handler name="init" value="{! this }" action="{! c.onInit }"/>
<div class="slds-modal__container">
<header class="slds-modal__header">
<h2 id="modal-heading-01" class="slds-modal__title slds-hyphenate">{!$Label.c.CUSTOMER_VISIT_Create_New_Customer_Visit}</h2>
</header>
<div class="slds-modal__content slds-p-arou