| | |
| | | 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 |
| | |
| | | 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'); |