LiJinHuan
2023-07-19 7c00a0b39de0b4ddc37c5f40922ad4ee8a2adaf0
force-app/main/default/lwc/lexOSHNogoods/lexOSHNogoods.js
@@ -48,18 +48,18 @@
                this.email = result.email;
                this.OSHNogoods();
                this.dispatchEvent(new CloseActionScreenEvent());
            }
        }).catch(error => {
            console.log(error);
        })
    }
    // 减价申请
    // OSH无实物送达
    OSHNogoods() {
        if (this.QISStatusC != 'OSH检测申请' && this.QISStatusC != '完毕') {
            this.ShowToastEvent("OSH已经收到实物", "error")
            // alert('OSH已经收到实物');
            this.dispatchEvent(new CloseActionScreenEvent());
            return;
        } else {
            updateOSHNogoods({
                Id: this.Id,
@@ -69,11 +69,9 @@
                console.log(result);
                if (result.length > 0) {
                    var split = result.split(", ");
                    alert(split[1]);
                    this.ShowToastEvent(split[1], "error");
                    this.dispatchEvent(new CloseActionScreenEvent());
                }
                location.reload();
            }).catch(error => {
                console.log(error);
            })
        }
    }