| | |
| | | * @Author: chen jing wu |
| | | * @Date: 2023-04-20 14:08:55 |
| | | * @LastEditors: chen jing wu |
| | | * @LastEditTime: 2023-09-25 13:21:17 |
| | | * @LastEditTime: 2023-10-10 17:35:29 |
| | | */ |
| | | /* |
| | | * @Description: |
| | |
| | | this.salesOwnerBuchang = result.salesOwnerBuchang; |
| | | this.salesOwnerBuchangID = result.salesOwnerBuchangID; |
| | | this.cntLostCancelDraft = result.cntLostCancelDraft; |
| | | if(!result.isHavePower){ |
| | | this.showToast('您不能创建失单/部分失单报告!','error'); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | this.loseReport(); |
| | | }) |
| | | } |
| | |
| | | //alert("关联招投标项目的询价,只能在有结果后做失单报告!"); |
| | | //} |
| | | else { |
| | | var url = '/apex/PCLLostReportPageLwc?pageStatus=Create&oppId=' + this.recordId + '&lostType=失单'; |
| | | var url = '/lightning/n/PCLLostReportPageLwc#pageStatus=Create&oppId=' + this.recordId + '&lostType=失单'; |
| | | location.href = url; |
| | | // location.href = '/a1U/e?retURL=%2F' + this.recordId + |
| | | // '&RecordType=01210000000R4hM' + |
| | |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | showToast(msg,type) { |
| | | const event = new ShowToastEvent({ |
| | | title: ' ', |
| | | message: msg, |
| | | variant: type, |
| | | duration: 15000 |
| | | }); |
| | | this.dispatchEvent(event); |
| | | if(type == 'success'){ |
| | | const event = new ShowToastEvent({ |
| | | message: msg, |
| | | variant: type, |
| | | }); |
| | | this.dispatchEvent(event); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | }else{ |
| | | const event = new ShowToastEvent({ |
| | | message: msg, |
| | | variant: type, |
| | | mode: 'sticky' |
| | | }); |
| | | this.dispatchEvent(event); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | } |
| | | //显示信息 |
| | | showMyToast(title, message, variant) { |