| | |
| | | ShowToastEvent |
| | | } from 'lightning/platformShowToastEvent'; |
| | | |
| | | export default class LexDiscountRequest extends LightningElement { |
| | | export default class lexDiscountRequest extends LightningElement { |
| | | @api recordId; |
| | | str; |
| | | IsLoading = true; |
| | |
| | | this.RepairC = result.RepairC; |
| | | |
| | | this.DiscountRequest(); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | }).catch(error => { |
| | | console.log(error); |
| | |
| | | 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; |
| | | } |
| | | } |
| | |
| | | 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"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | }) |
| | | updateRepairQuotation04({ |
| | | recordId: this.Id |
| | |
| | | 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"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | }) |
| | | }) |
| | | } |