高章伟
2023-03-03 d8dc84a3d56df839895f1c417a4d9cbee763d262
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/webLinks/Split_Apply.webLink-meta.xml
@@ -2,6 +2,18 @@
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>Split_Apply</fullName>
    <availability>online</availability>
    <description>update lxy 2021/6/18
去掉了如下逻辑
else {
        var raid = &apos;{!Rental_Apply__c.Id}&apos;;
        var soql = &quot;select RAES_Status__c from Rental_Apply_Equipment_Set__c where Rental_Apply__c=&apos;&quot;
+ raid + &quot;&apos;&quot;;
        var allRecords = sforce.connection.query(soql).getArray(&quot;records&quot;);
        var validSize= allRecords .length;
        if (validSize==1) {
            alert(&quot;这个申请单只有一条借出备品一览,不能分单&quot;);
        } else if(validSize == records.length) {
            alert(&quot;不能全选借出备品一览分单&quot;);</description>
    <displayType>massActionButton</displayType>
    <linkType>javascript</linkType>
    <masterLabel>分单</masterLabel>
@@ -10,13 +22,11 @@
    <requireRowSelection>true</requireRowSelection>
    <url>{!RequireScript(&quot;/soap/ajax/51.0/connection.js&quot;)}
{!RequireScript(&quot;/soap/ajax/51.0/apex.js&quot;)}
//2021-10-21 gwy 版本更改为51.0
var foo = function() {
    var records = {!GETRECORDIDS($ObjectType.Rental_Apply_Equipment_Set__c)};
    if (records.length &lt; 1) { 
        alert(&quot;请选择借出备品一览记录&quot;); 
    } else { 
        //弹框选择 分单到办事处OR备品中心
       window.open(&quot;/apex/RentalApplySplit?objId={!URLENCODE(Rental_Apply__c.Id)}&amp;raesIds=&quot;+records, &apos;RentalApplySplit&apos;, &apos;width=600,height=200&apos;);   
    }
};