| force-app/main/default/classes/AllReceivedFseController.cls | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| force-app/main/default/classes/AllReceivedFseController.cls-meta.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| force-app/main/default/lwc/lexMainFixtureSelect/lexMainFixtureSelect.css | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| force-app/main/default/lwc/lexMainFixtureSelect/lexMainFixtureSelect.html | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| force-app/main/default/lwc/lexMainFixtureSelect/lexMainFixtureSelect.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| force-app/main/default/lwc/lexMainFixtureSelect/lexMainFixtureSelect.js-meta.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
force-app/main/default/classes/AllReceivedFseController.cls
New file @@ -0,0 +1,48 @@ public with sharing class AllReceivedFseController { public AllReceivedFseController() { } @AuraEnabled public static InitData init(String recordId){ InitData res = new InitData(); Rental_Apply__c ra = [SELECT Id, Loaner_received_ng_num__c from Rental_Apply__c where Id = :recordId]; res.Id = ra.Id; res.LoanerReceivedNgNum = Integer.valueOf(ra.Loaner_received_ng_num__c); 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/AllReceivedFseController.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/lexMainFixtureSelect/lexMainFixtureSelect.css
New file @@ -0,0 +1,22 @@ .outerBorderCss{ border: 1px solid #D4D4D4; border-radius : 5px; border-top : 3px solid #565959; } .borderCss{ border: 1px solid #D4D4D4; border-radius : 5px; margin-bottom : 7px; border-top : 3px solid #565959; } .headerDorderCss{ border-top: 1px solid #565959; border-bottom: 1px solid #D4D4D4; padding:3px; } .centerCss{ text-align: center; } .centerCss .left{ margin-left: 100px; }/* sample css file */ force-app/main/default/lwc/lexMainFixtureSelect/lexMainFixtureSelect.html
New file @@ -0,0 +1,5 @@ <template> <div class="sisToOPDHolder" if:true={IsLoading}> <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner> </div> </template> force-app/main/default/lwc/lexMainFixtureSelect/lexMainFixtureSelect.js
New file @@ -0,0 +1,33 @@ import { LightningElement, track, wire, api } from 'lwc'; import { CurrentPageReference,NavigationMixin } from 'lightning/navigation'; import { CloseActionScreenEvent } from 'lightning/actions'; import init from '@salesforce/apex/MainFixtureSelectButtonController.init'; export default class lexMainFixtureSelect 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(){ init({ recordId:this.recordId }).then(res=>{ window.open("/apex/MainFixtureSelect?pt_recid=" + res, "_top"); this.dispatchEvent(new CloseActionScreenEvent()); }).catch(err=>{ console.log(err); this.dispatchEvent(new CloseActionScreenEvent()); }) } } force-app/main/default/lwc/lexMainFixtureSelect/lexMainFixtureSelect.js-meta.xml
New file @@ -0,0 +1,11 @@ <?xml version="1.0" encoding="UTF-8"?> <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="lexOCMSubmit"> <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>