1
chenjingwu
2024-05-24 bdb1a98b64a2cf59bcfd575c579aa0742e0de954
force-app/main/default/aura/taskManage/taskManage.cmp
@@ -1,7 +1,7 @@
<aura:component implements="force:appHostable,lightning:isUrlAddressable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,force:lightningQuickAction,forceCommunity:availableForAllPageTypes"
controller="taskManageController" >
        <aura:attribute name="opportunity_cfilter" type="String" default="" />
        <ltng:require styles="{!$Resource.lwcCSS}" />
    <aura:attribute name="selectedData" type="Object[]" />
    <aura:attribute name="data" type="Object[]" />
    <aura:attribute name="dataCopy" type="Object[]" />
@@ -94,21 +94,22 @@
    <aura:attribute name="isSelectOtherCancel" type="boolean" default="false"/>
    <aura:attribute name="isSelectOtherDelay" type="boolean" default="false"/>
    <!--2021-11-11  mzy  任务管理改善   end-->
    <aura:attribute name="estimatedFinishDate" type="Date" />
    <aura:handler name="init" value="{! this }" action="{! c.init }"/>
    <div>
        <lightning:spinner aura:id="mySpinner" size="large" class="slds-hide"/>
    </div>
    <div   style="margin-top:20px;   ">
            <lightning:spinner aura:id="mySpinner" size="large" class="slds-hide spinner-overlay"/>
        <lightning:accordion
                             allowMultipleSectionsOpen="true"
                             activeSectionName="{! v.activeSections }"
                             >
            <lightning:accordionSection name="A" label="自己的任务">
                <div class="c-container">
                    <lightning:layout multipleRows="true">
                <div class="c-container" style="width:1150px">
                    <lightning:layout multipleRows="true" >
                        
                        <lightning:layoutItem size="12" smallDeviceSize="6" mediumDeviceSize="4" largeDeviceSize="3" padding="horizontal_small">
                            <p class="slds-p-horizontal_small">
@@ -141,9 +142,10 @@
                        <lightning:layoutItem size="12" smallDeviceSize="6" mediumDeviceSize="4" largeDeviceSize="3" padding="horizontal_small">
                            <p class="slds-p-horizontal_small">
                                客户:
                                 <c:strike_lookup label="客户:"
                            <p class="slds-p-horizontal_small no-wrap" style="white-space: nowrap;">
                                <label style="padding-top: 9px;color: #747474; ">客户</label>
                                <div style="width: 200px;float: right;padding-top: 4px;">
                                    <c:strike_lookup label="客户:"
                                    object="Account"
                                    searchField="Name"
                                    placeholder="搜索客户..."
@@ -156,9 +158,10 @@
                                    allowNewRecords = "false"
                                    overrideNewEvent = "true"
                                    showRecentRecords ="true"
                                    value="{!v.myTempTask.account__c}"
                                    value="{!v.myTempTask.account__c}"
                                    subTitleFormat="{0}+{1}"/>
                                </div>
                            </p>
                        </lightning:layoutItem>
@@ -194,9 +197,12 @@
                        <lightning:layoutItem size="12" smallDeviceSize="6" mediumDeviceSize="4" largeDeviceSize="3" padding="horizontal_small">
                            <p class="slds-p-horizontal_small">
                                <lightning:button label="确认" iconName="utility:search"
                                iconPosition="left"
                                onclick="{! c.myTaskSearch }" />
                                <div style="float: right;">
                                    <lightning:button label="确认" iconName="utility:search"
                                    iconPosition="left"
                                    onclick="{! c.myTaskSearch }" />
                                </div>
                            </p>
                        </lightning:layoutItem>
@@ -221,7 +227,7 @@
                </div>
            </lightning:accordionSection>
            <lightning:accordionSection name="B" label="下属的任务">
                <div class="c-container">
                <div class="c-container" style="width: 1150px;">
                    <lightning:layout multipleRows="true">
                        <lightning:layoutItem size="12" smallDeviceSize="6" mediumDeviceSize="4" largeDeviceSize="3" padding="horizontal_small">
@@ -256,8 +262,9 @@
                        <lightning:layoutItem size="12" smallDeviceSize="6" mediumDeviceSize="4" largeDeviceSize="3" padding="horizontal_small">
                            <p class="slds-p-horizontal_small">
                                客户:
                               <c:strike_lookup label="客户:"
                                <label style="padding-top: 9px;color: #747474;">客户</label>
                                <div  style="width: 200px;float: right;padding-top: 4px;">
                                    <c:strike_lookup label="客户:"
                                    object="Account"
                                    searchField="Name"
                                    placeholder="搜索客户..."
@@ -272,6 +279,8 @@
                                    showRecentRecords ="true"
                                    value="{!v.subTempTask.account__c}"
                                    subTitleFormat="{0}+{1}"/>
                                </div>
                            </p>
                        </lightning:layoutItem>
                        <!--2021-09-28  mzy 任务管理改善 start-->
