You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
114 lines
4.1 KiB
114 lines
4.1 KiB
using BBWY.Client.Models;
|
|
using BBWY.Client.Models.APIModel;
|
|
using BBWY.Client.Models.APIModel.Request;
|
|
using BBWY.Client.Models.APIModel.Response.PackPurchaseTask;
|
|
using BBWY.Common.Http;
|
|
using BBWY.Common.Models;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Net.Http;
|
|
using System.Text;
|
|
|
|
namespace BBWY.Client.APIServices.QiKu
|
|
{
|
|
public class QualityTaskService : BaseApiService, IDenpendency
|
|
{
|
|
public QualityTaskService(RestApiService restApiService, GlobalContext globalContext) : base(restApiService, globalContext)
|
|
{
|
|
}
|
|
|
|
public ApiResponse<SearchQualityTaskListResponse> SearchQualityTaskList(string WayBillNo = null, string SourceExpressName = null, string departmentName = null, string skuId = null, string taskId = null,
|
|
string spuId = null, string orderSn = null,
|
|
QualityTaskExceptionState? QualityTaskExceptionState = null,
|
|
string ShopName = null,
|
|
int pageIndex = 1,
|
|
int pageSize = 10,
|
|
string SkuTitle = null,
|
|
string SpuTitle = null,
|
|
string PackUserName = null
|
|
)
|
|
{
|
|
|
|
return SendRequest<SearchQualityTaskListResponse>(globalContext.QKApiHost, "api/QualityTask/SearchQualityTaskList", new
|
|
{
|
|
SkuTitle,
|
|
SpuTitle,
|
|
DepartmentName = departmentName,
|
|
SkuId = skuId,
|
|
TaskId = taskId,
|
|
QualityTaskExceptionState,
|
|
PageIndex = pageIndex,
|
|
PageSize = pageSize,
|
|
ShopName = ShopName,
|
|
WayBillNo = WayBillNo,
|
|
SourceExpressName = SourceExpressName,
|
|
spuId,
|
|
orderSn,
|
|
PackUserName
|
|
}, null, HttpMethod.Post);
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public ApiResponse<object> QualityTaskException(long TaskId, TaskExceptionType TaskExceptionType, string RemarkMsg)
|
|
{
|
|
return SendRequest<object>(globalContext.QKApiHost, $"api/QualityTask/QualityTaskException",
|
|
new
|
|
{
|
|
TaskId,
|
|
TaskExceptionType,
|
|
RemarkMsg,
|
|
UserName = globalContext.User.Name
|
|
}
|
|
, null, HttpMethod.Post);
|
|
}
|
|
|
|
|
|
|
|
public ApiResponse<SearchProductAttrsBySkuIdResponse> SearchProductAttrsBySkuId(string SkuId, string AppKey, string AppSecret, string AppToken, Platform platform)
|
|
{
|
|
return SendRequest<SearchProductAttrsBySkuIdResponse>(globalContext.QKApiHost, $"api/Product/SearchProductAttrsBySkuId",
|
|
new
|
|
{
|
|
SkuId,
|
|
AppKey,
|
|
AppSecret,
|
|
AppToken,
|
|
platform
|
|
}
|
|
, null, HttpMethod.Post);
|
|
}
|
|
|
|
|
|
public ApiResponse<object> SendMsgToPurchaseDepartment(long TaskId, string ModelTitle, string TipMsg)
|
|
{
|
|
return SendRequest<object>(globalContext.QKApiHost, $"api/QualityTask/SendMsgToPurchaseDepartment",
|
|
new
|
|
{
|
|
TaskId,
|
|
ModelTitle,
|
|
TipMsg,
|
|
UserName = globalContext.User.Name
|
|
}
|
|
, null, HttpMethod.Post);
|
|
}
|
|
|
|
|
|
public ApiResponse<QualityTaskResponse> GetQualityTask(long taskId)
|
|
{
|
|
|
|
return SendRequest<QualityTaskResponse>(globalContext.QKApiHost, $"api/QualityTask/GetQualityTask?taskId={taskId}", null, null, HttpMethod.Post);
|
|
|
|
}
|
|
|
|
public ApiResponse<bool> CompeteQualityTask(QualityTaskRequest competeQualityTask)
|
|
{
|
|
|
|
return SendRequest<bool>(globalContext.QKApiHost, $"api/QualityTask/CompeteQualityTask", competeQualityTask, null, HttpMethod.Post);
|
|
|
|
}
|
|
|
|
}
|
|
}
|
|
|