|
@@ -56,6 +56,7 @@ using MediatR;
|
|
|
using Microsoft.AspNetCore.Authorization;
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
using Microsoft.Extensions.Options;
|
|
|
+using Microsoft.IdentityModel.Tokens;
|
|
|
using MiniExcelLibs;
|
|
|
using MongoDB.Driver;
|
|
|
using SqlSugar;
|
|
@@ -3035,7 +3036,7 @@ public class OrderController : BaseController
|
|
|
}
|
|
|
var isHasSendBackAudit = await _orderSendBackAuditRepository.Queryable().AnyAsync(x => x.OrderId == order.Id && x.State == ESendBackAuditState.Apply);
|
|
|
var isHasSendBack = await _orderSendBackRepository.Queryable().AnyAsync(x => x.OrderId == order.Id && x.State == 0);
|
|
|
- if (order.CurrentHandleOrgId == "001" && !isHasSendBackAudit && order.Status < EOrderStatus.Filed && order.IsProvince && !isHasSendBack)
|
|
|
+ if ((order.ActualHandleOrgCode == "001" || order.Status == EOrderStatus.WaitForAccept || string.IsNullOrEmpty(order.ActualHandleOrgCode)) && !isHasSendBackAudit && order.Status < EOrderStatus.Filed && order.IsProvince && !isHasSendBack && order.Status != EOrderStatus.BackToProvince)
|
|
|
dto.IsCanProvinceSendBack = true;
|
|
|
else
|
|
|
dto.IsCanProvinceSendBack = false;
|