yumenghui
2023-08-11 d533f39b6fa798e238810d17e928dee75d5b1af7
force-app/main/default/lwc/lexQISMBCrequestNew/lexQISMBCrequestNew.js
@@ -10,9 +10,6 @@
    CloseActionScreenEvent
} from 'lightning/actions';
import init from '@salesforce/apex/buttonQISReportCtl.init';
import {
    ShowToastEvent
} from 'lightning/platformShowToastEvent';
export default class LexQISMBCrequestNew extends LightningElement {
    @api recordId;
@@ -57,20 +54,10 @@
        var status = this.QISStatusC;
        if (status != '完毕' && status != '已回答' && status != '取消') {
            this.ShowToastEvent("QIS没有审批完毕或取消,不可以创建QIS M-BC!", "error");
            // alert("QIS没有审批完毕或取消,不可以创建QIS M-BC!");
            alert("QIS没有审批完毕或取消,不可以创建QIS M-BC!");
            return;
        }
        var url = "a20/e?retURL=%2Fa20%2Fo&Name=" + this.Name + "&CF00N10000006Q4NP_lkid=" + this.Id;
        window.top.location.href = url;
    }
    ShowToastEvent(msg, type) {
        const event = new ShowToastEvent({
            title: '',
            message: msg,
            variant: type
        });
        this.dispatchEvent(event);
    }
}