| | |
| | | console.log('result==========',result); |
| | | this.IsLoading = false; |
| | | if(result!=null){ |
| | | if (result.FirstParagraph == 0) { |
| | | if (result.firstParagraph == 0) { |
| | | this.showToast("您已取消先款标识,无需重复操作",'error'); |
| | | return; |
| | | } else if (result.MonthlyPayment == true) { |
| | | } else if (result.monthlyPayment == true) { |
| | | this.showToast("您不能进行特批,请先取消月度债权先款标识",'error'); |
| | | return; |
| | | } else { |
| | | if (result.records.length > 0) { |
| | | if (result.records[0].Status__c == '草案中') { |
| | | if (result.records[0].status__c == '草案中') { |
| | | this.showToast('已提交草稿请尽快提交审批','error'); |
| | | } else { |
| | | this.showToast('无法创建!已有未最终批准的数据','error'); |
| | |
| | | }, |
| | | state:{ |
| | | defaultFieldValues:defaultFieldValues, |
| | | recordTypeId:result.RecordTypeId |
| | | recordTypeId:result.recordTypeId |
| | | } |
| | | }); |
| | | } |