<apex:page id="Page" Controller="NewCrossRegionalSalesController" sidebar="true" showHeader="true" action="{!init}">
|
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.CommonUtilJs)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.AWSService, 'AWSService.js') }" />
|
<apex:includeScript value="/soap/ajax/40.0/connection.js"/>
|
<script>
|
aws_result = '';
|
AWSService.sfSessionId = '{!GETSESSIONID()}';
|
var staticResource = JSON.parse('{!staticResource}');
|
function GetObj(){
|
if('{!isDealerPage}'=='true'){
|
if('{!ProductSegment}'=='NDT'||'{!ProductSegment}'=='ANT'){
|
return JSON.stringify([{
|
dataId : document.getElementById("Page:mainForm:idSearchSetProduct:DealerInfo:AWS_Data_Id__c").value,
|
dealerSalesStaffName : document.getElementById("Page:mainForm:idSearchSetProduct:DealerInfo2:dssnd2:opp_DealerSalesStaffName").value,
|
dealerService : document.getElementById("Page:mainForm:idSearchSetProduct:DealerInfo2:ds:opp_DealerService").value,
|
}]);
|
}else{
|
return JSON.stringify([{
|
dataId : document.getElementById("Page:mainForm:idSearchSetProduct:DealerInfo:AWS_Data_Id__c").value,
|
dealerSalesStaffName : document.getElementById("Page:mainForm:idSearchSetProduct:DealerInfo2:dssnd1:opp_DealerSalesStaffName").value,
|
dealerService : document.getElementById("Page:mainForm:idSearchSetProduct:DealerInfo2:ds:opp_DealerService").value,
|
}]);
|
}
|
}else{
|
if('{!ProductSegment}'=='NDT'||'{!ProductSegment}'=='ANT'){
|
return JSON.stringify([{
|
dataId : document.getElementById("Page:mainForm:idSearchSetProduct:DealerInfo:AWS_Data_Id__c").value,
|
dealerSalesStaffName : document.getElementById("Page:mainForm:idSearchSetProduct:DealerInfo:dssn2:opp_DealerSalesStaffName").value,
|
dealerService : document.getElementById("Page:mainForm:idSearchSetProduct:DealerInfo:ds:opp_DealerService").value,
|
}]);
|
}else{
|
return JSON.stringify([{
|
dataId : document.getElementById("Page:mainForm:idSearchSetProduct:DealerInfo:AWS_Data_Id__c").value,
|
dealerSalesStaffName : document.getElementById("Page:mainForm:idSearchSetProduct:DealerInfo:dssn1:opp_DealerSalesStaffName").value,
|
dealerService : document.getElementById("Page:mainForm:idSearchSetProduct:DealerInfo:ds:opp_DealerService").value,
|
}]);
|
}
|
}
|
}
|
function ProcessPI(sobjJson, payloadForNewPI,callback) {
|
console.log('---insert---');
|
AWSService.post(staticResource.newUrl, payloadForNewPI, function(result){
|
aws_result = result
|
if(aws_result && aws_result.object && aws_result.object.length > 0){
|
let obj = aws_result.object[0];
|
if(obj){
|
document.getElementById("Page:mainForm:idSearchSetProduct:DealerInfo:AWS_Data_Id__c").value = obj.dataId;
|
if('{!isDealerPage}'=='true'){
|
document.getElementById("Page:mainForm:idSearchSetProduct:DealerInfo2:dssnd1:opp_DealerSalesStaffName").value = obj.dealerSalesStaffName;
|
document.getElementById("Page:mainForm:idSearchSetProduct:DealerInfo2:dsd:opp_DealerService").value = obj.dealerService;
|
|
document.getElementById("Page:mainForm:idSearchSetProduct:DealerInfo:Dealer_Sales_Staff_Name_D_Encrypted__c").value = obj.dealerSalesStaffNameDEncrypt;
|
document.getElementById("Page:mainForm:idSearchSetProduct:DealerInfo:Dealer_Service_D_Encrypted__c").value = obj.dealerServiceDEncrypt;
|
}else{
|
document.getElementById("Page:mainForm:idSearchSetProduct:DealerInfo:dssn1:opp_DealerSalesStaffName").value = obj.dealerSalesStaffName;
|
document.getElementById("Page:mainForm:idSearchSetProduct:DealerInfo:ds:opp_DealerService").value = obj.dealerService;
|
|
document.getElementById("Page:mainForm:idSearchSetProduct:DealerInfo:DealerSalesStaffName_Encrypted__c").value = obj.dealerSalesStaffNameEncrypt;
|
document.getElementById("Page:mainForm:idSearchSetProduct:DealerInfo:DealerService_Encrypted__c").value = obj.dealerServiceEncrypt;
|
}
|
}
|
if(callback){
|
callback();
|
}
|
}
|
}, staticResource.token);
|
}
|
var oppid = '';
|
function Redirect(){
|
window.location.href = '/'+oppid;
|
}
|
function Trans(){
|
let b = HasError();
|
console.log('---HasError---');
|
console.log(b);
|
console.log('---aws_result---');
|
console.log(aws_result);
|
AWSService.post(staticResource.transactionUrl, JSON.stringify({
|
"txId":aws_result.txId,
|
"isSuccess":b ? 0 : 1
|
}), function(result){
|
console.log('---result---');
|
console.log(result);
|
console.log('finish');
|
Redirect();
|
//window.location.reload();
|
}, staticResource.token);
|
|
}
|
function HasError(){
|
let e = document.getElementById("page:mainForm:message");
|
console.log(e);
|
if (!e) {
|
return false;
|
}
|
|
if(j$(e).find(".editListError").length > 0){
|
return true;
|
}
|
|
let divs = j$(e).find("div.message");
|
for (let i = 0; i < divs.length; i++) {
|
for (let j = 0; j < divs[i].classList.length; j++) {
|
for(let cls in divs[i].classList){
|
if (cls.indexOf('error')>-1) {
|
return true;
|
}
|
}
|
|
}
|
|
}
|
return false;
|
}
|
function saveJs() {
|
blockme();
|
console.log('{!isDealerPage}');
|
console.log('{!ProductSegment}');
|
ProcessPI({},GetObj(),function(){
|
saveBtn();
|
});
|
//
|
}
|
|
function saveYesJs() {
|
blockme();
|
saveBtnYes();
|
}
|
|
function saveNoJs() {
|
blockme();
|
saveBtnNo();
|
}
|
|
function cancelJs() {
|
var baseUrl = '{!baseUrl}';
|
var rtUrl = '{!rtUrl}';
|
if (rtUrl == 'null' || rtUrl == '') {
|
rtUrl = '{!conId}';
|
}
|
window.location.href = baseUrl + "/" + rtUrl;
|
}
|
</script>
|
|
<apex:form id="mainForm">
|
<script>
|
oppid = '{!oppid}';
|
</script>
|
<apex:actionFunction action="{!saveBtn}" name="saveBtn" reRender="mainForm,message" oncomplete="unblockUI();Trans();"/>
|
<apex:actionFunction action="{!saveBtnYes}" name="saveBtnYes" reRender="mainForm,message" oncomplete="unblockUI();"/>
|
<apex:actionFunction action="{!saveBtnNo}" name="saveBtnNo" reRender="mainForm,message" oncomplete="unblockUI();"/>
|
|
<apex:outputPanel id="message">
|
<apex:messages styleClass="editListError"/>
|
</apex:outputPanel>
|
|
<input type="hidden" id="hasError" value="{!hasError}"/>
|
<input type="hidden" id="isDealerPage" value="{!isDealerPage}"/>
|
|
<apex:pageBlock id="idSearchSetProduct" title="新建询价" tabStyle="Opportunity">
|
<apex:pageBlockButtons location="top">
|
<apex:commandButton style="width:50px" onclick="saveJs();" value="保存" rerender="dummy" rendered="{!IF(hasError == true, false, true)}"/>
|
<apex:commandButton style="width:50px" onclick="cancelJs();" value="取消" rerender="dummy" rendered="{!IF(hasError == true, false, true)}"/>
|
<apex:commandButton style="width:50px" onclick="saveYesJs();" value="是" rerender="dummy" rendered="{!IF(hasError == true, true, false)}"/>
|
<apex:commandButton style="width:50px" onclick="saveNoJs();" value="否" rerender="dummy" rendered="{!IF(hasError == true, true, false)}"/>
|
</apex:pageBlockButtons>
|
<apex:outputPanel layout="none" rendered="{!IF(isDealerPage == true, false, true)}">
|
<apex:pageBlockSection title="询价信息" columns="2">
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="询价名称" for="opp_Name"/>
|
<apex:inputField value="{!opp.Name}" id="opp_Name"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="产品分类" for="opp_ProductSegment"/>
|
<apex:inputField value="{!opp.ProductSegment__c}" id="opp_ProductSegment" required="true"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="客户名" for="opp_Account"/>
|
<apex:inputField value="{!opp.AccountId}" id="opp_Account" required="true"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="询价币种" for="opp_CurrencyIsoCode"/>
|
<apex:inputField value="{!opp.CurrencyIsoCode}" id="opp_CurrencyIsoCode"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="类型" for="opp_Type"/>
|
<apex:inputField value="{!opp.Type}" id="opp_Type"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="预算金额" for="opp_BudgetAmount"/>
|
<apex:inputField value="{!opp.BudgetAmount__c}" id="opp_BudgetAmount"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="整机/零件" for="opp_MachineParts"/>
|
<apex:inputField value="{!opp.Machine_Parts__c}" id="opp_MachineParts"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="金额" for="opp_Amount"/>
|
<apex:inputField value="{!opp.Amount}" id="opp_Amount"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="审批人" for="opp_DealerSelectOwner"/>
|
<apex:inputField value="{!opp.DealerSelectOwner__c}" id="opp_DealerSelectOwner" required="true"/>
|
</apex:pageBlockSectionItem>
|
<!--NO.6 gwy 2021-06-03-->
|
<apex:pageBlockSectionItem rendered="{!IF(ProductSegment == 'IE', true, false)}">
|
<apex:outputLabel value="COMPO询价" for="compo_opp"/>
|
<apex:inputField value="{!opp.compo_opp__c}" id="compo_opp"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem rendered="{!IF(ProductSegment == 'BS', true, false)}">
|
<apex:outputLabel value="用途" for="useing"/>
|
<apex:inputField value="{!opp.useing__c}" id="useing"/>
|
</apex:pageBlockSectionItem>
|
</apex:pageBlockSection>
|
|
<apex:pageBlockSection title="结果信息" columns="2">
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="预定下单日期" for="opp_ExpectedOrderDate"/>
|
<apex:inputField value="{!opp.ExpectedOrderDate__c}" id="opp_ExpectedOrderDate"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="希望出货日期" for="opp_ExpectedDeliveryDate"/>
|
<apex:inputField value="{!opp.ExpectedDeliveryDate__c}" id="opp_ExpectedDeliveryDate"/>
|
</apex:pageBlockSectionItem>
|
</apex:pageBlockSection>
|
|
<apex:pageBlockSection title="附加信息" columns="2">
|
<apex:pageBlockSectionItem rendered="{!IF(isIEDealer == true, false, true)}">
|
<apex:outputLabel value="潜在客户来源" for="opp_LeadSource"/>
|
<apex:inputField value="{!opp.LeadSource}" id="opp_LeadSource" required="true"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem rendered="{!IF(isIEDealer == true, true, false)}">
|
<apex:outputLabel value="潜在客户来源(IE用)" for="opp_LeadSourceIE"/>
|
<apex:inputField value="{!opp.CustomerSourceIE__c}" id="opp_LeadSourceIE" required="true"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="内贸 / 外贸" for="opp_TradeType"/>
|
<apex:inputField value="{!opp.TradeType__c}" id="opp_TradeType" required="true"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="销售方式" for="opp_SalesChannel"/>
|
<apex:inputField value="{!opp.SalesChannel__c}" id="opp_SalesChannel" required="true"/>
|
</apex:pageBlockSectionItem>
|
</apex:pageBlockSection>
|
|
<apex:pageBlockSection id="DealerInfo" title="经销商相关信息" columns="2">
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="代理商名" for="opp_Dealer"/>
|
<apex:inputField value="{!opp.Dealer__c}" id="opp_Dealer"/>
|
</apex:pageBlockSectionItem>
|
|
<apex:pageBlockSectionItem id="dssn1" rendered="{!IF(ProductSegment == 'NDT' || ProductSegment == 'ANI', false, true)}">
|
<apex:outputLabel value="代理商销售担当者名" for="opp_DealerSalesStaffName"/>
|
<apex:inputField value="{!opp.DealerSalesStaffName__c}" id="opp_DealerSalesStaffName"/><!--pi-->
|
</apex:pageBlockSectionItem>
|
|
<apex:pageBlockSectionItem id="dssn2" rendered="{!IF(ProductSegment == 'NDT' || ProductSegment == 'ANI', true, false)}">
|
<apex:outputLabel value="代理商销售担当者名" for="opp_DealerSalesStaffName"/>
|
<apex:inputField value="{!opp.DealerSalesStaffName__c}" id="opp_DealerSalesStaffName" required="true"/><!--pi-->
|
</apex:pageBlockSectionItem>
|
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="中间商名" for="opp_SubDealer"/>
|
<apex:inputField value="{!opp.SubDealer__c}" id="opp_SubDealer"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem id="ds" >
|
<apex:outputLabel value="代理商服务担当者名" for="opp_DealerService"/>
|
<apex:inputField value="{!opp.DealerService__c}" id="opp_DealerService"/><!--pi-->
|
</apex:pageBlockSectionItem>
|
<apex:inputHidden value="{!opp.AWS_Data_Id__c}" id="AWS_Data_Id__c"/>
|
<apex:inputHidden value="{!opp.DealerSalesStaffName_Encrypted__c}" id="DealerSalesStaffName_Encrypted__c"/>
|
<apex:inputHidden value="{!opp.DealerService_Encrypted__c}" id="DealerService_Encrypted__c"/>
|
<apex:inputHidden value="{!opp.Dealer_Sales_Staff_Name_D_Encrypted__c}" id="Dealer_Sales_Staff_Name_D_Encrypted__c"/>
|
<!-- <apex:inputHidden value="{!opp.Dealer_Service_D_Encrypted__c}" id="Dealer_Service_D_Encrypted__c"/> -->
|
<input id="Page:mainForm:idSearchSetProduct:DealerInfo:Dealer_Service_D_Encrypted__c" type="hidden" name="Page:mainForm:idSearchSetProduct:DealerInfo:Dealer_Service_D_Encrypted__c" value="{!opp.Dealer_Service_D_Encrypted__c}"/>
|
</apex:pageBlockSection>
|
|
<apex:pageBlockSection title="跨区域销售" columns="2">
|
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="合作区域负责人" for="HeadOfCooperationArea__c"/>
|
<apex:inputField value="{!opp.HeadOfCooperationArea__c}" id="HeadOfCooperationArea__c"/>
|
</apex:pageBlockSectionItem>
|
|
</apex:pageBlockSection>
|
|
<apex:pageBlockSection title="竞争者信息" columns="2">
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品1" for="opp_CompetitorProduct"/>
|
<apex:inputField value="{!opp.Competitor_Product__c}" id="opp_CompetitorProduct"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品型号1" for="opp_CompetitorProductCode"/>
|
<apex:inputField value="{!opp.CompetitorProductCode__c}" id="opp_CompetitorProductCode"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品2" for="opp_CompetitorProduct2"/>
|
<apex:inputField value="{!opp.Competitor_Product2__c}" id="opp_CompetitorProduct2"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品型号2" for="opp_CompetitorProductCode2"/>
|
<apex:inputField value="{!opp.CompetitorProductCode2__c}" id="opp_CompetitorProductCode2"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品3" for="opp_CompetitorProduct3"/>
|
<apex:inputField value="{!opp.Competitor_Product3__c}" id="opp_CompetitorProduct3"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品型号3" for="opp_CompetitorProductCode3"/>
|
<apex:inputField value="{!opp.CompetitorProductCode3__c}" id="opp_CompetitorProductCode3"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品4" for="opp_CompetitorProduct4"/>
|
<apex:inputField value="{!opp.Competitor_Product4__c}" id="opp_CompetitorProduct4"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品型号4" for="opp_CompetitorProductCode4"/>
|
<apex:inputField value="{!opp.CompetitorProductCode4__c}" id="opp_CompetitorProductCode4"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品5" for="opp_CompetitorProduct5"/>
|
<apex:inputField value="{!opp.Competitor_Product5__c}" id="opp_CompetitorProduct5"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品型号5" for="opp_CompetitorProductCode5"/>
|
<apex:inputField value="{!opp.CompetitorProductCode5__c}" id="opp_CompetitorProductCode5"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品6" for="opp_CompetitorProduct6"/>
|
<apex:inputField value="{!opp.Competitor_Product6__c}" id="opp_CompetitorProduct6"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品型号6" for="opp_CompetitorProductCode6"/>
|
<apex:inputField value="{!opp.CompetitorProductCode6__c}" id="opp_CompetitorProductCode6"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品7" for="opp_CompetitorProduct7"/>
|
<apex:inputField value="{!opp.Competitor_Product7__c}" id="opp_CompetitorProduct7"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品型号7" for="opp_CompetitorProductCode7"/>
|
<apex:inputField value="{!opp.CompetitorProductCode7__c}" id="opp_CompetitorProductCode7"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品8" for="opp_CompetitorProduct8"/>
|
<apex:inputField value="{!opp.Competitor_Product8__c}" id="opp_CompetitorProduct8"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品型号8" for="opp_CompetitorProductCode8"/>
|
<apex:inputField value="{!opp.CompetitorProductCode8__c}" id="opp_CompetitorProductCode8"/>
|
</apex:pageBlockSectionItem>
|
</apex:pageBlockSection>
|
<apex:outputPanel rendered="{!IF(ProductSegment == 'IE' || ProductSegment == 'BS', true, false)}">
|
<apex:pageBlockSection title="本订单购买产品是否含电脑" columns="2">
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="本订单购买产品是否含电脑?" for="Have_Computer"/>
|
<apex:inputField value="{!opp.Have_Computer__c}" id="Have_Computer"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="关联询价" for="Association_Opportunity"/>
|
<apex:inputField value="{!opp.Association_Opportunity__c}" id="Association_Opportunity"/>
|
</apex:pageBlockSectionItem>
|
</apex:pageBlockSection>
|
</apex:outputPanel>
|
<apex:pageBlockSection title="备注" columns="2">
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="备注" for="opp_Remark"/>
|
<apex:inputField value="{!opp.Remark__c}" id="opp_Remark" style="width: 75%;"/>
|
</apex:pageBlockSectionItem>
|
</apex:pageBlockSection>
|
</apex:outputPanel>
|
<apex:outputPanel layout="none" rendered="{!IF(isDealerPage == true, true, false)}">
|
<apex:pageBlockSection title="询价信息" columns="2">
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="询价名称" for="opp_Name"/>
|
<apex:inputField value="{!opp.Name}" id="opp_Name"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="产品分类" for="opp_ProductSegment"/>
|
<apex:inputField value="{!opp.ProductSegment__c}" id="opp_ProductSegment" required="true"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="客户名" for="opp_Account"/>
|
<apex:inputField value="{!opp.AccountId}" id="opp_Account" required="true"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="询价币种" for="opp_CurrencyIsoCode"/>
|
<apex:inputField value="{!opp.CurrencyIsoCode}" id="opp_CurrencyIsoCode"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="类型" for="opp_Type"/>
|
<apex:inputField value="{!opp.Type}" id="opp_Type"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="预算金额." for="opp_BudgetAmount"/>
|
<apex:inputField value="{!opp.Budget_Amount_D__c}" id="opp_BudgetAmount"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="整机/零件." for="opp_MachineParts"/>
|
<apex:inputField value="{!opp.Machine_Parts_D__c}" id="opp_MachineParts"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="金额." for="opp_Amount"/>
|
<apex:inputField value="{!opp.AmountD__c}" id="opp_Amount"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="审批人" for="opp_DealerSelectOwner"/>
|
<apex:inputField value="{!opp.DealerSelectOwner__c}" id="opp_DealerSelectOwner" required="true"/>
|
</apex:pageBlockSectionItem>
|
</apex:pageBlockSection>
|
|
<apex:pageBlockSection title="结果信息" columns="2">
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="预定下单日期." for="opp_ExpectedOrderDate"/>
|
<apex:inputField value="{!opp.Expected_Order_Date_D__c}" id="opp_ExpectedOrderDate"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="希望出货日期." for="opp_ExpectedDeliveryDate"/>
|
<apex:inputField value="{!opp.Expected_delivery_date_D__c}" id="opp_ExpectedDeliveryDate"/>
|
</apex:pageBlockSectionItem>
|
</apex:pageBlockSection>
|
|
<apex:pageBlockSection title="附加信息" columns="2">
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="潜在客户来源." for="opp_LeadSource"/>
|
<apex:inputField value="{!opp.LeadSource_D__c}" id="opp_LeadSource" required="true"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="内贸 / 外贸." for="opp_TradeType"/>
|
<apex:inputField value="{!opp.Trade_Type_D__c}" id="opp_TradeType" required="true"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="销售方式." for="opp_SalesChannel"/>
|
<apex:inputField value="{!opp.Sales_Channel_D__c}" id="opp_SalesChannel" required="true"/>
|
</apex:pageBlockSectionItem>
|
</apex:pageBlockSection>
|
|
<apex:pageBlockSection id="DealerInfo2" title="经销商相关信息" columns="2">
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="代理商名" for="opp_Dealer"/>
|
<apex:inputField value="{!opp.Dealer__c}" id="opp_Dealer"/>
|
</apex:pageBlockSectionItem>
|
<!-- <apex:outputPanel layout="none" rendered="{!IF(ProductSegment == 'NDT' || ProductSegment == 'ANI', false, true)}"> -->
|
<apex:pageBlockSectionItem id="dssnd1" rendered="{!IF(ProductSegment == 'NDT' || ProductSegment == 'ANI', false, true)}">
|
<apex:outputLabel value="代理商销售担当者名." for="opp_DealerSalesStaffName"/>
|
<apex:inputField value="{!opp.Dealer_Sales_Staff_Name_D__c}" id="opp_DealerSalesStaffName"/><!--pi-->
|
</apex:pageBlockSectionItem>
|
<!-- </apex:outputPanel> -->
|
<!-- <apex:outputPanel rendered="{!IF(ProductSegment == 'NDT' || ProductSegment == 'ANI', true, false)}" layout="inline"> -->
|
<apex:pageBlockSectionItem id="dssnd2" rendered="{!IF(ProductSegment == 'NDT' || ProductSegment == 'ANI', true, false)}">
|
<apex:outputLabel value="代理商销售担当者名." for="opp_DealerSalesStaffName"/>
|
<apex:inputField value="{!opp.Dealer_Sales_Staff_Name_D__c}" id="opp_DealerSalesStaffName" required="true"/><!--pi-->
|
</apex:pageBlockSectionItem>
|
<!-- </apex:outputPanel> -->
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="中间商名." for="opp_SubDealer"/>
|
<apex:inputField value="{!opp.Sub_Dealer_D__c}" id="opp_SubDealer"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem id="dsd" >
|
<apex:outputLabel value="代理商服务担当者名." for="opp_DealerService"/>
|
<apex:inputField value="{!opp.Dealer_Service_D__c}" id="opp_DealerService"/><!--pi-->
|
</apex:pageBlockSectionItem>
|
</apex:pageBlockSection>
|
|
<apex:pageBlockSection title="竞争者信息" columns="2">
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品1." for="opp_CompetitorProduct"/>
|
<apex:inputField value="{!opp.Competitor_Product_D__c}" id="opp_CompetitorProduct"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品型号1." for="opp_CompetitorProductCode"/>
|
<apex:inputField value="{!opp.Competitor_Product_Code_D__c}" id="opp_CompetitorProductCode"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品2." for="opp_CompetitorProduct2"/>
|
<apex:inputField value="{!opp.Competitor_Product2_D__c}" id="opp_CompetitorProduct2"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品型号2." for="opp_CompetitorProductCode2"/>
|
<apex:inputField value="{!opp.Competitor_Product_Code2_D__c}" id="opp_CompetitorProductCode2"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品3." for="opp_CompetitorProduct3"/>
|
<apex:inputField value="{!opp.Competitor_Product3_D__c}" id="opp_CompetitorProduct3"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品型号3." for="opp_CompetitorProductCode3"/>
|
<apex:inputField value="{!opp.Competitor_Product_Code3_D__c}" id="opp_CompetitorProductCode3"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品4." for="opp_CompetitorProduct4"/>
|
<apex:inputField value="{!opp.Competitor_Product4_D__c}" id="opp_CompetitorProduct4"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品型号4." for="opp_CompetitorProductCode4"/>
|
<apex:inputField value="{!opp.Competitor_Product_Code4_D__c}" id="opp_CompetitorProductCode4"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品5." for="opp_CompetitorProduct5"/>
|
<apex:inputField value="{!opp.Competitor_Product5_D__c}" id="opp_CompetitorProduct5"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品型号5." for="opp_CompetitorProductCode5"/>
|
<apex:inputField value="{!opp.Competitor_Product_Code5_D__c}" id="opp_CompetitorProductCode5"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品6." for="opp_CompetitorProduct6"/>
|
<apex:inputField value="{!opp.Competitor_Product6_D__c}" id="opp_CompetitorProduct6"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品型号6." for="opp_CompetitorProductCode6"/>
|
<apex:inputField value="{!opp.Competitor_Product_Code6_D__c}" id="opp_CompetitorProductCode6"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品7." for="opp_CompetitorProduct7"/>
|
<apex:inputField value="{!opp.Competitor_Product7_D__c}" id="opp_CompetitorProduct7"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品型号7." for="opp_CompetitorProductCode7"/>
|
<apex:inputField value="{!opp.Competitor_Product_Code7_D__c}" id="opp_CompetitorProductCode7"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品8." for="opp_CompetitorProduct8"/>
|
<apex:inputField value="{!opp.Competitor_Product8_D__c}" id="opp_CompetitorProduct8"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品型号8." for="opp_CompetitorProductCode8"/>
|
<apex:inputField value="{!opp.Competitor_Product_Code8_D__c}" id="opp_CompetitorProductCode8"/>
|
</apex:pageBlockSectionItem>
|
</apex:pageBlockSection>
|
<apex:outputPanel rendered="{!IF(ProductSegment == 'IE' || ProductSegment == 'BS', true, false)}">
|
<apex:pageBlockSection title="本订单购买产品是否含电脑" columns="2">
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="本订单购买产品是否含电脑?" for="Have_Computer"/>
|
<apex:inputField value="{!opp.Have_Computer__c}" id="Have_Computer"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="关联询价" for="Association_Opportunity"/>
|
<apex:inputField value="{!opp.Association_Opportunity__c}" id="Association_Opportunity"/>
|
</apex:pageBlockSectionItem>
|
</apex:pageBlockSection>
|
</apex:outputPanel>
|
<apex:pageBlockSection title="备注" columns="2">
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="备注" for="opp_Remark"/>
|
<apex:inputField value="{!opp.Remark__c}" id="opp_Remark" style="width: 75%;"/>
|
</apex:pageBlockSectionItem>
|
</apex:pageBlockSection>
|
</apex:outputPanel>
|
</apex:pageBlock>
|
</apex:form>
|
|
</apex:page>
|