Li Jun
2022-04-13 5c01ebbfddb6b8674430b47c22977bea2e350084
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?xml version="1.0" encoding="UTF-8"?>
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>Reassign</fullName>
    <availability>online</availability>
    <displayType>massActionButton</displayType>
    <linkType>javascript</linkType>
    <masterLabel>重新分配</masterLabel>
    <openType>onClickJavaScript</openType>
    <protected>false</protected>
    <requireRowSelection>true</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 (&apos;{!Consum_Apply__c.Status__c}&apos; != &apos;已出库指示&apos;) {
      alert(&apos;耗材请单没有出库指示不能重新分配&apos;);
  }
  else {
    if (confirm(&quot;你确定要重新分配吗&quot;)) {
        window.location.href = &quot;/apex/ConsumReassign?caid={!Consum_Apply__c.Id}&quot;;
      }
  }</url>
</WebLink>