<?xml version="1.0" encoding="UTF-8"?> 
 | 
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata"> 
 | 
    <fullName>status__c</fullName> 
 | 
    <description>if (isblank(OpportunityStatus__c) || OpportunityStatus__c ='跟进中', 
 | 
  
 | 
if (isblank(Text(IsBid__c)), 
 | 
if(isblank(Text(IsRelateProject__c)), 
 | 
  
 | 
'01.待确认', 
 | 
if (Text(IsRelateProject__c) = '是', 
 | 
if( OpportunityNum__c > 0, 
 | 
'05.询价中', 
 | 
'04.待关联询价' 
 | 
), 
 | 
'02.不相关' 
 | 
) 
 | 
), 
 | 
  
 | 
  
 | 
  
 | 
if (Text(IsBid__c) = '否', 
 | 
if(Text(NotBidApprovalStatus__c)='批准', 
 | 
'03.不应标' 
 | 
  
 | 
,'04.待关联询价' 
 | 
), 
 | 
if (Text(IsBid__c) = '是', 
 | 
  
 | 
if( OpportunityNum__c > 0, 
 | 
'05.询价中', 
 | 
'04.待关联询价' 
 | 
), 
 | 
  
 | 
'错误是否应标状态:' + Text(IsBid__c) 
 | 
) 
 | 
) 
 | 
  
 | 
), 
 | 
if (OpportunityStatus__c = '成交', '06.成交', 
 | 
  
 | 
if (OpportunityStatus__c = '失单', '08.失单', 
 | 
  
 | 
if (OpportunityStatus__c = '部分成交', '07.部分成交', 
 | 
  
 | 
'错误询价状态:' + OpportunityStatus__c 
 | 
))))</description> 
 | 
    <externalId>false</externalId> 
 | 
    <formula>if( OpportunityNum__c > 0, 
 | 
    if (isblank(OpportunityStatus__c) || OpportunityStatus__c ='跟进中', 
 | 
        '05.询价中', 
 | 
        if (OpportunityStatus__c = '成交',  
 | 
            '06.成交', 
 | 
            if (OpportunityStatus__c = '失单',  
 | 
                '08.失单', 
 | 
                                if (OpportunityStatus__c = '取消',  
 | 
                    '09.取消', 
 | 
                    if (OpportunityStatus__c = '部分成交',  
 | 
                        '07.部分成交', 
 | 
                        '错误询价状态:' + OpportunityStatus__c 
 | 
                    ) 
 | 
                                ) 
 | 
            ) 
 | 
        ) 
 | 
    ), 
 | 
    if(isblank(Text(IsRelateProject__c)) || (Text(IsRelateProject__c)) = '是', 
 | 
        if (isblank(Text(IsRelateProject__c)), 
 | 
            '01.待确认', 
 | 
            if (Text(IsBid__c) = '否', 
 | 
                if(Text(NotBidApprovalStatus__c)='批准', 
 | 
                    '03.不应标', 
 | 
                    '04.待关联询价'), 
 | 
                '04.待关联询价' 
 | 
            ) 
 | 
        ), 
 | 
        '02.不相关' 
 | 
    ) 
 | 
)</formula> 
 | 
    <formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs> 
 | 
    <label>内部确认状态</label> 
 | 
    <required>false</required> 
 | 
    <trackHistory>false</trackHistory> 
 | 
    <trackTrending>false</trackTrending> 
 | 
    <type>Text</type> 
 | 
    <unique>false</unique> 
 | 
</CustomField> 
 |