|
@@ -1506,7 +1506,7 @@ namespace OASystem.Infrastructure.Repositories.PersonnelModule
|
|
|
case GoodsAuditEnum.UnApproved:
|
|
|
_jv = await GoodsReceiveUnApproved(preChangeStatus, receiveId, userId, currUserName, auditEnum);
|
|
|
break;
|
|
|
- case GoodsAuditEnum.OutPending:
|
|
|
+ case GoodsAuditEnum.OutPending:
|
|
|
_jv = await GoodsReceiveOutPending(preChangeStatus, receiveInfo, userId, auditDep, auditEnum);
|
|
|
break;
|
|
|
case GoodsAuditEnum.OutConfirmed:
|
|
@@ -1880,7 +1880,10 @@ namespace OASystem.Infrastructure.Repositories.PersonnelModule
|
|
|
{
|
|
|
_jv.Code = StatusCodes.Status400BadRequest;
|
|
|
|
|
|
- if (auditEnum < GoodsAuditEnum.OutPending)
|
|
|
+
|
|
|
+ var preChangeStatus = receiveInfo.AuditStatus;
|
|
|
+
|
|
|
+ if (preChangeStatus < GoodsAuditEnum.OutPending)
|
|
|
{
|
|
|
_jv.Msg = $"领用确认执行成功!才可执行出库确认或出库拒绝操作!";
|
|
|
return _jv;
|
|
@@ -1953,8 +1956,7 @@ namespace OASystem.Infrastructure.Repositories.PersonnelModule
|
|
|
statusDesc.Append(auditInfStatusDesc);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- var preChangeStatus = receiveInfo.AuditStatus;
|
|
|
+
|
|
|
|
|
|
if (preChangeStatus == auditEnum)
|
|
|
{
|