zhangchunxu
2023-08-04 1bc3f32b126277b5349564485665b462bb760354
force-app/main/default/lwc/lexDiscountRequest/lexDiscountRequest.js
@@ -46,7 +46,6 @@
                this.RepairC = result.RepairC;
                this.DiscountRequest();
                this.dispatchEvent(new CloseActionScreenEvent());
            }
        }).catch(error => {
            console.log(error);
@@ -63,10 +62,12 @@
                console.log(rp);
                if (rp.Return_Without_Repair_IF__c == true) {
                    this.ShowToastEvent("未修理归还的修理不允许减价申请", "error");
                    this.dispatchEvent(new CloseActionScreenEvent());
                    return;
                } else {
                    if (rp.Return_Without_Repair__c == true) {
                        this.ShowToastEvent("已经申请未修理返回,如果需要继续修理请取消\"未修理归还申请\"的勾选后再进行减价申请操作", "error");
                        this.dispatchEvent(new CloseActionScreenEvent());
                        return;
                    }
                }
@@ -77,7 +78,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;
                }
            })
@@ -87,7 +89,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;
                }
            })