<?xml version="1.0" encoding="UTF-8"?>
|
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
|
<fullName>NewOpp</fullName>
|
<availability>online</availability>
|
<description>/006/e?retURL=%2F{!Tender_information__c.Id}
|
&RecordType=01210000000QekK
|
&00N10000002CX2c=ET
|
&CF00N1s000001QlfW_lkid={!Tender_information__c.Id}
|
&CF00N1s000001QlfW={!Tender_information__c.Name}
|
&ent=Opportunity
|
&00N10000002CpF4=OCM%e7%9b%b4%e6%8e%a5%e8%b2%a9%e5%a3%b2
|
&00N10000002ppti={!$User.Province_Text__c}
|
&opp11=%e5%bc%95%e5%90%88
|
2021/8/21去掉招投标项目不应标后不能关联询价的限制</description>
|
<displayType>button</displayType>
|
<linkType>javascript</linkType>
|
<masterLabel>创建询价</masterLabel>
|
<openType>onClickJavaScript</openType>
|
<protected>false</protected>
|
<url>function NewOpp(){
|
|
|
var ProfileId = "{!$Profile.Id}";
|
if(
|
// 系统管理员
|
ProfileId!= '00e10000000Y3o5'
|
|
// 2s6
|
&& ProfileId!= '00e10000000xnpR' && ProfileId!= '00e10000000xyK6'
|
|
|
){
|
alert('只有营业助理才能新建询价!');
|
return;
|
}
|
|
|
var Close_Forecasted_Date = "{!SUBSTITUTE(TEXT(ADDMONTHS(DATEVALUE( NULLVALUE( Tender_information__c.OpenBidingTime__c, Tender_information__c.TenderEndTime__c)),1)), '-', '/')}";
|
|
|
|
var closeDate = "{!SUBSTITUTE(TEXT(ADDMONTHS(DATEVALUE( NULLVALUE( Tender_information__c.OpenBidingTime__c, Tender_information__c.TenderEndTime__c)),2)), '-', '/')}";
|
|
|
|
|
var Url =
|
'/006/e?retURL=%2F' + '{!Tender_information__c.Id}' +
|
'&00N10000002ppti='+'{!$User.Province_Text__c}' +
|
'&opp11=%e5%bc%95%e5%90%88'+
|
'&CF00N10000009hsW8_lkid={!Tender_information__c.Id}'+
|
'&CF00N10000009hsW8={!Tender_information__c.Name}'+
|
'&RecordType=01210000000QekK'+
|
'&ent=Opportunity'+
|
|
|
'&CF00N10000002CYBC_lkid='+ '{!Tender_information__c.HospitalId__c}' +
|
|
'&CF00N10000002CYBC=' + '{!Tender_information__c.Hospital__c}'
|
// 招标日 上线时要改成线上的招标日
|
+ '&00N10000009Gljh=' + '{!Tender_information__c.TenderBeginTime__c}'
|
// 上线时记得改成是否公开招标的ID
|
+'&00N10000009ESwL=公开招标'
|
+ '&opp6=招标网'
|
|
+ '&opp6=招标网'
|
+ '&00N10000002Cbww=' + Close_Forecasted_Date
|
+ '&opp9=' + closeDate
|
;
|
|
|
|
window.open(Url);
|
|
}
|
NewOpp();</url>
|
</WebLink>
|