| | |
| | | } |
| | | |
| | | async commitNeedApproval(){ |
| | | var changeFlg=0; |
| | | //0.当前状态(只有草案中才可以进行审批) |
| | | var NowStatus = this.OPDPlan.Status__c; |
| | | //获取出借目的 |
| | |
| | | } |
| | | } |
| | | //2022-07-20 zyh |
| | | await NewAndUpdateOPDStatus({Id : this.OPDPlan.Id}).catch(error=>{ |
| | | const eventError = new ShowToastEvent({ |
| | | message: |
| | | error.message, |
| | | error |
| | | }); |
| | | this.dispatchEvent(eventError); |
| | | await NewAndUpdateOPDStatus({Id : this.OPDPlan.Id}).then(result=>{ |
| | | if(result!='success'){ |
| | | const eventError = new ShowToastEvent({ |
| | | message: |
| | | result, |
| | | error |
| | | }); |
| | | changeFlg+=1; |
| | | this.dispatchEvent(eventError); |
| | | } |
| | | }); |
| | | if(changeFlg!=0){ |
| | | return; |
| | | } |
| | | |
| | | |
| | | //4. 进程生成器 |