换电小步

master
lxw 1 month ago
parent b466d8c677
commit 02c57fb650

@ -54,13 +54,9 @@ public class CommonMgr
machine.StepModel[stepModel.StepNo.ToString()] = stepModel; machine.StepModel[stepModel.StepNo.ToString()] = stepModel;
if (machine.SwapOrder != null) _swapOrderStepService.InsertSwapStepForSwapMain(step, machine.StepSort++, machine.SwapOrder!.Sn,
{
if (!string.IsNullOrEmpty(machine.SwapOrder.Sn))
_swapOrderStepService.InsertSwapStepForSwapMain(step, machine.StepSort++, machine.SwapOrder.Sn,
desc, param, type); desc, param, type);
} }
}
/// <summary> /// <summary>
@ -194,6 +190,7 @@ public class CommonMgr
{ {
return orderBatteryInfo; return orderBatteryInfo;
} }
//手动选包 //手动选包
ManualSelectPack(machine, orderBatteryInfo); ManualSelectPack(machine, orderBatteryInfo);
@ -297,7 +294,6 @@ public class CommonMgr
orderBatteryInfo.CanDownBin = selectPackDto.CanSwapBinInfo; orderBatteryInfo.CanDownBin = selectPackDto.CanSwapBinInfo;
orderBatteryInfo.InBinInfo = selectPackDto.BinInfo; orderBatteryInfo.InBinInfo = selectPackDto.BinInfo;
orderBatteryInfo.CanSwap = selectPackDto.Info; orderBatteryInfo.CanSwap = selectPackDto.Info;
} }
@ -330,7 +326,6 @@ public class CommonMgr
{ {
orderBatteryInfo.CanSwap = InfoEnum.SelectBinStatusInfo.WaitSelectDownBin; orderBatteryInfo.CanSwap = InfoEnum.SelectBinStatusInfo.WaitSelectDownBin;
orderBatteryInfo.UpBinInfo = binInfo; orderBatteryInfo.UpBinInfo = binInfo;
} }
} }
@ -343,10 +338,8 @@ public class CommonMgr
{ {
orderBatteryInfo.CanSwap = InfoEnum.SelectBinStatusInfo.Success; orderBatteryInfo.CanSwap = InfoEnum.SelectBinStatusInfo.Success;
orderBatteryInfo.InBinInfo = binInfo; orderBatteryInfo.InBinInfo = binInfo;
} }
} }
} }
/// <summary> /// <summary>
@ -433,7 +426,6 @@ public class CommonMgr
BatteryNo = "-1" BatteryNo = "-1"
}, },
it => it.Id == upBinInfo.Id); it => it.Id == upBinInfo.Id);
} }
} }

@ -92,7 +92,7 @@ public class SwapOrderStepService : BaseServices<SwapOrderStep>
/// <summary> /// <summary>
/// 换电小步新增---换电主流程 /// 换电小步新增---换电主流程
/// </summary> /// </summary>
public void InsertSwapStepForSwapMain(InfoEnum.BusinessSwappingStep step, int sort, String swapOrderSn, public void InsertSwapStepForSwapMain(InfoEnum.BusinessSwappingStep step, int sort, String? swapOrderSn,
string desc="" ,string param=null,int type=(int)SwapConstant.StepType.AUTO) string desc="" ,string param=null,int type=(int)SwapConstant.StepType.AUTO)
{ {
SwapOrderStep swapOrderStep = new () SwapOrderStep swapOrderStep = new ()

Loading…
Cancel
Save