Commit fb07369a authored by 38823's avatar 38823

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

parent d614bfdb
......@@ -127,7 +127,7 @@
if(res.result.record.length ==undefined){
var resStartDate=RetimestampToTime(Date.parse(res.result.record.calc_start_date));
var resEndDate=RetimestampToTime(Date.parse(res.result.record.calc_end_date));
if(resStartDate<calcStartDate<resEndDate || resStartDate<calcEndDate<resEndDate){
if((resStartDate<calcStartDate && calcStartDate<resEndDate) || (resStartDate<calcEndDate && calcEndDate<resEndDate)){
$L.showErrorMessage('提示','该代理店项下存在重叠的政策时间,请先检查!');
return;
}
......@@ -135,7 +135,7 @@
for(var i=0;i<res.result.record.length;i++){
var resStartDate=RetimestampToTime(Date.parse(res.result.record[i].calc_start_date));
var resEndDate=RetimestampToTime(Date.parse(res.result.record[i].calc_end_date));
if(resStartDate<calcStartDate<resEndDate || resStartDate<calcEndDate<resEndDate){
if((resStartDate<calcStartDate && calcStartDate<resEndDate) || (resStartDate<calcEndDate && calcEndDate<resEndDate)){
$L.showErrorMessage('提示','该代理店项下存在重叠的政策时间,请先检查!');
return;
}
......
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