Commit 9039805b authored by 李贺贺's avatar 李贺贺

原合同剩余应收金额取值

parent 5fb0dc40
......@@ -292,6 +292,12 @@
}
}
if('${/parameter/@function_code}' == 'CON_REPO001D_WQ'){
if (!record.get('rec_residue_amount')){
var rec_residue_amount = record.get('sum_unreceived_rent_amount') + record.get('sum_overdue_amount')+record.get('due_amount')+record.get('residual_value');
record.set('rec_residue_amount',rec_residue_amount);
}
}
};
window['${/parameter/@layout_code}_submit_approval_layout_dynamic_click'] = function () {
......
......@@ -69,6 +69,11 @@
// }
// }
}
//add by lihh 20210401 原合同剩余应收金额取值
if (!record.get('rec_residue_amount')){
var rec_residue_amount = record.get('sum_unreceived_rent_amount') + record.get('sum_overdue_amount')+record.get('due_amount')+record.get('residual_value');
record.set('rec_residue_amount',rec_residue_amount);
}
};
function compareDate(start, end) {
......@@ -106,7 +111,6 @@
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function(ds, record, name, value, old_value, bp_seq) {
debugger;
if(value!=old_value){
record.set('offset_flag', 'N');
}
......@@ -262,6 +266,9 @@
repurchase_date: value
},
success: function (res) {
debugger;
//add by lihh 20210329原合同应收剩余金额取值
var rec_residue_amount;
record.set('last_rent_due_date', res.result.last_rent_due_date);
record.set('sum_received_rent_amount', res.result.sum_received_rent_amount || 0);
record.set('sum_unreceived_rent_amount', res.result.sum_unreceived_rent_amount || 0);
......@@ -270,6 +277,8 @@
record.set('due_amount', res.result.due_amount || 0);
record.set('ccr_due_amount', res.result.due_amount || 0);
record.set('offset_flag', 'N');
rec_residue_amount = record.get('sum_unreceived_rent_amount') + record.get('sum_overdue_amount')+record.get('due_amount')+record.get('residual_value');
record.set('rec_residue_amount',rec_residue_amount || 0);
//record.set('fund_possession_cost', res.result.fund_possession_cost || 0);
},
failure: function () {
......
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