Commit 9663b18f authored by 38823's avatar 38823

保证金划转,保证金划转符合调整(经租工作流调整)

parent 08518603
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
//融租划转到经租,提交经租副部长审批 //融租划转到经租,提交经租副部长审批
if(head_record.get('business_type') != 'LEASEOPERAT'){ if(head_record.get('business_type') != 'LEASEOPERAT'){
for(var i= 0; i<deposit_records.length; i++){ for(var i= 0; i<deposit_records.length; i++){
if(deposit_records.get('business_type') == 'Y' || deposit_records.get('business_type') == 'LEASEOPERAT'){ if(deposit_records[i].get('business_type') == 'Y' || deposit_records[i].get('business_type') == 'LEASEOPERAT'){
check_flag = false; check_flag = false;
break; break;
} }
......
...@@ -32,14 +32,25 @@ ...@@ -32,14 +32,25 @@
var deposit_records = $('deposit_transfer_detail_result_ds').getAll(); var deposit_records = $('deposit_transfer_detail_result_ds').getAll();
var role_code = '${/parameter/@role_code}'; var role_code = '${/parameter/@role_code}';
//债权初审 //债权初审
if(role_code == '0003' || role_code == '0005'||role_code == '0036'||role_code == '0039'){ if(role_code == '0003' || role_code == '0005' || role_code == '0039'){
var recordParam = {}; var recordParam = {};
var recordData = []; var recordData = [];
//不是经租单据
if(role_code != '0039'){
for (var i = 0; i < deposit_records.length; i++) { for (var i = 0; i < deposit_records.length; i++) {
var trans_record = deposit_records[i]; var trans_record = deposit_records[i];
trans_record.set('review_type', 'REVIEWING1'); trans_record.set('review_type', 'REVIEWING1');
recordData.push(trans_record.data); recordData.push(trans_record.data);
} }
}
//经租单据
if(role_code == '0039'){
for (var i = 0; i < deposit_records.length; i++) {
var trans_record = deposit_records[i];
trans_record.set('review_type', 'REVIEWING');
recordData.push(trans_record.data);
}
}
recordParam['details'] = recordData; recordParam['details'] = recordData;
recordParam['review_act'] = 'APPROVE'; recordParam['review_act'] = 'APPROVE';
recordParam['batch_id'] = deposit_records[0].get('batch_id'); recordParam['batch_id'] = deposit_records[0].get('batch_id');
......
...@@ -141,7 +141,7 @@ ...@@ -141,7 +141,7 @@
<a:column name="deposit_trans_type_n" prompt="保证金类型" width="110" align="center"/> <a:column name="deposit_trans_type_n" prompt="保证金类型" width="110" align="center"/>
<a:column name="unwrite_off_amount" prompt="剩余可用金额" width="110" renderer="Leaf.formatMoney" align="right" /> <a:column name="unwrite_off_amount" prompt="剩余可用金额" width="110" renderer="Leaf.formatMoney" align="right" />
<a:column name="approve_status" prompt="状态" width="120" align="center"/> <a:column name="approve_status" prompt="状态" width="120" align="center"/>
<a:column name="trans_review_status_n" prompt="复核状态" width="120" align="center"/> <a:column name="trans_review_status_n" prompt="复核状态" width="180" align="center"/>
</a:columns> </a:columns>
</a:grid> </a:grid>
</a:fieldSet> </a:fieldSet>
......
...@@ -73,13 +73,13 @@ ...@@ -73,13 +73,13 @@
$('deposit_review_maintain_result_ds').setQueryParameter('no_status','REVIEWING1'); $('deposit_review_maintain_result_ds').setQueryParameter('no_status','REVIEWING1');
$('deposit_review_maintain_result_ds').setQueryParameter('no_status_op','REVIEWING_OP'); $('deposit_review_maintain_result_ds').setQueryParameter('no_status_op','REVIEWING_OP');
query_redord.set('trans_review_status','REVIEWING'); query_redord.set('trans_review_status','REVIEWING');
query_redord.set('trans_review_status_desc','初审中(营业本部长-融租)'); query_redord.set('trans_review_status_desc','初审中(营业本部长)');
}else if(role_code == '0036'){ }else if(role_code == '0039'){
//经租营业部长排除非经租营业本部长及CFO //经租营业部长排除非经租营业本部长及CFO
$('deposit_review_maintain_result_ds').setQueryParameter('no_status','REVIEWING1'); $('deposit_review_maintain_result_ds').setQueryParameter('no_status','REVIEWING1');
$('deposit_review_maintain_result_ds').setQueryParameter('no_status_op','REVIEWING'); $('deposit_review_maintain_result_ds').setQueryParameter('no_status_op','REVIEWING');
query_redord.set('trans_review_status','REVIEWING_OP'); query_redord.set('trans_review_status','REVIEWING_OP');
query_redord.set('trans_review_status_desc','初审中(营业部长-经租)'); query_redord.set('trans_review_status_desc','初审中(营业部长-经租)');
} }
$('deposit_review_maintain_result_ds').query(); $('deposit_review_maintain_result_ds').query();
}); });
...@@ -147,7 +147,7 @@ ...@@ -147,7 +147,7 @@
<a:column name="deposit_trans_type_n" prompt="保证金类型" width="110" align="center"/> <a:column name="deposit_trans_type_n" prompt="保证金类型" width="110" align="center"/>
<a:column name="unwrite_off_amount" prompt="剩余可用金额" width="110" renderer="Leaf.formatMoney" align="right" /> <a:column name="unwrite_off_amount" prompt="剩余可用金额" width="110" renderer="Leaf.formatMoney" align="right" />
<a:column name="approve_status" prompt="合同状态" width="80" align="center"/> <a:column name="approve_status" prompt="合同状态" width="80" align="center"/>
<a:column name="trans_review_status_n" prompt="复核状态" width="80" align="center"/> <a:column name="trans_review_status_n" prompt="复核状态" width="180" align="center"/>
<a:column name="je_date" prompt="申请时间" width="140" align="center"/> <a:column name="je_date" prompt="申请时间" width="140" align="center"/>
</a:columns> </a:columns>
</a:grid> </a:grid>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment