Commit d486eb06 authored by 38823's avatar 38823

代理店(佣金政策开发)测试问题修复

parent 2b05420d
...@@ -54,10 +54,22 @@ ...@@ -54,10 +54,22 @@
} }
} }
} }
if(name == 'finance_amount_from'){
if(result_record.length>1){
var amountTo=result_record[i].get('finance_amount_to');
if(i+1<result_record.length && result_record[i+1].data.finance_amount_from !=undefined){
var amountFrom=result_record[i+1].get('finance_amount_from');
if(amountTo>amountFrom){
$L.showMessage('提示','当前佣金政策的融资额范围存在重叠/空缺,请先修改!');
return;
}
}
}
}
if(name == 'comsn_rate'){ if(name == 'comsn_rate'){
if(result_record[i].get('comsn_rate') == 0){ if(result_record[i].get('comsn_rate') == 0){
$L.showMessage('提示','佣金比例不能为0!'); $L.showMessage('提示','佣金比例不能为0!');
return;; return;
} }
} }
} }
...@@ -161,7 +173,7 @@ ...@@ -161,7 +173,7 @@
if(record.isNew==true && record.get('wfl_status') !='APPROVING' && record.get('policy_name') == undefined){ if(record.isNew==true && record.get('wfl_status') !='APPROVING' && record.get('policy_name') == undefined){
var calcStartDate = timestampToTime(Date.parse(record.get('calc_start_date'))); var calcStartDate = timestampToTime(Date.parse(record.get('calc_start_date')));
var calcEndDate = timestampToTime(Date.parse(record.get('calc_end_date'))); var calcEndDate = timestampToTime(Date.parse(record.get('calc_end_date')));
record.set('policy_name','${/parameter/@extra_nam}'+'-'+division +' '+calcStartDate+'-'+calcEndDate); record.set('policy_name','${/parameter/@extra_nam}'+'-'+division+calcStartDate+'-'+calcEndDate);
return check_flag; return check_flag;
} }
} }
......
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