| | |
| | | @last modified on : 03-30-2022 |
| | | @last modified by : ChangeMeIn@UserSettingsUnder.SFDoc |
| | | --> |
| | | <apex:page controller="StraightBackAddressController" action="{!init}" showHeader="false" lightningStylesheets="true" sidebar="true" id="allPage" title="直返收货地址"> |
| | | <apex:page controller="StraightBackAddressController" action="{!init}" showHeader="false" sidebar="true" id="allPage" title="直返收货地址" lightningStylesheets="true"> |
| | | <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/> |
| | |
| | | <apex:includeScript value="{! URLFOR($Resource.AWSService, 'AWSService.js') }" /> |
| | | <apex:includeScript value="{!URLFOR($Resource.connection20)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.apex20)}"/> |
| | | <apex:stylesheet value="{!URLFOR($Resource.StyleUtilCss)}"/> |
| | | <script type="text/javascript"> |
| | | var checkedTrue; |
| | | var tableDataStr = ''; |
| | |
| | | var telePhonePlaintext = ''; |
| | | var zipCodePlaintext = ''; |
| | | var detailedAddressPlaintext = ''; |
| | | //add by xq 2023/06/30 Start |
| | | var tableDataJsons = JSON.parse('{!tableDataJson}'); |
| | | console.log('tableDataJsons = ' + JSON.stringify(tableDataJsons)) |
| | | //add by xq 2023/06/30 end |
| | | function b(){ |
| | | if (!isBlocking) { |
| | | blockme(); |
| | |
| | | // Address__c DatetimeUpdate = new Address__c(); |
| | | // DatetimeUpdate = tableData[i].address; |
| | | //详细地址 |
| | | debugger |
| | | console.log('进入采用') |
| | | let address_str = address.Detailed_Address__c.trim(); |
| | | if (addressAwsData.hasOwnProperty(address.AWS_Data_Id__c)) { |
| | | address_str = addressAwsData[address.AWS_Data_Id__c].detailedAddress; |
| | |
| | | let rc = new sforce.SObject('Repair__c'); |
| | | rc.Id='{!RepairId}'; |
| | | rc.address_Contacts__c=contactsName; |
| | | debugger |
| | | rc.address_ZipCode__c = address.ZipCode__c; |
| | | rc.address_City__c = cityName; |
| | | rc.address_Contacts_Name__c = ContactPerson; |
| | |
| | | console.log('contacts == null') |
| | | return; |
| | | } |
| | | let temp = {} |
| | | let temp = {}; |
| | | temp.telephone = result.object.telephone; |
| | | temp.zipCode = result.object.zipCode; |
| | | temp.detailedAddress = result.object.detailedAddress; |
| | |
| | | var interval=self.setInterval(function (){ |
| | | console.log('setInterval index= ' + index); |
| | | if(index == correct){ |
| | | console.log('PIDATA = ' + JSON.stringify(PIData)) |
| | | console.log('PIDATA = ' + JSON.stringify(PIData)); |
| | | resolve('success') |
| | | clearInterval(interval) |
| | | } |
| | |
| | | |
| | | //zhj PIPL 2022-06-08 start |
| | | function q2(){ |
| | | //解密信息add by xq 2023/07/03 Start |
| | | for(var i in tableDataJsons){ |
| | | if(PIData[tableDataJsons[i]]){ |
| | | document.getElementById(tableDataJsons[i]).innerText = PIData[tableDataJsons[i]].lastName; |
| | | document.getElementById(tableDataJsons[i] + '_phone').innerText = PIData[tableDataJsons[i]].telephone; |
| | | document.getElementById(tableDataJsons[i]+'_ZipCode').innerText = PIData[tableDataJsons[i]].zipCode; |
| | | document.getElementById(tableDataJsons[i]+'_Detailed_Address').innerText = PIData[tableDataJsons[i]].detailedAddress; |
| | | } |
| | | } |
| | | //解密信息add by xq 2023/07/03 end |
| | | // sforce.connection.sessionId = '{!GETSESSIONID()}'; |
| | | // var p = new Promise(function(resolve, reject){ |
| | | // //查询联系人的数据 |
| | |
| | | createDiv.style.background="#dddddd"; |
| | | createDiv.style.position = "absolute"; |
| | | parentNode.appendChild(createDiv); |
| | | parentNode.style.position = "relative"; |
| | | parentNode.style.position = "relative"; |
| | | } |
| | | |
| | | function hidePIDiv(awsDataId){ |
| | |
| | | AWSService.post(staticResource.searchUrl,{ |
| | | dataIds:arr1 |
| | | },function(data){ |
| | | ub(); |
| | | if(data && data.object && data.object.length > 0){ |
| | | for (let di in data.object) { |
| | | if (data.object[di] && data.object[di].dataId) { |
| | |
| | | } |
| | | |
| | | } |
| | | ub(); |
| | | },staticResource.token) |
| | | } |
| | | |
| | |
| | | AWSService.post(staticResourceContact.searchUrl,{ |
| | | dataIds:arr2 |
| | | },function(data){ |
| | | ub(); |
| | | if(data && data.object && data.object.length > 0){ |
| | | for (let di in data.object) { |
| | | if (data.object[di] && data.object[di].dataId) { |
| | |
| | | } |
| | | |
| | | } |
| | | ub(); |
| | | },staticResourceContact.token) |
| | | } |
| | | } |
| | |
| | | <td align="left" class="oraddress" style="vertical-align: inherit;border-width: 0px 1px 1px 0px;" address-data-id="{!or.address.AWS_Data_Id__c}" contact-data-id="{!or.address.Contacts__r.AWS_Data_Id__c}"> |
| | | <!-- <apex:outputfield value="{!or.address.Contacts__c}" id="{!or.address.Contacts__c}_{!or.address.Id}"/> --> |
| | | <!-- <a href="#" id="{!or.address.Id}" onmouseover="showPIDiv('{!or.address.Id}')" onmouseout="hidePIDiv('{!or.address.Id}')" aws-data-id="{!or.address.Contacts__r.AWS_Data_Id__c}">{!or.address.Contacts__r.Name}</a> --> |
| | | <a href="#" id="{!or.address.Id}" onmouseover="showPIDiv('{!or.address.Id}')" onmouseout="hidePIDiv('{!or.address.Id}')" aws-data-id="{!or.address.AWS_Data_Id__c}">{!or.address.ContactName__c}</a> |
| | | <!-- <a href="#" id="{!or.address.Id}" onmouseover="showPIDiv('{!or.address.Id}')" onmouseout="hidePIDiv('{!or.address.Id}')" aws-data-id="{!or.address.AWS_Data_Id__c}">{!or.address.ContactName__c}</a> --> |
| | | <a href="#" id="{!or.address.Id}" aws-data-id="{!or.address.AWS_Data_Id__c}">{!or.address.ContactName__c}</a><!--add by xq 2023/06/30 Start--> |
| | | </td> |
| | | <td align="left" style="vertical-align: inherit;border-width: 0px 1px 1px 0px;"> |
| | | <apex:outputText value="{!or.address.Telephone__c}" /> |
| | | <td align="left" style="vertical-align: inherit;border-width: 0px 1px 1px 0px;" id="{!or.address.Id + '_phone'}"> |
| | | <apex:outputText value="{!or.address.Telephone__c}" /> |
| | | </td> |
| | | <td align="left" style="vertical-align: inherit;border-width: 0px 1px 1px 0px;"> |
| | | <td align="left" style="vertical-align: inherit;border-width: 0px 1px 1px 0px;" id="{!or.address.Id + '_ZipCode'}"> |
| | | <apex:outputText value="{!or.address.ZipCode__c}" /> |
| | | </td> |
| | | <td align="center" style="vertical-align: inherit;border-width: 0px 1px 1px 0px;"> |
| | |
| | | <td align="center" style="vertical-align: inherit;border-width: 0px 1px 1px 0px;"> |
| | | <apex:outputfield value="{!or.address.City__c}" /> |
| | | </td> |
| | | <td align="left" style="vertical-align: inherit;border-width: 0px 1px 1px 0px;"> |
| | | <td align="left" style="vertical-align: inherit;border-width: 0px 1px 1px 0px;" id="{!or.address.Id + '_Detailed_Address'}"> |
| | | <apex:outputText value="{!or.address.Detailed_Address__c}" /> |
| | | </td> |
| | | <td align="center" style="vertical-align: inherit;width:30px;"> |
| | | <td align="center" style="vertical-align: inherit;width:70px;border-width: 0px 0px 1px 0px;display:{!or.canEdit};"> |
| | | <apex:commandButton value=" 编辑 " onclick="onEditorJs('{!or.address.id}');return false;" style="background:#98c1fbf7;display:{!or.canEdit};"/> |
| | | </td> |
| | | <td align="center" style="vertical-align: inherit;width:30px;"> |
| | | <td align="center" style="vertical-align: inherit;width:70px;border-width: 0px 0px 1px 0px;display:{!or.canCopy};"> |
| | | <apex:commandButton value=" 复制 " onclick="onCopyJs('{!or.address.id}');return false;" style="background: #98c1fbf7;display:{!or.canCopy};"/> |
| | | </td> |
| | | <td align="center" style="vertical-align: inherit;width:30px;"> |
| | | <td align="center" style="vertical-align: inherit;width:70px;border-width: 0px 0px 1px 0px;display:{!or.canAdopt};"> |
| | | <apex:commandButton value=" 采用 " onclick="onAdoptJs(event,JSON.parse('{!or.addressJson}'));return false;" style="background: #98c1fbf7;display:{!or.canAdopt};"/> |
| | | </td> |
| | | </tr> |
| | |
| | | <!-- <apex:inputTextarea value="{!insUpdData.Detailed_Address__c}" id="Detailed_Address__c" style="resize:vertical;width: 90%" rows="3" cols="3"/> --> |
| | | <apex:inputfield value="{!insUpdData.Detailed_Address__c}" id="Detailed_Address__c" style="resize:vertical;width: 98%"/> |
| | | |
| | | <!-- 2023-02-13 zyh add Start --> |
| | | <div id="errorMsg" style="color: red;"></div> |
| | | <!-- 2023-02-13 zyh add end --> |
| | | <div id="errorMsg" class="errorMsg"></div> |
| | | </apex:pageblocksection> |
| | | |
| | | <div style="text-align: center;"> |