|
|
@ -183,34 +183,30 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
return await Task.FromResult(DataResult<string>.Failed("不存在的海运出口信息!", MultiLanguageConst.SeaExportExist));
|
|
|
|
return await Task.FromResult(DataResult<string>.Failed("不存在的海运出口信息!", MultiLanguageConst.SeaExportExist));
|
|
|
|
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))
|
|
|
|
//}
|
|
|
|
{
|
|
|
|
|
|
|
|
return await Task.FromResult(DataResult<string>.Success("已审未出号"));
|
|
|
|
//if (info.ETD.IsNotNull() && info.ETD < DateTime.Now)
|
|
|
|
}
|
|
|
|
//{
|
|
|
|
else
|
|
|
|
// return await Task.FromResult(DataResult<string>.Failed("此单已开船,无法改配!"));
|
|
|
|
{
|
|
|
|
//}
|
|
|
|
if (info.IsBooking == true || info.IsVGM == true)
|
|
|
|
if (task.TaskStatus == TaskStatusEnum.Complete && string.IsNullOrEmpty(info.MBLNO))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return await Task.FromResult(DataResult<string>.Success("已申报"));
|
|
|
|
return await Task.FromResult(DataResult<string>.Success("已审未出号"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else if (!string.IsNullOrEmpty(info.MBLNO) && (info.IsBooking == false && info.IsVGM == false))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return await Task.FromResult(DataResult<string>.Success("已出号未申报"));
|
|
|
|
return await Task.FromResult(DataResult<string>.Success("已出号未申报"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (info.IsBooking == true || info.IsVGM == true)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return await Task.FromResult(DataResult<string>.Success("已申报"));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return await Task.FromResult(DataResult<string>.Success("未审单"));
|
|
|
|
}
|
|
|
|
|
|
|
|
else {
|
|
|
|
|
|
|
|
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("此单未审,可直接编辑调整!"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|