Commit 94db0b06 by 泽锋 李

fix

parent 95c29a05
......@@ -780,26 +780,28 @@ namespace AutoTurnOver.Services
{
throw new Exception($" 第 {item.index} 阶段的 三个时间段范围比例相加不等 1 ");
}
if (item.one_n2 + item.one_n4 + item.one_n6 != 1)
{
throw new Exception($" 第 {item.index} 阶段的 第 1 个时间段范围 的 3个加权值相加不等与1 ");
}
else
if (item.two_n2 + item.two_n4 + item.two_n6 != 1)
{
if (item.index == 1)
throw new Exception($" 第 {item.index} 阶段的 第 2 个时间段范围 的 3个加权值相加不等与1 ");
}
if (item.three_n2 + item.three_n4 + item.three_n6 != 1)
{
throw new Exception($"第1阶段的 {(m.screen_type==1?"入库时长":"销量范围")} 必填");
throw new Exception($"{item.index} 阶段的 第 3 个时间段范围 的 3个加权值相加不等与1 ");
}
}
if(item.one_n2+ item.one_n4 + item.one_n6!=1)
else
{
throw new Exception($" 第 {item.index} 阶段的 底 1 个时间段范围 的 3个加权值相加不等与1 ");
}
if (item.two_n2 + item.two_n4 + item.two_n6 != 1)
if (item.index == 1)
{
throw new Exception($" 第 {item.index} 阶段的 底 2 个时间段范围 的 3个加权值相加不等与1 ");
throw new Exception($"第1阶段的 {(m.screen_type==1?"入库时长":"销量范围")} 必填");
}
if (item.three_n2 + item.three_n4 + item.three_n6 != 1)
{
throw new Exception($" 第 {item.index} 阶段的 底 3 个时间段范围 的 3个加权值相加不等与1 ");
}
}
DB.db_config.SaveSalesForecastConfig(m, username);
}
......
......@@ -754,8 +754,8 @@ namespace AutoTurnOver.Controllers
return new JsonResult(new
{
rows = list,
total = total,
rows = list.Items,
total = list.TotalItems
});
}
......
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