Browse Source

Merge remote-tracking branch 'origin/dev' into dev

dev
fmk 1 year ago
parent
commit
cbdc089d7d
  1. 9
      lib/retrofit/data/min_order_info.dart
  2. 17
      lib/settlement/settlement.dart

9
lib/retrofit/data/min_order_info.dart

@ -66,8 +66,9 @@ class MinOrderInfo {
int orderSource, int orderSource,
dynamic address, dynamic address,
dynamic discountPercent, dynamic discountPercent,
String discountAmount, String discountAmount,
dynamic discountType, dynamic discountType,
dynamic uniqueDiscountType,
dynamic discountMoney, dynamic discountMoney,
dynamic overTime, dynamic overTime,
List<OrderProductVOList> orderProductVOList, List<OrderProductVOList> orderProductVOList,
@ -153,6 +154,7 @@ class MinOrderInfo {
this.discountPercent = discountPercent; this.discountPercent = discountPercent;
this.discountAmount = discountAmount; this.discountAmount = discountAmount;
this.discountType = discountType; this.discountType = discountType;
this.uniqueDiscountType = uniqueDiscountType;
this.discountMoney = discountMoney; this.discountMoney = discountMoney;
this.overTime = overTime; this.overTime = overTime;
this.orderProductVOList = orderProductVOList; this.orderProductVOList = orderProductVOList;
@ -241,6 +243,7 @@ class MinOrderInfo {
this.discountPercent = json['discountPercent']; this.discountPercent = json['discountPercent'];
this.discountAmount = json['discountAmount']; this.discountAmount = json['discountAmount'];
this.discountType = json['discountType']; this.discountType = json['discountType'];
this.uniqueDiscountType = json['uniqueDiscountType'];
this.discountMoney = json['discountMoney']; this.discountMoney = json['discountMoney'];
this.overTime = json['overTime']; this.overTime = json['overTime'];
if (json['orderProductVOList'] != null) { if (json['orderProductVOList'] != null) {
@ -332,6 +335,7 @@ class MinOrderInfo {
dynamic discountPercent; dynamic discountPercent;
String discountAmount; String discountAmount;
dynamic discountType; dynamic discountType;
dynamic uniqueDiscountType;
dynamic discountMoney; dynamic discountMoney;
dynamic overTime; dynamic overTime;
List<OrderProductVOList> orderProductVOList; List<OrderProductVOList> orderProductVOList;
@ -420,6 +424,7 @@ class MinOrderInfo {
map['discountPercent'] = this.discountPercent; map['discountPercent'] = this.discountPercent;
map['discountAmount'] = this.discountAmount; map['discountAmount'] = this.discountAmount;
map['discountType'] = this.discountType; map['discountType'] = this.discountType;
map['uniqueDiscountType'] = this.uniqueDiscountType;
map['discountMoney'] = this.discountMoney; map['discountMoney'] = this.discountMoney;
map['overTime'] = this.overTime; map['overTime'] = this.overTime;
if (this.orderProductVOList != null) { if (this.orderProductVOList != null) {

17
lib/settlement/settlement.dart

@ -197,7 +197,7 @@ class _Settlement extends State<Settlement> {
productSkuId ?? "", productSkuId ?? "",
actProductId ?? "", actProductId ?? "",
actProductSkuId ?? "", actProductSkuId ?? "",
(!placeOrder) ? "NONE" : "AUTO", "AUTO",
// useVipPriceSelect, // useVipPriceSelect,
// (useVipPriceSelect == true && isVips) ? false:useBenefitSelect, // (useVipPriceSelect == true && isVips) ? false:useBenefitSelect,
count1, count1,
@ -608,8 +608,7 @@ class _Settlement extends State<Settlement> {
// : widget.arguments["cid"] ?? ""; // : widget.arguments["cid"] ?? "";
// placeOrderFirst.promotionInfoDTO.useVipPrice = (settleOrderInfo.isRaise || payChannel == 5 || ((payChannel == 4 && (settleOrderInfo.usePlateMoney == false))) ) ? false : useVipPriceSelect; // placeOrderFirst.promotionInfoDTO.useVipPrice = (settleOrderInfo.isRaise || payChannel == 5 || ((payChannel == 4 && (settleOrderInfo.usePlateMoney == false))) ) ? false : useVipPriceSelect;
// placeOrderFirst.promotionInfoDTO.useBenefit = (settleOrderInfo.isRaise || payChannel == 5 || ((payChannel == 4 && settleOrderInfo.usePlateMoney == false))) ? false : useBenefitSelect; // placeOrderFirst.promotionInfoDTO.useBenefit = (settleOrderInfo.isRaise || payChannel == 5 || ((payChannel == 4 && settleOrderInfo.usePlateMoney == false))) ? false : useBenefitSelect;
placeOrderFirst.promotionInfoDTO.discountType = placeOrderFirst.promotionInfoDTO.discountType = (!placeOrder) ? "AUTO" :settleOrderInfo?.discountType ?? "";
settleOrderInfo?.discountType ?? "";
placeOrderFirst.recMobile = placeOrderFirst.recMobile =
(mobile == null || mobile == "") ? mobile : storeInfo.headMobile; (mobile == null || mobile == "") ? mobile : storeInfo.headMobile;
placeOrderFirst.shoppingCartSkuItemList = settleOrderInfo.orderProductList; placeOrderFirst.shoppingCartSkuItemList = settleOrderInfo.orderProductList;
@ -1529,13 +1528,13 @@ class _Settlement extends State<Settlement> {
selectedBtn != 2) selectedBtn != 2)
? diningStatus ? diningStatus
: selectedBtn, : selectedBtn,
couponBean?.id, ((couponBean?.id??0) == 0 && (promotion?.id ?? productId ?? 0) !=0) ? 0: couponBean?.id,
0, 0,
productId ?? 0, ((couponBean?.id??0) == 0 && (promotion?.id ?? productId ?? 0) !=0) ? promotion?.id ?? productId :0,
productSkuId ?? "", productSkuId ?? "",
actProductId ?? "", actProductId ?? "",
actProductSkuId ?? "", actProductSkuId ?? "",
(couponBean?.id ?? 0) == 0 ? "AUTO" : "COUPON", (couponBean?.id ?? 0) == 0 ? ((promotion?.id ?? productId ?? 0) !=0 ? "ACTIVITY":"AUTO") : "COUPON",
// useVipPriceSelect, // useVipPriceSelect,
// useBenefitSelect, // useBenefitSelect,
count1, count1,
@ -1569,13 +1568,13 @@ class _Settlement extends State<Settlement> {
selectedBtn != 2) selectedBtn != 2)
? diningStatus ? diningStatus
: selectedBtn, : selectedBtn,
(((pro?.id ?? 0) ?? (productId ?? 0)) == 0 && (couponListBean?.id ??0) != 0)?couponListBean?.id:0,
0, 0,
0, (((pro?.id ?? 0) ?? (productId ?? 0)) == 0 && (couponListBean?.id ??0) != 0) ? 0 :((pro?.id ?? 0) ?? productId),
(pro?.id ?? 0) ?? productId,
productSkuId ?? "", productSkuId ?? "",
actProductId ?? "", actProductId ?? "",
actProductSkuId ?? "", actProductSkuId ?? "",
((pro?.id ?? 0) ?? productId) == 0 ? "AUTO" : "ACTIVITY", (((pro?.id ?? 0) ?? (productId ?? 0)) == 0 ? ((couponListBean?.id ??0) != 0 ? "COUPON":"AUTO") : "ACTIVITY"),
// useVipPriceSelect, // useVipPriceSelect,
// useBenefitSelect, // useBenefitSelect,
count1, count1,

Loading…
Cancel
Save