Commit b465c16a authored by niminmin's avatar niminmin

[fix]合同查询超链接页面跳转修改

parent b0a184fa
Pipeline #6903 canceled with stages
......@@ -14,7 +14,7 @@
function open_contract_win(ds_id, record_id) {
var record = $(ds_id).findById(record_id);
var param = record.data;
param['function_code'] = 'CON301';
param['function_code'] = 'CON3200Q';
param['function_usage'] = 'QUERY';
param['contract_id'] = record.get('normal_contract_id');
param['download'] = 'Y';
......
......@@ -65,12 +65,13 @@
}
function hls_hls500_save() {
debugger;
Leaf.Masker.mask(body, '${l:HLS.SAVING}');
if (!$('hls_fin_calculator_hd_ds').validate() || !$('hls_fin_calculator_ln_ds').validate()) {
Leaf.Masker.unmask(body);
return;
}
var H1;
var H1,H159;
var temp_head_records = $('hls_fin_calculator_hd_ds').getAll();
for (var i = 0;i < temp_head_records.length;i++) {
if (!$('temp_hd_attribute_ds').find('column_code', temp_head_records[i].get('column_code'))) {
......@@ -79,12 +80,22 @@
if (temp_head_records[i].get('column_code') == 'H1') {
H1 = temp_head_records[i].get('column_value') || 0;
}
else if (temp_head_records[i].get('column_code') == 'H159') {
H159 = temp_head_records[i].get('column_value_c');
}
}
if(H1==1&&(H159=='HL_PRICR_NTEST'||H159=='HL_PRICR_TEST')){
Leaf.showMessage('${l:PROMPT}', '均等还款期数应大于1期');
Leaf.Masker.unmask(body);
return false;
}
// if(H1<2){
// alert(1111);
// Leaf.showMessage('${l:PROMPT}', '系统暂时不支持还款期数小于2期的租金计划');
// Leaf.Masker.unmask(body);
// return false;
// }
if(H1<2){
Leaf.showMessage('${l:PROMPT}', '系统暂时不支持还款期数小于2期的租金计划');
if(H1>51){
Leaf.showMessage('${l:PROMPT}', '还款期数应小于51期');
Leaf.Masker.unmask(body);
return false;
}
......
......@@ -1458,7 +1458,7 @@ debugger;
function hls_hls500_save_new(nextStep, source_procedure) {
var temp_head_records = $('hls_fin_calculator_hd_ds').getAll();
var H1,H54;
var H1,H54,H159;
for (var i = 0; i < temp_head_records.length; i++) {
if (temp_head_records[i].get('column_code') == 'H1') {
H1 = temp_head_records[i].get('column_value') || 0;
......@@ -1467,15 +1467,26 @@ debugger;
H54 = temp_head_records[i].get('column_value') || 0;
H54=minus(H54,4.75);
}
else if (temp_head_records[i].get('column_code') == 'H159') {
H159 = temp_head_records[i].get('column_value_c');
}
}
if(H1<2){
Leaf.showMessage('${l:PROMPT}', '系统暂时不支持还款期数小于2期的租金计划');
// if(H1<2){
// Leaf.showMessage('${l:PROMPT}', '系统暂时不支持还款期数小于2期的租金计划');
// return false;
// }
if(H1>51){
Leaf.showMessage('${l:PROMPT}', '还款期数应小于51期');
return false;
}
if(H54<0){
Leaf.showMessage('${l:PROMPT}', '利率最低值不能低于4.75');
return false;
}
if(H1==1&&(H159=='HL_PRICR_NTEST'||H159=='HL_PRICR_TEST')){
Leaf.showMessage('${l:PROMPT}', '均等还款期数应大于1期');
return false;
}
lock_calc_current_window('${l:HLS.CALCULATING}');
if (!$('hls_fin_calculator_hd_ds').validate() || !$('hls_fin_calculator_ln_ds').validate()) {
......
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