zhangqian
2023-07-10 a4b8019d414735754babdefa9c339414981a91fe
force-app/main/default/lwc/lexServiceCutPriceApply/lexServiceCutPriceApply.js
@@ -59,7 +59,6 @@
                        this.ServiceCutPriceApply();
                    }
                })
                this.dispatchEvent(new CloseActionScreenEvent());
            }
        }).catch(error => {
            console.log(error);
@@ -74,15 +73,18 @@
        if (power != '2F2A_RC' && power != '2F4_技术推进部' && power != '2F4_技术推进部_非SSO') {
            this.ShowToastEvent("对不起,您没有权限提交此申请!", "error");
            this.dispatchEvent(new CloseActionScreenEvent());
            return;
        }
        var status = this.CutPriceStatusServiceC;
        if (status == '审批中') {
            this.ShowToastEvent("审批提交成功,当前正在审批请勿再提交!", "error");
            this.dispatchEvent(new CloseActionScreenEvent());
            return;
        }
        if (status == '批准') {
            this.ShowToastEvent("审批已批准,请勿再提交!", "error");
            this.dispatchEvent(new CloseActionScreenEvent());
            return;
        }
        if (status == '草案中' || status == undefined || status == '驳回') {
@@ -92,7 +94,8 @@
                console.log(result);
                if (result.length > 0) {
                    var split = result.split(", ");
                    alert(split[1]);
                    this.ShowToastEvent(split[1], "error");
                    this.dispatchEvent(new CloseActionScreenEvent());
                    return;
                }
            })
@@ -102,11 +105,13 @@
                console.log(result);
                if (result.length > 0) {
                    var split = result.split(", ");
                    alert("提交失败 " + split[1]);
                    this.ShowToastEvent("提交失败 " + split[1], "error");
                    this.dispatchEvent(new CloseActionScreenEvent());
                    return;
                } else {
                    this.ShowToastEvent("审批提交成功!", "success");
                    location.reload();
                    this.dispatchEvent(new CloseActionScreenEvent());
                }
            })
        }