修改提单管理

dev
jianghaiqing 4 weeks ago
parent 3c2e800faa
commit b74ac5d1cb

@ -396,5 +396,15 @@ namespace DS.WMS.Core.Op.Dtos
/// 是否换签(背书) /// 是否换签(背书)
/// </summary> /// </summary>
public bool IsChangeEndorse { get; set; } public bool IsChangeEndorse { get; set; }
/// <summary>
/// Desc:单证
/// </summary>
public long Doc { get; set; }
/// <summary>
/// 单证人员
/// </summary>
public string DocName { get; set; }
} }
} }

@ -4,7 +4,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace DS.WMS.Core.Op.Dtos.BLIssueManage namespace DS.WMS.Core.Op.Dtos
{ {
/// <summary> /// <summary>
/// ///
@ -15,5 +15,15 @@ namespace DS.WMS.Core.Op.Dtos.BLIssueManage
/// 台账状态标签代码 /// 台账状态标签代码
/// </summary> /// </summary>
public string QueryTabCode { get; set; } public string QueryTabCode { get; set; }
/// <summary>
/// 主分单M-主单H-分单)
/// </summary>
public string MHouseFlag { get; set; }
/// <summary>
/// 收费状态ALL-全部NORECV-仅未收RECV-仅已收)
/// </summary>
public string ChargeFeeStaus { get; set; }
} }
} }

