twysparks
2023-06-26 a8628cfe2640797ba9265e9be46c42430d9e7eba
force-app/main/default/lwc/lexOSHNogoods/lexOSHNogoods.js
@@ -48,7 +48,6 @@
                this.email = result.email;
                this.OSHNogoods();
                this.dispatchEvent(new CloseActionScreenEvent());
            }
        }).catch(error => {
            console.log(error);
@@ -59,6 +58,8 @@
    OSHNogoods() {
        if (this.QISStatusC != 'OSH检测申请' && this.QISStatusC != '完毕') {
            this.ShowToastEvent("OSH已经收到实物", "error")
            this.dispatchEvent(new CloseActionScreenEvent());
            return;
        } else {
            updateOSHNogoods({
                Id: this.Id,
@@ -68,7 +69,8 @@
                console.log(result);
                if (result.length > 0) {
                    var split = result.split(", ");
                    alert(split[1]);
                    this.ShowToastEvent(split[1], "error");
                    this.dispatchEvent(new CloseActionScreenEvent());
                }
            })
        }