From e9e1703fbe1df9059d48829e24d20eb8a7b7ac46 Mon Sep 17 00:00:00 2001
From: "506583276@qq.com" <506583276@qq.com>
Date: Thu, 11 May 2023 23:29:20 +0800
Subject: [PATCH] 1
---
.../APIServices/BatchPurchaseService.cs | 6 +-
BBWY.Client/APIServices/PackTaskService.cs | 64 +-
BBWY.Client/BBWYAppSettings.json | 8 +-
BBWY.Client/Helpers/MyPrintHelper.cs | 236 +++++-
.../Models/APIModel/Request/CerRequest.cs | 4 +
.../APIModel/Request/CreateTaskRequest.cs | 5 +
.../PackTask/PackTaskResultResponse.cs | 10 +-
.../Response/PackTask/ProductSkuResponse.cs | 4 +-
.../Models/BatchPurchase/BatchPublishTask.cs | 43 +-
BBWY.Client/Models/Enums.cs | 5 +-
.../Models/PackTask/CertificateModel.cs | 55 +-
BBWY.Client/Models/PackTask/PackTaskModel.cs | 32 +-
.../BatchPublishTaskViewModel.cs | 23 +-
.../BatchPurchaseOrderListViewModel.cs | 42 +-
.../PackTask/CreatePackTaskViewModel.cs | 160 ++--
.../PackTask/PublishTaskViewModel.cs | 759 ++++++++++++++++++
.../ViewModels/PackTask/TaskListViewModel.cs | 42 +-
.../PackTask/WareHouseListViewModel.cs | 4 +-
BBWY.Client/ViewModels/ViewModelLocator.cs | 8 +
.../BatchPurchase/BatchPublishTaskWindow.xaml | 80 +-
.../BatchPurchase/BatchPurchaseOrderList.xaml | 25 +-
BBWY.Client/Views/MainWindow.xaml | 2 +-
.../Views/PackTask/BarcodeControl.xaml | 53 +-
.../Views/PackTask/BarcodeControl.xaml.cs | 11 +-
BBWY.Client/Views/PackTask/CerControl.xaml | 230 ++++--
BBWY.Client/Views/PackTask/CerControl.xaml.cs | 14 +-
.../Views/PackTask/CreatePackTask.xaml | 33 +-
BBWY.Client/Views/PackTask/LookCerWindow.xaml | 146 +---
.../Views/PackTask/LookCerWindow.xaml.cs | 37 +-
BBWY.Client/Views/PackTask/PrintWindow.xaml | 38 +-
.../Views/PackTask/PrintWindow.xaml.cs | 93 ++-
.../Views/PackTask/PublishTaskWindow.xaml | 272 +++++++
.../Views/PackTask/PublishTaskWindow.xaml.cs | 26 +
BBWY.Client/Views/PackTask/SetCerControl.xaml | 203 +++--
BBWY.Client/Views/PackTask/SetCerWindow.xaml | 95 ++-
.../Views/PackTask/SetCerWindow.xaml.cs | 178 ++--
BBWY.Client/Views/PackTask/WareHouseList.xaml | 2 -
.../Controllers/BatchPurchaseController.cs | 13 +-
.../BatchPurchase/BatchPurchaseBusiness.cs | 12 +-
39 files changed, 2388 insertions(+), 685 deletions(-)
create mode 100644 BBWY.Client/ViewModels/PackTask/PublishTaskViewModel.cs
create mode 100644 BBWY.Client/Views/PackTask/PublishTaskWindow.xaml
create mode 100644 BBWY.Client/Views/PackTask/PublishTaskWindow.xaml.cs
diff --git a/BBWY.Client/APIServices/BatchPurchaseService.cs b/BBWY.Client/APIServices/BatchPurchaseService.cs
index b51eadb0..237f9eb5 100644
--- a/BBWY.Client/APIServices/BatchPurchaseService.cs
+++ b/BBWY.Client/APIServices/BatchPurchaseService.cs
@@ -171,12 +171,12 @@ namespace BBWY.Client.APIServices
///
///
///
- public ApiResponse UpdatePackMoney(string orderId, decimal PackMoney)
+ public ApiResponse UpdatePackState(string orderId, PackState packState)
{
- return SendRequest(globalContext.BBYWApiHost, "api/BatchPurchase/UpdatePackMoney", new
+ return SendRequest(globalContext.BBYWApiHost, "api/BatchPurchase/UpdatePackState", new
{
orderId,
- PackMoney
+ packState
}, null, HttpMethod.Post);
}
diff --git a/BBWY.Client/APIServices/PackTaskService.cs b/BBWY.Client/APIServices/PackTaskService.cs
index 66c9b75c..3ce41e77 100644
--- a/BBWY.Client/APIServices/PackTaskService.cs
+++ b/BBWY.Client/APIServices/PackTaskService.cs
@@ -25,19 +25,19 @@ namespace BBWY.Client.APIServices
- public ApiResponse GetOrderList( string skuId = null, string taskId = null,
+ public ApiResponse GetOrderList(string skuId = null, string taskId = null,
DateTime? startTime = null,
DateTime? endTime = null,
TaskState? availability = null,
int? taskStatus = null,
int pageIndex = 1,
int pageSize = 10
-
+
)
{
- return SendRequest(globalContext.QKApiHost, "api/PackTask/SearchNewPackTaskList", new
+ return SendRequest(globalContext.QKApiHost, "api/PackTask/SearchNew2PackTaskList", new
{
-
+
SkuId = skuId,
TaskId = taskId,
StartTime = startTime,
@@ -49,7 +49,7 @@ namespace BBWY.Client.APIServices
ShopId = globalContext.User.Shop.ShopId.ToString()
}, null, HttpMethod.Post);
}
- public ApiResponse GetWareHouseList(int? isWorry=null,string departmentName = null, string skuId = null, string taskId = null,
+ public ApiResponse GetWareHouseList(int? isWorry = null, string departmentName = null, string skuId = null, string taskId = null,
DateTime? startTime = null,
DateTime? endTime = null,
TaskState? availability = null,
@@ -59,9 +59,9 @@ namespace BBWY.Client.APIServices
)
{
- return SendRequest(globalContext.QKApiHost, "api/PackTask/SearchNewPackTaskList", new
+ return SendRequest(globalContext.QKApiHost, "api/PackTask/SearchNew2PackTaskList", new
{
- IsWorry=isWorry,
+ IsWorry = isWorry,
DepartmentName = departmentName,
SkuId = skuId,
TaskId = taskId,
@@ -95,7 +95,7 @@ namespace BBWY.Client.APIServices
{
HttpClientHelper helper = new HttpClientHelper(globalContext.QKApiHost);
- string url = $"{globalContext.QKApiHost}/api/PackTask/SearchProduct?skuId={skuId}&ShopId={globalContext.User.Shop.ShopId}";
+ string url = $"{globalContext.QKApiHost}/api/PackTask/SearchProductNew?skuId={skuId}&ShopId={globalContext.User.Shop.ShopId}";
var data = helper.Get(url);
return JsonConvert.DeserializeObject>(data);
@@ -112,7 +112,7 @@ namespace BBWY.Client.APIServices
public ApiResponse