1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
public with sharing class lexConsumablesLostController {
    // 耗材备品申请 取消
    @AuraEnabled
    public static InitData lexConsumablesLostController(String recordId) {
        InitData res = new initData();
        try{
            Consum_Apply__c report = [SELECT Id,Status__c,RA_Status__c,Yi_loaner_arranged__c FROM Consum_Apply__c WHERE Id = :recordId LIMIT 1];
            res.Id = report.Id;
            res.statusTf = report.Status__c;
            res.raStatusTf = report.RA_Status__c;
            res.yiLoanerArr = report.Yi_loaner_arranged__c;
            System.debug(LoggingLevel.INFO, '*** zq: ' + res);
        }catch(Exception e){
            System.debug(LoggingLevel.INFO, '*** zq: ' + e);
        }
        return res;
    }
 
    public class InitData{
        @AuraEnabled
        public String Id;
        @AuraEnabled
        public String statusTf;
        @AuraEnabled
        public String raStatusTf;
        @AuraEnabled
        public Decimal yiLoanerArr;
    }
}