| | |
| | | var RentalApply = rarecords[0]; |
| | | |
| | | if(RentalApply.Campaign__c != '' && RentalApply.Campaign__c != null) { |
| | | var DeliveryGood = new Array(); |
| | | // 20220217 ljh update OBPM市场活动联动 start |
| | | // DeliveryGood = sforce.connection.query("select Status, Rental_Apply_Flag__c from Campaign where id ='" + RentalApply.Campaign__c + "'"); |
| | | // var records= DeliveryGood.getArray("records"); |
| | | DeliveryGood = sforce.connection.query("select Status, Rental_Apply_Flag__c,IF_Approved__c,Meeting_Approved_No__c,Approved_Status__c from Campaign where id ='" + RentalApply.Campaign__c + "'"); |
| | | records = DeliveryGood.getArray("records"); |
| | | // 20220217 ljh update OBPM市场活动联动 end |
| | | var DeliveryGood = new Array(); |
| | | // 20220217 ljh update OBPM市场活动联动 start |
| | | // DeliveryGood = sforce.connection.query("select Status, Rental_Apply_Flag__c from Campaign where id ='" + RentalApply.Campaign__c + "'"); |
| | | // var records= DeliveryGood.getArray("records"); |
| | | DeliveryGood = sforce.connection.query("select Status, Rental_Apply_Flag__c,IF_Approved__c,Meeting_Approved_No__c,Approved_Status__c from Campaign where id ='" + RentalApply.Campaign__c + "'"); |
| | | records = DeliveryGood.getArray("records"); |
| | | // 20220217 ljh update OBPM市场活动联动 end |
| | | |
| | | campaignStatus = records[0].Status; |
| | | |
| | | campaignStatus = records[0].Status; |
| | | } |
| | | |
| | | if("{!Rental_Apply__c.Wei_Assigned_Cnt__c}" > "0") { |
| | | alert("申请单内存在未分配的配套,请分配备品或分割申请单"); |
| | | }else if(campaignStatus == '取消'){ |