buli
2022-05-09 0953b3b5fcf19c627c6479a6b86648df653c40db
force-app/main/default/pages/TSRepair.page
@@ -418,8 +418,9 @@
        var currentLastName = '';
        var currentPhoneId = '';
        
        function replaceSearchContactLookup() {
        function replaceSearchContactLookup() {
            blockme();
            var RepairInfoListStr = JSON.parse('{!RepairInfoListStr}');
            sforce.connection.sessionId = '{!GETSESSIONID()}';
            let queryContactBack = function(data,number){
                document.getElementById(currentLastName).value = data.object.lastName;
@@ -438,7 +439,7 @@
                    AWSService.queryTSRepair(staticResourceContact.queryUrl, awsDataId, queryContactBack, staticResourceContact.token,number);
                }
            }
            for(var i = 0;i<3;i++){
            for(var i = 0;i<RepairInfoListStr.length;i++){
                let contactHtmlString = '<img src="/img/s.gif" onclick="searchContact(\'allPage:allForm:contactId\',\'allPage:allForm:RepairInfoList:'+i+':Contacts__c\',\'allPage:allForm:RepairInfoList:'+i+':j_id91\',\'allPage:allForm:RepairInfoList:'+i+':contactIdValue\',\'allPage:allForm:RepairInfoList:'+i+':BusinessACustomerUnit\')" alt="Reference Document Number Lookup" class="lookupIcon"  title="Reference Document Number Lookup (New Window)"/>';
                let lookUpNode = htmlToElement(contactHtmlString);
                console.log(lookUpNode);
@@ -481,7 +482,7 @@
        <apex:form id="allForm">
            <apex:inputHidden value="{!contactId}" id="contactId"/>
             <!-- 王鹏伟 点击按钮更新状态开始 -->
            <apex:actionFunction name="setStatus" action="{!setStatus}" reRender="Activities,message,Activities1" oncomplete="unblockUI();">
            <apex:actionFunction name="setStatus" action="{!setStatus}" reRender="Activities,message,Activities1" oncomplete="unblockUI();replaceSearchContactLookup();">
           
                <apex:param name="status" assignTo="{!status}" value="" />
            </apex:actionFunction>
@@ -952,7 +953,10 @@
                                    <th style="text-align: center;" >客户单位</th>
                                    <td style="text-align: left;"><apex:outputField value="{!repairInfo.ba.BusinessAAccount__c}" style="width: 80%"/></td>
                                    <th style="text-align: center;">联系人</th>
                                    <td align="left" ><apex:outputField value="{!repairInfo.ba.BusinessAContact__c}" style="width: 80%"/></td>
                                    <td align="left" >
                                        <apex:outputField value="{!repairInfo.ba.BusinessAContact__c}" style="width: 80%"/>
                                        <apex:inputHidden id="contactIdValue" value="{!repairInfo.ba.BusinessAContact__c}"/>
                                    </td>
                                    <th style="text-align: center;">联系电话</th>
                                    <td align="left" ><apex:outputField value="{!repairInfo.ba.BusinessAPhone_F__c}"/></td>
                                </tr>