zhangqian
2023-07-21 576da1e5d721a3f7f2d5a4aa7cdea6f943c29ba7
Merge branch 'LEX_dev' of http://47.92.229.245:8089/r/lightningupdate into LEX_dev
36个文件已修改
45个文件已添加
5132 ■■■■ 已修改文件
force-app/main/default/classes/ConsumApplyWebService.cls 2166 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/LexAddSubmitApprovalProcessController.cls 154 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/LexAddSubmitApprovalProcessController.cls-meta.xml 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/LexAllReceivedFseController.cls 58 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/LexAllReceivedFseController.cls-meta.xml 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/LexEquipmentRentalPicturePDFController.cls 42 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/LexEquipmentRentalPicturePDFController.cls-meta.xml 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/LexInventoryHeaderController.cls 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/LexInventoryHeaderController.cls-meta.xml 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/LexLoanerArrangedEmailController.cls 99 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/LexLoanerArrangedEmailController.cls-meta.xml 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/LexNewTransferApplyController.cls 53 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/LexNewTransferApplyController.cls-meta.xml 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/LexRentalApplyControllerLWT.cls 296 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/LexRentalApplyControllerLWT.cls-meta.xml 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/LexRentalApplyFaultController.cls 41 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/LexRentalApplyFaultController.cls-meta.xml 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/LexRentalApplyPDFController.cls 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/LexRentalApplyPDFController.cls-meta.xml 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/LexReturnDeliverySlipController.cls 44 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/LexReturnDeliverySlipController.cls-meta.xml 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/LexSelectSubstituteControllerLWT.cls 686 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/LexSelectSubstituteControllerLWT.cls-meta.xml 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/LexSubmitExtensionController.cls 40 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/LexSubmitExtensionController.cls-meta.xml 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/LexTransferApplyController.cls 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/LexTransferApplyController.cls-meta.xml 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/NewLeadFromContact2.cls 37 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/NewLeadFromContact2.cls-meta.xml 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/RentalApplyEquipmentSetWebService.cls 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/RentalApplyWebService.cls 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/TenderingButtonController.cls 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/lexConsumApplyController.cls 64 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/lexConsumApplyController.cls-meta.xml 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/lexRentalFixtureSetAssignController.cls 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/lexRentalFixtureSetAssignController.cls-meta.xml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/lexReturnDeliveryController.cls 31 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/lexReturnDeliveryController.cls-meta.xml 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexAddSubmitApprovalProcess/lexAddSubmitApprovalProcess.js 269 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexAllReceivedBtns/lexAllReceivedBtns.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexAllReceivedFse/lexAllReceivedFse.js 56 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexEquipmentRentalPDF/lexEquipmentRentalPDF.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexEquipmentRentalPicturePDF/lexEquipmentRentalPicturePDF.js 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexEquipmentSetManage/lexEquipmentSetManage.html 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexEquipmentSetManage/lexEquipmentSetManage.js 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexEquipmentSetManage/lexEquipmentSetManage.js-meta.xml 34 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexFeedbackReport/lexFeedbackReport.html 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexFeedbackReport/lexFeedbackReport.js 36 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexFixtureSetManage/lexFixtureSetManage.js 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexLoanerArrangedEmail/lexLoanerArrangedEmail.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexLoanerArrangedEmailConsumApply/lexLoanerArrangedEmailConsumApply.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexMainFixtureSelect/lexMainFixtureSelect.js 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexNewLeadFromContact2/lexNewLeadFromContact2.html 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexNewLeadFromContact2/lexNewLeadFromContact2.js 73 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexNewLeadFromContact2/lexNewLeadFromContact2.js-meta.xml 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexNewTransferApply/lexNewTransferApply.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexRentalApplyJump/lexRentalApplyJump.js 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexRentalFixtureSetAssignAgency/lexRentalFixtureSetAssignAgency.js 84 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexReturnDeliverySlip/lexReturnDeliverySlip.js 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexReturnDeliverySlipConsumApply/lexReturnDeliverySlipConsumApply.js 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexSelectSubstitute/lexSelectSubstitute.js 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexSendReport/lexSendReport.js 41 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexSubmitExtensionApprovalProcess/lexSubmitExtensionApprovalProcess.js 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexTenderingProjectRestartButton/lexTenderingProjectRestartButton.html 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexTenderingProjectRestartButton/lexTenderingProjectRestartButton.js 64 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexTenderingProjectRestartButton/lexTenderingProjectRestartButton.js-meta.xml 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexTenderingTerminateResponseButton/lexTenderingTerminateResponseButton.html 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexTenderingTerminateResponseButton/lexTenderingTerminateResponseButton.js 79 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexTenderingTerminateResponseButton/lexTenderingTerminateResponseButton.js-meta.xml 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexTransferApplySelectDetail/lexTransferApplySelectDetail.css 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexTransferApplySelectDetail/lexTransferApplySelectDetail.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexTransferApplySelectDetail/lexTransferApplySelectDetail.js 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/pages/AssetMaintainDetail.page 100 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/pages/EquipmentRentalExtend.page 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/pages/EquipmentRentalLostReport.page 39 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/pages/FixtureRemind.page 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/pages/InventoryResultRecord.page 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/pages/InventoryResultRecordCopy.page 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/pages/LostReportEdit.page 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/pages/LostReportEditAsset.page 20 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/pages/RentalReportExport.page 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/ConsumApplyWebService.cls
@@ -3,6 +3,7 @@
    public final static Integer okStatus = 99;
    // 备品借出时间check
    @AuraEnabled
    WebService static String approvalCheck(String ConsumApplyId) {
        try {
            // check结果
@@ -292,6 +293,7 @@
    }
    // 申請書単位
    @AuraEnabled
    WebService static String setShipment_request(String raid) {
      System.debug(raid);
      return setShipment_requests(raid, null);
@@ -480,6 +482,7 @@
        }
    }
    @AuraEnabled
    Webservice static String all_received_fse(String caId) {
        Savepoint sp = Database.setSavepoint();
        try {
@@ -522,2169 +525,6 @@
    @TestVisible private static void test() {
        if (false == Test.isRunningTest()) return;
        Integer i = 0;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
                i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        
    }
}
force-app/main/default/classes/LexAddSubmitApprovalProcessController.cls
New file
@@ -0,0 +1,154 @@
/**
 * *
    ODescription:
    GAuthor: sun xia
    @Date: 2023-07-11 15:31:56
    GIastEditors: sun xia
    @IastEditTime: 2023-07-11 15:31:56
 * */
public with sharing class LexAddSubmitApprovalProcessController {
     @AuraEnabled
    public static InitData init(String recordId){
        InitData res = new InitData();
        try {
            List<Rental_Apply__c> raList = [SELECT Id, Request_shipping_day__c, Add_Approval_Status__c, Repair__c,
                        Demo_purpose1__c, demo_purpose2__c, Repair__r.Repair_Estimated_date_formula__c,
                        Repair__r.Agreed_Date__c, Repair__r.NewProductGuaranteeObject__c,
                        Repair__r.Repair_Final_Inspection_Date__c, Repair__r.Repair_Shipped_Date__c,
                        Repair__r.Status1__c, Repair__r.ReRepairObject_F__c, Repair__r.Number_of_EffectiveContract__c,
                        Repair__r.Delivered_Product__r.Product2.Asset_Model_No__c, Campaign__c,
                        Campaign__r.Status, Campaign__r.Rental_Apply_Flag__c, QIS_number__c, QIS_number__r.next_action__c,
                        applyUser__r.Id, Owner.Id, Status__c,RecordTypeId from Rental_Apply__c WHERE Id = :recordId];
            if(raList.size()>0){
                Rental_Apply__c ra = raList[0];
                res.rentalApplyId = ra.Id;
                res.recordTypeId = ra.RecordTypeId;
                res.addApprovalStatus = ra.Add_Approval_Status__c;
                res.requestShippingDay = ra.Request_shipping_day__c;
                res.repairId = ra.Repair__c;
                res.demoPurpose1 = ra.Demo_purpose1__c;
                res.demoPurpose2 = ra.demo_purpose2__c;
                res.repairEstimatedDateFormula = ra.Repair__r.Repair_Estimated_date_formula__c;
                res.agreedDate = ra.Repair__r.Agreed_Date__c;
                res.newProductGuaranteeObject = ra.Repair__r.NewProductGuaranteeObject__c;
                res.repairFinalInspectionDate = ra.Repair__r.Repair_Final_Inspection_Date__c;
                res.repairShippedDate = ra.Repair__r.Repair_Shipped_Date__c;
                res.status1 = ra.Repair__r.Status1__c;
                res.reRepairObjectF = ra.Repair__r.ReRepairObject_F__c;
                res.numberOfEffectiveContract = ra.Repair__r.Number_of_EffectiveContract__c;
                res.assetModelNo = ra.Repair__r.Delivered_Product__r.Product2.Asset_Model_No__c;
                res.campaignId = ra.Campaign__c;
                res.campaignStatus = ra.Campaign__r.Status;
                res.rentalApplyFlag = Integer.valueOf(ra.Campaign__r.Rental_Apply_Flag__c);
                res.qISNumber = ra.QIS_number__c;
                res.nextAction = ra.QIS_number__r.next_action__c;
                res.applyUserId = ra.applyUser__r.Id;
                res.ownerId = ra.OwnerId;
                res.rentalApplyStatus = ra.Status__c;
                res.demoRequestPastDataId = Schema.SObjectType.Rental_Apply__c.getRecordTypeInfosByDeveloperName().get('Demo_request_past_data').getRecordTypeId();
                List<Rental_Apply_Equipment_Set_Detail__c> raeSet = [SELECT Id from Rental_Apply_Equipment_Set_Detail__c WHERE Rental_Apply__c = :recordId AND Draft_Appended__c=1];
                res.detailSize = raeSet.size();
            }
        }
        catch (Exception e) {
            System.debug(LoggingLevel.INFO, '****e:' + e);
        }
        return res;
    }
    //提交审批
    @AuraEnabled
    public static String submitApproval(String recordId){
        Savepoint sp = Database.setSavepoint();
        try {
            Approval.ProcessSubmitRequest req1 = new Approval.ProcessSubmitRequest();
            req1.setObjectId(recordId);
            Approval.ProcessResult submitResult = Approval.process(req1);
            return 'OK';
        }
        catch (Exception e) {
            Database.rollback(sp);
            return e.getMessage();
        }
    }
    //更新备品借出申请的提交追加待审批状态
    @AuraEnabled
    public static String changeAddApprovalStatus(String recordId, String status){
        Savepoint sp = Database.setSavepoint();
        try {
            Rental_Apply__c ra = new Rental_Apply__c();
            ra.Id = recordId;
            ra.Add_Approval_Status__c = status;
            Update ra;
            return '更新成功';
        }
        catch (Exception e) {
            Database.rollback(sp);
            return e.getMessage();
        }
    }
    private class InitData{
        @AuraEnabled
        public String rentalApplyId;        //备品借出申请Id
        @AuraEnabled
        public String recordTypeId;
        @AuraEnabled
        public String addApprovalStatus;    //备品借出申请.追加备品审批状态
        @AuraEnabled
        public Integer detailSize;          //明细Size
        @AuraEnabled
        public Date requestShippingDay;     //备品借出申请.希望到货日
        @AuraEnabled
        public String repairId;             //修理Id
        @AuraEnabled
        public String demoPurpose1;         //备品借出申请.使用目的1
        @AuraEnabled
        public String demoPurpose2;         //备品借出申请.使用目的2
        @AuraEnabled
        public Date repairEstimatedDateFormula; //修理.6.报价日
        @AuraEnabled
        public Date agreedDate;             //修理.7.用户同意日
        @AuraEnabled
        public String newProductGuaranteeObject;    //修理.无偿区别标志
        @AuraEnabled
        public Date repairFinalInspectionDate;      //修理.10.最终检测日
        @AuraEnabled
        public Date repairShippedDate;          //修理.11.RC修理品返送日
        @AuraEnabled
        public String status1;                  //修理.状态1
        @AuraEnabled
        public Boolean reRepairObjectF;         //修理.再受理对象品参考
        @AuraEnabled
        public String numberOfEffectiveContract;    //修理.有无维修合同对象(SFDC)
        @AuraEnabled
        public String assetModelNo;                 //修理.资产.产品.产品型号(MDM)
        @AuraEnabled
        public String campaignId;                   //备品借出申请.学会
        @AuraEnabled
        public String campaignStatus;               //学会.状态
        @AuraEnabled
        public Integer rentalApplyFlag;              //学会.提交申请FLG
        @AuraEnabled
        public String qISNumber;                    //备品借出申请.QIS
        @AuraEnabled
        public String nextAction;                   //QIS.对应方法
        @AuraEnabled
        public String applyUserId;                  //备品借出申请.操作者Id
        @AuraEnabled
        public String ownerId;                      //备品借出申请.所有人Id
        @AuraEnabled
        public String rentalApplyStatus;            //备品借出申请.状态
        @AuraEnabled
        public String demoRequestPastDataId;        //备品申请 过去历史转移Id
    }
}
force-app/main/default/classes/LexAddSubmitApprovalProcessController.cls-meta.xml
New file
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
    <apiVersion>50.0</apiVersion>
    <status>Active</status>
</ApexClass>
force-app/main/default/classes/LexAllReceivedFseController.cls
New file
@@ -0,0 +1,58 @@
/**
 * *
    ODescription:
    GAuthor: sun xia
    @Date: 2023-07-11 15:31:56
    GIastEditors: sun xia
    @IastEditTime: 2023-07-11 15:31:56
 * */
public with sharing class LexAllReceivedFseController {
    @AuraEnabled
    public static InitData init(String recordId){
        InitData res = new InitData();
        try{
            List<Rental_Apply__c> raList = [SELECT Id, Loaner_received_ng_num__c from Rental_Apply__c where Id = :recordId];
            if(raList.size()>0){
                Rental_Apply__c ra = raList[0];
                res.id = ra.Id;
                res.loanerReceivedNgNum = Integer.valueOf(ra.Loaner_received_ng_num__c);
            }
        }catch(Exception e){
            System.debug(LoggingLevel.INFO, '****e:' + e);
        }
        return res;
    }
    @AuraEnabled
    public static String getRaeSet(String recordId){
        List<Rental_Apply_Equipment_Set__c> raeList = [SELECT Id, RAES_Status__c, Loaner_received_time__c from Rental_Apply_Equipment_Set__c WHERE Rental_Apply__c = :recordId];
        List<Rental_Apply_Equipment_Set__c> updateList = new List<Rental_Apply_Equipment_Set__c>();
        for(Integer i=0; i<raeList.size(); i++){
            if(raeList[i].Loaner_received_time__c == null && raeList[i].RAES_Status__c == '已出库'){
                Rental_Apply_Equipment_Set__c tempRAE = new Rental_Apply_Equipment_Set__c();
                tempRAE.Id = raeList[i].Id;
                tempRAE.Received_Confirm__c = 'OK';
                updateList.add(tempRAE);
            }
        }
        if(updateList.size()>0){
            try {
                Update updateList;
                return 'SUCCESS';
            }
            catch (Exception e) {
                return e.getMessage();
            }
        }
        return '不存在更新明细';
    }
    public Class InitData{
        @AuraEnabled
        public String id;
        @AuraEnabled
        public Integer loanerReceivedNgNum;
    }
}
force-app/main/default/classes/LexAllReceivedFseController.cls-meta.xml
New file
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
    <apiVersion>50.0</apiVersion>
    <status>Active</status>
</ApexClass>
force-app/main/default/classes/LexEquipmentRentalPicturePDFController.cls
New file
@@ -0,0 +1,42 @@
/**
 * *
    ODescription:
    GAuthor: sun xia
    @Date: 2023-07-11 15:31:56
    GIastEditors: sun xia
    @IastEditTime: 2023-07-11 15:31:56
 * */
public with sharing class LexEquipmentRentalPicturePDFController {
    @AuraEnabled
    public static InitData init(String recordId){
        InitData res = new InitData();
        try {
            List<Rental_Apply__c> raList = [SELECT Id, Shipment_requested_cnt__c from Rental_Apply__c where Id = :recordId];
            if(raList.size()>0){
                Rental_Apply__c ra = raList[0];
                if(ra.Shipment_requested_cnt__c > 0){
                    List<Rental_Apply_Equipment_Set__c> raeSet = [select Id from Rental_Apply_Equipment_Set__c where Rental_Apply__c = :recordId and Yi_Shipment_request__c > 0 and RAES_Status__c != '取消'];
                    Integer setLength = raeSet.size();
                    res.pageLength = Math.mod(setLength,10)== 0 ? setLength/10 : (setLength/10) +1 ;
                    res.raesList = raeSet;
                }
                res.shipmentRequestedCnt = Integer.valueOf(ra.Shipment_requested_cnt__c);
            }
        }
        catch (Exception e) {
            System.debug(LoggingLevel.INFO, '****e:' + e);
        }
        return res;
    }
    public class InitData{
        @AuraEnabled
        public String id;
        @AuraEnabled
        public Integer pagelength;
        @AuraEnabled
        public Integer shipmentRequestedCnt;
        @AuraEnabled
        public List<Rental_Apply_Equipment_Set__c> raesList;
    }
}
force-app/main/default/classes/LexEquipmentRentalPicturePDFController.cls-meta.xml
New file
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
    <apiVersion>50.0</apiVersion>
    <status>Active</status>
</ApexClass>
force-app/main/default/classes/LexInventoryHeaderController.cls
New file
@@ -0,0 +1,8 @@
public with sharing class LexInventoryHeaderController {
    @AuraEnabled
    public static LostReport__c init(String recordId){
        LostReport__c lp = [SELECT Id, Asset__c from LostReport__c WHERE Id = :recordId];
        return lp;
    }
}
force-app/main/default/classes/LexInventoryHeaderController.cls-meta.xml
New file
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
    <apiVersion>50.0</apiVersion>
    <status>Active</status>
</ApexClass>
force-app/main/default/classes/LexLoanerArrangedEmailController.cls
New file
@@ -0,0 +1,99 @@
/**
 * *
    ODescription:
    GAuthor: sun xia
    @Date: 2023-07-11 15:31:56
    GIastEditors: sun xia
    @IastEditTime: 2023-07-11 15:31:56
 * */
public with sharing class LexLoanerArrangedEmailController {
    @AuraEnabled
    public static InitData init(String recordId) {
        String statusSting = Label.StatusProcessState;
        List<String> status = statusSting.split(',');
        InitData res = new InitData();
        try {
            List<Rental_Apply__c> racList = [SELECT Id, Status__c, RA_Status__c, Campaign__c, RC_return_to_office__c, Repair_Final_Inspection_Date_F__c, Repair__c, Assigned_Not_Shipment__c, Demo_purpose1__c, Contract_pdf_updated__c, Wei_Assigned_Cnt__c from Rental_Apply__c where Id = :recordId];
            if(racList.size()>0){
                Rental_Apply__c rac = racList[0];
                if( rac.Campaign__c != null ){
                    //获取学会对象
                    Campaign camp = [select Id, Status, Rental_Apply_Flag__c,IF_Approved__c,Approved_Status__c, Meeting_Approved_No__c from Campaign where id = :rac.Campaign__c];
                    res.campaignId = camp.Id;
                    res.campaignStatus = camp.Status;
                    res.iFApproved = camp.IF_Approved__c;
                    res.meetingApprovedNo = camp.Meeting_Approved_No__c;
                    res.approvedStatus = camp.Approved_Status__c;
                }
                res.id = recordId;
                res.raStatus = rac.RA_Status__c;
                res.weiAssignedCnt = Integer.valueOf(rac.Wei_Assigned_Cnt__c);
                res.assignedNotShipment = Integer.valueOf(rac.Assigned_Not_Shipment__c);
                res.demoPurpose1 = rac.Demo_purpose1__c;
                res.contractPdfUpdated = rac.Contract_pdf_updated__c;
                res.repairId = rac.Repair__c;
                res.repairFinalInspectionDateF = rac.Repair_Final_Inspection_Date_F__c;
                res.rCReturnToOffice = rac.RC_return_to_office__c;
                res.statusList = status;
            }
        }
        catch (Exception e) {
            System.debug(LoggingLevel.INFO, '****e:' + e);
        }
        system.debug('res======'+res);
        return res;
    }
    //获取备品借出一栏
    @AuraEnabled
    public static Integer getRentalApplyEquipmentSet(String recordId) {
        Rental_Apply__c tempRa = [SELECT Id, Bollow_Date__c from Rental_Apply__c where Id = :recordId];
        List<Rental_Apply_Equipment_Set__c> tempRaEquipSetList = new List<Rental_Apply_Equipment_Set__c>();
        Integer pageLength ;
        if(tempRa.Bollow_Date__c != null) {
            tempRaEquipSetList = [SELECT Id from Rental_Apply_Equipment_Set__c where Rental_Apply__c = :recordId AND Shippment_loaner_time__c != null and RAES_Status__c != '已分配' and RAES_Status__c != '取消分配'];
        }else {
            tempRaEquipSetList = [SELECT Id from Rental_Apply_Equipment_Set__c where Rental_Apply__c = :recordId AND RAES_Status__c != '已分配' and RAES_Status__c != '取消分配'];
        }
        //
        if(tempRaEquipSetList.size()>0) {
            Integer setLength = tempRaEquipSetList.size();
            pageLength = Math.mod(setLength,10) == 0 ? setLength/10 : Math.round(setLength) + 1;
        }
        return pageLength;
    }
    public class InitData{
        @AuraEnabled
        public String id;
        @AuraEnabled
        public String campaignStatus;   //学会状态
        @AuraEnabled
        public String campaignId;   //学会Id
        @AuraEnabled
        public String raStatus;     //备品借出申请状态
        @AuraEnabled
        public Integer weiAssignedCnt;      //未分配件数  Wei_Assigned_Cnt__c
        @AuraEnabled
        public Integer assignedNotShipment; //已分配未出库指示  Assigned_Not_Shipment__c
        @AuraEnabled
        public String demoPurpose1;         //使用目的1  Demo_purpose1__c
        @AuraEnabled
        public Boolean contractPdfUpdated;  //合同书已上传    Contract_pdf_updated__c
        @AuraEnabled
        public String repairId;             //学会.修理Id
        @AuraEnabled
        public Date repairFinalInspectionDateF;     //修理最终检测日F      Repair_Final_Inspection_Date_F__c
        @AuraEnabled
        public Date rCReturnToOffice;       //RC修理品返送日      RC_return_to_office__c
        @AuraEnabled
        public Boolean iFApproved;          //学会.是否需要申请决裁
        @AuraEnabled
        public String meetingApprovedNo;    //学会.会议决裁编码
        @AuraEnabled
        public String approvedStatus;       //学会.决裁状态   Approved_Status__c
        @AuraEnabled
        public List<String> statusList;
    }
}
force-app/main/default/classes/LexLoanerArrangedEmailController.cls-meta.xml
New file
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
    <apiVersion>50.0</apiVersion>
    <status>Active</status>
</ApexClass>
force-app/main/default/classes/LexNewTransferApplyController.cls
New file
@@ -0,0 +1,53 @@
/**
 * *
    ODescription:
    GAuthor: sun xia
    @Date: 2023-07-11 15:31:56
    GIastEditors: sun xia
    @IastEditTime: 2023-07-11 15:31:56
 * */
public with sharing class LexNewTransferApplyController {
    @AuraEnabled
    public static InitData init(String recordId){
        InitData res = new InitData();
        try{
            List<Rental_Apply__c> raList = [SELECT Id, Name from Rental_Apply__c where id = :recordId];
            if(raList.size()>0){
                Rental_Apply__c ra = raList[0];
                res.raId = ra.Id;
                res.raName = ra.Name;
                List<Rental_Apply_Equipment_Set_Detail__c> raSet = [SELECT Id,Name,Lost_item_giveup__c,Arrival_in_wh__c,Arrival_wh_Result_Agency__c ,Rental_Apply_Equipment_Set__r.First_RAESD__r.Arrival_in_wh__c,
                                        Rental_Apply__r.RecordType.DeveloperName,Lost_Item_return__c,Is_Body__c,Asset__c,Rental_Apply__c,OneToOne_Flag__c,
                                        Rental_Apply_Equipment_Set__r.First_RAESD__r.Arrival_wh_Result_Agency__c,
                                        Rental_Apply_Equipment_Set__r.First_RAESD__r.Lost_item_giveup__c,
                                        Check_lost_Item__c,Check_lost_Item_Final__c,Rental_Apply_Equipment_Set__r.First_You_Xiao_Ku_Cun__c,
                                        Rental_Apply_Equipment_Set__r.First_RAESD__r.Arrival_wh_time__c,Arrival_wh_time__c
                                        FROM Rental_Apply_Equipment_Set_Detail__c WHERE Rental_Apply__c = :recordId AND Cancel_Select__c = false
                                        ];
                res.rae = raSet;
            }
        }catch(Exception e){
            System.debug(LoggingLevel.INFO, '****e:' + e);
        }
        return res;
    }
    @AuraEnabled
    public static String getRecordId(){
        RecordType re = [SELECT Id, Name, DeveloperName, isActive FROM RecordType WHERE DeveloperName = 'AgencyToCenter' AND SobjectType = 'TransferApply__c' AND isActive = true];
        return re.Id;
    }
    public class InitData{
        @AuraEnabled
        public String raId;        //借出申请Id
        @AuraEnabled
        public String raName;      //借出申请Name
        @AuraEnabled
        public List<Rental_Apply_Equipment_Set_Detail__c> rae;
    }
}
force-app/main/default/classes/LexNewTransferApplyController.cls-meta.xml
New file
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
    <apiVersion>50.0</apiVersion>
    <status>Active</status>
</ApexClass>
force-app/main/default/classes/LexRentalApplyControllerLWT.cls
New file
@@ -0,0 +1,296 @@
public with sharing class LexRentalApplyControllerLWT {
    public LexRentalApplyControllerLWT() {
    }
    @AuraEnabled
    public static Rental_Apply__c initFromCancelSubmitButton(String recordId){
        InitData res = new InitData();
        try{
            Rental_Apply__c report=[select
             Status__c,Yi_loaner_arranged__c,Id,RA_Status__c,
            demo_purpose2__c,Follow_UP_Opp__c,Statu_Achievements__c,Statu_Achievements_ID__c,
            Request_shipping_day__c,Demo_purpose1__c,Repair__c,RecordTypeId,SupplementCreated__c,
            OPDPlan__c,Campaign__c,QIS_number__c,OwnerId,
            // QIS_numberId__c,CampaignId__c,applyUserId__c,
            Re_repair__c,
            QIS_ID_Line__c,
            applyUser__c
             from Rental_Apply__c where Id= :recordId];
            return report;
            // res.StatusC=report.Status__c;
            // res.Id=report.Id;
            // res.YiLoanerArrangedC=report.Yi_loaner_arranged__c;
            // res.RAStatusC=report.RA_Status__c;
            // res.DemoPurpose2C=report.demo_purpose2__c;
            // res.FollowUPOppC=report.Follow_UP_Opp__c;
            // res.StatuAchievementsC=report.Statu_Achievements__c;
            // res.StatuAchievementsIDC=report.Statu_Achievements_ID__c;
            // res.RequestShippingDayC=report.Request_shipping_day__c;
            // res.DemoPurpose1C=report.Demo_purpose1__c;
            // res.RepairC=report.Repair__c;
            // res.RecordTypeId=report.RecordTypeId;
            // res.SupplementCreatedC=report.SupplementCreated__c;
            // res.OPDPlanC=report.OPDPlan__c;
            // res.CampaignC=report.Campaign__c;
            // res.QISNumberC=report.QIS_number__c;
            // res.QISNumberIdc=report.QIS_numberId__c;
        }catch(Exception e){
            System.debug(LoggingLevel.INFO,'Rental_Apply__c Cancel Error : ' + e);
        }
        return null;
    }
    @AuraEnabled
    public static list<Rental_Apply_Equipment_Set_Detail__c> selectRentalApplyEquipmentSetDetailByRacId(String recordId){
        InitData res = new InitData();
        try{
            list<Rental_Apply_Equipment_Set_Detail__c> report=[select
            Id, Fixture_Model_No_F__c, Product_Status_Flag_F__c
            from Rental_Apply_Equipment_Set_Detail__c where Rental_Apply__c = :recordId];
            return report;
        }catch(Exception e){
            System.debug(LoggingLevel.INFO,'Rental_Apply__c Cancel Error : ' + e);
        }
        return null;
    }
    @AuraEnabled
    public static list<QIS_Report__c> selectQISReportById(String recordId){
        InitData res = new InitData();
        try{
            list<QIS_Report__c> report=[select
            Id, nonyushohin__r.Product2.Fixture_Model_No_T__c
            from QIS_Report__c
            where id = :recordId
            ];
            return report;
        }catch(Exception e){
            System.debug(LoggingLevel.INFO,'Rental_Apply__c Cancel Error : ' + e);
        }
        return null;
    }
    @AuraEnabled
    public static list<Repair__c> selectRepairById(String recordId){
        InitData res = new InitData();
        try{
            list<Repair__c> report=[select Id, Repair_Rank__c, DW_Sign_Txt__c, FSE_ApplyForRepair_Day__c, Delivered_Product__r.Product2.Fixture_Model_No_T__c
                 , ReRepairObject_F__c,Status1__c,Agreed_Date__c,Repair_Estimated_date_formula__c,Repair_Ordered_Date__c
                 , IfCheckFixture__c
                 , Repair_Final_Inspection_Date__c,Repair_Shipped_Date__c,Number_of_EffectiveContract__c, NewProductGuaranteeObject__c, Delivered_Product__r.Product2.Asset_Model_No__c
                 from Repair__c where id = :recordId
            ];
            return report;
        }catch(Exception e){
            System.debug(LoggingLevel.INFO,'Rental_Apply__c Cancel Error : ' + e);
        }
        return null;
    }
    @AuraEnabled
    public static list<Campaign> selectCampaignById(String recordId){
        InitData res = new InitData();
        try{
            list<Campaign> report=[select
            Status, Rental_Apply_Flag__c ,IF_Approved__c,Meeting_Approved_No__c,Approved_Status__c
            from Campaign where id =:recordId
            ];
            return report;
        }catch(Exception e){
            System.debug(LoggingLevel.INFO,'Rental_Apply__c Cancel Error : ' + e);
        }
        return null;
    }
    @AuraEnabled
    public static list<Rental_Apply_Equipment_Set__c> selectRentalApplyEquipmentSetByRacId(String recordId){
        InitData res = new InitData();
        try{
            list<Rental_Apply_Equipment_Set__c> report=[select Id
                from Rental_Apply_Equipment_Set__c
                where RetalFSetDetail_Cnt__c = 0 AND Rental_Apply__c = :recordId
            ];
            return report;
        }catch(Exception e){
            System.debug(LoggingLevel.INFO,'Rental_Apply__c Cancel Error : ' + e);
        }
        return null;
    }
    @AuraEnabled
    public static list<Rental_Apply__c> selectRentalApplyById(String recordId){
        InitData res = new InitData();
        try{
            list<Rental_Apply__c> report=[select
            id,OPDPlan__c,OPDPlan__r.SalesManager_Txt__c,OPDPlan__r.BuchangApprovalManagerSales_Txt__c
            from Rental_Apply__c where id = :recordId
            ];
            return report;
        }catch(Exception e){
            System.debug(LoggingLevel.INFO,'Rental_Apply__c Cancel Error : ' + e);
        }
        return null;
    }
    @AuraEnabled
    public static list<User> selectUserById(String recordId){
        InitData res = new InitData();
        try{
            list<User> report=[select
            id,JingliEquipmentManager__c,JingliEquipmentManager__r.Name,Buzhang_Equipment_Manager__c,
            Buzhang_Equipment_Manager__r.Name
            from User where id = :recordId
            ];
            return report;
        }catch(Exception e){
            System.debug(LoggingLevel.INFO,'Rental_Apply__c Cancel Error : ' + e);
        }
        return null;
    }
    @AuraEnabled
    public static list<QIS_report__c> selectQISreportById2(String recordId){
        InitData res = new InitData();
        try{
            list<QIS_report__c> report=[select id,next_action__c
            from QIS_report__c where id =:recordId
            ];
            return report;
        }catch(Exception e){
            System.debug(LoggingLevel.INFO,'Rental_Apply__c Cancel Error : ' + e);
        }
        return null;
    }
    @AuraEnabled
    public static String getUserId(){
        return UserInfo.getUserId();
    }
    @AuraEnabled
    public static String getProfileId(){
        return UserInfo.getProfileId();
    }
    @AuraEnabled
    public static String setSObjectShare(String sobjectName, String rowCause, String parentId, List<String> userAccess, String ownerId) {
        try {
            List<SObject> sObjList = new List<SObject>();
            for (String ua : userAccess) {
                String userid = ua.split('_')[0];
                String access = ua.split('_')[1];
                SObject sObj = Schema.getGlobalDescribe().get(sobjectName).newSObject();
                if (String.isBlank(userid) == false && userid.substring(0, 15) != ownerId.substring(0, 15)) {
                    sObj.put('RowCause', rowCause);
                    sObj.put('ParentId', parentId);
                    sObj.put('UserOrGroupId', userid);
                    sObj.put('AccessLevel', access);
                    sObjList.add(sObj);
                }
            }
            if (sObjList.size() > 0) insert sObjList;
            return 'OK';
        } catch (Exception e) {
            return e.getMessage();
        }
    }
    @AuraEnabled
    public static UpdateResult updateRentalApplyC(
        String recordId,
        String SalesManagerSubmitC,
        String StatusC,
        String OPDManagerApproverC,
        String BuchangApprovalManagerSalesSubmitC,
        String OPDBuchangApproverC
    ) {
        UpdateResult result = new UpdateResult();
        result.recordId = recordId;
        try{
            // 更新记录并获取结果
            if(recordId==null) return null;
            Rental_Apply__c rac = new Rental_Apply__c( id=recordId);
            if(SalesManagerSubmitC!=null&& SalesManagerSubmitC != ''){
                rac.SalesManagerSubmit__c=SalesManagerSubmitC;
            }
            if(StatusC!=null&&StatusC!=''){
                rac.Status__c=StatusC;
            }
            if(OPDManagerApproverC!=null&&OPDManagerApproverC!=''){
                rac.OPDManagerApprover__c=OPDManagerApproverC;
            }
            if(BuchangApprovalManagerSalesSubmitC!=null&&BuchangApprovalManagerSalesSubmitC!=''){
                rac.BuchangApprovalManagerSalesSubmit__c=BuchangApprovalManagerSalesSubmitC;
            }
            if(OPDBuchangApproverC!=null&&OPDBuchangApproverC!=''){
                rac.OPDBuchangApprover__c=OPDBuchangApproverC;
            }
            if(rac.id==null)return null;
            update rac;
            result.success = true;
            result.errors = new List<String>();
            // 定义字符串列表,其中包含若干 sObject 的 API 名称
            //List<String> objTypeList = new List<String>{'Account', 'ExampleCustomObj__c'};
            // 得到 Account 和 ExampleCustomObj__c 的信息
            //Schema.DescribeSobjectResult[] results = Schema.describeSObjects(objTypeList);
            return result;
        }catch(Exception e){
            result.success = false;
            result.errors = new List<String>();
            result.errors.add(e.getMessage());
            System.debug(LoggingLevel.INFO,'Rental_Apply__c update Error : ' + e);
        }
        return result;
    }
    public class UpdateResult {
        @AuraEnabled public String recordId {get;set;}
        @AuraEnabled public Boolean success {get;set;}
        @AuraEnabled public List<String> errors {get;set;}
    }
    public class InitData{
        @AuraEnabled
        public String StatusC;
        @AuraEnabled
        public Decimal YiLoanerArrangedC;
        @AuraEnabled
        public String Id;
        @AuraEnabled
        public String RAStatusC;
        @AuraEnabled
        public String DemoPurpose2C;
        @AuraEnabled
        public String FollowUPOppC;
        @AuraEnabled
        public String StatuAchievementsC;
        @AuraEnabled
        public String StatuAchievementsIDC;
        @AuraEnabled
        public Date RequestShippingDayC;
        @AuraEnabled
        public String DemoPurpose1C;
        @AuraEnabled
        public String RepairC;
        @AuraEnabled
        public String RecordTypeId;
        @AuraEnabled
        public Boolean SupplementCreatedC;
        @AuraEnabled
        public String OPDPlanC;
        @AuraEnabled
        public String CampaignC;
        @AuraEnabled
        public String QISNumberC;
        @AuraEnabled
        public String QISNumberIdc;
        @AuraEnabled
        public List<String> statusList;
    }
}
force-app/main/default/classes/LexRentalApplyControllerLWT.cls-meta.xml
New file
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
    <apiVersion>50.0</apiVersion>
    <status>Active</status>
</ApexClass>
force-app/main/default/classes/LexRentalApplyFaultController.cls
New file
@@ -0,0 +1,41 @@
/**
 * *
    ODescription:
    GAuthor: sun xia
    @Date: 2023-07-11 15:31:56
    GIastEditors: sun xia
    @IastEditTime: 2023-07-17 15:31:56
 * */
public with sharing class LexRentalApplyFaultController {
    @AuraEnabled
    public static Rental_Apply_Fault__c init(String recordId){
        try {
            List<Rental_Apply_Fault__c> rafList = [Select Id, status__c from Rental_Apply_Fault__c where Id = :recordId];
            if(rafList.size()>0){
                return rafList[0];
            }
        }
        catch (Exception e) {
            System.debug(LoggingLevel.INFO, '*** e.getMessage()+e.getLineNumber(): ' + e.getMessage()+e.getLineNumber());
        }
        return null;
    }
    @AuraEnabled
    public static String updateRentalApplyFaultStatus(String recordId, String updateStatus){
        Savepoint sp = Database.setSavepoint();
        try {
            Rental_Apply_Fault__c updateRaf = new Rental_Apply_Fault__c();
            updateRaf.Id = recordId;
            updateRaf.status__c = updateStatus;
            Update updateRaf;
            return 'SUCCESS';
        }
        catch (Exception e) {
            Database.rollback(sp);
            System.debug(LoggingLevel.INFO, '*** e.getMessage()+e.getLineNumber(): ' + e.getMessage()+e.getLineNumber());
            return e.getMessage();
        }
    }
}
force-app/main/default/classes/LexRentalApplyFaultController.cls-meta.xml
New file
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
    <apiVersion>50.0</apiVersion>
    <status>Active</status>
</ApexClass>
force-app/main/default/classes/LexRentalApplyPDFController.cls
New file
@@ -0,0 +1,38 @@
/**
 * *
    ODescription:
    GAuthor: sun xia
    @Date: 2023-07-11 15:31:56
    GIastEditors: sun xia
    @IastEditTime: 2023-07-11 15:31:56
 * */
public with sharing class LexRentalApplyPDFController {
    @AuraEnabled
    public static InitData initJumptoPDFButton(String recordId) {
        InitData res = new InitData();
        try {
            List<Rental_Apply__c> raList = [SELECT Id,Shipment_requested_cnt__c from Rental_Apply__c where Id = :recordId];
            if(raList.size() > 0){
                Rental_Apply__c ra = raList[0];
                List<Rental_Apply_Equipment_Set__c> raeSet = [SELECT Id from Rental_Apply_Equipment_Set__c where Rental_Apply__c = :recordId and Yi_Shipment_request__c > 0 and RAES_Status__c != '取消'];
                res.shipmentRequestedCnt = Integer.valueOf(ra.Shipment_requested_cnt__c);
                if(raeSet.size()>0){
                    Integer setLength = raeSet.size();
                    res.pageLength = Math.mod(setLength,10)== 0 ? setLength/10 : Math.round(setLength) +1 ;
                }
            }
        }catch(Exception e){
            System.debug(LoggingLevel.INFO, '****e:' + e);
        }
        return res;
    }
    public class InitData{
        @AuraEnabled
        public String id;
        @AuraEnabled
        public Integer pageLength;
        @AuraEnabled
        public Integer shipmentRequestedCnt;
    }
}
force-app/main/default/classes/LexRentalApplyPDFController.cls-meta.xml
New file
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
    <apiVersion>50.0</apiVersion>
    <status>Active</status>
</ApexClass>
force-app/main/default/classes/LexReturnDeliverySlipController.cls
New file
@@ -0,0 +1,44 @@
/**
 * *
    ODescription:
    GAuthor: sun xia
    @Date: 2023-07-11 15:31:56
    GIastEditors: sun xia
    @IastEditTime: 2023-07-11 15:31:56
 * */
public with sharing class LexReturnDeliverySlipController {
    @AuraEnabled
    public static InitData init(String recordId){
        InitData res = new InitData();
        try {
            List<Rental_Apply__c> raList = [SELECT Id, Name, Rental_Apply_Equipment_Set_Cnt__c, Loaner_received_ng_num__c from Rental_Apply__c where Id = :recordId];
            if(raList.size()>0){
                Rental_Apply__c ra = raList[0];
                if(ra.Rental_Apply_Equipment_Set_Cnt__c > 0){
                    List<Rental_Apply_Equipment_Set_Detail__c> raSet = [SELECT Id, Name from Rental_Apply_Equipment_Set_Detail__c WHERE Received_Confirm_F__c = 'NG' AND Cancel_Select__c = false AND Rental_Apply__c = :recordId];
                    res.raeSet = raSet;
                }
                res.name = ra.Name;
                res.rentalApplyEquipmentSetCnt = Integer.valueOf(ra.Rental_Apply_Equipment_Set_Cnt__c);
                res.loanerReceivedNgNum = Integer.valueOf(ra.Loaner_received_ng_num__c);
            }
        }
        catch (Exception e) {
            system.debug('INFO****' + e);
        }
        return res;
    }
    public class InitData{
        @AuraEnabled
        public Integer rentalApplyEquipmentSetCnt;
        @AuraEnabled
        public Integer loanerReceivedNgNum;
        @AuraEnabled
        public String name;
        @AuraEnabled
        public List<Rental_Apply_Equipment_Set_Detail__c> raeSet;
    }
}
force-app/main/default/classes/LexReturnDeliverySlipController.cls-meta.xml
New file
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
    <apiVersion>50.0</apiVersion>
    <status>Active</status>
</ApexClass>
force-app/main/default/classes/LexSelectSubstituteControllerLWT.cls
New file
@@ -0,0 +1,686 @@
public with sharing class LexSelectSubstituteControllerLWT {
    public LexSelectSubstituteControllerLWT() {
    }
        @AuraEnabled
    public static InitData initFromSelectSubstituteButton(String recordId){
        InitData res = new InitData();
        try{
            Rental_Apply_Equipment_Set__c report=[select
                Id,Rental_Apply__r.Status__c,Rental_Apply__r.Id
             from Rental_Apply_Equipment_Set__c
             where Id= :recordId];
            res.id=report.Id;
            res.RentalApplyId=report.Rental_Apply__r.Id;
            res.Status=report.Rental_Apply__r.Status__c;
        }catch(Exception e){
            System.debug(LoggingLevel.INFO,'Rental_Apply_Equipment_Set__c Cancel Error : ' + e);
        }
        return res;
    }
    @AuraEnabled
    public static List<String> getStatusList(){
        String statusSting = Label.StatusProcessState;
        List<String> status = statusSting.split(',');
        return status;
    }
    @AuraEnabled
    public static List<String> getUserIdByUserName(List<String> userNameList){
        try{
            List<User> userList=[select id,name from user where name in :userNameList];
            List<String> res=new List<String>();
            for (User u:userList ) {
                res.add(u.id);
            }
            return res;
        }catch(Exception e){
            System.debug(LoggingLevel.INFO,'Rental_Apply_Equipment_Set__c Cancel Error : ' + e);
        }
        return null;
    }
    @AuraEnabled
    public static Rental_Apply_Equipment_Set__c initFromCustomSubmitButton(String recordId){
        try{
            Rental_Apply_Equipment_Set__c report=[select
                Id,Request_extend_day__c
                ,Extend_request_reason__c
                ,Rental_End_Date__c,
                Rental_Apply__c
             from Rental_Apply_Equipment_Set__c
             where Id= :recordId];
             return report;
        }catch(Exception e){
            System.debug(LoggingLevel.INFO,'Rental_Apply_Equipment_Set__c Cancel Error : ' + e);
        }
        return null;
    }
    @AuraEnabled
    public static InitData initFromLoanerArrangedEmailLButton(String recordId){
        String statusSting = Label.StatusProcessState;
        List<String> status = statusSting.split(',');
        InitData res = new InitData();
        try{
            Rental_Apply_Equipment_Set__c report=[select
                Id,Rental_Apply__r.Status__c,Rental_Apply__c,Rental_Apply__r.Wei_Assigned_Cnt__c,
                Assigned_Not_Shipment__c,Rental_Apply__r.Bollow_Date__c
             from Rental_Apply_Equipment_Set__c
             where Id= :recordId];
            res.id=report.Id;
            res.RentalApplyC=report.Rental_Apply__c;
            res.Status=report.Rental_Apply__r.Status__c;
            res.WeiAssignedCntC=report.Rental_Apply__r.Wei_Assigned_Cnt__c;
            res.BollowDateC=report.Rental_Apply__r.Bollow_Date__c;
            res.AssignedNotShipmentC=report.Assigned_Not_Shipment__c;
            res.statusList = status;
        }catch(Exception e){
            System.debug(LoggingLevel.INFO,'Rental_Apply_Equipment_Set__c Cancel Error : ' + e);
        }
        return res;
    }
    @AuraEnabled
    public static InitData initClearReturnDeliverySlipButton(String recordId){
        InitData res = new InitData();
        try{
            Rental_Apply_Equipment_Set__c report=[select
                Id,Rental_Apply__r.Status__c,Rental_Apply__c,Rental_Apply__r.Wei_Assigned_Cnt__c,
                Assigned_Not_Shipment__c,Rental_Apply__r.Bollow_Date__c
             from Rental_Apply_Equipment_Set__c
             where Id= :recordId];
            res.id=report.Id;
            res.RentalApplyC=report.Rental_Apply__c;
            res.Status=report.Rental_Apply__r.Status__c;
            res.WeiAssignedCntC=report.Rental_Apply__r.Wei_Assigned_Cnt__c;
            res.BollowDateC=report.Rental_Apply__r.Bollow_Date__c;
            res.AssignedNotShipmentC=report.Assigned_Not_Shipment__c;
        }catch(Exception e){
            System.debug(LoggingLevel.INFO,'Rental_Apply_Equipment_Set__c Cancel Error : ' + e);
        }
        return res;
    }
    @AuraEnabled
    public static Rental_Apply_Equipment_Set__c selectRentalApplyEquipmentSetByID(String recordId){
        try{
            Rental_Apply_Equipment_Set__c report=[select
             Cancel_Select__c,Irreplaceable_flag__c,RAES_Status__c,Shippment_loaner_time2__c
             from Rental_Apply_Equipment_Set__c
             where Id=:recordId];
            return report;
        }catch(Exception e){
            System.debug(LoggingLevel.INFO,'Rental_Apply_Equipment_Set__c Cancel Error : ' + e);
        }
        return null;
    }
    @AuraEnabled
    public static list<Rental_Apply_Equipment_Set_Detail__c> selectRentalApplyEquipmentSetByRACID(String recordId){
        try{
            list<Rental_Apply_Equipment_Set_Detail__c> report=[select Allow_Adjust_Queue_Flag__c
            from Rental_Apply_Equipment_Set_Detail__c
            where Rental_Apply__c = :recordId ];
            return report;
        }catch(Exception e){
            System.debug(LoggingLevel.INFO,'Rental_Apply_Equipment_Set__c Cancel Error : ' + e);
        }
        return null;
    }
    @AuraEnabled
    public static list<Rental_Apply__c> selectRentalApplyCByName(String recordId){
        try{
            list<Rental_Apply__c> report=[select
            Id,Campaign__c,Repair__c,Status__c,Bollow_Date__c, Demo_purpose1__c,Contract_pdf_updated__c,Repair_Final_Inspection_Date_F__c,RC_return_to_office__c,Wei_Assigned_Cnt__c
            from Rental_Apply__c
            where id=:recordId ];
            return report;
        }catch(Exception e){
            System.debug(LoggingLevel.INFO,'Rental_Apply_Equipment_Set__c Cancel Error : ' + e);
        }
        return null;
    }
    @AuraEnabled
    public static list<Campaign> selectCampaignById(String recordId){
        try{
            list<Campaign> report=[select
              Status, Rental_Apply_Flag__c,IF_Approved__c,Meeting_Approved_No__c,Approved_Status__c
              from Campaign
              where id =:recordId ];
            return report;
        }catch(Exception e){
            System.debug(LoggingLevel.INFO,'Rental_Apply_Equipment_Set__c Cancel Error : ' + e);
        }
        return null;
    }
    @AuraEnabled
    public static String getSessionId(){
        return UserInfo.getSessionId();
    }
    @AuraEnabled
    public static list<Rental_Apply_Equipment_Set__c> selectRaesById1(String recordId1){
        try{
            list<Rental_Apply_Equipment_Set__c> report=[select Id
            from Rental_Apply_Equipment_Set__c
            where Rental_Apply__c = :recordId1
            and Shippment_loaner_time2__c != null
            and RAES_Status__c != '已分配'
            and RAES_Status__c != '取消分配'
            ];
            return report;
        }catch(Exception e){
            System.debug(LoggingLevel.INFO,'selectRaesById1 Error : ' + e);
        }
        return null;
    }
    @AuraEnabled
    public static list<Rental_Apply_Equipment_Set__c> selectRaesById2(String recordId2){
        try{
            list<Rental_Apply_Equipment_Set__c> report=[select Id
             from Rental_Apply_Equipment_Set__c
              where Rental_Apply__c = :recordId2
              and RAES_Status__c != '已分配'
              and RAES_Status__c != '取消分配'
           ];
            return report;
        }catch(Exception e){
            System.debug(LoggingLevel.INFO,'selectRaesById1 Error : ' + e);
        }
        return null;
    }
    @AuraEnabled
    public static list<Rental_Apply__c> selectRacById(String recordId){
        try{
            list<Rental_Apply__c> report=[SELECT
            Id, JingliApprovalManager__c, SalesManager__c
            , BuchangApprovalManager__c
            , BuchangApprovalManagerSales__c
            , ZongjianApprovalManager__c
            FROM Rental_Apply__c
            WHERE Id = :recordId
            ];
            return report;
        }catch(Exception e){
            System.debug(LoggingLevel.INFO,'Rental_Apply_Equipment_Set__c Cancel Error : ' + e);
        }
        return null;
    }
    @AuraEnabled
    public static UpdateResult updateRaesc(
        String recordId,
        String JingliApprovalManagerc,
        String SalesManagerc,
        String BuchangApprovalManagerc,
        String BuchangApprovalManagerSalesc,
        String ZongjianApprovalManagerc,
        String ExtendStatusc
    ) {
        UpdateResult result = new UpdateResult();
        result.recordId = recordId;
        try{
            // 更新记录并获取结果
            if(recordId==null) return null;
            Rental_Apply_Equipment_Set__c rac = new Rental_Apply_Equipment_Set__c( id=recordId);
            if(JingliApprovalManagerc!=null&& JingliApprovalManagerc != ''){
                rac.JingliApprovalManager__c=JingliApprovalManagerc;
            }
            if(SalesManagerc!=null&&SalesManagerc!=''){
                rac.SalesManager__c=SalesManagerc;
            }
            if(BuchangApprovalManagerc!=null&&BuchangApprovalManagerc!=''){
                rac.BuchangApprovalManager__c=BuchangApprovalManagerc;
            }
            if(BuchangApprovalManagerSalesc!=null&&BuchangApprovalManagerSalesc!=''){
                rac.BuchangApprovalManagerSales__c=BuchangApprovalManagerSalesc;
            }
            if(ZongjianApprovalManagerc!=null&&ZongjianApprovalManagerc!=''){
                rac.ZongjianApprovalManager__c=ZongjianApprovalManagerc;
            }
            if(ExtendStatusc!=null&&ExtendStatusc!=''){
                rac.Extend_Status__c=ExtendStatusc;
            }
            if(rac.id==null)return null;
            update rac;
            result.success = true;
            result.errors = new List<String>();
            return result;
        }catch(Exception e){
            result.success = false;
            result.errors = new List<String>();
            result.errors.add(e.getMessage());
            System.debug(LoggingLevel.INFO,'Rental_Apply__c update Error : ' + e);
        }
        return result;
    }
    @AuraEnabled
    public static UpdateResult updateRaescList(
        list<Rental_Apply_Equipment_Set_Detail__c> updateList
    ) {
        UpdateResult result = new UpdateResult();
        try{
            for(Rental_Apply_Equipment_Set_Detail__c item : updateList) {
                item.Return_DeliverySlip__c = null;
                item.Asset_return_time__c = null;
            }
            update updateList;
            result.success = true;
            result.errors = new List<String>();
            return result;
        }catch(Exception e){
            result.success = false;
            result.errors = new List<String>();
            result.errors.add(e.getMessage());
            System.debug(LoggingLevel.INFO,'Rental_Apply__c update Error : ' + e);
        }
        return result;
    }
    @AuraEnabled
    public static list<Rental_Apply_Equipment_Set_Detail__c> selectRaesdcId(String recordId){
        try{
            list<Rental_Apply_Equipment_Set_Detail__c> report=[Select
            Id
            From Rental_Apply_Equipment_Set_Detail__c
            Where Return_DeliverySlip__c != null
            AND Check_lost_Item_F__c = null
            AND Rental_Apply_Equipment_Set__c = :recordId AND Cancel_Select__c = false
            ];
            return report;
        }catch(Exception e){
            System.debug(LoggingLevel.INFO,'Rental_Apply_Equipment_Set__c Cancel Error : ' + e);
        }
        return null;
    }
    @AuraEnabled
    public static String approvalCheck(String rentalApplyId) {
        // check结果
        String returnStr = '';
        //1388 yc 20211021 跨区域分配不能出库  start
        String rasdid = '';
        system.debug(rentalApplyId+'==');
        if(String.isNotBlank(rentalApplyId) && rentalApplyId.indexOf(';') >= 0){//说明是从一览上触发的
           rasdid = rentalApplyId.subString(rentalApplyId.indexOf(';') + 1);
           rentalApplyId = rentalApplyId.subString(0, rentalApplyId.indexOf(';'));
        }
        //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,
                                        CreatedDate,Rental_Apply_Equipment_Set_Cnt__c,Prepare_Day__c,Cross_Region_Assign__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];
        if (rentalApply.size() == 0) {
            returnStr = '没有备品借出申请,请确认。';
            return returnStr;
        }
        Rental_Apply__c ra = rentalApply[0];
        if (ra.Rental_Apply_Equipment_Set_Cnt__c <= 0) {
            returnStr = '没有借出备品set一览,请确认。';
            return returnStr;
        }
        //1822 yc 20211111 start
        if(ra.demo_purpose2__c=='已购待货' && ra.Follow_UP_Opp__r.Shipping_Finished_Day_Func__c!= null){
            returnStr = '已购待货目的,新品已有发货日,不可出库指示';
            return returnStr;
        }
        if(ra.demo_purpose2__c=='索赔QIS' && ra.next_action__c=='无偿更换' && ra.QIS_number__r.ReplaceDeliveryDate__c!= null){
            returnStr = '索赔QIS目的,QIS已有新品发货日,不可出库指示';
            return returnStr;
       }
        //1822 yc 20211111 end
//*************************Insert 20160826 SWAG-AD59Z6 趙徳芳 Start*************************//
        if(Ra.repair__r.Repair_Final_Inspection_Date__c != null) {
            return '修理最终检测日不为空,不能做出库指示';
        }
        if(Ra.repair__c!=null&&Ra.repair__r.Return_Without_Repair_Date__c != null) {
            return '未修理归还日不为空,不能做出库指示';
        }
//*************************Insert 20160826 SWAG-AD59Z6 趙徳芳 End***************************//
        //1388 yc 20211021 跨区域分配不能出库 start
        if(String.isNotBlank(ra.Cross_Region_Assign__c)){
            String soql = 'select Id, Name,Rental_Apply__c,Internal_asset_location_before__c';
                   soql +=' from Rental_Apply_Equipment_Set_Detail__c';
                   soql +=' where Rental_Apply__c = \'' + ra.Id +'\'';
                   soql +=' and Internal_asset_location_before__c !=null and Internal_asset_location_before__c != \'' + ra.Cross_Region_Assign__c+ '\'';
            if(String.isNotBlank(rasdid)){
                   soql +=' and Rental_Apply_Equipment_Set__c = :rasdid';
              }
            List<Rental_Apply_Equipment_Set_Detail__c> raesd = Database.query(soql);
            if(raesd.size()>0){
                returnStr = '分配的备品不是您所属备品中心的备品,不能做出库指示';
                return returnStr;
            }
        }
        //1388 yc 20211021 跨区域分配不能出库 end
        // 20220211 ljh add 备品FY23课题01 start
        // AggregateResult[] resultsRas = [SELECT Rental_Start_Date__c,count(Id) cnt
        //                              FROM Rental_Apply_Equipment_Set__c
        //                              WHERE Rental_Apply__c = :rentalApplyId
        //                              AND Cancel_Select__c = false
        //                              group by Rental_Start_Date__c];
        // If(resultsRas.size() > 1){
        //  returnStr = '所有一览备品预计出货日应一致,不一致不能做出库指示';
        //     return returnStr;
        // }
        // 20220211 ljh add 备品FY23课题01 end
//bp2        // 备品借出历史取得
//        List<String> equipmentSetList = new List<String>();
//        Rental_Apply_Equipment_Set__c[] raes = [
//            select Id, Name, Equipment_Set__c, Equipment_Set__r.Name, Rental_Start_Date__c, Rental_End_Date__c, Rental_Apply__c
//              from Rental_Apply_Equipment_Set__c
//             where Rental_Apply__c = :rentalApplyId and Cancel_Select__c = false];
//        // 日历范围,最小的借出开始日到最大的借出终了日
//        Date startDate = Date.today();
//        Date endDate = Date.today();
//        for (Rental_Apply_Equipment_Set__c r : raes) {
//            equipmentSetList.add(r.Equipment_Set__c);
//            if (r.Rental_Start_Date__c != null && r.Rental_Start_Date__c < startDate) {
//                startDate = r.Rental_Start_Date__c;
//            }
//            if (r.Rental_End_Date__c != null && r.Rental_End_Date__c > endDate) {
//                endDate = r.Rental_End_Date__c;
//            }
//        }
//        Integer prepareDay = ra.Prepare_Day__c == null ? Integer.valueOf(System.Label.EquipmentRentalPrepare) : ra.Prepare_Day__c.intValue();
//        Date minDate = getWD_addday(startDate, -1 * prepareDay);
//        Date maxDate = getWD_addday(endDate, prepareDay);
//        // 其他备品借出申请历史
//        Rental_Apply_Equipment_Set__c[] others = [
//                    select Id, Name, Rental_Start_Date__c, Rental_End_Date__c, Equipment_Set__c, Rental_Apply__r.Status__c ,Rental_Apply__r.Prepare_Day__c
//                      from Rental_Apply_Equipment_Set__c
//                     where Rental_Apply__c != :rentalApplyId
//                       and Equipment_Set__c in :equipmentSetList
//                       and Request_Status__c != '取消'
//                       and Request_Status__c != '删除'
//                       and Cancel_Select__c = false
//                       and ((Rental_Start_Date__c >= :minDate and Rental_Start_Date__c <= :maxDate)
//                            or (Rental_End_Date__c >= :minDate and Rental_End_Date__c <= :maxDate)
//                            or (Rental_Start_Date__c <= :startDate and Rental_End_Date__c >= :endDate))];
//        Map<String, List<Rental_Apply_Equipment_Set__c>> othersMap = new Map<String,List<Rental_Apply_Equipment_Set__c>>();
//        for (Rental_Apply_Equipment_Set__c other : others) {
//            if (othersMap.containsKey(other.Equipment_Set__c)) {
//                othersMap.get(other.Equipment_Set__c).add(other);
//            } else {
//                List<Rental_Apply_Equipment_Set__c> l = new List<Rental_Apply_Equipment_Set__c>();
//                l.add(other);
//                othersMap.put(other.Equipment_Set__c, l);
//            }
//        }
//        for (Rental_Apply_Equipment_Set__c r : raes) {
//            List<Rental_Apply_Equipment_Set__c> other = othersMap.get(r.Equipment_Set__c);
//            Map<Date, Map<String, String>> dateMap= new Map<Date, Map<String, String>>();
//            if (other != null) {
//                Date sdate = startDate;
//                Date edate = endDate;
//                for (Rental_Apply_Equipment_Set__c o : other) {
//                    if (o.Rental_Start_Date__c != null && (sdate == null || o.Rental_Start_Date__c < sdate)) {
//                        sdate = o.Rental_Start_Date__c;
//                    }
//                    if (o.Rental_End_Date__c != null && (edate == null || o.Rental_End_Date__c > edate)) {
//                        edate = o.Rental_End_Date__c;
//                    }
//                }
//                if (sdate != null && edate != null) {
//                    RentalApplyWebService raws = new RentalApplyWebService();
//                    dateMap = raws.getDateMap(sdate, edate, prepareDay);
//                }
//            }
//            if (r.Rental_Start_Date__c == null && r.Rental_End_Date__c == null) {
//                // 清空该借出历史的出库和回收时间
//            } else if (other == null || other.size() == 0) {
//                // 与其他借出历史没有冲突
//            } else {
//                Date fromDate = r.Rental_Start_Date__c;
//                Date toDate = r.Rental_End_Date__c;
//                for (Rental_Apply_Equipment_Set__c o : other) {
//                    if (o.Rental_Apply__r.Status__c != '草案中' && o.Rental_Apply__r.Status__c != '申请中' && o.Rental_Apply__r.Status__c != null) {
//                        Date startD = o.Rental_Start_Date__c;
//                        Date endD = o.Rental_End_Date__c;
//                        Integer prepare = prepareDay; //>= o.Rental_Apply__r.Prepare_Day__c || o.Rental_Apply__r.Prepare_Day__c == null ? prepareDay : o.Rental_Apply__r.Prepare_Day__c.intValue();
//                        if ((dateMap.containsKey(fromDate) && Date.valueOf(dateMap.get(fromDate).get('Next')) > startD && dateMap.containsKey(endD) && fromDate < Date.valueOf(dateMap.get(endD).get('Next'))) ||
//                            (dateMap.containsKey(toDate) && Date.valueOf(dateMap.get(toDate).get('Next')) > startD && dateMap.containsKey(endD) && toDate < Date.valueOf(dateMap.get(endD).get('Next'))) ||
//                            (dateMap.containsKey(fromDate) && Date.valueOf(dateMap.get(fromDate).get('Next')) <= startD && dateMap.containsKey(endD) && toDate >= Date.valueOf(dateMap.get(endD).get('Next')))) {
//                            returnStr = '备品' + r.Equipment_Set__r.Name + '的借出日与备品借出历史' + o.Name + '有冲突,请确认。';
//                            return returnStr;
//                        }
//                    }
//                }
//            }
//        }
        return '1';
    }
    @AuraEnabled
    public static String setShipment_requests(String raid, String raesid) {
      Savepoint sp = Database.setSavepoint();
      try {
        //一览情况下检索一览对应的申请书Id,soql子查询不能和主查询是同一个表,单独检索一次
        if (String.isBlank(raid)) {
            List<Rental_Apply_Equipment_Set__c> raList = [select Id, Rental_Apply__c from Rental_Apply_Equipment_Set__c where id = :raesid];
            if (raList.size() > 0) {
                raid = raList[0].Rental_Apply__c;
            } else {
                //应该不会到这里
                return '没有可以出库指示的一览';
            }
        }
        String soql = 'SELECT Id'
                + ' FROM Rental_Apply_Equipment_Set__c '
                + ' WHERE Shippment_loaner_time2__c <> null '
                + ' AND Rental_Apply__c = :raid '
                + ' ORDER BY Id' ;
        List<Rental_Apply_Equipment_Set__c> shippedRaesList = Database.query(soql);
        String raesStrShipped = '';
        for (Rental_Apply_Equipment_Set__c raes : shippedRaesList) {
            raesStrShipped += raes.Id;
        }
        //Srring soql = "SELECT Id FROM Rental_Apply_Equipment_Set_Detail__c WHERE Rental_Apply__c = '{!Rental_Apply__c.Id}' AND Cancel_Select__c = false AND Rental_Num__c > 0 AND Rental_Apply_Equipment_Set__r.Wei_Assigned_Cnt__c = 0 AND Rental_Apply_Equipment_Set__r.Yi_Assigned_Cnt__c > 0 AND Shipment_request__c  = false";
        soql = 'SELECT Id, Rental_Apply__c, Rental_Apply_Equipment_Set__c'
                + ' FROM Rental_Apply_Equipment_Set_Detail__c '
                + ' WHERE ' + (String.isNotBlank(raesid) ? 'Rental_Apply_Equipment_Set__c = :raesid ' : 'Rental_Apply__c = :raid ')
                + ' AND Cancel_Select__c = false '
                + ' AND Rental_Num__c > 0 '
                + ' AND Rental_Apply_Equipment_Set__r.Wei_Assigned_Cnt__c = 0 '
                + ' AND Rental_Apply_Equipment_Set__r.Yi_Assigned_Cnt__c > 0 '
                + ' AND Shipment_request__c  = false'
                + ' ORDER BY Rental_Apply_Equipment_Set__c, Id';
        List<Rental_Apply_Equipment_Set_Detail__c> raesds = Database.query(soql);
        Map<Id, List<String>> rental_Asset_SerialNumberMap = new Map<Id, List<String>>();
        if (raesds.size() < 1) {
            return '没有可以出库指示的一览';
        } else {
            Set<Id> raesSet = new Set<Id>();
            String raesStrRequest = '';
            for (Rental_Apply_Equipment_Set_Detail__c raesd : raesds) {
                if (false == raesSet.contains(raesd.Rental_Apply_Equipment_Set__c)) {
                    raesSet.add(raesd.Rental_Apply_Equipment_Set__c);
                    raesStrRequest += raesd.Rental_Apply_Equipment_Set__c;
                }
                raesd.Shipment_request_time2__c = Datetime.now();
                raesd.Shipment_request__c = true;
            }
            // 出库后, 再次做出库指示的一览, 一定要个出过库的一览一样
            if (false == String.isBlank(raesStrShipped) && raesStrRequest != raesStrShipped) {
                return '不能做出库指示,需要分单后再操作';
            }
        }
        // add lc 20220927 SFDC-CJ48VE 备品预计出库日逻辑调整 start
        List<Rental_Apply_Equipment_Set__c> RAESRecords = [
                SELECT Id,Rental_Start_Date__c
                FROM Rental_Apply_Equipment_Set__c
                WHERE Rental_Apply__c = :raid
                AND Cancel_Select__c = False];
        for (Integer i = 0; i < RAESRecords.size(); i++) {
            // 备品预计出库日不一致,不可出库指示
            if (RAESRecords[i].Rental_Start_Date__c != RAESRecords[0].Rental_Start_Date__c) {
                return '备品预计出货日不一致,不可出库指示';
            }
        }
        // add lc 20220927 SFDC-CJ48VE 备品预计出库日逻辑调整 end
        Rental_Apply__c ra = new Rental_Apply__c(Id = raesds[0].Rental_Apply__c, Status__c = '已出库指示');
        update ra;
        Database.SaveResult[] results = Database.update(raesds);
        Database.SaveResult dmlResult = results[0];
        if (dmlResult.isSuccess()) {
            //明细更新成功后才更新一览的Rental_Asset_SerialNumber__c
            soql = 'SELECT Id, SerialNumber_text__c, Rental_Apply_Equipment_Set__c '
                    +'FROM Rental_Apply_Equipment_Set_Detail__c '
                    +'WHERE Rental_Apply__c = \'' + raesds[0].Rental_Apply__c + '\''
                    +'AND Shipment_request_time2__c != null '
                    +'AND Shipment_request__c = true '
                    +'AND SerialNumber_text__c != null '
                    +'ORDER BY Rental_Apply_Equipment_Set__c ';
            List<Rental_Apply_Equipment_Set_Detail__c> raesdSerialNumbers = Database.query(soql);
            for (Rental_Apply_Equipment_Set_Detail__c raesd : raesdSerialNumbers) {
                if (!rental_Asset_SerialNumberMap.containsKey(raesd.Rental_Apply_Equipment_Set__c)) {
                    // Asset__r.SerialNumber + ','
                    rental_Asset_SerialNumberMap.put(raesd.Rental_Apply_Equipment_Set__c, new List<String>());
                }
                rental_Asset_SerialNumberMap.get(raesd.Rental_Apply_Equipment_Set__c).add(raesd.SerialNumber_text__c);
            }
            List<Rental_Apply_Equipment_Set__c> raess = new List<Rental_Apply_Equipment_Set__c>();
            for (Id key : rental_Asset_SerialNumberMap.keySet()) {
                raess.add(new Rental_Apply_Equipment_Set__c(Id = key,
                        Rental_Asset_SerialNumber__c = ',' + String.join(rental_Asset_SerialNumberMap.get(key), ',') + ','));
            }
            if (!raess.isEmpty()) {
                update raess;
            }
            return '状态更新到已出库指示';
        } else {
            Database.rollback(sp);
            Database.Error emsg = dmlResult.getErrors()[0];
            return 'failed to update:' + emsg.getFields() +  ' ' + emsg.getMessage();
        }
      } catch (Exception ex) {
        Database.rollback(sp);
        return ex.getMessage();
      }
    }
    @AuraEnabled
    public static String postponeCheck(String endDate, Integer i) {
        Date d=Date.valueOf(endDate);
        // return 'OK1';S
        Date selectDate;
        if (d == Date.valueOf('4000-12-31')) {
            selectDate=d;
        } else if (i >= 0) {
            List<OlympusCalendar__c> workday = [
                    select Id, Date__c, IsWorkDay__c
                      from OlympusCalendar__c
                     where Date__c >= :d
                       and IsWorkDay__c = 1
                     order by Date__c
                     limit :(i+1)];
            selectDate = workday[i].Date__c;
            return 'OK1';
            // if (Date.today() > selectDate) {
            //     return System.Label.EquipmentRentalPostponeOverDeadline;
            // }
        } else {
            i = Math.abs(i);
            List<OlympusCalendar__c> workday = [
                    select Id, Date__c, IsWorkDay__c
                      from OlympusCalendar__c
                     where Date__c <= :d
                       and IsWorkDay__c = 1
                     order by Date__c desc
                     limit :(i+1)];
            selectDate = workday[i].Date__c;
        }
        if (Date.today() > selectDate) {
            return System.Label.EquipmentRentalPostponeOverDeadline;
        }
        return 'OK';
        // Date before5day = getWD_addday(date.parse(endDate), d);
        // return 'OK2';
        // if (Date.today() > before5day) {
        //     return System.Label.EquipmentRentalPostponeOverDeadline;
        // }
        // return 'OK';
    }
    // public static Date getWD_addday(Date d, Integer i) {
    // }
    @AuraEnabled
    public static String submitApprovalRequest(String recordId) {
        try{
           Approval.ProcessSubmitRequest req = new Approval.ProcessSubmitRequest();
           req.setObjectId(recordId);
           Approval.ProcessResult result = Approval.process(req);
           if(result.getErrors()!=null&&result.getErrors().size()>0)return result.getErrors().get(0).getMessage();
        }catch(Exception e){
            System.debug(' submitApprovalRequest  error: '+e.getMessage());
            return e.getMessage();
        }
        return null;
    }
    public class UpdateResult {
        @AuraEnabled public String recordId {get;set;}
        @AuraEnabled public Boolean success {get;set;}
        @AuraEnabled public List<String> errors {get;set;}
    }
    public class InitData{
        @AuraEnabled
        public String id;
        @AuraEnabled
        public String RentalApplyId;
        @AuraEnabled
        public String Status;
        @AuraEnabled
        public String RentalApplyC;
        @AuraEnabled
        public Decimal WeiAssignedCntC;
        @AuraEnabled
        public Date BollowDateC;
        @AuraEnabled
        public Decimal AssignedNotShipmentC;
        @AuraEnabled
        public List<String> statusList;
    }
}
force-app/main/default/classes/LexSelectSubstituteControllerLWT.cls-meta.xml
New file
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
    <apiVersion>50.0</apiVersion>
    <status>Active</status>
