binxie
2024-01-20 1d91be0be5220ce19ee64de5a5c9a8237b1c15b1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?xml version="1.0" encoding="UTF-8"?>
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>Lost_Report</fullName>
    <availability>online</availability>
    <displayType>button</displayType>
    <linkType>javascript</linkType>
    <masterLabel>失单</masterLabel>
    <openType>onClickJavaScript</openType>
    <protected>false</protected>
    <url>// jsの場合、翻訳された値がでるので、要注意
if (&apos;{!Opportunity.StageName}&apos; != &apos;引合&apos;
        &amp;&amp; &apos;{!Opportunity.StageName}&apos; != &apos;询价&apos;
) {
    alert(&quot;状态1:&quot; + &apos;{!Opportunity.StageName}&apos; + &quot;、不能做 失单 了!&quot;);
}
else if (&apos;{!Opportunity.SAP_Send_OK__c}&apos; == &apos;1&apos;) {
    alert(&quot;已经上传SAP、不能做 失单 了!&quot;);
}
else if ({!Opportunity.Cnt_Lost_cancel_report__c} &gt; 0) {
    alert(&quot;询价已经有 取消/失单报告 了!&quot;);
}
//else if({!Not(ISBLANK(Opportunity.Bidding_Project_Name_Bid__c))} &amp;&amp; //&apos;{!Opportunity.InfoTypeBid__c}&apos; != &apos;3:结果&apos; ){
//alert(&quot;关联招投标项目的询价,只能在有结果后做失单报告!&quot;);
//}
else {
    location.href = &apos;/a1U/e?retURL=%2F{!Opportunity.Id}&apos; +
&apos;&amp;RecordType=01210000000R4hM&apos; +
&apos;&amp;CF00N10000004lbGT={!URLENCODE(Opportunity.Name)}&apos; +
&apos;&amp;CF00N10000004lbGT_lkid={!Opportunity.Id}&apos; +
 
&apos;&amp;CF00N10000006QShg={!URLENCODE(Opportunity.Sales_assistant_name__c)}&apos; + 
&apos;&amp;CF00N10000006QShg_lkid={!URLENCODE(Opportunity.Sales_assistant_ID__c)}&apos; + 
&apos;&amp;CF00N10000006QShq={!URLENCODE(Opportunity.Manager_name__c)}&apos; + 
&apos;&amp;CF00N10000006QShq_lkid={!URLENCODE(Opportunity.Sales_manager_departmentID__c)}&apos; + 
&apos;&amp;CF00N10000006QShb={!URLENCODE(Opportunity.Sales_owner_buchang__c)}&apos; + 
&apos;&amp;CF00N10000006QShb_lkid={!URLENCODE(Opportunity.Sales_owner_buchangID__c)}&apos; + 
&apos;&apos;;
}</url>
</WebLink>