| | |
| | | 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; |
| | |
| | | init({ |
| | | recordId: this.recordId |
| | | }).then(result=>{ |
| | | console.log('result==='+JSON.stringify(result)); |
| | | if(result){ |
| | | //console.log('result.shipmentRequestedCnt===' + result.shipmentRequestedCnt) |
| | | if( result.shipmentRequestedCnt > 0){ |
| | | console.log(result.pagelength); |
| | |
| | | }else{ |
| | | this.showToast('当前的申请单中没有已出库指示的配套。','error'); |
| | | } |
| | | }else{ |
| | | this.showToast("未查到数据", 'error'); |
| | | } |
| | | }).catch(err=>{ |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | console.log('initerr===='+err); |