| | |
| | | } |
| | | |
| | | connectedCallback() { |
| | | console.log(this.recordId); |
| | | init({ |
| | | recordId: this.recordId |
| | | }).then(result => { |
| | |
| | | }).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; |
| | | } |
| | | } |
| | |
| | | return; |
| | | } |
| | | }) |
| | | location.reload(); |
| | | }) |
| | | } |
| | | |