Li Jun
2022-04-27 f90c63155656928b86f1ce1d91a134de3d12d2b9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?xml version="1.0" encoding="UTF-8"?>
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>Address</fullName>
    <availability>online</availability>
    <displayType>button</displayType>
    <linkType>javascript</linkType>
    <masterLabel>直返收货地址</masterLabel>
    <openType>onClickJavaScript</openType>
    <protected>false</protected>
    <url>{!RequireScript(&quot;/soap/ajax/30.0/connection.js&quot;)}
{!RequireScript(&quot;/soap/ajax/30.0/apex.js&quot;)}
 
var From= function(){
window.open( &quot;/apex/StraightBackAddress?id={!Repair__c.Id}&quot;,&apos;_self&apos;);
}
 
 
    //判断零件齐备完毕日 和 11.RC修理品返送日   是否为空
    if(&quot;{!Repair__c.part_arrangement_complete__c}&quot; != &quot;&quot;){
        alert(&apos;零件已齐备完毕,直返收货地址不能修改!&apos;);
    }else if(&quot;{!Repair__c.Repair_Shipped_Date__c}&quot; != &quot;&quot;){
        alert(&apos;RC修理品已返送,直返收货地址不能修改!&apos;);
    }else{
        From();
    }</url>
</WebLink>