</ApexClass>
force-app/main/default/classes/LexSubmitExtensionController.cls
New file
@@ -0,0 +1,40 @@
public with sharing class LexSubmitExtensionController {
    @AuraEnabled
    public static InitData init(String recordId) {
        InitData res = new InitData();
        try {
            List<Rental_Apply__c> racList = [SELECT Id, ExtensionStatus__c, Root_Rental_Apply__c, demo_purpose2__c, AgreementBorrowingExtensionDate__c, Return_dadeline_final__c from Rental_Apply__c where Id = :recordId];
            if(racList.size()>0){
                Rental_Apply__c rac = racList[0];
                res.id = rac.Id;
                res.extensionStatus = rac.ExtensionStatus__c;
                res.rootRentalApply = rac.Root_Rental_Apply__c;
                res.demoPurpose2 = rac.demo_purpose2__c;
                res.agreementBorrowingExtensionDate = rac.AgreementBorrowingExtensionDate__c;
                res.returnDadelineFinal = rac.Return_dadeline_final__c;
            }
        }
        catch (Exception e) {
            System.debug(LoggingLevel.INFO, '****e:' + e);
        }
        return res;
    }
    public class InitData {
        @AuraEnabled
        public String id;
        @AuraEnabled
        public String extensionStatus;
        @AuraEnabled
        public String rootRentalApply;
        @AuraEnabled
        public String demoPurpose2;
        @AuraEnabled
        public Date agreementBorrowingExtensionDate;
        @AuraEnabled
        public Date returnDadelineFinal;
    }
}
force-app/main/default/classes/LexSubmitExtensionController.cls-meta.xml
New file
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
    <apiVersion>50.0</apiVersion>
    <status>Active</status>