@ -13,9 +13,9 @@ namespace DS.WMS.Core.Op.Dtos
public enum BLQueryStatusEnum public enum BLQueryStatusEnum
{ {
/// <summary> /// <summary>
/// 未签入 /// 提单查询
/// </summary> /// </summary>
[Description("未签入")] [Description("提单查询")]
BLQuery, BLQuery,
/// <summary> /// <summary>
/// 可签入 /// 可签入
@ -28,6 +28,11 @@ namespace DS.WMS.Core.Op.Dtos
[Description("可签出")] [Description("可签出")]
CheckOutQuery, CheckOutQuery,
/// <summary> /// <summary>
/// 已签出
/// </summary>
[Description("已签出")]
HasCheckOutQuery,
/// <summary>
/// 改签 /// 改签
/// </summary> /// </summary>
[Description("改签")] [Description("改签")]

@ -18,14 +18,14 @@ namespace DS.WMS.Core.Op.Interface
/// </summary> /// </summary>
/// <param name="querySearch">查询条件</param> /// <param name="querySearch">查询条件</param>
/// <returns>返回回执</returns> /// <returns>返回回执</returns>
Task<DataResult<List<BLIssueManageBaseDto>>> GetPageAsync(PageRequest querySearch); Task<DataResult<List<BLIssueManageBaseDto>>> GetPageAsync(PageRequest<BLIssueMangeQueryExtDto> querySearch);
/// <summary> /// <summary>
/// 获取导出数据列表 /// 获取导出数据列表
/// </summary> /// </summary>
/// <param name="querySearch">查询条件</param> /// <param name="querySearch">查询条件</param>
/// <returns>返回回执</returns> /// <returns>返回回执</returns>
Task<DataResult<List<BLIssueManageBaseDto>>> GetExportList(PageRequest querySearch); Task<DataResult<List<BLIssueManageBaseDto>>> GetExportList(PageRequest<BLIssueMangeQueryExtDto> querySearch);
/// <summary> /// <summary>
/// 打印 /// 打印

@ -101,7 +101,7 @@ namespace DS.WMS.Core.Op.Method
/// </summary> /// </summary>
/// <param name="querySearch">查询条件</param> /// <param name="querySearch">查询条件</param>
/// <returns>返回回执</returns> /// <returns>返回回执</returns>
public async Task<DataResult<List<BLIssueManageBaseDto>>> GetPageAsync(PageRequest querySearch) public async Task<DataResult<List<BLIssueManageBaseDto>>> GetPageAsync(PageRequest<BLIssueMangeQueryExtDto> querySearch)
{ {
/* /*
1 1
@ -110,8 +110,14 @@ namespace DS.WMS.Core.Op.Method
var query = tenantDb.Queryable<SeaExport>().ClearFilter(typeof(IOrgId)) var query = tenantDb.Queryable<SeaExport>().ClearFilter(typeof(IOrgId))
.LeftJoin<BLIssueManageBase>((l, r) => l.Id == r.BookingId) .LeftJoin<BLIssueManageBase>((l, r) => l.Id == r.BookingId)
.WhereIF(querySearch.OtherQueryCondition != null && !string.IsNullOrWhiteSpace(querySearch.OtherQueryCondition.QueryTabCode)
&& querySearch.OtherQueryCondition.QueryTabCode.Equals("CheckInQuery",StringComparison.OrdinalIgnoreCase),(l,r)=> r.IsCheckIn == false)
.WhereIF(querySearch.OtherQueryCondition != null && !string.IsNullOrWhiteSpace(querySearch.OtherQueryCondition.QueryTabCode)
&& querySearch.OtherQueryCondition.QueryTabCode.Equals("CheckOutQuery", StringComparison.OrdinalIgnoreCase), (l, r) => r.IsCheckIn == true)
.Select((l, r) => new { order = l, bl = r }); .Select((l, r) => new { order = l, bl = r });
BLIssueMangeQueryExtDto otherQuery = null;
if (!querySearch.QueryCondition.IsNullOrEmpty()) if (!querySearch.QueryCondition.IsNullOrEmpty())
{ {
var whereList = querySearch.GetConditionalModels(db); var whereList = querySearch.GetConditionalModels(db);
@ -176,6 +182,8 @@ namespace DS.WMS.Core.Op.Method
BusiTypeName = BLIssueBusiTypeEnum.SeaExport.GetDescription(), BusiTypeName = BLIssueBusiTypeEnum.SeaExport.GetDescription(),
BLType = BLTypeEnum.BL.ToString(), BLType = BLTypeEnum.BL.ToString(),
BLTypeName = BLTypeEnum.BL.GetDescription(), BLTypeName = BLTypeEnum.BL.GetDescription(),
StlDate = data.order.StlDate,
}); });
start++; start++;
@ -192,7 +200,7 @@ namespace DS.WMS.Core.Op.Method
/// </summary> /// </summary>
/// <param name="querySearch">查询条件</param> /// <param name="querySearch">查询条件</param>
/// <returns>返回回执</returns> /// <returns>返回回执</returns>
public async Task<DataResult<List<BLIssueManageBaseDto>>> GetExportList(PageRequest querySearch) public async Task<DataResult<List<BLIssueManageBaseDto>>> GetExportList(PageRequest<BLIssueMangeQueryExtDto> querySearch)
{ {
var tenantDb = saasService.GetBizDbScopeById(user.TenantId); var tenantDb = saasService.GetBizDbScopeById(user.TenantId);

@ -34,7 +34,7 @@ namespace DS.WMS.OpApi.Controllers
/// <returns>返回回执</returns> /// <returns>返回回执</returns>
[HttpPost] [HttpPost]
[Route("GetPage")] [Route("GetPage")]
public async Task<DataResult<List<BLIssueManageBaseDto>>> GetPageAsync([FromBody] PageRequest querySearch) public async Task<DataResult<List<BLIssueManageBaseDto>>> GetPageAsync([FromBody] PageRequest<BLIssueMangeQueryExtDto> querySearch)
{ {
return await _BLIssueManageService.GetPageAsync(querySearch); return await _BLIssueManageService.GetPageAsync(querySearch);
} }
@ -48,7 +48,7 @@ namespace DS.WMS.OpApi.Controllers
/// <returns>返回回执</returns> /// <returns>返回回执</returns>
[HttpPost] [HttpPost]
[Route("GetExportList")] [Route("GetExportList")]
public async Task<DataResult<List<BLIssueManageBaseDto>>> GetExportList(PageRequest querySearch) public async Task<DataResult<List<BLIssueManageBaseDto>>> GetExportList(PageRequest<BLIssueMangeQueryExtDto> querySearch)
{ {
return await _BLIssueManageService.GetExportList(querySearch); return await _BLIssueManageService.GetExportList(querySearch);
} }

Loading…
Cancel
Save