| | |
| | | init({ |
| | | recordId: this.recordId |
| | | }).then(result => { |
| | | if (result != null) { |
| | | this.IsLoading = false; |
| | | this.id = result.Id; |
| | | this.isRelateProject = result.isRelateProject; |
| | | this.EnquiryButton(); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | console.log(result); |
| | | this.IsLoading = false; |
| | | this.id = result.Id; |
| | | this.isRelateProject = result.isRelateProject; |
| | | this.EnquiryButton(); |
| | | }) |
| | | } |
| | | //招标项目 反应询价状态 |
| | | EnquiryButton(){ |
| | | if(this.isRelateProject == "否"){ |
| | | this.showToast('招投标项目不相关后不能反应询价状态!','error'); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | return; |
| | | } |
| | | var listss = []; |
| | |
| | | updateOpportunityInformation({TenderIdList : listss}).then(result=>{ |
| | | if(result != 'OK'){ |
| | | this.showToast(result,'error'); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | }else { |
| | | this.showToast('反映完了','success'); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | }) |
| | | } |
| | | |
| | | showToast(msg,type) { |
| | | console.log(msg,type); |
| | | const event = new ShowToastEvent({ |
| | | message: msg, |
| | | variant: type |
| | | }); |
| | | this.dispatchEvent(event); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | } |