diff --git a/BBWY.Client/APIServices/PackTaskService.cs b/BBWY.Client/APIServices/PackTaskService.cs index 1db4cb73..c284b8c3 100644 --- a/BBWY.Client/APIServices/PackTaskService.cs +++ b/BBWY.Client/APIServices/PackTaskService.cs @@ -35,7 +35,7 @@ namespace BBWY.Client.APIServices ) { - return SendRequest(globalContext.QKApiHost, "api/PackTask/GetPackTaskList", new + return SendRequest(globalContext.QKApiHost, "api/PackTask/SearchNewPackTaskList", new { SkuId = skuId, @@ -59,7 +59,7 @@ namespace BBWY.Client.APIServices ) { - return SendRequest(globalContext.QKApiHost, "api/PackTask/GetPackTaskList", new + return SendRequest(globalContext.QKApiHost, "api/PackTask/SearchNewPackTaskList", new { IsWorry=isWorry, DepartmentName = departmentName, diff --git a/BBWY.Client/BBWYAppSettings.json b/BBWY.Client/BBWYAppSettings.json index 9622efaf..e1b3dcff 100644 --- a/BBWY.Client/BBWYAppSettings.json +++ b/BBWY.Client/BBWYAppSettings.json @@ -4,6 +4,6 @@ "MDSApiHost": "http://mdsapi.qiyue666.com", "JOSApiHost": "", "1688ApiHost": "", - //"QKApiHost": "http://localhost:8080" - "QKApiHost": "http://qiku.qiyue666.com" + "QKApiHost": "http://localhost:8080" + //"QKApiHost": "http://qiku.qiyue666.com" } \ No newline at end of file diff --git a/BBWY.Client/Models/APIModel/Response/PackTask/FeesItemResponse.cs b/BBWY.Client/Models/APIModel/Response/PackTask/FeesItemResponse.cs index c8c36ab3..bed2c1b0 100644 --- a/BBWY.Client/Models/APIModel/Response/PackTask/FeesItemResponse.cs +++ b/BBWY.Client/Models/APIModel/Response/PackTask/FeesItemResponse.cs @@ -23,6 +23,8 @@ namespace BBWY.Client.Models.APIModel.Response.PackTask public decimal TaskId { get => taskId; set { Set(ref taskId, value); } } private decimal taskId; + public decimal disCount; + public decimal DisCount { get => disCount; set { Set(ref disCount, value); } } } public enum ServiceType diff --git a/BBWY.Client/Models/APIModel/Response/PackTask/PackServiceResponse.cs b/BBWY.Client/Models/APIModel/Response/PackTask/PackServiceResponse.cs index 93bb247f..481e91b0 100644 --- a/BBWY.Client/Models/APIModel/Response/PackTask/PackServiceResponse.cs +++ b/BBWY.Client/Models/APIModel/Response/PackTask/PackServiceResponse.cs @@ -21,6 +21,11 @@ namespace BBWY.Client.Models.APIModel.Response.PackTask public List ConsumableServiceList { get; set; } } + public class PackServiceDTO + { + + } + public class PackItemModelResponse { diff --git a/BBWY.Client/Views/PackTask/FeesExcelControl.xaml.cs b/BBWY.Client/Views/PackTask/FeesExcelControl.xaml.cs index 395094e8..a7e4fc40 100644 --- a/BBWY.Client/Views/PackTask/FeesExcelControl.xaml.cs +++ b/BBWY.Client/Views/PackTask/FeesExcelControl.xaml.cs @@ -126,17 +126,23 @@ namespace BBWY.Client.Views.PackTask + + - + [:Header:] - + + + + + [:ListData:] "; @@ -198,7 +204,7 @@ namespace BBWY.Client.Views.PackTask all.AddRange(consumableList); - var columnCount = 2 + all.Count; + var columnCount = 2 + all.Count + 2; StringBuilder columns = new StringBuilder(); for (int i = 0; i < columnCount; i++) { @@ -241,30 +247,45 @@ namespace BBWY.Client.Views.PackTask { header.AppendLine(consumableService); } + decimal allFees = 0; + decimal discount = 0; + decimal discountFees = 0; + discount = FeesItem.disCount; + if (isPrice) + { + allFees = FeesItem.SingleFees; + } + else + { + allFees = FeesItem.AllFees; + } + discountFees = allFees * discount; + string discountStr = "原价"; - + if (discount > 1) + discountStr = $"{discount.ToString("0.0")}倍"; + if (discount < 1) + discountStr = $"{(discount * 10).ToString("0.0")}折"; var newGrid = xaml.Replace("[:Header:]", header.ToString()) .Replace("[:Columns:]", columns.ToString()) .Replace("[:ColumnCount:]", $"{columnCount}") - .Replace("[:ColumnCount-2:]", $"{columnCount - 2}") + .Replace("[:ColumnCount-2:]", $"{columnCount - 4}") .Replace("[:1+IncreateCount:]", $"{increateCount + 1}") .Replace("[:1+IncreateCount+ProcessCount:]", $"{1 + increateCount + processCount}") .Replace("[:1+IncreateCount+ProcessCount:+ConsumableCount]", $"{1 + increateCount + processCount + consumableCount}") + .Replace("[:2+IncreateCount+ProcessCount:+ConsumableCount]", $"{2 + increateCount + processCount + consumableCount}") + .Replace("[:3+IncreateCount+ProcessCount:+ConsumableCount]", $"{3 + increateCount + processCount + consumableCount}") .Replace("[:IncreateCount:]", $"{increateCount}") .Replace("[:ProcessCount:]", $"{processCount}") .Replace("[:ConsumableCount:]", $"{consumableCount}") .Replace("[:TaskId:]", $"{FeesItem.TaskId}") .Replace("[:ListData:]", serviceData.ToString()) - ; + .Replace("[:AllFees:]", $"{allFees}") + .Replace("[:Discount:]", discountStr) + .Replace("[:DiscountFees:]", $"{discountFees.ToString(" 0.00")}"); + + - if (isPrice) - { - newGrid = newGrid.Replace("[:AllFees:]", $"{FeesItem.SingleFees}"); - } - else - { - newGrid = newGrid.Replace("[:AllFees:]", $"{FeesItem.AllFees}"); - } var grid = XamlReader.Parse(newGrid) as Grid; App.Current.Dispatcher.Invoke(() => diff --git a/BBWY.Server.Business/PlatformSDK/QuanTanBusiness.cs b/BBWY.Server.Business/PlatformSDK/QuanTanBusiness.cs index de8b2144..c2b4b48a 100644 --- a/BBWY.Server.Business/PlatformSDK/QuanTanBusiness.cs +++ b/BBWY.Server.Business/PlatformSDK/QuanTanBusiness.cs @@ -29,7 +29,7 @@ namespace BBWY.Server.Business orderId = payPurchaseOrderRequest.OrderId, userAccount = data.AccountName }, payPurchaseOrderRequest.PurchaseAccount.AppKey, payPurchaseOrderRequest.PurchaseAccount.AppSecret); - if (qtResponse.Status == 200) return new PayPurchaseOrderResponse { Success = true }; + if (qtResponse.Status == 200) return new PayPurchaseOrderResponse { Success = true, PurchaseOrderState= PurchaseOrderState.待发货 }; if (qtResponse.Message != null && qtResponse.Message.Contains("已支付")) {