unknown
2023-07-06 1438f0c820c2275f493d20513e81dadcf4bec097
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { LightningElement, track, wire, api } from 'lwc';
import transferApplySelectDetail from '@salesforce/apex/LexTransferApplyController.transferApplySelectDetail';
 
export default class lexTransferApplySelectDetail extends LightningElement {
    @api recordId;
    msg;
 
    connectedCallback(){
        transferApplySelectDetail({
            recordId: this.recordId
        }).then(res=>{
            if(res.TA_Status__c == '删除' || res.TA_Status__c == '取消' || res.TA_Status__c == '完了'){
                this.msg = '调拨申请已经'+ res.TA_Status__c +',不能选择调拨明细'
            }else{
                window.open("/apex/TransferApplySelectDetail?id="+this.recordId, "_top"); 
            }
        })
    }
}