| | |
| | | rasdid = rentalApplyId.subString(rentalApplyId.indexOf(';') + 1); |
| | | rentalApplyId = rentalApplyId.subString(0, rentalApplyId.indexOf(';')); |
| | | } |
| | | system.debug(rentalApplyId+'==aaa'); |
| | | //1388 yc 20211021 跨区域分配不能出库 end |
| | | //备品借出申请 |
| | | Rental_Apply__c[] rentalApply = [select Id,repair__r.Repair_Final_Inspection_Date__c,Bollow_Date__c,repair__r.Return_Without_Repair_Date__c, |
| | |
| | | demo_purpose2__c,Follow_UP_Opp__r.Shipping_Finished_Day_Func__c,next_action__c,QIS_number__r.ReplaceDeliveryDate__c |
| | | from Rental_Apply__c |
| | | where Id = :rentalApplyId]; |
| | | system.debug(rentalApplyId+'==aaa'+rentalApply.size()); |
| | | if (rentalApply.size() == 0) { |
| | | returnStr = '没有备品借出申请,请确认。'; |
| | | return returnStr; |
| | |
| | | if(raescc != null && raescc.size() > 0){ |
| | | for(Rental_Apply_Equipment_Set__c rr : raescc){ |
| | | if ((rr.Received_Confirm__c == 'OK' || rr.Received_Confirm__c == '默认签收-OK') && rr.Asset_return_time__c != null) { |
| | | return '此单不满足延期条件。'; |
| | | return '此单不满足延期条件01。'; |
| | | } |
| | | } |
| | | return '1'; |
| | | } |
| | | }else{ |
| | | return '此单不满足延期条件。'; |
| | | return '此单不满足延期条件02。'; |
| | | } |
| | | }else{ |
| | | return '2'; |
| | |
| | | // return Raesc.size(); |
| | | // } |
| | | // 分配验证 |
| | | @AuraEnabled |
| | | Webservice static String AssignBtn(String Rid){ |
| | | |
| | | List<String> statusList = System.Label.StatusProcessState.split(','); |
| | |
| | | // } |
| | | // return '1'; |
| | | // } |
| | | |
| | | @AuraEnabled |
| | | Webservice static String postponeCheck(String endDate, Integer d) { |
| | | Date before5day = getWD_addday(date.parse(endDate), d); |
| | | if (Date.today() > before5day) { |
| | |
| | | /** |
| | | * 注残申请备品的管控 |
| | | */ |
| | | @AuraEnabled |
| | | WebService static String RentalApplyCheckForSAoneEle(String SaID) { |
| | | Statu_Achievements__c Sac = [select id, |
| | | SalesChannel__c, |