Li Jun
2022-04-19 2f183a6b0a83ec3f7d35375d5d25d200efc2a3e1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?xml version="1.0" encoding="UTF-8"?>
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>ConsumDefaultSelect</fullName>
    <availability>online</availability>
    <displayType>massActionButton</displayType>
    <linkType>javascript</linkType>
    <masterLabel>查看默认分配</masterLabel>
    <openType>onClickJavaScript</openType>
    <protected>false</protected>
    <requireRowSelection>false</requireRowSelection>
    <url>{!RequireScript(&quot;/soap/ajax/51.0/connection.js&quot;)}
{!RequireScript(&quot;/soap/ajax/51.0/apex.js&quot;)}
//2021-10-22 gwy 版本更改为51.0
if(&quot;{!Consum_Apply__c.Yi_loaner_arranged__c}&quot; &gt; 0) {
    alert(&quot;出库之后不能点击查看默认分配按钮,如果有需要分配的明细请分单后继续操作&quot;);
}
else {
    window.open(&quot;/apex/ConsumDefaultSelect?pt_recid={!Consum_Apply__c.Id}&quot;, &quot;_top&quot;);
}</url>
</WebLink>