改配修改

dev
cjy 2 months ago
parent 2f6a637222
commit 9356cd96b3

@ -184,32 +184,28 @@ namespace DS.WMS.Core.Op.Method
var task = await tenantDb.Queryable<BusinessTask>().Where(x => x.BusinessId == id && x.TaskType == TaskBaseTypeEnum.WAIT_ORDER_AUDIT).FirstAsync(); var task = await tenantDb.Queryable<BusinessTask>().Where(x => x.BusinessId == id && x.TaskType == TaskBaseTypeEnum.WAIT_ORDER_AUDIT).FirstAsync();
if (task.IsNull()) if (task.IsNull())
{ {
//return await Task.FromResult(DataResult<string>.Failed("此单未审,可直接编辑调整!"));
return await Task.FromResult(DataResult<string>.Success("未审单")); return await Task.FromResult(DataResult<string>.Success("未审单"));
} }
//if (task.IsNotNull() && task.TaskStatus == TaskStatusEnum.Create) if (task.TaskStatus == TaskStatusEnum.Complete)
//{ {
// return await Task.FromResult(DataResult<string>.Failed("此单未审,可直接编辑调整!")); if (string.IsNullOrEmpty(info.MBLNO))
//}
//if (info.ETD.IsNotNull() && info.ETD < DateTime.Now)
//{
// return await Task.FromResult(DataResult<string>.Failed("此单已开船,无法改配!"));
//}
if (task.TaskStatus == TaskStatusEnum.Complete && string.IsNullOrEmpty(info.MBLNO))
{ {
return await Task.FromResult(DataResult<string>.Success("已审未出号")); return await Task.FromResult(DataResult<string>.Success("已审未出号"));
} }
else if (!string.IsNullOrEmpty(info.MBLNO) && (info.IsBooking == false && info.IsVGM == false)) else
{ {
return await Task.FromResult(DataResult<string>.Success("已出号未申报")); if (info.IsBooking == true || info.IsVGM == true)
}
else if (info.IsBooking == true || info.IsVGM == true)
{ {
return await Task.FromResult(DataResult<string>.Success("已申报")); return await Task.FromResult(DataResult<string>.Success("已申报"));
} }
else { else
{
return await Task.FromResult(DataResult<string>.Success("已出号未申报"));
}
}
}
else {
return await Task.FromResult(DataResult<string>.Success("未审单")); return await Task.FromResult(DataResult<string>.Success("未审单"));
} }
} }
@ -232,7 +228,8 @@ namespace DS.WMS.Core.Op.Method
{ {
return await Task.FromResult(DataResult.Failed("此单未审,可直接编辑调整!")); return await Task.FromResult(DataResult.Failed("此单未审,可直接编辑调整!"));
} }
if (task.IsNotNull() && task.TaskStatus == TaskStatusEnum.Create)
if (task.IsNotNull() && task.TaskStatus != TaskStatusEnum.Complete)
{ {
return await Task.FromResult(DataResult.Failed("此单未审,可直接编辑调整!")); return await Task.FromResult(DataResult.Failed("此单未审,可直接编辑调整!"));
} }

Loading…
Cancel
Save