binxie
2023-07-11 67765d99c19ad354e66f8646d8597622b5d81ef7
force-app/main/default/lwc/lexDiscountRequest/lexDiscountRequest.js
@@ -36,7 +36,6 @@
    }
    connectedCallback() {
        console.log(this.recordId);
        init({
            recordId: this.recordId
        }).then(result => {
@@ -61,14 +60,13 @@
        }).then(repairs => {
            if (repairs != null && repairs.length > 0) {
                var rp = repairs[0];
                if (rp.Return_Without_Repair_IF__c == 'true') {
                console.log(rp);
                if (rp.Return_Without_Repair_IF__c == true) {
                    this.ShowToastEvent("未修理归还的修理不允许减价申请", "error");
                    // alert("未修理归还的修理不允许减价申请");
                    return;
                } else {
                    if (rp.Return_Without_Repair__c == 'true') {
                    if (rp.Return_Without_Repair__c == true) {
                        this.ShowToastEvent("已经申请未修理返回,如果需要继续修理请取消\"未修理归还申请\"的勾选后再进行减价申请操作", "error");
                        // alert("已经申请未修理返回,如果需要继续修理请取消\"未修理归还申请\"的勾选后再进行减价申请操作");
                        return;
                    }
                }
@@ -93,7 +91,6 @@
                    return;
                }
            })
            location.reload();
        })
    }