@@ -343,32 +352,44 @@
            </lightning:accordionSection>
            <div class="slds-modal slds-fade-in-open slds-hide" aura:id="successDiv">
                <ui:inputText aura:id="articleURL"/>
                <!-- <ui:inputText aura:id="articleURL"/> -->
                <div class="demo-only" style="height: 8rem;">
                    <div class="slds-notify_container slds-is-relative">
                        <div class="slds-notify slds-notify_toast slds-theme_success" role="alert">
                            <div class=" slds-m-left_xx-large">
                                <div class="slds-notify__content slds-m-left_small slds-align_absolute-center slds-m-left_xx-large">
                            <div>
                                <div class="slds-notify__content  slds-align_absolute-center ">
                                    <lightning:icon alternativeText="Success" iconName="utility:success" size="small"
                                                    class="buttonColor slds-m-right_small" />
                                                    class="buttonColor slds-m-right_small"  variant="inverse"/>
                                    <h2 class="slds-text-heading_small ">{!v.successMessage}</h2>
                                </div>
                                <div class="slds-notify__close">
                                    <button class="slds-button slds-button_icon slds-button_icon-inverse" title="Close" onclick="{! c.closeMessage }">
                                        <lightning:icon alternativeText="close" iconName="utility:close" size="small" variant="inverse"/>
                                      <span class="slds-assistive-text">Close</span>
                                    </button>
                                  </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="slds-modal slds-fade-in-open slds-hide" aura:id="errorDiv" style="z-index: 10001">
                <ui:inputText aura:id="articleURL"/>
                <!-- <ui:inputText aura:id="articleURL"/> -->
                <div class="demo-only" style="height: 8rem;">
                    <div class="slds-notify_container slds-is-relative">
                        <div class="slds-notify slds-notify_toast slds-theme_error" role="status">
                            <div class=" slds-m-left_xx-large">
                                <div class="slds-notify__content slds-m-left_small slds-align_absolute-center slds-m-left_xx-large">
                        <div class="slds-notify slds-notify_toast slds-theme_error" style="background-color: #ba0517 !important;" role="status">
                            <div >
                                <div class="slds-notify__content  slds-align_absolute-center ">
                                    <lightning:icon alternativeText="error" iconName="utility:error" size="small"
                                                    class="buttonColor slds-m-right_small" />
                                                    class="buttonColor slds-m-right_small" variant="inverse"/>
                                    <h2 class="slds-text-heading_small ">{!v.errorMessage}</h2>
                                </div>
                                <div class="slds-notify__close">
                                    <button class="slds-button slds-button_icon slds-button_icon-inverse" title="Close" onclick="{! c.closeMessage }">
                                        <lightning:icon alternativeText="close" iconName="utility:close" size="small" variant="inverse"/>
                                      <span class="slds-assistive-text">Close</span>
                                    </button>
                                  </div>
                            </div>
                        </div>
                    </div>
@@ -410,6 +431,15 @@
                            </aura:if>
                        </div>
                    </aura:if>
                    <!-- 【FY24大及巨大课题】北京新法规项目对应 DB202307428742 20230804 by lc Start -->
                    <aura:if isTrue="{!(v.tempdata.taskType == '盘点检查计划' || v.tempdata.taskType == '温湿度检查计划')}">
                        <div class="slds-modal__content slds-p-around_medium" id="modal-content-id-1" style ="min-Height: 100px;max-width: 600px;">
                            <lightning:input type="date" label="预计完成时间" name="estimatedFinishDate" value="{! v.estimatedFinishDate }" required="true" placeholder="请选择" variant="label-inline" />
                        </div>
                    </aura:if>
                    <!-- 【FY24大及巨大课题】北京新法规项目对应 DB202307428742 20230804 by lc End -->
                    <!--###### MODAL BOX FOOTER Part Start ######-->
                    <footer class="slds-modal__footer" style= "max-width: 600px;">
@@ -540,7 +570,7 @@
                        </p>
                    </div> -->
                    <div class="slds-modal__content slds-p-around_medium" id="modal-content-id-1" style ="min-Height: 250px;max-width: 600px;">
                        <p class="slds-p-horizontal_small">
                        <p class="slds-p-horizontal_small">
                                <aura:if isTrue="{!v.tempisFSE == false}">
                                    <lightning:recordEditForm objectApiName="task__c" recordTypeId = "{!v.tempTask.RecordTypeId}">
                                        <lightning:inputField fieldName="delayReasonSelect__c" required="true"  onchange="{!c.handleChangeDelay}"/>
@@ -555,6 +585,11 @@
                                    <div style="padding-top: 5px;padding-left: 12px;color:#6B6D70;">延期理由(其他)</div>
                                    <lightning:input name="delayReason" value="{! v.delayReasonOther }" placeholder="请输入延期理由(其他)"/>
                                </aura:if>
                                <!-- 【FY24大及巨大课题】北京新法规项目对应 DB202307428742 20230804 by lc Start -->
                                <aura:if isTrue="{!(v.tempdata.taskType == '盘点检查计划' || v.tempdata.taskType == '温湿度检查计划')}">
                                    <lightning:input type="date" label="延期至时间" name="estimatedFinishDate" value="{! v.estimatedFinishDate }" required="true" placeholder="请选择" variant="label-inline" />
                                </aura:if>
                                <!-- 【FY24大及巨大课题】北京新法规项目对应 DB202307428742 20230804 by lc End -->
                        </p>
                    </div>
                    <footer class="slds-modal__footer" style ="max-width: 600px;">