|
|
@ -19,12 +19,34 @@ namespace BBWY.Client.ViewModels |
|
|
|
public PurchaseAccount PurchaseAccount { get; set; } |
|
|
|
public bool IsLoading { get => isLoading; set { Set(ref isLoading, value); } } |
|
|
|
|
|
|
|
public decimal ProductAmount { get => productAmount; set { Set(ref productAmount, value); } } |
|
|
|
public decimal FreightAmount { get => freightAmount; set { Set(ref freightAmount, value); } } |
|
|
|
public decimal TotalAmount { get => totalAmount; set { Set(ref totalAmount, value); } } |
|
|
|
public string ContactName { get => contactName; set { Set(ref contactName, value); } } |
|
|
|
public string Address { get => address; set { Set(ref address, value); } } |
|
|
|
public string Mobile { get => mobile; set { Set(ref mobile, value); } } |
|
|
|
public string Province { get => province; set { Set(ref province, value); } } |
|
|
|
public string City { get => city; set { Set(ref city, value); } } |
|
|
|
public string County { get => county; set { Set(ref county, value); } } |
|
|
|
public string Town { get => town; set { Set(ref town, value); } } |
|
|
|
|
|
|
|
private string orderId; |
|
|
|
private int skuItemCount; |
|
|
|
private bool isLoading; |
|
|
|
private OneBoundAPIService oneBoundAPIService; |
|
|
|
private DelayTrigger delayTrigger; |
|
|
|
|
|
|
|
private decimal productAmount; |
|
|
|
private decimal freightAmount; |
|
|
|
private decimal totalAmount; |
|
|
|
private string contactName; |
|
|
|
private string address; |
|
|
|
private string mobile; |
|
|
|
private string province; |
|
|
|
private string city; |
|
|
|
private string county; |
|
|
|
private string town; |
|
|
|
|
|
|
|
public _1688PreviewPurchaseViewModel(OneBoundAPIService oneBoundAPIService) |
|
|
|
{ |
|
|
|
this.oneBoundAPIService = oneBoundAPIService; |
|
|
@ -33,12 +55,20 @@ namespace BBWY.Client.ViewModels |
|
|
|
PurchaseSchemeProductSkuList = new ObservableCollection<PurchaseSchemeProductSku>(); |
|
|
|
} |
|
|
|
|
|
|
|
public void SetData(string orderId, int skuItemCount, PurchaseScheme purchaseScheme, PurchaseAccount purchaseAccount) |
|
|
|
public void SetData(string orderId, int skuItemCount, PurchaseScheme purchaseScheme, PurchaseAccount purchaseAccount, Consignee consignee) |
|
|
|
{ |
|
|
|
this.orderId = orderId; |
|
|
|
this.skuItemCount = skuItemCount; |
|
|
|
this.PurchaseScheme = purchaseScheme; |
|
|
|
this.PurchaseAccount = purchaseAccount; |
|
|
|
|
|
|
|
this.ContactName = consignee.ContactName; |
|
|
|
this.Address = consignee.Address; |
|
|
|
this.Province = consignee.Province; |
|
|
|
this.City = consignee.City; |
|
|
|
this.County = consignee.County; |
|
|
|
this.Town = consignee.Town; |
|
|
|
//this.Mobile = consignee.Mobile;
|
|
|
|
} |
|
|
|
|
|
|
|
protected override void Load() |
|
|
|