@@ -2827,6 +2827,11 @@ public class OrderController : BaseController
//dto.SendBackOpinion = sendBack is { Id: not null } && !string.IsNullOrEmpty(sendBack.Content) ? sendBack.Content : string.Empty;
}
+ //工单是否在退回审批中
+ if (await _orderSendBackAuditRepository.AnyAsync(x => x.OrderId == order.Id && x.State == ESendBackAuditState.Apply, HttpContext.RequestAborted))
+ {
+ dto.IsReturnUnderApproval = true;
+ }
return dto;
@@ -670,6 +670,11 @@ namespace Hotline.Share.Dtos.Order
/// 交办人(派单员)
/// </summary>
public string? CenterToOrgHandlerName { get; set; }
+
+ /// <summary>
+ /// 是否退回审批中
+ /// </summary>
+ public bool IsReturnUnderApproval { get; set; }
public class UpdateOrderDto : AddOrderDto