diff --git a/BBWYB.Client/APIServices/PackPurchaseTaskService.cs b/BBWYB.Client/APIServices/PackPurchaseTaskService.cs
new file mode 100644
index 0000000..b70269d
--- /dev/null
+++ b/BBWYB.Client/APIServices/PackPurchaseTaskService.cs
@@ -0,0 +1,123 @@
+using BBWYB.Client.Models;
+using BBWYB.Client.Models.APIModel;
+using BBWYB.Common.Http;
+using BBWYB.Common.Models;
+using Microsoft.Extensions.Logging.Abstractions;
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Net;
+using System.Net.Http;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace BBWYB.Client.APIServices
+{
+ public class PackPurchaseTaskService : BaseApiService, IDenpendency
+ {
+ public PackPurchaseTaskService(RestApiService restApiService, GlobalContext globalContext) : base(restApiService, globalContext)
+ {
+ }
+ ///
+ ///
+ ///
+ /// 店铺Id(采购方)
+ /// 来源店铺的skuid
+ /// 店铺来源
+ /// 下单数量
+ /// 下单人
+ /// 订单id
+ /// 采购平台
+ /// 分箱明细
+ ///
+ ///
+ public ApiResponse PublicPurchaseTask(string shopId,string skuId, string originShopName,
+ int skuCount, string userName, string orderId, Platform Platform,
+ WareHourseDTO[] WareHourses,
+ string MarkMessage)
+ {
+ return SendRequest(globalContext.QKApiHost, "api/PackPurchaseTask/PublicPurchaseTask", new
+ {
+ shopId,
+ skuId,
+ originShopName,
+ skuCount,
+ userName,
+ orderId,
+ Platform,
+ WareHourses,
+ MarkMessage
+ }, null, HttpMethod.Post);
+ }
+
+ public ApiResponse UpdatePurchaseTask(UpdatePurchaseTaskRequest updatePurchaseTaskRequest)
+ {
+ return SendRequest(globalContext.QKApiHost, "api/PackPurchaseTask/UpdatePurchaseTask", updatePurchaseTaskRequest, null, HttpMethod.Post);
+ }
+
+ public ApiResponse GetConfigPack(string skuId, string skuPurchaseSchemeId)
+ {
+ return SendRequest(globalContext.QKApiHost, "api/PackPurchaseTask/GetConfigPack", new {
+ skuId,
+ skuPurchaseSchemeId
+ }
+ , null, HttpMethod.Post);
+ }
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 到货情况(物流状态)(已到货 = 0,部分到货 = 1,未到货 = 2)
+ ///
+ public ApiResponse UpdateAvailabilityState(string orderId, string skuId, int availability)
+ {
+ return SendRequest(globalContext.QKApiHost, "api/PackPurchaseTask/UpdatePurchaseTask", new {
+ orderId,
+ skuId,
+ availability
+ }, null, HttpMethod.Post);
+ }
+
+ public ApiResponse SaveBarCode(BarCodeRequest barCodeModel)
+ {
+ return SendRequest(globalContext.QKApiHost, "api/PackTask/CommitBarCode", barCodeModel
+ , null, HttpMethod.Post);
+ }
+
+ public ApiResponse SaveCer(CerRequest cerRequest)
+ {
+ return SendRequest(globalContext.QKApiHost, "api/Certificate/CommitSkuCer", cerRequest
+ , null, HttpMethod.Post);
+ }
+
+
+ public ApiResponse GetProductSku(string skuId)
+ {
+
+ return SendRequest(globalContext.QKApiHost, $"api/PackTask/SearchProduct?skuId={skuId}&ShopId={globalContext.User.Shop.ShopId}", null, null, HttpMethod.Get);
+ // HttpClientHelper helper = new HttpClientHelper(globalContext.QKApiHost);
+
+ //string url = $"{globalContext.QKApiHost}/api/PackTask/SearchProduct?skuId={skuId}&ShopId={globalContext.User.Shop.ShopId}";
+ //var data = helper.Get(url);
+
+ //return JsonConvert.DeserializeObject>(data);
+ }
+
+ }
+ public class WareHourseDTO
+ {
+
+ public string WareId { get; set; }
+ ///
+ /// 仓库名称
+ ///
+ public string WareName { get; set; }
+ ///
+ /// 数量
+ ///
+ public int Count { get; set; }
+ }
+
+}
diff --git a/BBWYB.Client/APIServices/ProductService.cs b/BBWYB.Client/APIServices/ProductService.cs
index 8f2f133..6bb7947 100644
--- a/BBWYB.Client/APIServices/ProductService.cs
+++ b/BBWYB.Client/APIServices/ProductService.cs
@@ -45,5 +45,45 @@ namespace BBWYB.Client.APIServices
null,
HttpMethod.Post);
}
+
+
+ public ApiResponse GetProductList(string spu, string productName, string productItem, int pageIndex, Platform platform, string appKey, string appSecret, string appToken)
+ {
+ return SendRequest(globalContext.BBWYCApiHost,
+ "api/product/GetProductList",
+ new
+ {
+ Spu = spu,
+ ProductName = productName,
+ ProductItem = productItem,
+ PageIndex = pageIndex,
+ Platform = platform,
+ AppKey = appKey,
+ AppSecret = appSecret,
+ AppToken = appToken
+ },
+ null,
+ HttpMethod.Post);
+ }
+
+ public ApiResponse> GetProductSkuList(string spu, string sku, Platform platform, string appKey, string appSecret, string appToken)
+ {
+ return SendRequest>(globalContext.BBWYCApiHost,
+ "api/product/GetProductSkuList",
+ new
+ {
+ Spu = spu,
+ Sku = sku,
+ Platform = platform,
+ AppKey = appKey,
+ AppSecret = appSecret,
+ AppToken = appToken
+ },
+ null,
+ HttpMethod.Post);
+ }
+ //
}
+
+
}
diff --git a/BBWYB.Client/APIServices/PurchaseService.cs b/BBWYB.Client/APIServices/PurchaseService.cs
index 49e2ccc..5473b54 100644
--- a/BBWYB.Client/APIServices/PurchaseService.cs
+++ b/BBWYB.Client/APIServices/PurchaseService.cs
@@ -1,4 +1,5 @@
using BBWYB.Client.Models;
+using BBWYB.Client.Models.APIModel;
using BBWYB.Common.Http;
using BBWYB.Common.Models;
using System.Collections.Generic;
@@ -80,5 +81,18 @@ namespace BBWYB.Client.APIServices
{
return SendRequest