</ApexClass>
force-app/main/default/classes/LexTransferApplyController.cls
New file
@@ -0,0 +1,11 @@
public with sharing class LexTransferApplyController {
    public LexTransferApplyController() {
    }
    @AuraEnabled
    public static TransferApply__c transferApplySelectDetail(String recordId){
        TransferApply__c ta = [SELECT Id, TA_Status__c FROM TransferApply__c where Id = :recordId];
        return ta;
    }
}
force-app/main/default/classes/LexTransferApplyController.cls-meta.xml
New file
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
    <apiVersion>50.0</apiVersion>
    <status>Active</status>
</ApexClass>
force-app/main/default/classes/NewLeadFromContact2.cls
New file
@@ -0,0 +1,37 @@
public with sharing class NewLeadFromContact2 {
    @AuraEnabled
    public static InitData NewLeadFromContact2(String recordId) {
        InitData res = new initData();
        try{
            Contact report= [SELECT Id,Name,AccountId FROM Contact WHERE Id = :recordId LIMIT 1];
            res.Id = report.Id;
            res.Name = report.Name;
            res.AccountId = report.AccountId;
            Account acc =  [SELECT Id,Name,Department_Class__c  FROM Account WHERE id =: report.AccountId];
            res.accountIds = acc.Id;
            res.accountName = acc.Name;
            res.accountDepartmentClass = acc.Department_Class__c;
            res.NewDailyReport = Schema.SObjectType.Lead.getRecordTypeInfosByDeveloperName().get('NewDaily_Report').getRecordTypeId();
            System.debug(LoggingLevel.INFO, '*** xu: ' + res);
        }catch(Exception e){
            System.debug(LoggingLevel.INFO, '*** xu: ' + e);
        }
        return res;
    }
    public class InitData{
        @AuraEnabled
        public String Id;
        @AuraEnabled
        public String Name;
        @AuraEnabled
        public String AccountId;
        @AuraEnabled
        public String accountIds;
        @AuraEnabled
        public String accountName;
        @AuraEnabled
        public String accountDepartmentClass;
        @AuraEnabled
        public String NewDailyReport;
    }
}
force-app/main/default/classes/NewLeadFromContact2.cls-meta.xml
New file
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
    <apiVersion>57.0</apiVersion>
    <status>Active</status>
