| <?xml version="1.0" encoding="UTF-8"?> | 
| <CustomField xmlns="http://soap.sforce.com/2006/04/metadata"> | 
|     <fullName>RAES_Status__c</fullName> | 
|     <description>草案中 | 
| 申请中 | 
| 待分配 | 
| 排队中 | 
| 暂定分配 | 
| 已分配 | 
| 已出库指示 | 
| 已下架 | 
| 出库前已检测 | 
| 已出库 | 
| 申请者已收货 (申请者收货NG)  ← 申请单的 | 
| 医院已装机确认 | 
| 已回寄 | 
| 欠品中 | 
| 已回收 | 
| 回收后已CDS | 
| 回收后检测NG | 
| 回收后已检测 | 
| 已回库</description> | 
|     <externalId>false</externalId> | 
|     <formula>IF (AND(Cancel_Select__c, NOT(NG_Select_Again__c)), '取消', | 
|     IF(Not(OR(Consum_Apply__r.Status_Text__c == '已批准', Consum_Apply__r.Status_Text__c == '已出库指示')), Consum_Apply__r.RA_Status_Text__c, | 
|         IF(Not(RetalFSetDetail_Cnt__c > 0), '待分配',            /* 没有明细 */ | 
|             IF (Wei_Arrival_in_wh__c == 0, IF(Wei_Consumption_Cnt__c > 0, '已回库', '已消耗'), | 
|                 IF (Wei_Consumption_Check_Cnt__c == Wei_Arrival_in_wh__c, '待消耗', | 
|                         IF (Wei_Inspection_result_after_F__c == 0, '回收后已检测', | 
|                             IF (Wei_CDS_complete__c == 0, '回收后已CDS', | 
|                                 IF (Wei_Received_loaner__c == 0, '已回收', | 
|                                     IF(Wei_Consumption_Cnt__c = 0, '已回收',  /* 全部消耗的时候,一览状态为已回收 */ | 
|                                         IF (Wei_Return__c == 0,IF (Lost_product_cnt__c > 0, '欠品中', '已回寄'), | 
|                                             IF (Wei_loaner_arranged__c == 0, IF (Wei_Received_Confirm_Cnt__c > 0, '已出库', | 
|                                                 IF (Received_ng_Cnt__c > 0, '申请者收货NG', | 
|                                                 '申请者已收货')), | 
|                                                 IF (Inspection_not_finish__c == 0, '出库前已检测', | 
|                                                     IF (Wei_StockDown__c == 0, '已下架',  | 
|                                                         IF (Wei_Shipment_request__c == 0, '已出库指示', | 
|                                                             IF (Wei_Assigned_Cnt__c == 0, '已分配', | 
|                                                                 IF(Zan_Ding_Fen_Pei_Shu__c > 0, '暂定分配' | 
|                                                                    , IF(ISPICKVAL(Consum_Apply__r.Status__c, '已批准') || ISPICKVAL(Consum_Apply__r.Status__c, '已出库指示'), '待分配',  | 
|                                                                         Text(Consum_Apply__r.Status__c) | 
|                                                                     ) | 
|                                                                 ) | 
|                                                             ) | 
|                                                         ) | 
|                                                     ) | 
|                                                 ) | 
|                                             ) | 
|                                         ) | 
|                                     ) | 
|                                 ) | 
|                             ) | 
|                         ) | 
|                 ) | 
|             ) | 
|         ) | 
|     ) | 
| )</formula> | 
|     <inlineHelpText>草案中 | 
| 申请中 | 
| 待分配 | 
| 排队中 | 
| 暂定分配 | 
| 已分配 | 
| 已出库指示 | 
| 已下架 | 
| 出库前已检测 | 
| 已出库 | 
| 申请者已收货 (申请者收货NG)  ← 申请单的 | 
| 医院已装机确认 | 
| 已回寄 | 
| 欠品中 | 
| 已回收 | 
| 回收后已CDS | 
| 回收后检测NG | 
| 回收后已检测 | 
| 已回库</inlineHelpText> | 
|     <label>耗材备品配套一览状态</label> | 
|     <required>false</required> | 
|     <trackHistory>false</trackHistory> | 
|     <trackTrending>false</trackTrending> | 
|     <type>Text</type> | 
|     <unique>false</unique> | 
| </CustomField> |