Commit cafe4aac authored by liudong1993's avatar liudong1993

司导结算页面

parent 1d551281
......@@ -1916,6 +1916,7 @@ namespace Mall.Module.Product
bool IsPointsDeduction = false;//是否有商品可使用积分抵扣
bool address_enable = true;//地址Ok
bool date_enable = true;//日期ok
string date_remark = "";//日期无法下单备注
List<object> goods_list = new List<object>();
var guidebaseModel = guideCar_BaseRepository.GetList(new RB_GuideCar_Base_Extend() { TenantId = demodel.TenantId, MallBaseId = demodel.MallBaseId }).FirstOrDefault();
if (demodel.DetailList.Any())
......@@ -2399,11 +2400,13 @@ namespace Mall.Module.Product
if (!targetList.Any())
{
date_enable = false;
date_remark = "出发日期不在可预定日期内,请重新选择出发日期";
}
var targetModel = targetList.FirstOrDefault();
if (targetModel == null || targetModel.ReserveNum + (item.Number ?? 0) > (gmodel.RideNum ?? 0))
{
date_enable = false;
date_remark = "剩余座位数不足,请重新选择出发日期";
}
string SiteName = sitelist.Where(x => x.ID == gmodel.SiteId).FirstOrDefault()?.SiteName ?? "";
......@@ -2580,6 +2583,7 @@ namespace Mall.Module.Product
promptNoSuperiorFY = PromptNoSuperiorFY,
total_price = TotalGoodsMoney + InsuranceMoney,
date_enable,
date_remark,
insurance_description = guidebaseModel?.InsuranceDescription,
address = new
{
......
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