</ApexClass>
force-app/main/default/classes/RentalApplyEquipmentSetWebService.cls
@@ -1,6 +1,7 @@
global without sharing class RentalApplyEquipmentSetWebService {
    //借出备品一览单位重新分配
    @AuraEnabled
    WebService static String rentalApplyEquipmentSetReassign(Id raesID) {
        Savepoint sp = Database.setSavepoint();
force-app/main/default/classes/RentalApplyWebService.cls
@@ -377,6 +377,7 @@
           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,
@@ -384,6 +385,7 @@
                                        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;
@@ -725,13 +727,13 @@
                                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';
force-app/main/default/classes/TenderingButtonController.cls
@@ -1,3 +1,10 @@
/*
 * @Author: zhangchunxu
 * @Date: 2023-03-31 13:36:53
 * @LastEditors: zhangchunxu
 * @LastEditTime: 2023-07-21 15:09:33
 *
 */
public class TenderingButtonController {
    @AuraEnabled
    public static InitData initTenderingController(String recordId) {
force-app/main/default/classes/lexConsumApplyController.cls
New file
@@ -0,0 +1,64 @@
public with sharing class lexConsumApplyController {
    @AuraEnabled
    public static InitData init(String recordId){
        InitData res = new InitData();
        try {
            List<Consum_Apply__c> caList = [SELECT Id, Campaign__c, Campaign__r.Status, Wei_Assigned_Cnt__c, Status__c,
                                Assigned_Not_Shipment__c,Bollow_Date__c,Yi_loaner_arranged__c
                                FROM Consum_Apply__c WHERE Id = :recordId];
            if(caList.size()>0){
                Consum_Apply__c ca = caList[0];
                if(ca.Campaign__c != null){
                    res.campaignId = ca.Campaign__c;
                }
                res.weiAssignedCnt = Integer.valueOf(ca.Wei_Assigned_Cnt__c);
                res.consumApplyStatus = ca.Status__c;
                res.campaignStatus = ca.Campaign__r.Status;
                res.assignedNotShipment = Integer.valueOf(ca.Assigned_Not_Shipment__c);
                res.bollowDate = ca.Bollow_Date__c;
                res.yiLoanerArranged = Integer.valueOf(ca.Yi_loaner_arranged__c);
            }
        }
        catch (Exception e) {
            System.debug('********lexConsumApplyController*****'+e.getMessage());
        }
        return res;
    }
    @AuraEnabled
    public static Integer getLength1(String recordId){
        //AND Shippment_loaner_time__c != null
        List<Consum_Apply_Equipment_Set__c> caeList = [SELECT Id from Consum_Apply_Equipment_Set__c WHERE Consum_Apply__c =:recordId AND RAES_Status__c != '已分配' AND RAES_Status__c != '取消分配'];
        return caeList.size();
    }
    @AuraEnabled
    public static Integer getLength2(String recordId){
        List<Consum_Apply_Equipment_Set__c> caeList = [SELECT Id from Consum_Apply_Equipment_Set__c WHERE Consum_Apply__c =:recordId AND RAES_Status__c != '已分配' AND RAES_Status__c != '取消分配'];
        return caeList.size();
    }
    @AuraEnabled
    public static Consum_Apply_Equipment_Set__c getSet(String setId){
        Consum_Apply_Equipment_Set__c cae = [select Id, Zan_Ding_Fen_Pei_Shu__c from Consum_Apply_Equipment_Set__c where Id= :setId];
        return cae;
    }
    public class InitData{
        @AuraEnabled
        public String campaignId;       //学会Id
        @AuraEnabled
        public String campaignStatus;   //学会状态
        @AuraEnabled
        public Integer weiAssignedCnt;      //未分配件数
        @AuraEnabled
        public String consumApplyStatus;    //状态
        @AuraEnabled
        public Integer assignedNotShipment;      //已分配未出库指示
        @AuraEnabled
        public Date bollowDate;       //备品中心出库日
        @AuraEnabled
        public Integer yiLoanerArranged;    //已出库件数
    }
}
force-app/main/default/classes/lexConsumApplyController.cls-meta.xml
New file
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
    <apiVersion>50.0</apiVersion>
    <status>Active</status>
</ApexClass>
force-app/main/default/classes/lexRentalFixtureSetAssignController.cls
@@ -1,3 +1,11 @@
/**
 * *
    ODescription:
    GAuthor: sun xia
    @Date: 2023-07-11 15:31:56
    GIastEditors: sun xia
    @IastEditTime: 2023-07-11 15:31:56
 * */
public with sharing class lexRentalFixtureSetAssignController {
    
    @AuraEnabled
force-app/main/default/classes/lexRentalFixtureSetAssignController.cls-meta.xml
@@ -2,4 +2,4 @@
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
    <apiVersion>50.0</apiVersion>
    <status>Active</status>
</ApexClass>
</ApexClass>
force-app/main/default/classes/lexReturnDeliveryController.cls
New file
@@ -0,0 +1,31 @@
public with sharing class lexReturnDeliveryController {
    @AuraEnabled
    public static InitData init(String recordId){
        InitData res = new InitData();
        try {
            res.flag = true;
            List<Consum_Apply_Equipment_Set_Detail__c> caeList = [SELECT Asset_Center_Confirm_F__c FROM Consum_Apply_Equipment_Set_Detail__c WHERE Cancel_Select__c = false AND Consum_Apply__c = :recordId];
            if(caeList.size()>0){
                res.size = caeList.size();
                for(Consum_Apply_Equipment_Set_Detail__c cae : caeList){
                    if(cae.Asset_Center_Confirm_F__c  != 'OK'){
                        res.flag = false;
                    }
                }
            }
        }
        catch (Exception e) {
            System.debug('********lexReturnDeliveryController*****'+e.getMessage());
        }
        return res;
    }
    public class InitData{
        @AuraEnabled
        public Boolean flag;
        @AuraEnabled
        public Integer size;
    }
}
force-app/main/default/classes/lexReturnDeliveryController.cls-meta.xml
New file
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
    <apiVersion>50.0</apiVersion>
    <status>Active</status>
</ApexClass>
force-app/main/default/lwc/lexAddSubmitApprovalProcess/lexAddSubmitApprovalProcess.js
@@ -4,10 +4,10 @@
import { CurrentPageReference,NavigationMixin } from 'lightning/navigation';
import { updateRecord } from 'lightning/uiRecordApi';
import LightningConfirm from 'lightning/confirm';
import init from '@salesforce/apex/AddSubmitApprovalProcessController.init';
import submitApproval from '@salesforce/apex/AddSubmitApprovalProcessController.submitApproval';
import init from '@salesforce/apex/LexAddSubmitApprovalProcessController.init';
import submitApproval from '@salesforce/apex/LexAddSubmitApprovalProcessController.submitApproval';
import setSObjectShare from '@salesforce/apex/ControllerUtil.setSObjectShare';
import changeAddApprovalStatus from '@salesforce/apex/AddSubmitApprovalProcessController.changeAddApprovalStatus';
import changeAddApprovalStatus from '@salesforce/apex/LexAddSubmitApprovalProcessController.changeAddApprovalStatus';
export default class lexAddSubmitApprovalProcess extends LightningElement {
    @api recordId;
@@ -29,6 +29,12 @@
        init({
            recordId: this.recordId
        }).then(result=>{
            console.log('result==='+JSON.stringify(result));
            if(JSON.stringify(result) == '{}'){
                this.ToastShow('没有查到需要的数据','warning');
                return;
            }
            if(result.addApprovalStatus != '草案中' || result.detailSize == 0){
                this.ToastShow('没有需要审批的追加附属品','warning');
                return;
@@ -37,143 +43,143 @@
            //     this.dispatchEvent(new CloseActionScreenEvent());
            //     return;
            // }
            const SUBMIT = LightningConfirm.open({
            LightningConfirm.open({
                message: "一旦提交此记录以待批准,根据您的设置您可能不再能够编辑此记录或将他从批准过程中调回。是否继续?",
                variant: 'headerless',
                label: '提示信息',
                // setting theme would have no effect
            });
            }).then(submit=>{
                if(!submit){
                    this.dispatchEvent(new CloseActionScreenEvent());
                    return;
                }else{
            if(SUBMIT==false){
                this.dispatchEvent(new CloseActionScreenEvent());
                return;
            }
            // 希望到货日不能早于申请提交日-0418追加
            //if ('{!Rental_Apply__c.Request_shipping_day__c}' < '{!TODAY()}') {
            // alert('希望到货日不能早于申请提交日');
            // return;
            // }
            console.log(JSON.stringify(result));
            if(result.repairId != null){
                if(result.demoPurpose1 == '维修代用' && result.demoPurpose2 == '一般用户'){
                    if(result.repairEstimatedDateFormula == null){
                        this.ToastShow('一般维修无报价日,不可借用备品','warning');
                        return;
                    }else if(result.repairEstimatedDateFormula <'2019-07-01' && result.agreedDate == null){
                        this.ToastShow('报价日在2019/7/1之前且户同意日为空,不可借用备品','warning');
                        return;
                    }
                }
                //备品申请 过去历史转移
                if(result.recordTypeId != result.demoRequestPastDataId && result.newProductGuaranteeObject=='2: 服务多年保修' && (result.assetModelNo=='CV-V1' ||result.assetModelNo=='CV-V1(A)'||result.assetModelNo=='CV-V1(B)'||result.assetModelNo=='GIF-LV1'||result.assetModelNo=='CF-LV1L'||result.assetModelNo=='CF-LV1I'||result.assetModelNo=='MAJ-1910') &&(result.demoPurpose2=='一般用户'||result.demoPurpose2=='再修理')){
                    this.ToastShow('奥辉设备,保修期内不提供备品.','warning');
                    return;
                }
            }
            if(result.campaignId!=null || result.campaignId!=''){
                if(result.campaignStatus == '草案中'){
                    this.ToastShow('学会状态为草案中,不能提交','warning');
                    return;
                }
                if(result.campaignStatus == '申请中'){
                    this.ToastShow('学会状态为申请中,不能提交','warning');
                    return;
                }
                if(result.campaignStatus == '已结束'){
                    this.ToastShow('学会状态为已结束,不能提交','warning');
                    return;
                }
                if(result.campaignStatus == '已提交报告'){
                    this.ToastShow('学会状态为已提交报告,不能提交','warning');
                    return;
                }
                if(result.campaignStatus == '取消申请中'){
                    this.ToastShow('学会状态为取消申请中,不能提交','warning');
                    return;
                }
                if(result.campaignStatus == '取消'){
                    this.ToastShow('学会状态为取消,不能提交','warning');
                    return;
                }
            }
            if(result.qISNumber!=null || result.qISNumber!=''){
                if(result.nextAction=='送回'){
                    this.ToastShow('QIS 已送回,不能再申请备品了','warning');
                    return;
                }
            }
            //share
            var userAccess = new Array();
            userAccess.push(result.applyUserId + '_Edit');
            //SWAG-BZMA8W 去掉 服务经理部长共享 start
            //update lxy DLIU-BZNBG9 去掉服务经理部长共享
            //userAccess.push('{!Rental_Apply__c.JingliApprovalManagerId__c}_Read');
            //userAccess.push('{!Rental_Apply__c.SalesManagerId__c}_Read');//20210727 ljh SFDC-C54C33 update 共享触发器完成
            //update lxy DLIU-BZNBG9 去掉服务经理部长共享
            //userAccess.push('{!Rental_Apply__c.BuchangApprovalManagerId__c}_Read');
            //SWAG-BZMA8W 去掉 服务经理部长共享 end
            //userAccess.push('{!Rental_Apply__c.BuchangApprovalManagerSalesId__c}_Read');//20210727 ljh SFDC-C54C33 update 共享触发器完成
            //userAccess.push('{!Rental_Apply__c.ZongjianApprovalManagerId__c}_Read');//20210727 ljh SFDC-C54C33 update 共享触发器完成
            //userAccess.push('{!Rental_Apply__c.Status__c}_Read');
            console.log('参数==='+result.rentalApplyId+' '+userAccess+' '+result.ownerId);
            setSObjectShare({
                sobjectName:'Rental_Apply__Share',
                rowCause:'ApplyUserShare__c',
                parentId:result.rentalApplyId,
                userAccess:userAccess,
                ownerId:result.ownerId
            }).then(res=>{
                if(res!='OK'){
                    this.ToastShow(res,'warning');
                    return;
                }else{
                    console.log('setSObjectShareSuccess====OK');
                    //追加备品申请状态确认,已经提交过的申请,不能重复提交Status__c
                    if (result.rentalApplyStatus != '已批准' && result.rentalApplyStatus != '已出库指示') {
                        this.ToastShow('请备品申请状态确认,申请状态已批准后才可以提交追加审批','warning');
                        return;
                    // 希望到货日不能早于申请提交日-0418追加
                    //if ('{!Rental_Apply__c.Request_shipping_day__c}' < '{!TODAY()}') {
                    // alert('希望到货日不能早于申请提交日');
                    // return;
                    // }
                    console.log(JSON.stringify(result));
                    if(result.repairId != null){
                        if(result.demoPurpose1 == '维修代用' && result.demoPurpose2 == '一般用户'){
                            if(result.repairEstimatedDateFormula == null){
                                this.ToastShow('一般维修无报价日,不可借用备品','warning');
                                return;
                            }else if(result.repairEstimatedDateFormula <'2019-07-01' && result.agreedDate == null){
                                this.ToastShow('报价日在2019/7/1之前且户同意日为空,不可借用备品','warning');
                                return;
                            }
                        }
                        //备品申请 过去历史转移
                        if(result.recordTypeId != result.demoRequestPastDataId && result.newProductGuaranteeObject=='2: 服务多年保修' && (result.assetModelNo=='CV-V1' ||result.assetModelNo=='CV-V1(A)'||result.assetModelNo=='CV-V1(B)'||result.assetModelNo=='GIF-LV1'||result.assetModelNo=='CF-LV1L'||result.assetModelNo=='CF-LV1I'||result.assetModelNo=='MAJ-1910') &&(result.demoPurpose2=='一般用户'||result.demoPurpose2=='再修理')){
                            this.ToastShow('奥辉设备,保修期内不提供备品.','warning');
                            return;
                        }
                    }
                    changeAddApprovalStatus({
                        recordId: this.recordId,
                        status: '填写完毕'
                    }).then(changeResult=>{
                        if(changeResult == '更新成功'){
                            submitApproval({
                                recordId: this.recordId
                            }).then(submitApprovalRes=>{
                                if(submitApprovalRes == 'OK'){
                                    this.ToastShow('提交追加待审批','success');
                                    this.updateRecordView(this.recordId);
                                }else{
                                    this.ToastShow('追加待审批失败','ERROR');
                                }
                            })
                    if(result.campaignId!=null || result.campaignId!=''){
                        if(result.campaignStatus == '草案中'){
                            this.ToastShow('学会状态为草案中,不能提交','warning');
                            return;
                        }
                        if(result.campaignStatus == '申请中'){
                            this.ToastShow('学会状态为申请中,不能提交','warning');
                            return;
                        }
                        if(result.campaignStatus == '已结束'){
                            this.ToastShow('学会状态为已结束,不能提交','warning');
                            return;
                        }
                        if(result.campaignStatus == '已提交报告'){
                            this.ToastShow('学会状态为已提交报告,不能提交','warning');
                            return;
                        }
                        if(result.campaignStatus == '取消申请中'){
                            this.ToastShow('学会状态为取消申请中,不能提交','warning');
                            return;
                        }
                        if(result.campaignStatus == '取消'){
                            this.ToastShow('学会状态为取消,不能提交','warning');
                            return;
                        }
                    }
                    if(result.qISNumber!=null || result.qISNumber!=''){
                        if(result.nextAction=='送回'){
                            this.ToastShow('QIS 已送回,不能再申请备品了','warning');
                            return;
                        }
                    }
                    //share
                    var userAccess = new Array();
                    userAccess.push(result.applyUserId + '_Edit');
                    //SWAG-BZMA8W 去掉 服务经理部长共享 start
                    //update lxy DLIU-BZNBG9 去掉服务经理部长共享
                    //userAccess.push('{!Rental_Apply__c.JingliApprovalManagerId__c}_Read');
                    //userAccess.push('{!Rental_Apply__c.SalesManagerId__c}_Read');//20210727 ljh SFDC-C54C33 update 共享触发器完成
                    //update lxy DLIU-BZNBG9 去掉服务经理部长共享
                    //userAccess.push('{!Rental_Apply__c.BuchangApprovalManagerId__c}_Read');
                    //SWAG-BZMA8W 去掉 服务经理部长共享 end
                    //userAccess.push('{!Rental_Apply__c.BuchangApprovalManagerSalesId__c}_Read');//20210727 ljh SFDC-C54C33 update 共享触发器完成
                    //userAccess.push('{!Rental_Apply__c.ZongjianApprovalManagerId__c}_Read');//20210727 ljh SFDC-C54C33 update 共享触发器完成
                    //userAccess.push('{!Rental_Apply__c.Status__c}_Read');
                    console.log('参数==='+result.rentalApplyId+' '+userAccess+' '+result.ownerId);
                    setSObjectShare({
                        sobjectName:'Rental_Apply__Share',
                        rowCause:'ApplyUserShare__c',
                        parentId:result.rentalApplyId,
                        userAccess:userAccess,
                        ownerId:result.ownerId
                    }).then(res=>{
                        if(res!='OK'){
                            this.ToastShow(res,'warning');
                            return;
                        }else{
                            this.ToastShow(changeResult,'error');
                        }
                            console.log('setSObjectShareSuccess====OK');
                            //追加备品申请状态确认,已经提交过的申请,不能重复提交Status__c
                            if (result.rentalApplyStatus != '已批准' && result.rentalApplyStatus != '已出库指示') {
                                this.ToastShow('请备品申请状态确认,申请状态已批准后才可以提交追加审批','warning');
                                return;
                            }
                            changeAddApprovalStatus({
                                recordId: this.recordId,
                                status: '填写完毕'
                            }).then(changeResult=>{
                                if(changeResult == '更新成功'){
                                    submitApproval({
                                        recordId: this.recordId
                                    }).then(submitApprovalRes=>{
                                        if(submitApprovalRes == 'OK'){
                                            this.ToastShow('提交追加待审批成功','success');
                                            this.updateRecordView(this.recordId);
                                        }else{
                                            this.ToastShow('追加待审批失败','ERROR');
                                        }
                                    })
                                }else{
                                    this.ToastShow(changeResult,'error');
                                }
                            })
                        }
                    }).catch(err=>{
                        console.log('setSObjectShareErr===='+err);
                    })
                }
            }).catch(err=>{
                console.log('setSObjectShareErr===='+err);
            })
                }
            })
        }).catch(err=>{
            console.log('====1111====',err);
        })
        })
    }
    ToastShow(msg,type){
        const evt = new ShowToastEvent({
            title : msg,
            message: '',
            //title : msg,
            message: msg,
            variant: type
        });
        this.dispatchEvent(evt);
@@ -183,4 +189,17 @@
    updateRecordView(recordId) {
        updateRecord({fields: { Id: recordId }});
    }
    async handleConfirmClick(msg) {
        const result = await LightningConfirm.open({
            message: msg,
            variant: 'headerless',
            label: 'this is the aria-label value'
        });
        if (result) {
            this.ll();
        } else {
            window.history.go(-1);
        }
    }
}
force-app/main/default/lwc/lexAllReceivedBtns/lexAllReceivedBtns.js
@@ -7,7 +7,7 @@
import { NavigationMixin } from 'lightning/navigation';
export default class LexAllReceivedBtns extends NavigationMixin(LightningElement) {
export default class lexAllReceivedBtns extends NavigationMixin(LightningElement) {
    @api raid;
    IsLoading = true;
    @wire(CurrentPageReference)
force-app/main/default/lwc/lexAllReceivedFse/lexAllReceivedFse.js
@@ -4,8 +4,8 @@
import { ShowToastEvent } from 'lightning/platformShowToastEvent';
import { updateRecord } from 'lightning/uiRecordApi';
import init from '@salesforce/apex/AllReceivedFseController.init';
import getRaeSet from '@salesforce/apex/AllReceivedFseController.getRaeSet';
import init from '@salesforce/apex/LexAllReceivedFseController.init';
import getRaeSet from '@salesforce/apex/LexAllReceivedFseController.getRaeSet';
export default class lexAllReceivedFse extends LightningElement {
    @api recordId;
@@ -26,31 +26,33 @@
        init({
            recordId: this.recordId
        }).then(res=>{
            console.log('loanerReceivedNgNum==='+ res.loanerReceivedNgNum);
            if(res.loanerReceivedNgNum == 0){
                const evt = new ShowToastEvent({
                        title : '现场已经全部收到实物了',
                        message: '',
                        variant: 'error'
                    });
                this.dispatchEvent(evt);
                this.dispatchEvent(new CloseActionScreenEvent());
            }else{
                getRaeSet({
                    recordId: this.recordId
                }).then(res=>{
                    if(res == 'SUCCESS'){
                        this.showToast('现场已全部收货','success');
                        return;
                    }else{
                        this.showToast(res,'warning');
                        return;
                    }
                })
                .catch(err=>{
                    console.log('getRaeSet==='+err);
                })
            console.log('loanerReceivedNgNum==='+ JSON.stringify(res));
            if(res){
                if(res.loanerReceivedNgNum == 0){
                    const evt = new ShowToastEvent({
                            title : '现场已经全部收到实物了',
                            message: '',
                            variant: 'error'
                        });
                    this.dispatchEvent(evt);
                    this.dispatchEvent(new CloseActionScreenEvent());
                }else{
                    getRaeSet({
                        recordId: this.recordId
                    }).then(res=>{
                        if(res == 'SUCCESS'){
                            this.showToast('现场已全部收货','success');
                            return;
                        }else{
                            this.showToast(res,'warning');
                            return;
                        }
                    })
                    .catch(err=>{
                        console.log('getRaeSet==='+err);
                    })
                }
            }
        }).catch(err=>{
            console.log('init==='+err);
force-app/main/default/lwc/lexEquipmentRentalPDF/lexEquipmentRentalPDF.js
@@ -4,7 +4,7 @@
import { ShowToastEvent } from 'lightning/platformShowToastEvent';
import { updateRecord } from 'lightning/uiRecordApi';
import init from '@salesforce/apex/RentalApplyEquipmentRentalPDFController.initJumptoPDFButton';
import init from '@salesforce/apex/LexRentalApplyPDFController.initJumptoPDFButton';
export default class lexEquipmentRentalPDF extends LightningElement {
    @api recordId;
force-app/main/default/lwc/lexEquipmentRentalPicturePDF/lexEquipmentRentalPicturePDF.js
@@ -4,7 +4,7 @@
import { ShowToastEvent } from 'lightning/platformShowToastEvent';
import { updateRecord } from 'lightning/uiRecordApi';
import init from '@salesforce/apex/EquipmentRentalPicturePDFController.init';
import init from '@salesforce/apex/LexEquipmentRentalPicturePDFController.init';
export default class lexEquipmentRentalPicturePDF extends LightningElement {
    @api recordId;
        IsLoading = true;
@@ -25,15 +25,20 @@
        init({
            recordId: this.recordId
        }).then(result=>{
            //console.log('result.shipmentRequestedCnt===' + result.shipmentRequestedCnt)
            if( result.shipmentRequestedCnt > 0){
                console.log(result.pagelength);
                for(var i =0; i<result.pagelength; i++){
                    this.dispatchEvent(new CloseActionScreenEvent());
                    window.open('/apex/FixtureRentalPicturePDF?raid='+ this.recordId +'&page=' + i);
            console.log('result==='+JSON.stringify(result));
            if(result){
                //console.log('result.shipmentRequestedCnt===' + result.shipmentRequestedCnt)
                if( result.shipmentRequestedCnt > 0){
                    console.log(result.pagelength);
                    for(var i =0; i<result.pagelength; i++){
                        this.dispatchEvent(new CloseActionScreenEvent());
                        window.open('/apex/FixtureRentalPicturePDF?raid='+ this.recordId +'&page=' + i);
                    }
                }else{
                    this.showToast('当前的申请单中没有已出库指示的配套。','error');
                }
            }else{
                this.showToast('当前的申请单中没有已出库指示的配套。','error');
                this.showToast("未查到数据", 'error');
            }
        }).catch(err=>{
            this.dispatchEvent(new CloseActionScreenEvent());
force-app/main/default/lwc/lexEquipmentSetManage/lexEquipmentSetManage.html
New file
@@ -0,0 +1,5 @@
<template>
      <div class="Holder" if:true={IsLoading}>
              <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
      </div>
</template>
force-app/main/default/lwc/lexEquipmentSetManage/lexEquipmentSetManage.js
New file
@@ -0,0 +1,13 @@
import { LightningElement, track, wire, api } from 'lwc';
export default class lexEquipmentSetManage extends LightningElement {
    @api recordId;
    IsLoading=true;
    connectedCallback(){
        if (this.recordId) {
            window.open("/apex/EquipmentSetManage?esetid="+this.recordId, "_top");
        }
    }
}
force-app/main/default/lwc/lexEquipmentSetManage/lexEquipmentSetManage.js-meta.xml
New file
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="lexEquipmentSetManage">
    <apiVersion>51.0</apiVersion>
    <isExposed>true</isExposed>
    <targets>
        <target>lightning__AppPage</target>
        <target>lightning__RecordPage</target>
        <target>lightning__HomePage</target>
        <target>lightning__RecordAction</target>
        <!-- 屏幕流配置 -->
        <target>lightning__FlowScreen</target>
    </targets>
    <!-- 定义变量 -->
    <targetConfigs>
        <targetConfig targets="lightning__FlowScreen">
            <!-- name js中使用的变量,从屏幕流中获取参数  label 在屏幕流的该LWC的设置中显示 -->
            <property name="recordId" type="String" label="recordId"/>
        </targetConfig>
    </targetConfigs>
</LightningComponentBundle>
force-app/main/default/lwc/lexFeedbackReport/lexFeedbackReport.html
@@ -1,5 +1,2 @@
<template>
    <div class="sisToOPDHolder" if:true={IsLoading}>
        <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
    </div>
</template>
force-app/main/default/lwc/lexFeedbackReport/lexFeedbackReport.js
@@ -3,12 +3,10 @@
import { ShowToastEvent } from 'lightning/platformShowToastEvent';
import { CurrentPageReference } from 'lightning/navigation';
import init from '@salesforce/apex/RentalApplyFaultController.init';
import updateRentalApplyFaultStatus from '@salesforce/apex/RentalApplyFaultController.updateRentalApplyFaultStatus';
import init from '@salesforce/apex/LexRentalApplyFaultController.init';
import updateRentalApplyFaultStatus from '@salesforce/apex/LexRentalApplyFaultController.updateRentalApplyFaultStatus';
export default class lexFeedbackReport extends LightningElement {
    @api recordId;
    IsLoading = true;
    @wire(CurrentPageReference)
    getStateParameters(currentPageReference){
        if(currentPageReference) {
@@ -24,21 +22,25 @@
        init({
            recordId: this.recordId
        }).then(res=>{
            if(res.status__c!='已发送'){
            if(res){
                if(res.status__c!='已发送'){
                this.showToast('只有已发送的检测分析报告才能发送','warning');
                return;
            }
            updateRentalApplyFaultStatus({
                recordId: this.recordId,
                updateStatus: '已反馈'
            }).then(result=>{
                if(result=='SUCCESS'){
                    this.showToast('报告已反馈','success');
                }else{
                    this.showToast(res,'error');
                    return;
                }
            })
                updateRentalApplyFaultStatus({
                    recordId: this.recordId,
                    updateStatus: '已反馈'
                }).then(result=>{
                    if(result=='SUCCESS'){
                        this.showToast('报告已反馈','success');
                    }else{
                        this.showToast(res,'error');
                    }
                })
            }else{
                this.showToast('未查询到数据','warning');
            }
        })
    }
force-app/main/default/lwc/lexFixtureSetManage/lexFixtureSetManage.js
@@ -1,9 +1,28 @@
import { LightningElement, track, wire, api } from 'lwc';
import { CurrentPageReference,NavigationMixin } from 'lightning/navigation';
export default class lexFixtureSetManage extends LightningElement {
    @api recordId;
    IsLoading = true;
    @wire(CurrentPageReference)
    getStateParameters(currentPageReference){
        if(currentPageReference) {
            const urlValue = currentPageReference.state.recordId;
            if(urlValue) {
                let str = `${urlValue}`;
                this.recordId = str;
            }
        }
    }
    connectedCallback(){
        this.IsLoading = false;
        window.open("/apex/FixtureSetManage?pt_recid=" + this.recordId, "_top");
        this.closeAction();
    }
    closeAction() {
        //返回当前的备品申请
        window.open("/"+this.recordId,'_self');
    }
}
force-app/main/default/lwc/lexLoanerArrangedEmail/lexLoanerArrangedEmail.js
@@ -4,8 +4,8 @@
import { ShowToastEvent } from 'lightning/platformShowToastEvent';
import { updateRecord } from 'lightning/uiRecordApi';
import init from '@salesforce/apex/LoanerArrangedEmailController.init';
import getRentalApplyEquipmentSet from '@salesforce/apex/LoanerArrangedEmailController.getRentalApplyEquipmentSet';
import init from '@salesforce/apex/LexLoanerArrangedEmailController.init';
import getRentalApplyEquipmentSet from '@salesforce/apex/LexLoanerArrangedEmailController.getRentalApplyEquipmentSet';
import approvalCheck from '@salesforce/apex/RentalApplyWebService.approvalCheck';
import setShipment_request from '@salesforce/apex/RentalApplyWebService.setShipment_request';
export default class lexLoanerArrangedEmail extends LightningElement {
force-app/main/default/lwc/lexLoanerArrangedEmailConsumApply/lexLoanerArrangedEmailConsumApply.js
@@ -29,7 +29,7 @@
            if(res.weiAssignedCnt > 0){
                this.showToast('申请单内存在未分配的耗材,请分配或分割申请单','warning');
                return;
            }else if(res.consumApplyStatus == '取消'){
            }else if(res.campaignStatus == '取消'){
                this.showToast('学会取消,不可出库指示','warning');
                return;
            }else if(res.consumApplyStatus == '已出库指示' && res.assignedNotShipment == 0){
force-app/main/default/lwc/lexMainFixtureSelect/lexMainFixtureSelect.js
@@ -1,7 +1,6 @@
import { LightningElement, track, wire, api } from 'lwc';
import { CurrentPageReference,NavigationMixin } from 'lightning/navigation';
import init from '@salesforce/apex/MainFixtureSelectButtonController.init';
export default class lexMainFixtureSelect extends LightningElement {
    @api recordId;
    IsLoading = true;
@@ -19,7 +18,9 @@
    connectedCallback(){
        this.IsLoading = false;
        window.open("/apex/MainFixtureSelect?pt_recid=" + this.recordId, "_top");
        this.closeAction();
    }
    closeAction() {
force-app/main/default/lwc/lexNewLeadFromContact2/lexNewLeadFromContact2.html
New file
@@ -0,0 +1,5 @@
<template>
    <div class="IntentionButton" if:true={IsLoading}>
        <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
    </div>
</template>
force-app/main/default/lwc/lexNewLeadFromContact2/lexNewLeadFromContact2.js
New file
@@ -0,0 +1,73 @@
/*
 * @Author: zhangchunxu
 * @Date: 2023-07-19 13:22:53
 * @LastEditors: zhangchunxu
 * @LastEditTime: 2023-07-21 15:47:55
 *
 */
import { LightningElement,wire,track,api} from 'lwc';
import { CurrentPageReference ,NavigationMixin} from "lightning/navigation";
import { CloseActionScreenEvent } from 'lightning/actions';
import  init  from '@salesforce/apex/NewLeadFromContact2.NewLeadFromContact2';
import { encodeDefaultFieldValues } from 'lightning/pageReferenceUtils';
export default class LexNewLeadFromContact2 extends NavigationMixin(LightningElement) {
    @api recordId;//当前这条数据的id
    id;//返回值的id  Tender_information__c招标项目的id
    IsLoading = true;
    @wire(CurrentPageReference)
     getStateParameters(currentPageReference) {
         if (currentPageReference) {
           const urlValue = currentPageReference.state.recordId;
           if (urlValue) {
             let str = `${urlValue}`;
             this.recordId = str;
           }
         }
     }
     // 客户人员 新建购买意向
     connectedCallback(){
        init({
            recordId: this.recordId
        }).then(result => {
                // this.IsLoading = false;
                // console.log(result,"xu111111111111");
                // this.id = result.Id;
                // /00Q/e?retURL=%2F00Q%2Fo&
                // RecordType=01210000000QiRf
                // &ent=Lead
                // &CF00N10000006ps6f={!HTMLENCODE(Contact.Name)} 客户姓名 contact_Name__c
                // &CF00N10000006ps6f_lkid={!HTMLENCODE(Contact.Id)} 客户id contact_Name__c
                // &CF00N10000002CvC5={!HTMLENCODE(Account.Name)} 医院名 Hospital_Name__c
                // &CF00N10000002CvC5_lkid={!HTMLENCODE(Account.Id)}医院id Hospital_Name__c
                // &lea3=%e4%b8%8d%e7%94%a8%e5%a1%ab%e5%86%99
                // &name_lastlea2=%e4%b8%8d%e7%94%a8%e5%a1%ab%e5%86%99
                // &CF00N10000006qNtt_lkid = {!HTMLENCODE(Account.Department_Class__c)} 战略科室分类id epartment_Class__c
                // &CF00N10000006qNtt={!HTMLENCODE(Account.Department_Class__c)} 战略科室分类 epartment_Class__c
                // var url = "/00Q/e?retURL=%2F00Q%2Fo&RecordType=01210000000QiRf&ent=Lead&CF00N10000006ps6f="+result.Name+"&CF00N10000006ps6f_lkid="+result.Id+"&CF00N10000002CvC5="+result.accountName+"&CF00N10000002CvC5_lkid="+result.accountIds+"&lea3=%e4%b8%8d%e7%94%a8%e5%a1%ab%e5%86%99&name_lastlea2=%e4%b8%8d%e7%94%a8%e5%a1%ab%e5%86%99&CF00N10000006qNtt_lkid ="+result.accountDepartmentClass+"&CF00N10000006qNtt="+result.accountDepartmentClass ;
                // window.open(url);
                const defaultValues = encodeDefaultFieldValues({
                    RecordType :result.NewDailyReport,
                    contact_Name__c:result.Id,
                    Hospital_Name__c:result.accountIds,
                    lea3:"",
                    name_lastlea2:"",
                    epartment_Class__c:result.accountDepartmentClass,
                });
                this[NavigationMixin.Navigate]({
                    type: 'standard__objectPage',
                    attributes: {
                        objectApiName: 'Lead',
                        actionName: 'new'
                    },
                    state:{
                        defaultFieldValues: defaultValues
                    }
                });
            this.dispatchEvent(new CloseActionScreenEvent());
        }).catch(error=>{
            console.log(error)
        })
    }
}
force-app/main/default/lwc/lexNewLeadFromContact2/lexNewLeadFromContact2.js-meta.xml
New file
@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
    <apiVersion>54.0</apiVersion>
    <isExposed>true</isExposed>
    <targets>
        <target>lightning__RecordPage</target>
        <target>lightning__AppPage</target>
        <target>lightning__HomePage</target>
        <target>lightning__RecordAction</target>
    </targets>
</LightningComponentBundle>
force-app/main/default/lwc/lexNewTransferApply/lexNewTransferApply.js
@@ -2,8 +2,8 @@
import { CurrentPageReference,NavigationMixin } from 'lightning/navigation';
import { CloseActionScreenEvent } from 'lightning/actions';
import { encodeDefaultFieldValues } from 'lightning/pageReferenceUtils';
import init from '@salesforce/apex/NewTransferApplyController.init';
import getRecordId from '@salesforce/apex/NewTransferApplyController.getRecordId';
import init from '@salesforce/apex/LexNewTransferApplyController.init';
import getRecordId from '@salesforce/apex/LexNewTransferApplyController.getRecordId';
export default class lexNewTransferApply extends LightningElement {
    @api recordId;
force-app/main/default/lwc/lexRentalApplyJump/lexRentalApplyJump.js
@@ -1,10 +1,10 @@
import { LightningElement,api, track, wire } from 'lwc';
import {CurrentPageReference} from 'lightning/navigation';
import { CloseActionScreenEvent } from 'lightning/actions';
import getUserId from '@salesforce/apex/RentalApplyControllerLWT.getUserId';
import init from '@salesforce/apex/SelectSubstituteControllerLWT.initFromSelectSubstituteButton';
import selectRentalApplyEquipmentSetByID from '@salesforce/apex/SelectSubstituteControllerLWT.selectRentalApplyEquipmentSetByID';
import selectRentalApplyEquipmentSetByRACID from '@salesforce/apex/SelectSubstituteControllerLWT.selectRentalApplyEquipmentSetByRACID';
import getUserId from '@salesforce/apex/LexRentalApplyControllerLWT.getUserId';
import init from '@salesforce/apex/LexSelectSubstituteControllerLWT.initFromSelectSubstituteButton';
import selectRentalApplyEquipmentSetByID from '@salesforce/apex/LexSelectSubstituteControllerLWT.selectRentalApplyEquipmentSetByID';
import selectRentalApplyEquipmentSetByRACID from '@salesforce/apex/LexSelectSubstituteControllerLWT.selectRentalApplyEquipmentSetByRACID';
import { ShowToastEvent } from 'lightning/platformShowToastEvent';
export default class lexRentalApplyJump extends LightningElement {
force-app/main/default/lwc/lexRentalFixtureSetAssignAgency/lexRentalFixtureSetAssignAgency.js
@@ -13,51 +13,53 @@
            recordId: this.recordId
        }).then(result=>{
            this.IsLoading = false;
            let res = result.ra;
            console.log(res);
            if(res.Campaign__c != '' || res.Campaign__c != undefined){
                if(res.CampaignStatus == '取消'){
                    this.isShow = true;
                    this.msg = '学会取消,不可分配';
                    return;
            if(result){
                let res = result.ra;
                console.log(res);
                if(res.Campaign__c != '' || res.Campaign__c != undefined){
                    if(res.CampaignStatus == '取消'){
                        this.isShow = true;
                        this.msg = '学会取消,不可分配';
                        return;
                    }
                }
            }
            if(res.Repair__c != '' || res.Repair__c != undefined){
                if(res.Repair_Final_Inspection_Date_F__c != null && res.Repair_Final_Inspection_Date_F__c !=''
                        || (res.RC_return_to_office__c!=null && res.RC_return_to_office__c != '')){
                    this.isShow = true;
                    this.msg = '修理有最终检测日或修理品返送日,不可分配';
                    return;
                if(res.Repair__c != '' || res.Repair__c != undefined){
                    if(res.Repair_Final_Inspection_Date_F__c != null && res.Repair_Final_Inspection_Date_F__c !=''
                            || (res.RC_return_to_office__c!=null && res.RC_return_to_office__c != '')){
                        this.isShow = true;
                        this.msg = '修理有最终检测日或修理品返送日,不可分配';
                        return;
                    }
                }
            }
            assignBtn({
                Rid: this.recordId
            }).then(resultMsg => {
                if(res.Status__c == '取消' && res.Rental_Apply_Equipment_Set_Cnt__c != 0){
                    window.open("/apex/RentalFixtureSetAssignAgency?pt_recid=" + this.recordId);
                    this.closeAction();
                }else if((res.demo_purpose2__c == '学会展会' || res.demo_purpose2__c == '课题研究' || res.demo_purpose2__c == '培训中心')&& res.Status__c == '草案中'){
                    this.isShow = true;
                    this.msg = "不能分配,请确认申请的状态";
                    return
                }else if((res.demo_purpose2__c =='试用(无询价)' || res.demo_purpose2__c == '试用(有询价)' || res.demo_purpose2__c =='动物实验' ||
                    res.demo_purpose2__c == '一般维修代用' || res.demo_purpose2__c== '保修合同用户维修代用' || res.demo_purpose2__c == '已购待货')
                && res.Status__c != '已批准' && res.Status__c != '已出库指示'){
                    this.isShow = true;
                    this.msg = "不能分配,请确认申请的状态";
                    return;
                }else if(resultMsg == 'Fin'){
                    window.open("/apex/RentalFixtureSetAssignAgency?pt_recid=" + this.recordId);
                    this.closeAction();
                    return;
                }else{
                    this.isShow = true;
                    this.msg = resultMsg;
                    return;
                }
            })
                assignBtn({
                    Rid: this.recordId
                }).then(resultMsg => {
                    if(res.Status__c == '取消' && res.Rental_Apply_Equipment_Set_Cnt__c != 0){
                        window.open("/apex/RentalFixtureSetAssignAgency?pt_recid=" + this.recordId);
                        this.closeAction();
                    }else if((res.demo_purpose2__c == '学会展会' || res.demo_purpose2__c == '课题研究' || res.demo_purpose2__c == '培训中心')&& res.Status__c == '草案中'){
                        this.isShow = true;
                        this.msg = "不能分配,请确认申请的状态";
                        return
                    }else if((res.demo_purpose2__c =='试用(无询价)' || res.demo_purpose2__c == '试用(有询价)' || res.demo_purpose2__c =='动物实验' ||
                        res.demo_purpose2__c == '一般维修代用' || res.demo_purpose2__c== '保修合同用户维修代用' || res.demo_purpose2__c == '已购待货')
                    && res.Status__c != '已批准' && res.Status__c != '已出库指示'){
                        this.isShow = true;
                        this.msg = "不能分配,请确认申请的状态";
                        return;
                    }else if(resultMsg == 'Fin'){
                        window.open("/apex/RentalFixtureSetAssignAgency?pt_recid=" + this.recordId);
                        this.closeAction();
                        return;
                    }else{
                        this.isShow = true;
                        this.msg = resultMsg;
                        return;
                    }
                })
            }
        })
        .catch(err=>{
            console.log('initErr==='+err);
force-app/main/default/lwc/lexReturnDeliverySlip/lexReturnDeliverySlip.js
@@ -5,7 +5,7 @@
import { ShowToastEvent } from 'lightning/platformShowToastEvent';
import { updateRecord } from 'lightning/uiRecordApi';
import init from '@salesforce/apex/ReturnDeliverySlipController.init';
import init from '@salesforce/apex/LexReturnDeliverySlipController.init';
export default class lexReturnDeliverySlip extends LightningElement {
    @api recordId;
@@ -28,13 +28,17 @@
        init({
            recordId: this.recordId
        }).then(result =>{
            console.log(JSON.stringify(result.raeSet));
            var check = result.raeSet && result.raeSet.length>0;
            if((check || result.rentalApplyEquipmentSetCnt - result.loanerReceivedNgNum > 0) && result.rentalApplyEquipmentSetCnt > 0){
                this.dispatchEvent(new CloseActionScreenEvent());
                window.open("/apex/EquipmentSetShippmentReceived4?id=" + result.name);
            console.log('result==='+JSON.stringify(result));
            if(result){
                var check = result.raeSet && result.raeSet.length>0;
                if((check || result.rentalApplyEquipmentSetCnt - result.loanerReceivedNgNum > 0) && result.rentalApplyEquipmentSetCnt > 0){
                    this.dispatchEvent(new CloseActionScreenEvent());
                    window.open("/apex/EquipmentSetShippmentReceived4?id=" + result.name);
                }else{
                    this.showToast("没有申请者收到确认的借出备品", 'error');
                }
            }else{
                this.showToast("没有申请者收到确认的借出备品", 'error');
                this.showToast("未查到数据", 'error');
            }
        }).catch(err=>{
            this.dispatchEvent(new CloseActionScreenEvent());
force-app/main/default/lwc/lexReturnDeliverySlipConsumApply/lexReturnDeliverySlipConsumApply.js
@@ -22,12 +22,16 @@
        init({
            recordId: this.recordId
        }).then(res=>{
            if(!res.flag){
            if(res){
                if(!res.flag){
                this.showToast('未完成到货确认或备品中心未确认不能上传试用表','warning');
                return;
            }
            if(res.size > 0){
                window.open("/apex/consumTrialConfirm?id=" + this.recordId);
                }
                if(res.size > 0){
                    this.dispatchEvent(new CloseActionScreenEvent());
                    window.open("/apex/consumTrialConfirm?id=" + this.recordId);
                    return;
                }
            }
        })
    }
force-app/main/default/lwc/lexSelectSubstitute/lexSelectSubstitute.js
@@ -1,9 +1,9 @@
import { LightningElement,api, track, wire } from 'lwc';
import {CurrentPageReference} from 'lightning/navigation';
import { CloseActionScreenEvent } from 'lightning/actions';
import init from '@salesforce/apex/SelectSubstituteControllerLWT.initFromSelectSubstituteButton';
import selectRentalApplyEquipmentSetByID from '@salesforce/apex/SelectSubstituteControllerLWT.selectRentalApplyEquipmentSetByID';
import selectRentalApplyCByName from '@salesforce/apex/SelectSubstituteControllerLWT.selectRentalApplyCByName';
import init from '@salesforce/apex/LexSelectSubstituteControllerLWT.initFromSelectSubstituteButton';
import selectRentalApplyEquipmentSetByID from '@salesforce/apex/LexSelectSubstituteControllerLWT.selectRentalApplyEquipmentSetByID';
import selectRentalApplyCByName from '@salesforce/apex/LexSelectSubstituteControllerLWT.selectRentalApplyCByName';
export default class selectSubstituteLWC extends LightningElement {
force-app/main/default/lwc/lexSendReport/lexSendReport.js
@@ -3,8 +3,8 @@
import { ShowToastEvent } from 'lightning/platformShowToastEvent';
import { CurrentPageReference } from 'lightning/navigation';
import init from '@salesforce/apex/RentalApplyFaultController.init';
import updateRentalApplyFaultStatus from '@salesforce/apex/RentalApplyFaultController.updateRentalApplyFaultStatus';
import init from '@salesforce/apex/LexRentalApplyFaultController.init';
import updateRentalApplyFaultStatus from '@salesforce/apex/LexRentalApplyFaultController.updateRentalApplyFaultStatus';
export default class lexSendReport extends LightningElement {
    @api recordId;
@@ -25,23 +25,28 @@
        init({
            recordId: this.recordId
        }).then(res=>{
            console.log('res==='+JSON.stringify(res));
            if(res.status__c!='草案中' && res.status__c!=''){
                this.showToast('只有草案中的检测分析报告才能发送报告','warning');
                return;
            }
            updateRentalApplyFaultStatus({
                recordId: this.recordId,
                updateStatus: '已发送'
            }).then(result=>{
                console.log('result==='+result);
                if(result=='SUCCESS'){
                    this.showToast('报告已发送','success');
                }else{
                    this.showToast(res.getMessage(),'error');
            if(res){
                console.log('res==='+JSON.stringify(res));
                if(res.status__c!='草案中' && res.status__c!=''){
                    this.showToast('只有草案中的检测分析报告才能发送报告','warning');
                    return;
                }
            })
                updateRentalApplyFaultStatus({
                    recordId: this.recordId,
                    updateStatus: '已发送'
                }).then(result=>{
                    console.log('result==='+result);
                    if(result=='SUCCESS'){
                        this.showToast('报告已发送','success');
                    }else{
                        this.showToast(res.getMessage(),'error');
                    }
                })
            }else{
                this.showToast('未查询到数据','warning');
            }
        }).catch(err=>{
            console.log('init=='+err);
        })
force-app/main/default/lwc/lexSubmitExtensionApprovalProcess/lexSubmitExtensionApprovalProcess.js
@@ -4,7 +4,7 @@
import { ShowToastEvent } from 'lightning/platformShowToastEvent';
import { updateRecord } from 'lightning/uiRecordApi';
import init from '@salesforce/apex/SubmitExtensionApprovalProcessController.init';
import init from '@salesforce/apex/LexSubmitExtensionController.init';
import extension_approval_processCheck from '@salesforce/apex/RentalApplyWebService.extension_approval_processCheck'
export default class lexSubmitExtensionApprovalProcess extends LightningElement {
    @api
@@ -27,7 +27,11 @@
            recordId:this.recordId
        }).then(res=>{
            console.log('res==='+JSON.stringify(res));
            var today = new Date();
            if(JSON.stringify(res) == '{}'){
                this.ToastShow('没有查到需要的数据','warning');
                return;
            }
            let today = new Date();
            //追加备品申请状态确认,已经提交过的申请,不能重复提交Status__c 
            if(res.extensionStatus == '填写完毕' || res.extensionStatus == '申请中') {
                this.showToast('请确认延期申请状态,已经提交过的申请,不能重复提交','error');
force-app/main/default/lwc/lexTenderingProjectRestartButton/lexTenderingProjectRestartButton.html
New file
@@ -0,0 +1,5 @@
<template>
    <div class="ProjectRestart" if:true={IsLoading}>
        <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
    </div>
</template>
force-app/main/default/lwc/lexTenderingProjectRestartButton/lexTenderingProjectRestartButton.js
New file
@@ -0,0 +1,64 @@
import { LightningElement,wire,track,api} from 'lwc';
import { CurrentPageReference ,NavigationMixin} from "lightning/navigation";
import { CloseActionScreenEvent } from 'lightning/actions';
import  init  from '@salesforce/apex/TenderingButtonController.initTenderingController';
import { updateRecord } from 'lightning/uiRecordApi';
import  projectRestart  from '@salesforce/apex/TenderingButtonController.projectRestart';
import { ShowToastEvent } from 'lightning/platformShowToastEvent';
import { encodeDefaultFieldValues } from 'lightning/pageReferenceUtils';
export default class lexTenderingProjectRestartButton extends NavigationMixin(LightningElement) {
    @api recordId;//当前这条数据的id
    id;//返回值的id  Tender_information__c招标项目的id
    status;
    IsLoading = true;
    @wire(CurrentPageReference)
     getStateParameters(currentPageReference) {
         if (currentPageReference) {
           const urlValue = currentPageReference.state.recordId;
           if (urlValue) {
             let str = `${urlValue}`;
             this.recordId = str;
           }
         }
     }
    //招标项目 项目重启
    connectedCallback(){
        init({
            recordId: this.recordId
        }).then(result => {
            this.IsLoading = false;
            this.status = result.status;
            this.projectRestart();
        })
    }
    projectRestart(){
        if(this.status == '09.终止'){
            projectRestart({recordId: this.recordId}).then(res=>{
                if(res != "1"){
                    var messageage = "";
                    messageage = res;
                    this.showToast(messageage,"error");
                }else{
                    this.updateRecordView();
                    this.dispatchEvent(new CloseActionScreenEvent());
                }
            }).catch(resp=>{
            })
        }else{
            // alert('终止审批状态不满足条件,无法重启。');
            this.showToast('终止审批状态不满足条件,无法重启。',"error");
            return;
        }
    }
    updateRecordView() {
        updateRecord({fields: { Id: this.recordId }});
    }
    showToast(msg,type) {
        const event = new ShowToastEvent({
            message: msg,
            variant: type
        });
        this.dispatchEvent(event);
        this.dispatchEvent(new CloseActionScreenEvent());
    }
}
force-app/main/default/lwc/lexTenderingProjectRestartButton/lexTenderingProjectRestartButton.js-meta.xml
New file
@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
    <apiVersion>54.0</apiVersion>
    <isExposed>true</isExposed>
    <targets>
        <target>lightning__RecordPage</target>
        <target>lightning__AppPage</target>
        <target>lightning__HomePage</target>
        <target>lightning__RecordAction</target>
    </targets>
</LightningComponentBundle>
force-app/main/default/lwc/lexTenderingTerminateResponseButton/lexTenderingTerminateResponseButton.html
New file
@@ -0,0 +1,5 @@
<template>
    <div class="ProjectRestart" if:true={IsLoading}>
        <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
    </div>
</template>
force-app/main/default/lwc/lexTenderingTerminateResponseButton/lexTenderingTerminateResponseButton.js
New file
@@ -0,0 +1,79 @@
/*
 * @Author: zhangchunxu
 * @Date: 2023-07-12 10:01:02
 * @LastEditors: zhangchunxu
 * @LastEditTime: 2023-07-21 14:30:48
 *
 */
import { LightningElement,wire,track,api} from 'lwc';
import { CurrentPageReference ,NavigationMixin} from "lightning/navigation";
import { CloseActionScreenEvent } from 'lightning/actions';
import  init  from '@salesforce/apex/TenderingButtonController.initTenderingController';
import { updateRecord } from 'lightning/uiRecordApi';
import  projectRestart  from '@salesforce/apex/TenderingButtonController.projectRestart';
import { ShowToastEvent } from 'lightning/platformShowToastEvent';
import { encodeDefaultFieldValues } from 'lightning/pageReferenceUtils';
export default class lexTenderingTerminateResponseButton extends NavigationMixin(LightningElement) {
    @api recordId;//当前这条数据的id
    id;//返回值的id  Tender_information__c招标项目的id
    status;
    IsLoading = true;
    TerminateApprovalStatus;
    AccSize = [];
    @wire(CurrentPageReference)
     getStateParameters(currentPageReference) {
         if (currentPageReference) {
           const urlValue = currentPageReference.state.recordId;
           if (urlValue) {
             let str = `${urlValue}`;
             this.recordId = str;
           }
         }
     }
    //招标项目 项目终止
    connectedCallback(){
        init({
            recordId: this.recordId
        }).then(result => {
            this.IsLoading = false;
            this.status = result.status;
            this.TerminateApprovalStatus = result.TerminateApprovalStatus;
            this.AccSize = result.AccSize;
            this.TerminateResponse();
        })
    }
    TerminateResponse(){
        if(this.TerminateApprovalStatus == '批准' || this.TerminateApprovalStatus == '申请中'){
        // alert("已存在申请中或者已批准的终止信息。");
        this.showToast('已存在申请中或者已批准的终止信息。',"error");
        return;
        }
        if (this.AccSize.length > 0 && parseInt(this.AccSize[0].total_cnt) > 0) {
            // alert("测试:" + sqlResult.records);
            var total_cnt = parseInt(this.AccSize[0].total_cnt);
            var stage_cnt = parseInt(this.AccSize[0].stage_cnt);
            var statusf_cnt = parseInt(this.AccSize[0].statusf_cnt);
            // alert("测试:关联询价数:"+total_cnt +"|状态1符合数:"+stage_cnt+"|状态2符合数:"+statusf_cnt+"|"+(total_cnt != stage_cnt || total_cnt != statusf_cnt));
            // 判断总数和各状态符合数
            if (total_cnt != stage_cnt || total_cnt != statusf_cnt) {
            // alert("关联询价状态不符合终止申请条件。");
            this.showToast('关联询价状态不符合终止申请条件。',"error");
            return;
            }
        }
        window.open ('/apex/Terminate?id='+this.recordId, '', 'height=350, width=600, top=200, left=350,location=no');
        this.dispatchEvent(new CloseActionScreenEvent());
    }
    updateRecordView() {
        updateRecord({fields: { Id: this.recordId }});
    }
    showToast(msg,type) {
        const event = new ShowToastEvent({
            message: msg,
            variant: type
        });
        this.dispatchEvent(event);
        this.dispatchEvent(new CloseActionScreenEvent());
    }
}
force-app/main/default/lwc/lexTenderingTerminateResponseButton/lexTenderingTerminateResponseButton.js-meta.xml
New file
@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
    <apiVersion>54.0</apiVersion>
    <isExposed>true</isExposed>
    <targets>
        <target>lightning__RecordPage</target>
        <target>lightning__AppPage</target>
        <target>lightning__HomePage</target>
        <target>lightning__RecordAction</target>
    </targets>
</LightningComponentBundle>
force-app/main/default/lwc/lexTransferApplySelectDetail/lexTransferApplySelectDetail.css
New file
@@ -0,0 +1,22 @@
.holder{
    position: relative;
    display: inline-block;
    width: 80px;
    height: 80px;
    text-align: center;
}
.container .uiContainerManager{
    display : none !important;
}
.toast{
    border: 1px solid #c9c9c9;
    border-radius: 10px;
    width: 50%;
    margin: 0 auto;
    font-size: 18px;
    font-weight: bold;
    padding: 10px 20px;
    background: #feb75d;
    display: flex;
}
force-app/main/default/lwc/lexTransferApplySelectDetail/lexTransferApplySelectDetail.html
@@ -2,7 +2,7 @@
  <div class="holder" if:true={IsLoading}>
      <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
  </div>
  <div if:false={IsLoading} class="toast">
  <div if:true={IsShow} class="toast">
    <span style="padding: 10px;">{msg}</span>
    <button class="slds-button slds-button_icon slds-modal__close slds-button_icon-inverse" onclick={closeAction} title="Close" style="background-color: #e5e4e2;margin-top: 15px;">
                <lightning-icon class="greyIcon" icon-name="utility:close" alternative-text="Connected" variant="inverse" size="small"
force-app/main/default/lwc/lexTransferApplySelectDetail/lexTransferApplySelectDetail.js
@@ -4,12 +4,15 @@
export default class lexTransferApplySelectDetail extends LightningElement {
    @api recordId;
    msg;
    IsLoading = true;
    IsShow = false;
    connectedCallback(){
        transferApplySelectDetail({
            recordId: this.recordId
        }).then(res=>{
            this.IsLoading = false;
            if(res.TA_Status__c == '删除' || res.TA_Status__c == '取消' || res.TA_Status__c == '完了'){
                this.IsShow = true;
                this.msg = '调拨申请已经'+ res.TA_Status__c +',不能选择调拨明细'
            }else{
                window.open("/apex/TransferApplySelectDetail?id="+this.recordId, "_top"); 
force-app/main/default/pages/AssetMaintainDetail.page
@@ -3,10 +3,67 @@
    <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
    <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
    <apex:includeScript value="{!URLFOR($Resource.RelationListPagingCmpJS)}"/>
    <apex:stylesheet value="{!URLFOR($Resource.StyleUtilCss)}"/><!-- 20230619 ljh lightning -->
    <style>
        .headStyle td input{
            width: 150px;
        }
        .headStyle td input.btn{
            width: 70px;
        }
        .headStyle td{
            padding-left: 30px;
            padding-bottom: 10px;
        }
        body .bPageBlock .detailList .dataCol{
            width: 18%;
        }
        body .bPageBlock .detailList .labelCol{
            width: 8%;
        }
        table.list .col_Asset__r_Id {width:100px;}
        table.list .col_Asset__r_Internal_asset_location__c{width:100px;}
        table.list .col_Asset__r_Salesdepartment__c{width:100px;}
        table.list .col_Asset__r_SalesProvince__c{width:100px;}
        table.list .col_Asset__r_Fixture_Model_No_F__c{width:100px;}
        table.list .col_Asset__r_Internal_Asset_number_key__c{width:100px;}
        table.list .col_Asset__r_Internal_Asset_number__c{width:100px;}
        table.list .col_Asset__r_SerialNumberLink__c{width:100px;}
        table.list .col_Asset__r_Product_category__c {width:100px;}
        table.list .col_Asset__r_Equipment_Type__c {width:100px;}
        table.list .col_Asset__r_Consumable_Guaranteen_end__c {width:100px;}
        table.list .col_Asset__r_Manage_type__c {width:100px;}
        table.list .col_Asset__r_Loaner_accsessary__c {width:100px;}
        table.list .col_Asset__r_EquipmentSet_Managment_Code__c {width:100px;}
        table.list .col_Asset__r_AssetManageConfirm__c {width:100px;}
        table.list .col_Asset__r_Fixture_QRCode__c {width:100px;}
        table.list .col_Asset__r_WH_location__c {width:100px;}
        table.list .col_MaintainReason__c {width:100px;}
        table.list .col_MaintainCount__c {width:100px;}
        table.list .col_AbandonReason__c {width:100px;}
        table.list .col_AbandonCount__c {width:100px;}
        table.list .col_Is_OneToOne_Accessory__c {width:100px;}
        table.list .col_Asset__r_Main_OneToOne__c {width:100px;}
        table.list .col_DisconnectCount__c {width:100px;}
        table.list .col_Asset__r_Quantity {width:100px;}
        table.list .col_Asset__r_You_Xiao_Ku_Cun__c {width:100px;}
        table.list .col_Asset__r_Frozen_Quantity__c {width:100px;}
        table.list .col_Asset__r_Ji_Zhong_Guan_Li_Ku_Cun__c {width:100px;}
        table.list .col_Asset__r_In_wh_Fu_Shu_Pin_You_Xiao_Ku_Cun_Sum__c {width:100px;}
        table.list .col_Asset__r_Fixture_Status__c {width:100px;}
    </style>
    <apex:form id="allForm">
        <apex:actionFunction name="searchOpp" action="{!searchOpp}" rerender="allForm" oncomplete="windowResize();unblockUI();"/>
        <apex:pageBlock id="searchBlock" title="维护明细画面">
            <apex:pageBlockSection columns="2">
            <apex:pageBlockSection columns="4">
                <apex:outputField value="{!parentObj.Name}"/>
                <apex:outputField value="{!parentObj.MaintainType__c}"/>
                <apex:outputField value="{!parentObj.Submit_Time__c}" rendered="{!parentObj.MaintainType__c=='实物报废'}"/>
@@ -16,42 +73,29 @@
            </apex:pageBlockSection>
            <apex:pageMessages />
            <table>
                <tr>
                    <td>关键字</td>
                    <td>
                        <apex:inputText value="{!keyword}"/>
                        <apex:commandButton value="检索" onclick="blockme();searchOpp(); return false;"/>
                    </td>
                    <td>备品配套明细型号</td>
                    <td><apex:inputText value="{!model}"/></td>
                    <td>固定资产编号</td>
                    <td><apex:inputField value="{!ass.Internal_Asset_number__c}"/></td>
                    <td>机身编码</td>
                    <td><apex:inputField value="{!ass.SerialNumber}"/></td>
                    <td>货架号</td>
                    <td><apex:inputField value="{!ass.WH_location__c}"/></td>
                <tr class='headStyle'>
                    <td>关键字:<apex:inputText value="{!keyword}"/></td>
                    <td>备品配套明细型号:<apex:inputText value="{!model}"/></td>
                    <td>固定资产编号:<apex:inputField value="{!ass.Internal_Asset_number__c}"/></td>
                    <td>机身编码:<apex:inputField value="{!ass.SerialNumber}"/></td>
                    <td>货架号:<apex:inputField value="{!ass.WH_location__c}"/></td>
                    <td><apex:commandButton value="检索" onclick="blockme();searchOpp(); return false;"/></td>
                </tr>
                <tr>
                    <td>备品存放地</td>
                    <td><apex:inputField value="{!ass.Internal_asset_location__c}"/></td>
                    <td>主体/附属品</td>
                    <td>
                <tr class='headStyle'>
                    <td>备品存放地:<apex:inputField value="{!ass.Internal_asset_location__c}"/></td>
                    <td>主体/附属品:
                        <apex:selectList value="{!mainOrAccessory}" size="1">
                            <apex:selectOptions value="{!mainOrAccessoryOptions}"/>
                        </apex:selectList>
                    </td>
                    <td>是否固定资产</td>
                    <td>
                    <td>是否固定资产:
                        <apex:selectList value="{!isInternalAsset}" size="1">
                            <apex:selectOptions value="{!isInternalAssetOptions}"/>
                        </apex:selectList>
                    </td>
                    <td>产品分类(GI/SP)</td>
                    <td><apex:inputField value="{!ass.Product_category__c}"/></td>
                    <td>备品分类</td>
                    <td><apex:inputField value="{!ass.Equipment_Type__c}"/></td>
                    <td>管理种类</td>
                    <td><apex:inputField value="{!ass.Manage_type__c}"/></td>
                    <td>产品分类(GI/SP):<apex:inputField value="{!ass.Product_category__c}"/></td>
                    <td>备品分类:<apex:inputField value="{!ass.Equipment_Type__c}"/></td>
                    <td>管理种类:<apex:inputField value="{!ass.Manage_type__c}"/></td>
                </tr>
            </table>
        </apex:pageBlock>
force-app/main/default/pages/EquipmentRentalExtend.page
@@ -48,16 +48,22 @@
    }
    /* 20230703 ljh 颜色不那么高亮 */
    div#in_Div_L td.tdRed {
      background-color:red;
      background-color:#c36f6f;
      /* background-color:red; */
    }
    div#in_Div_L td.tdYellow {
      background-color:yellow;
      background-color:#d6d60a;
      /* background-color:yellow; */
    }
    div#in_Div_L td.tdGray {
      background-color:gray;
    }
    div#in_Div_L td.tdBlue {
      background-color:Cyan;
    }
    /* 20230703 ljh 字体颜色黑色 */
    td.tdRed a,td.tdYellow a,td.tdGray a,td.tdBlue a,td.tdNormal a {
        color: rgb(24, 24, 24);
    }
    /* 20230703 ljh 颜色不那么高亮 */
    div#in_Div_L td.tdNormal {
@@ -70,10 +76,12 @@
      word-wrap: break-word;
    }
    div#in_Div_R td.tdRed {
      background-color:red;
      /* background-color:red; */
      background-color:#c36f6f;
    }
    div#in_Div_R td.tdYellow {
      background-color:yellow;
      /* background-color:yellow; */
      background-color:#d6d60a;
    }
    div#in_Div_R td.tdGray {
      background-color:gray;
@@ -84,6 +92,7 @@
    div#in_Div_R td.tdNormal {
      background-color:none;
    }
    /* 20230703 ljh  */
    div#in_Div_L td.dataCellBorder1{
        border-bottom: 1px solid rgb(201, 201, 201);
    }
@@ -128,6 +137,7 @@
function saveJs() {
    blockme();
    var flgReturn = j$(escapeVfId('allPage:allForm:returnIMFupdate')).value();
    console.log(flgReturn);
    if(flgReturn == 'Changed'){
        var rg=confirm("注意整单归还备品,否则将按现场转借记违规3点");
        if(rg){
@@ -136,6 +146,7 @@
            unblockUI();
        }
    }else{
        console.log('调用saveFunc');
        savefunc();
    }
    
force-app/main/default/pages/EquipmentRentalLostReport.page
@@ -2,7 +2,12 @@
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
<apex:stylesheet value="{!URLFOR($Resource.StyleUtilCss)}"/><!-- 20230619 ljh lightning -->
<style>
    body .bPageBlock .detailList .dataCol{
        width: 12%;
    }
</style>
<script type="text/javascript">
function savejs() {
    if (confirm('是否保存遗失报告?')) {
@@ -97,14 +102,14 @@
                <apex:pageBlockSection rendered="{!IF(rentalApplyId == null ,false, true)}"  >
                    <apex:pageBlockSectionItem >
                        <apex:outputLabel style="font-size: 15px;" value="{!$ObjectType.Rental_Apply__c.fields.Name.label}" for="Name"/>
                        <apex:outputLabel style="font-size: 15px;margin-top: -.125rem;" value="{!$ObjectType.Rental_Apply__c.fields.Name.label}" for="Name"/>
                        <apex:outputLink style="font-size: 15px;" value="/{!rentalApply.Id}" id="Name">{!rentalApply.Name}</apex:outputLink>
                    </apex:pageBlockSectionItem>
                </apex:pageBlockSection>
                <apex:pageBlockSection rendered="{!IF(rentalApplyId == null || rentalApplyId == '' ,true, false)}"  >
                    <apex:pageBlockSectionItem >
                        <apex:outputLabel style="font-size: 15px;" value="{!$ObjectType.TransferApply__c.fields.Name.label}" for="Name"/>
                        <apex:outputLabel style="font-size: 15px;margin-top: -.125rem;" value="{!$ObjectType.TransferApply__c.fields.Name.label}" for="Name"/>
                        <apex:outputLink style="font-size: 15px;" value="/{!TransferApply.Id}" id="Name">{!TransferApply.Name}</apex:outputLink>
                    </apex:pageBlockSectionItem>
                </apex:pageBlockSection>
@@ -113,17 +118,17 @@
            <apex:outputPanel rendered="{!IF(rentalApplyId == null ,false, true)}">
                <table class="linetable" border="1" style="border-collapse: collapse;">
                    <colgroup>
                        <col width="25"/>
                        <col width="25"/>
                        <col width="110"/>
                        <col width="80"/>
                        <col width="165"/>
                        <col width="100"/>
                        <col width="50"/>
                        <col width="50"/>
                        <col width="110"/>
                        <col width="80"/>
                        <col width="110"/>
                        <col width="50"/>
                        <col width="110"/>
                        <col width="110"/>
                        <col width="110"/>
                        <col width="110"/>
                        <col width="80"/>
                    </colgroup>
                    <tr style="background-color:#DCDCDC;">
                        <th style="text-align:center">报告对象<input type='checkbox' onClick='checkAll("checker","rowCheck")' id='checker'/></th>
@@ -143,7 +148,7 @@
                        <tr>
                            <td align="center"><apex:inputCheckbox disabled="{!info.checkBoxdisabled}" value="{!info.isSelect}" id="rowCheck"/></td>
                            <apex:repeat value="{!columnsApi}" var="c">
                                <td align="left">
                                <td align="center">
                                    <apex:outputPanel rendered="{!(c.size==2 && info.raesd[c[0]] != null)}" layout="none">
                                        <apex:outputField value="{!info.raesd[c[0]][c[1]]}"/>
                                    </apex:outputPanel>
@@ -165,17 +170,17 @@
            <apex:outputPanel rendered="{!IF(rentalApplyId == null ,true, false)}">
                <table class="linetable" border="1" style="border-collapse: collapse;">
                    <colgroup>
                        <col width="25"/>
                        <col width="25"/>
                        <col width="80"/>
                        <col width="170"/>
                        <col width="110"/>
                        <col width="50"/>
                        <col width="50"/>
                        <col width="70"/>
                        <col width="60"/>
                        <col width="110"/>
                        <col width="110"/>
                        <col width="110"/>
                        <col width="60"/>
                        <col width="110"/>
                        <col width="110"/>
                        <col width="110"/>
                        <col width="80"/>
                    </colgroup>
                    <tr style="background-color:#DCDCDC;">
                        <th style="text-align:center">报告对象<input type='checkbox' onClick='checkAll("checker","rowCheck")' id='checker'/></th>
@@ -195,7 +200,7 @@
                        <tr>
                            <td align="center"><apex:inputCheckbox disabled="{!info.checkBoxdisabled}" value="{!info.isSelect}" id="rowCheck"/></td>
                            <apex:repeat value="{!columnsApi}" var="c">
                                <td align="left">
                                <td align="center">
                                    <apex:outputPanel rendered="{!(c.size==2 && info.raesd1[c[0]] != null)}" layout="none">
                                        <apex:outputField value="{!info.raesd1[c[0]][c[1]]}"/>
                                    </apex:outputPanel>
force-app/main/default/pages/FixtureRemind.page
@@ -2,7 +2,7 @@
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
<apex:stylesheet value="{!URLFOR($Resource.StyleUtilCss)}"/><!-- 20230619 ljh lightning -->
    <style type="text/css">
        th{
            text-align: center;
force-app/main/default/pages/InventoryResultRecord.page
@@ -1,4 +1,4 @@
<apex:page controller="InventoryResultRecordController" showHeader="false" sidebar="false" id="allPage" action="{!init}" tabStyle="CheckAllOlympusAsset__tab">
<apex:page controller="InventoryResultRecordController" showHeader="false" sidebar="false" id="allPage" action="{!init}" tabStyle="CheckAllOlympusAsset__tab" lightningStylesheets="true">
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
@@ -7,6 +7,7 @@
<apex:includeScript value="{!URLFOR($Resource.jquery_confirm, 'jquery-confirm.min.js')}"/>
<apex:includeScript value="{!URLFOR($Resource.connection20)}"/>
<apex:includeScript value="{!URLFOR($Resource.apex20)}"/>
<apex:stylesheet value="{!URLFOR($Resource.StyleUtilCss)}"/><!-- 20230619 ljh lightning -->
    <style>
        .overlay {
            position: absolute;
@@ -51,6 +52,9 @@
        }
        .apexp .bPageBlock.apexDefaultPageBlock .pbBody {
            margin: 0px;
        }
        .apexp .bPageBlock.apexDefaultPageBlock .pbBody .tableTr{
            line-height: 40px;
        }
        .checkButtonStyle input {
            width: 100%;
@@ -374,7 +378,7 @@
            <apex:outputPanel layout="block">
                <apex:pageBlock mode="maindetail" id="maindetailId">
                    <table style='height: 120px'>
                        <tr>
                        <tr class="tableTr">
                            <td class="labelStyle">备品存放地</td>
                            <td class="inputTextStyle">
                                <apex:selectList value="{!bieCunFangDi}" size="1" id="bieCunFangDi" onchange="refreshJs(this); return false;">
@@ -396,7 +400,7 @@
                        <tr>
                            <td></td>
                            <td colspan="10">
                                <input class="startInventoryButtonStyle blueStyle" style="margin-left: 0" type="button" value="开始盘点" onclick="startjs(this);return false;" />
                                <input class="startInventoryButtonStyle blueStyle" style="margin-left: 0; margin-top: 2px;margin-bottom: 3px;" type="button" value="开始盘点" onclick="startjs(this);return false;" />
                            </td>
                        </tr>
                        <!-- <tr>
@@ -436,7 +440,7 @@
                        </tr>
                        <tr><td><br /><br /></td></tr>
                    -->
                        <tr>
                        <tr class="tableTr">
                            <td class="labelStyle">所在地区(本部)</td>
                            <td class="inputTextStyle">
                                <apex:selectList value="{!salesdepartment}" id="salesDepartmentId" size="1">
@@ -472,7 +476,7 @@
                                </div> -->
                            </td>
                        </tr>
                        <tr>
                        <tr class="tableTr">
                            <td class="labelStyle">盘亏/盘盈</td>
                            <td class="inputTextStyle">
                                <apex:selectList value="{!inventory_Deviation}" id="Inventory_Deviation" size="1">
force-app/main/default/pages/InventoryResultRecordCopy.page
@@ -1,4 +1,4 @@
<apex:page controller="InventoryResultRecordCopyController" showHeader="false" sidebar="false" id="allPage" action="{!init}" >
<apex:page controller="InventoryResultRecordCopyController" showHeader="false" sidebar="false" id="allPage" action="{!init}" lightningStylesheets="true">
<!-- tabStyle="CheckAllOlympusAsset__tab" -->
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
@@ -7,6 +7,7 @@
<apex:stylesheet value="{!URLFOR($Resource.jquery_confirm, 'jquery-confirm.min.css')}"/>
<apex:includeScript value="{!URLFOR($Resource.jquery_confirm, 'jquery-confirm.min.js')}"/>
<apex:includeScript value="{!URLFOR($Resource.connection20)}"/>
<apex:stylesheet value="{!URLFOR($Resource.StyleUtilCss)}"/><!-- 20230619 ljh lightning -->
<apex:includeScript value="{!URLFOR($Resource.apex20)}"/>
    <style>
        .overlay {
@@ -52,6 +53,9 @@
        }
        .apexp .bPageBlock.apexDefaultPageBlock .pbBody {
            margin: 0px;
        }
        .apexp .bPageBlock.apexDefaultPageBlock .pbBody .tableTr{
            line-height: 40px;
        }
        .checkButtonStyle input {
            width: 100%;
@@ -380,7 +384,7 @@
            <apex:outputPanel layout="block">
                <apex:pageBlock mode="maindetail" id="maindetailId">
                    <table style='height: 120px'>
                        <tr>
                        <tr class="tableTr">
                            <td class="labelStyle">备品存放地</td>
                            <td class="inputTextStyle">
                                <apex:selectList value="{!bieCunFangDi}" size="1" id="bieCunFangDi" onchange="refreshJs(this); return false;">
@@ -402,7 +406,7 @@
                        <tr>
                            <td></td>
                            <td colspan="10">
                                <input class="startInventoryButtonStyle blueStyle" style="margin-left: 0" type="button" value="开始盘点" onclick="startjs(this);return false;" />
                                <input class="startInventoryButtonStyle blueStyle" style="margin-left: 0; margin-top: 2px;margin-bottom: 3px;" type="button" value="开始盘点" onclick="startjs(this);return false;" />
                            </td>
                        </tr>
                        <!-- <tr>
@@ -442,7 +446,7 @@
                        </tr>
                        <tr><td><br /><br /></td></tr>
                    -->
                        <tr>
                        <tr class="tableTr">
                            <td class="labelStyle">所在地区(本部)</td>
                            <td class="inputTextStyle">
                                <apex:selectList value="{!salesdepartment}" id="salesDepartmentId" size="1">
@@ -478,7 +482,7 @@
                                </div> -->
                            </td>
                        </tr>
                        <tr>
                        <tr class="tableTr">
                            <td class="labelStyle">盘亏/盘盈</td>
                            <td class="inputTextStyle">
                                <apex:selectList value="{!inventory_Deviation}" id="Inventory_Deviation" size="1">
force-app/main/default/pages/LostReportEdit.page
@@ -4,6 +4,7 @@
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
<apex:includeScript value="{!URLFOR($Resource.connection20)}"/>
<apex:includeScript value="{!URLFOR($Resource.apex20)}"/>
<apex:stylesheet value="{!URLFOR($Resource.StyleUtilCss)}"/><!-- 20230619 ljh lightning -->
   <style>
        .dateFormat  {
            display: none;
@@ -42,6 +43,12 @@
            margin: 0px;
            background-color: white;
        }
        .relatedProcessHistory{
            margin-top: 5px;
            margin-left: auto;
            width: 75%;
            margin-right: auto;
        }
        .bPageBlock {
            border-top: 0px;
        }
force-app/main/default/pages/LostReportEditAsset.page
@@ -1,9 +1,10 @@
<apex:page standardController="LostReport__c" extensions="LostReportEditAssetController" showHeader="false" sidebar="false" id="allPage" action="{!init}">
<apex:page standardController="LostReport__c" extensions="LostReportEditAssetController" showHeader="false" sidebar="false" id="allPage" action="{!init}" lightningStylesheets="true">
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
<apex:includeScript value="{!URLFOR($Resource.connection20)}"/>
<apex:includeScript value="{!URLFOR($Resource.apex20)}"/>
<apex:stylesheet value="{!URLFOR($Resource.StyleUtilCss)}"/><!-- 20230619 ljh lightning -->
   <style>
        .dateFormat  {
            display: none;
@@ -111,6 +112,12 @@
        .bRelatedList .relatedProcessHistory .extraRow td.actionColumn .actionLink, .bRelatedList .relatedProcessHistory .extraRow td, .bRelatedList .relatedProcessHistory .extraRow th {
            color: gray;
        }
        .relatedProcessHistory{
            margin-top: 5px;
            margin-left: auto;
            width: 75%;
            margin-right: auto;
        }
        .bPageBlock .list {
            width: auto;
        }
@@ -145,6 +152,7 @@
        .topb {border-top: black 1px solid;}
        .bottomb {border-bottom: black 1px solid;}
        .B {font-weight:bold;}
        td.center {text-align: center;}
        td.right {text-align: right;}
@@ -276,7 +284,7 @@
                    <apex:commandButton styleClass="hiddenPrint" value="返回" rerender="allForm" onclick="returnjs();return false;"/>
                    <!-- <apex:commandButton value="填写遗失报告书" rerender="allForm" onclick="inventory_lost_report();return false;" /> -->
                    <apex:commandButton styleClass="hiddenPrint" value="保存" id="saveData" rendered="{! pBean.islock == false && pBean.hasApprovedFlag == false }" style="float: right;" rerender="allForm" oncomplete="unblockUI();" onclick="blockme()" action="{!saveLR}" />
                    <apex:commandButton styleClass="hiddenPrint" value="保存并提交审批" id="saveData1" rendered="{! pBean.islock == false && pBean.hasApprovedFlag == false}" style="float: right;" rerender="allForm, process" oncomplete="unblockUI();" onclick="saveLRjs('1'); return false;" />
                    <apex:commandButton styleClass="hiddenPrint" value="保存并提交审批" id="saveData1" rendered="{! pBean.islock == false && pBean.hasApprovedFlag == false}" style="float: right; height: auto; width: auto;" rerender="allForm, process" oncomplete="unblockUI();" onclick="saveLRjs('1'); return false;" />
                    <apex:commandButton styleClass="hiddenPrint" value="取消" id="cancel" disabled="{!pBean.lr.Auto_Lost_item_giveupDetailCount__c != 0 || pBean.lr.Status__c == '取消'}" style="float: right;" rerender="allForm, process" oncomplete="unblockUI();" onclick="cancelClick(); return false;" />
                    <!-- <apex:commandButton value="保存" id="saveData" style="margin-left: 25%;" rerender="allForm" oncomplete="unblockUI();" action="{!saveData}" onclick="unvalid()" /> -->
                    <!-- <apex:commandButton value="相关人员确认" rendered="{!IF(ihObj.InventoryCheck_PIC__c!=$User.Id, false, true)}" rerender="allForm" onclick="relevant_confirm();return false;" /> -->
@@ -474,7 +482,7 @@
                    </tr>
                    <tr>
                        <td >
                            <apex:inputField id="ownerSys" value="{!pBean.lr.OwnerSys__c}"/>
                            <apex:inputField id="ownerSys" value="{!pBean.lr.OwnerSys__c}" style="width: 210px;"/>
                            <!-- <apex:outputField rendered="{!pBean.lr.Status__c != '草案中'}" value="{!pBean.lr.OwnerSys__c}"/> -->
                            <script>
                                if( document.getElementById('allPage:allForm:ownerSys_mlktp')){
@@ -483,15 +491,15 @@
                            </script>
                        </td>
                        <td >
                            <apex:inputField value="{!pBean.lr.AccountSys__c}"/>
                            <apex:inputField value="{!pBean.lr.AccountSys__c}" style="width: 210px;"/>
                            <!-- <apex:outputField rendered="{!pBean.lr.Status__c != '草案中'}" value="{!pBean.lr.AccountSys__c}"/> -->
                        </td>
                        <td >
                            <apex:inputField value="{!pBean.lr.Bollow_DateSys__c}"/>
                            <apex:inputField value="{!pBean.lr.Bollow_DateSys__c}" style="width: 210px;"/>
                            <!-- <apex:outputField value="{!pBean.lr.Bollow_DateSys__c}"/> -->
                        </td>
                        <td >
                            <apex:inputField value="{!pBean.lr.demo_purpose2Sys__c}"/>
                            <apex:inputField value="{!pBean.lr.demo_purpose2Sys__c}" style="width: 210px;"/>
                            <!-- <apex:selectList size="1" value="{!pBean.lr.demo_purpose2Sys__c}"> -->
                                <!-- <apex:selectOptions value="{!demo_purpose2SysList}"/> -->
                            <!-- </apex:selectList> -->
force-app/main/default/pages/RentalReportExport.page
@@ -1,4 +1,4 @@
<apex:page id="page" controller="RentalReportExportController" lightningStylesheets="true">
<apex:page id="page" controller="RentalReportExportController">
    <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}" />
    <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}" />
    <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}" />