|
|
@ -28,7 +28,7 @@ namespace BBWYB.Client.ViewModels |
|
|
|
private string searchSku; |
|
|
|
private string searchProductId; |
|
|
|
private string searchOrderId; |
|
|
|
private string searchClientOrderId; |
|
|
|
private string searchPurchaseOrderId; |
|
|
|
private string searchSourceShopName; |
|
|
|
private string searchSourceSku; |
|
|
|
private bool excludeCanceled; |
|
|
@ -47,7 +47,7 @@ namespace BBWYB.Client.ViewModels |
|
|
|
public string SearchSku { get => searchSku; set { SetProperty(ref searchSku, value); } } |
|
|
|
public string SearchProductId { get => searchProductId; set { SetProperty(ref searchProductId, value); } } |
|
|
|
public string SearchOrderId { get => searchOrderId; set { SetProperty(ref searchOrderId, value); } } |
|
|
|
public string SearchClientOrderId { get => searchClientOrderId; set { SetProperty(ref searchClientOrderId, value); } } |
|
|
|
public string SearchPurchaseOrderId { get => searchPurchaseOrderId; set { SetProperty(ref searchPurchaseOrderId, value); } } |
|
|
|
public string SearchSourceShopName { get => searchSourceShopName; set { SetProperty(ref searchSourceShopName, value); } } |
|
|
|
public string SearchSourceSku { get => searchSourceSku; set { SetProperty(ref searchSourceSku, value); } } |
|
|
|
public bool ExcludeCanceled { get => excludeCanceled; set { SetProperty(ref excludeCanceled, value); } } |
|
|
@ -93,7 +93,7 @@ namespace BBWYB.Client.ViewModels |
|
|
|
private void LoadOrder(int pageIndex) |
|
|
|
{ |
|
|
|
IsLoading = true; |
|
|
|
var response = orderService.GetOrderList(SearchOrderId, StartDate, EndDate, OrderState, SearchProductId, SearchSku, SearchClientOrderId, SearchSourceShopName, SearchSourceSku, pageIndex, PageSize, globalContext.User.Shop.ShopId, ExcludeCanceled); |
|
|
|
var response = orderService.GetOrderList(SearchOrderId, StartDate, EndDate, OrderState, SearchProductId, SearchSku, string.Empty, SearchPurchaseOrderId, SearchSourceShopName, SearchSourceSku, pageIndex, PageSize, globalContext.User.Shop.ShopId, ExcludeCanceled); |
|
|
|
|
|
|
|
if (!response.Success) |
|
|
|
{ |
|
|
@ -143,7 +143,7 @@ namespace BBWYB.Client.ViewModels |
|
|
|
SearchOrderId = string.Empty; |
|
|
|
SearchSku = string.Empty; |
|
|
|
SearchProductId = string.Empty; |
|
|
|
SearchClientOrderId = string.Empty; |
|
|
|
SearchPurchaseOrderId = string.Empty; |
|
|
|
SearchSourceShopName = string.Empty; |
|
|
|
SearchSourceSku = string.Empty; |
|
|
|
if (isInitDate) |
|
|
@ -192,7 +192,7 @@ namespace BBWYB.Client.ViewModels |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
var orderResponse = orderService.GetOrderList(orderId, StartDate, EndDate, null, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, 1, 10, globalContext.User.Shop.ShopId, true); |
|
|
|
var orderResponse = orderService.GetOrderList(orderId, StartDate, EndDate, null, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, 1, 10, globalContext.User.Shop.ShopId, true); |
|
|
|
IsLoading = false; |
|
|
|
if (!orderResponse.Success) |
|
|
|
{ |
|
|
|