| | |
| | | |
| | | |
| | | async cancelSubmit(){ |
| | | console.log("222"); |
| | | let reason = this.data.Stock_cancel_reason__c; |
| | | if (reason == null || reason == '') { |
| | | const event = new ShowToastEvent({ |
| | |
| | | return; |
| | | } |
| | | // CHAN-BCS8T5 LHJ 20190604 End |
| | | console.log("333"); |
| | | const resul = await LightningConfirm.open({ |
| | | message: "一旦提交此记录以待批准,根据您的设置您可能不再能够编辑此记录或将他从批准过程中调回。是否继续?", |
| | | variant: 'headerless', |
| | | label: '提示信息', |
| | | // setting theme would have no effect |
| | | }); |
| | | console.log("444"); |
| | | if (resul==false) { |
| | | return; |
| | | } |
| | | let flag=true; |
| | | console.log("555"); |
| | | await updateOppotunity({recordId:this.recordId,stStatus:"撤销填写完毕"}).then(res=>{ |
| | | console.log(res); |
| | | if(res!=null&&res.success==false){ |
| | | console.log("hhh26"); |
| | | let messages =""; |
| | | flag=false; |
| | | messages=res.errors[0]; |
| | | console.log("hhh26"); |
| | | const event = new ShowToastEvent({ |
| | | title: '提示信息', |
| | | message:"操作失败,提示信息:"+messages |
| | |
| | | } |
| | | }) |
| | | if(flag==false)return; |
| | | console.log("666"); |
| | | |
| | | // let rac = new sforce.SObject("Opportunity"); |
| | | // rac.Id = "{!Opportunity.Id}"; |