|
@ -11,6 +11,7 @@ using System; |
|
|
using System.Collections.Generic; |
|
|
using System.Collections.Generic; |
|
|
using System.Net.Http; |
|
|
using System.Net.Http; |
|
|
using System.Runtime.Serialization; |
|
|
using System.Runtime.Serialization; |
|
|
|
|
|
using System.Threading.Tasks; |
|
|
using System.Windows.Documents; |
|
|
using System.Windows.Documents; |
|
|
|
|
|
|
|
|
namespace BBWY.Client.APIServices |
|
|
namespace BBWY.Client.APIServices |
|
@ -58,7 +59,7 @@ namespace BBWY.Client.APIServices |
|
|
ShopId = globalContext.User.Shop.ShopId.ToString() |
|
|
ShopId = globalContext.User.Shop.ShopId.ToString() |
|
|
}, null, HttpMethod.Post); |
|
|
}, null, HttpMethod.Post); |
|
|
} |
|
|
} |
|
|
public ApiResponse<SearchTaskListResponse> GetWareHouseList(string WayBillNo=null,string SourceExpressName=null, int? isWorry = null, string departmentName = null, string skuId = null, string taskId = null, |
|
|
public ApiResponse<SearchTaskListResponse> GetWareHouseList(string WayBillNo = null, string SourceExpressName = null, int? isWorry = null, string departmentName = null, string skuId = null, string taskId = null, |
|
|
DateTime? startTime = null, |
|
|
DateTime? startTime = null, |
|
|
DateTime? endTime = null, |
|
|
DateTime? endTime = null, |
|
|
TaskState? TaskState = null, |
|
|
TaskState? TaskState = null, |
|
@ -87,14 +88,14 @@ namespace BBWY.Client.APIServices |
|
|
PageIndex = pageIndex, |
|
|
PageIndex = pageIndex, |
|
|
PageSize = pageSize, |
|
|
PageSize = pageSize, |
|
|
ShopName = ShopName, |
|
|
ShopName = ShopName, |
|
|
WayBillNo= WayBillNo, |
|
|
WayBillNo = WayBillNo, |
|
|
SourceExpressName=SourceExpressName, |
|
|
SourceExpressName = SourceExpressName, |
|
|
}, null, HttpMethod.Post); |
|
|
}, null, HttpMethod.Post); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public ApiResponse<ProductSkuCountsResponse> GetTaskAllCount(string shopId=null) |
|
|
public ApiResponse<ProductSkuCountsResponse> GetTaskAllCount(string shopId = null) |
|
|
{ |
|
|
{ |
|
|
return SendRequest<ProductSkuCountsResponse>(globalContext.QKApiHost, $"api/PackTask/GetProductSkuCount?shopId={shopId}", |
|
|
return SendRequest<ProductSkuCountsResponse>(globalContext.QKApiHost, $"api/PackTask/GetProductSkuCount?shopId={shopId}", |
|
|
null |
|
|
null |
|
@ -172,7 +173,7 @@ namespace BBWY.Client.APIServices |
|
|
return SendRequest<object>(globalContext.QKApiHost, "api/PackTask/SetPackTaskState", new |
|
|
return SendRequest<object>(globalContext.QKApiHost, "api/PackTask/SetPackTaskState", new |
|
|
{ |
|
|
{ |
|
|
taskId = taskId, |
|
|
taskId = taskId, |
|
|
TaskState= taskState |
|
|
TaskState = taskState |
|
|
} |
|
|
} |
|
|
, null, HttpMethod.Post); |
|
|
, null, HttpMethod.Post); |
|
|
} |
|
|
} |
|
@ -206,25 +207,6 @@ namespace BBWY.Client.APIServices |
|
|
, null, HttpMethod.Get); |
|
|
, null, HttpMethod.Get); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
/// <summary>
|
|
|
|
|
|
/// 获取任务的服务
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
public ApiResponse<PackServiceResponse> GetTaskService(long taskId) |
|
|
|
|
|
{ |
|
|
|
|
|
return SendRequest<PackServiceResponse>(globalContext.QKApiHost, $"api/PackTask/GetTaskService?TaskId={taskId}",null |
|
|
|
|
|
, null, HttpMethod.Get); |
|
|
|
|
|
} |
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 上传 更新任务的服务数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
public ApiResponse<object> UploadService(UploadServiceRequest uploadService) |
|
|
|
|
|
{ |
|
|
|
|
|
return SendRequest<object>(globalContext.QKApiHost, "api/PackTask/UploadService", uploadService |
|
|
|
|
|
, null, HttpMethod.Post); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public ApiResponse<ShopTotalResponse> ShopTotal(string skuId = null, string taskId = null, |
|
|
public ApiResponse<ShopTotalResponse> ShopTotal(string skuId = null, string taskId = null, |
|
|
DateTime? startTime = null, |
|
|
DateTime? startTime = null, |
|
@ -282,8 +264,8 @@ namespace BBWY.Client.APIServices |
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
/// <param name="orderId"></param>
|
|
|
/// <param name="orderId"></param>
|
|
|
/// <returns></returns>
|
|
|
/// <returns></returns>
|
|
|
public ApiResponse<TotalPackUserSalaryResponse> TotalPackUserSalary(string PackUserName = null, DateTime? StartTime = null, DateTime? EndTime=null, int PageIndex=1 |
|
|
public ApiResponse<TotalPackUserSalaryResponse> TotalPackUserSalary(string PackUserName = null, DateTime? StartTime = null, DateTime? EndTime = null, int PageIndex = 1 |
|
|
, int PageSize=10) |
|
|
, int PageSize = 10) |
|
|
{ |
|
|
{ |
|
|
return SendRequest<TotalPackUserSalaryResponse>(globalContext.QKApiHost, "api/PackTask/TotalPackUserSalary", new |
|
|
return SendRequest<TotalPackUserSalaryResponse>(globalContext.QKApiHost, "api/PackTask/TotalPackUserSalary", new |
|
|
{ |
|
|
{ |
|
@ -295,55 +277,12 @@ namespace BBWY.Client.APIServices |
|
|
}, null, HttpMethod.Post); |
|
|
}, null, HttpMethod.Post); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
public ApiResponse<bool> StoreGetBySelf(long taskId) |
|
|
/// 获取待封箱列表
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="orderId"></param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
public ApiResponse<SearchWaitSealBoxResponse> SearchWaitSealBoxList(string ShopName = null, long? TaskId=null, string SkuId = null, int PageIndex = 1 |
|
|
|
|
|
, int PageSize = 10) |
|
|
|
|
|
{ |
|
|
|
|
|
return SendRequest<SearchWaitSealBoxResponse>(globalContext.QKApiHost, "api/PackTask/SearchWaitSealBoxList", new |
|
|
|
|
|
{ |
|
|
|
|
|
ShopName, |
|
|
|
|
|
TaskId, |
|
|
|
|
|
SkuId, |
|
|
|
|
|
PageIndex, |
|
|
|
|
|
PageSize |
|
|
|
|
|
}, null, HttpMethod.Post); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 完成封箱
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="orderId"></param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
public ApiResponse<bool> CompeteSealBox( CompeteSealBox CompeteSealBoxs) |
|
|
|
|
|
{ |
|
|
{ |
|
|
return SendRequest<bool>(globalContext.QKApiHost, "api/PackTask/CompeteSealBox", CompeteSealBoxs, null, HttpMethod.Post); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return SendRequest<bool>(globalContext.QKApiHost, $"api/PackTask/StoreGetBySelf?TaskId={taskId}", null, null, HttpMethod.Post); |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获取待落仓列表
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="orderId"></param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
public ApiResponse<SearchWaitFallWareResponse> SearchWaitFallWareList(string ShopName = null, long? TaskId = null, string SkuId = null, int PageIndex = 1 |
|
|
|
|
|
, int PageSize = 10) |
|
|
|
|
|
{ |
|
|
|
|
|
return SendRequest<SearchWaitFallWareResponse>(globalContext.QKApiHost, "api/PackTask/SearchWaitFallWareList", new |
|
|
|
|
|
{ |
|
|
|
|
|
ShopName, |
|
|
|
|
|
TaskId, |
|
|
|
|
|
SkuId, |
|
|
|
|
|
PageIndex, |
|
|
|
|
|
PageSize |
|
|
|
|
|
}, null, HttpMethod.Post); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public class CompeteSealBox |
|
|
public class CompeteSealBox |
|
|