高章伟
2022-03-10 8db20630a2675ca14e03ccdee91c614397b5c964
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?xml version="1.0" encoding="UTF-8"?>
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>CustomNew</fullName>
    <availability>online</availability>
    <displayType>massActionButton</displayType>
    <linkType>javascript</linkType>
    <masterLabel>新建维修合同报价</masterLabel>
    <openType>onClickJavaScript</openType>
    <protected>false</protected>
    <requireRowSelection>false</requireRowSelection>
    <url>if (&quot;{!Maintenance_Contract__c.Status__c}&quot; != &quot;引合中&quot;) {
    alert(&quot;维修合同不是询价中的状态,不能新建报价&quot;);
} else {
    if(&quot;{!Maintenance_Contract__c.RecordTypeId}&quot;  == &quot;01210000000gTYq&quot;){
        window.open( &quot;/apex/SelectAssetEstimateVM?mcid={!URLENCODE(Maintenance_Contract__c.Id)}&quot;, &quot;_top&quot;);
    }else{
        window.open( &quot;/apex/SelectAssetEstimate?mcid={!URLENCODE(Maintenance_Contract__c.Id)}&quot;, &quot;_top&quot;);
    }
    
}</url>
</WebLink>