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.
65 lines
2.5 KiB
65 lines
2.5 KiB
using BBWY.Client.Models;
|
|
using BBWY.Client.Models.APIModel;
|
|
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?TaskId={TaskId}",
|
|
new {
|
|
TaskId,
|
|
TaskExceptionType,
|
|
RemarkMsg,
|
|
UserName=globalContext.User.Name
|
|
}
|
|
, null, HttpMethod.Post);
|
|
}
|
|
}
|
|
}
|
|
|