twysparks
2023-06-26 a8628cfe2640797ba9265e9be46c42430d9e7eba
force-app/main/default/lwc/lexOCSMNogoods/lexOCSMNogoods.js
@@ -52,7 +52,6 @@
                this.isCNBuyC = result.isCNBuyC;
                this.OCSMNogoods();
                this.dispatchEvent(new CloseActionScreenEvent());
            }
        }).catch(error => {
            console.log(error);
@@ -63,14 +62,18 @@
    OCSMNogoods() {
        if (this.QISStatusC != 'RC检测申请') {
            this.ShowToastEvent("OCM服务本部已经收到实物", "error");
            this.dispatchEvent(new CloseActionScreenEvent());
            return;
        } else {
            if ((this.isAEProfileC == undefined || this.isPAEProfileC == undefined) && this.isCNBuyC != 'true') {
                this.ShowToastEvent("安全信息未判定,请联系质量法规部", "error");
                var btns = document.getElementsByName('rc_recieved');
                for (var i = 0; i < btns.length; i++) {
                    btns[i].disabled = true;
                    btns[i].className = 'btnDisabled';
                }
                this.ShowToastEvent("安全信息未判定,请联系质量法规部", "error");
                this.dispatchEvent(new CloseActionScreenEvent());
                return;
            } else {
                updateQisForRCRecieved({
                    QId: this.Id,
@@ -78,7 +81,9 @@
                }).then(result => {
                    console.log(result);
                    if (result.length > 0) {
                        alert(result);
                        this.ShowToastEvent(result, "error");
                        this.dispatchEvent(new CloseActionScreenEvent());
                        return;
                    }
                })
            }