|  |  |  | 
|---|
|  |  |  | &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</description> | 
|---|
|  |  |  | &opp11=%e5%bc%95%e5%90%88 | 
|---|
|  |  |  | 2021/8/21去掉招投标项目不应标后不能关联询价的限制</description> | 
|---|
|  |  |  | <displayType>button</displayType> | 
|---|
|  |  |  | <linkType>javascript</linkType> | 
|---|
|  |  |  | <masterLabel>创建询价</masterLabel> | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 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)), '-', '/')}"; | 
|---|
|  |  |  | 
|---|
|  |  |  | '/006/e?retURL=%2F' + '{!Tender_information__c.Id}' + | 
|---|
|  |  |  | '&00N10000002ppti='+'{!$User.Province_Text__c}' + | 
|---|
|  |  |  | '&opp11=%e5%bc%95%e5%90%88'+ | 
|---|
|  |  |  | '&CF00N1m000003tR70_lkid={!Tender_information__c.Id}'+ | 
|---|
|  |  |  | '&CF00N1m000003tR70={!Tender_information__c.Name}'+ | 
|---|
|  |  |  | '&CF00N10000009hsW8_lkid={!Tender_information__c.Id}'+ | 
|---|
|  |  |  | '&CF00N10000009hsW8={!Tender_information__c.Name}'+ | 
|---|
|  |  |  | '&RecordType=01210000000QekK'+ | 
|---|
|  |  |  | '&ent=Opportunity'+ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | '&CF00N10000002CYBC=' +  '{!Tender_information__c.Hospital__c}' | 
|---|
|  |  |  | // 招标日 上线时要改成线上的招标日 | 
|---|
|  |  |  | + '&00N1m000004q5Lg=' + '{!Tender_information__c.TenderBeginTime__c}' | 
|---|
|  |  |  | + '&00N10000009Gljh=' + '{!Tender_information__c.TenderBeginTime__c}' | 
|---|
|  |  |  | // 上线时记得改成是否公开招标的ID | 
|---|
|  |  |  | +'&00N1m0000047QAM=公开招标' | 
|---|
|  |  |  | +'&00N10000009ESwL=公开招标' | 
|---|
|  |  |  | + '&opp6=招标网' | 
|---|
|  |  |  |  | 
|---|
|  |  |  | + '&opp6=招标网' | 
|---|