李彤
2023-05-29 41a627eaaf29658a401ac43e4da838a5b622f44e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0" encoding="UTF-8"?>
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>Service_Follow</fullName>
    <availability>online</availability>
    <displayType>button</displayType>
    <linkType>javascript</linkType>
    <masterLabel>服务跟进</masterLabel>
    <openType>onClickJavaScript</openType>
    <protected>false</protected>
    <url>{!REQUIRESCRIPT(&apos;/soap/ajax/51.0/connection.js&apos;)}
{!REQUIRESCRIPT(&apos;/soap/ajax/51.0/apex.js&apos;)}
var foo = function() {
var Status = &quot;{!Inquiry_form__c.Service_Status__c}&quot;;
var FSEOwner = &quot;{!Inquiry_form__c.FSE_OwnerId__c}&quot;;
//alert( FSEOwner+&apos;===&apos;+&quot;{!$User.Id}&quot;);
if(null!=FSEOwner &amp;&amp; (FSEOwner==&quot;{!$User.Id}&quot; || &quot;{!$User.Id}&quot; == &quot;00510000005sEEM&quot;)){
window.open (&apos;/apex/ServiceFollowPage?id=&apos;+&quot;{!Inquiry_form__c.Id}&quot;, &apos;服务跟进&apos;,
&apos;height=400, width=700, top=200, left=400, toolbar=no, menubar=no, scrollbars=no, location=no, status=no&apos;);
}else{
alert(&quot;此按钮只有FSE可以点击!&quot;);
}
}
foo();</url>
</WebLink>