|
|
|
@ -345,6 +345,39 @@ public class IoOrderController extends BaseController {
|
|
|
|
|
if (CollUtil.isEmpty(orderDetailCodeEntities)) {
|
|
|
|
|
return ResultVOUtils.error(500, "单据还未扫码或和扫码校验存在异常无法提交!");
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 1:必须全部扫齐,才可以通过
|
|
|
|
|
* 2:必须选择了马上放心才能提交
|
|
|
|
|
* 3:必须有码才可以
|
|
|
|
|
*/
|
|
|
|
|
SystemParamConfigEntity systemParamConfigEntity = systemParamConfigService.selectByParamKey("create_order_pass_type");
|
|
|
|
|
String passType = systemParamConfigEntity.getParamValue();
|
|
|
|
|
|
|
|
|
|
if (passType == "1"){
|
|
|
|
|
|
|
|
|
|
if (CollUtil.isNotEmpty(orderDetailBizEntities)){
|
|
|
|
|
for (int i = 0; i < orderDetailBizEntities.size(); i++) {
|
|
|
|
|
IoOrderDetailBizEntity ioOrderDetailBizEntity = orderDetailBizEntities.get(i);
|
|
|
|
|
if (ioOrderDetailBizEntity.getScanCount() < ioOrderDetailBizEntity.getCount()){
|
|
|
|
|
return ResultVOUtils.error(500, "单据未完全扫码,提交失败,请检查后重新提交!");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}else if (passType == "2"){
|
|
|
|
|
|
|
|
|
|
String aliOrderBillNo = orderEntity.getAliOrderBillNo();
|
|
|
|
|
if (StrUtil.isEmpty(aliOrderBillNo)){
|
|
|
|
|
return ResultVOUtils.error(500, "单据未选择[马上放心]相关,提交失败,请检查后重新提交!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}else if (StrUtil.isEmpty(passType) || passType == "3"){
|
|
|
|
|
|
|
|
|
|
if (CollUtil.isEmpty(orderDetailCodeEntities)) {
|
|
|
|
|
return ResultVOUtils.error(500, "单据未扫码或扫码校验无法通过,提交失败,请检查后重新提交!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (checkInoutService.checkManual(addOrderRequest.getBillNo())) {
|
|
|
|
|
if (CollUtil.isNotEmpty(orderDetailBizEntities)) {
|
|
|
|
|