| | |
| | | <WebLink xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <fullName>Quotation_request</fullName> |
| | | <availability>online</availability> |
| | | <displayType>button</displayType> |
| | | <linkType>javascript</linkType> |
| | | <masterLabel>报价委托</masterLabel> |
| | | <openType>onClickJavaScript</openType> |
| | | <protected>false</protected> |
| | | <url>{!RequireScript("/soap/ajax/51.0/connection.js")} |
| | | <description>//20220511 |
| | | {!RequireScript("/soap/ajax/51.0/connection.js")} |
| | | {!RequireScript("/soap/ajax/51.0/apex.js")} |
| | | {!RequireScript("/resource/CommonUtilJs")} |
| | | //2021-10-22 gwy 版本更改为51.0 |
| | | {!RequireScript("/resource/CommonUtilJs")} |
| | | var foo = function() { |
| | | var ProfileId = "{!$Profile.Id}"; |
| | | if( ProfileId!= '00e1m000000MSci' |
| | |
| | | } |
| | | |
| | | |
| | | if('{!Tender_information__c.QuoteIrai__c}' != ''){ |
| | | alert("已经存在完成的报价委托,请不要重复委托。"); |
| | | return; |
| | | } |
| | | //if('{!Tender_information__c.QuoteIrai__c}' != ''){ |
| | | //alert("已经存在完成的报价委托,请不要重复委托。"); |
| | | //return; |
| | | //} |
| | | |
| | | var url = "/apex/NewQuoteIrai?tenderid={!Tender_information__c.Id}"; |
| | | window.open(url,'_blank','scrollbars=yes,resizable=1,modal=false,alwaysRaised=yes'); |
| | | //window.location.href="/apex/NewQuoteIrai?tenderid={!Tender_information__c.Id}"; |
| | | }; |
| | | foo();</description> |
| | | <displayType>button</displayType> |
| | | <linkType>javascript</linkType> |
| | | <masterLabel>报价委托</masterLabel> |
| | | <openType>onClickJavaScript</openType> |
| | | <protected>false</protected> |
| | | <url>{!RequireScript("/soap/ajax/51.0/connection.js")} |
| | | {!RequireScript("/soap/ajax/51.0/apex.js")} |
| | | {!RequireScript("/resource/CommonUtilJs")} |
| | | //2021-10-22 gwy 版本更改为51.0 |
| | | var foo = function() { |
| | | var ProfileId = "{!$Profile.Id}"; |
| | | var u_p = "{!$User.Salesdepartment_text__c}"; |
| | | if( ProfileId!= '00e1m000000MSci' |
| | | // 系统管理员 |
| | | && ProfileId!= '00e10000000Y3o5' |
| | | // 2s1 |
| | | && ProfileId!= '00e10000000xnp2' && ProfileId!= '00e10000000xzQ0' |
| | | |
| | | // 2s2 |
| | | && ProfileId!= '00e10000000xnp7'&& ProfileId!= '00e10000001220i' |
| | | |
| | | // 2s4 |
| | | && ProfileId!= '00e10000000xnpH' && ProfileId!= '00e10000000xzQA' |
| | | |
| | | && ProfileId!= '00e10000000hkas' |
| | | ) |
| | | { |
| | | alert("只有担当可以做报价委托!"); |
| | | return; |
| | | } |
| | | |
| | | if(u_p == '5.华东' || u_p == '6.华南'){ |
| | | alert("请新建购买意向。"); |
| | | return; |
| | | } |
| | | else{ |
| | | var url = "/apex/NewQuoteIrai?tenderid={!Tender_information__c.Id}"; |
| | | window.open(url,'_blank','scrollbars=yes,resizable=1,modal=false,alwaysRaised=yes'); |
| | | } |
| | | }; |
| | | foo();</url> |
| | | </WebLink> |