|
|
|
@ -120,7 +120,8 @@ class _Settlement extends State<Settlement> {
|
|
|
|
|
token: minToken, |
|
|
|
|
tenant: tenant, |
|
|
|
|
storeId: storeId, |
|
|
|
|
showLoading: false); |
|
|
|
|
showLoading: false |
|
|
|
|
); |
|
|
|
|
queryMemberInfo(); |
|
|
|
|
if (promotions != null && promotions != "" && tableId <= 0) { |
|
|
|
|
queryOrderInfo( |
|
|
|
@ -198,9 +199,9 @@ class _Settlement extends State<Settlement> {
|
|
|
|
|
"productSkuId": productSkuId, |
|
|
|
|
"actProductId": actProductId, |
|
|
|
|
"actProductSkuId": actProductSkuId, |
|
|
|
|
"useVipPrice": useVipPriceSelect, |
|
|
|
|
"useVipPrice":useVipPriceSelect, |
|
|
|
|
"buyNum": buyNum, |
|
|
|
|
"payChannel": payChannel, |
|
|
|
|
"payChannel":payChannel, |
|
|
|
|
"tableId": tableId |
|
|
|
|
}).catchError((error) {}); |
|
|
|
|
this.promotion = null; |
|
|
|
@ -231,7 +232,7 @@ class _Settlement extends State<Settlement> {
|
|
|
|
|
queryOrderDetails( |
|
|
|
|
pageType != null ? widget.arguments["orderId"] : parentId); |
|
|
|
|
} |
|
|
|
|
if (!isRaiseChannel && settleOrderInfo.isRaise) { |
|
|
|
|
if(!isRaiseChannel && settleOrderInfo.isRaise){ |
|
|
|
|
isRaiseChannel = true; |
|
|
|
|
queryOrderInfo( |
|
|
|
|
address?.id, |
|
|
|
@ -244,13 +245,13 @@ class _Settlement extends State<Settlement> {
|
|
|
|
|
actProductSkuId ?? "", |
|
|
|
|
useVipPriceSelect, |
|
|
|
|
count1, |
|
|
|
|
settleOrderInfo.isRaise ? 7 : payChannel, |
|
|
|
|
settleOrderInfo.isRaise ? 7 :payChannel, |
|
|
|
|
tableId); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
SmartDialog.showToast(baseData?.msg ?? "", alignment: Alignment.center); |
|
|
|
|
} |
|
|
|
|
} finally { |
|
|
|
|
}finally{ |
|
|
|
|
setState(() {}); |
|
|
|
|
EasyLoading.dismiss(); |
|
|
|
|
} |
|
|
|
@ -498,9 +499,7 @@ class _Settlement extends State<Settlement> {
|
|
|
|
|
placeOrderFirst.orderTypeId = 0; |
|
|
|
|
placeOrderFirst.parentCode = parentCode; // 火锅加菜 |
|
|
|
|
placeOrderFirst.parentId = parentId; // 火锅加菜 |
|
|
|
|
placeOrderFirst.payChannel = ((placeOrderFirst.cartSum == "0.00") |
|
|
|
|
? payChannel = 0 |
|
|
|
|
: (settleOrderInfo.isRaise ? 7 : payChannel)); |
|
|
|
|
placeOrderFirst.payChannel = ((placeOrderFirst.cartSum == "0.00") ? payChannel = 0 : (settleOrderInfo.isRaise ? 7:payChannel)); |
|
|
|
|
placeOrderFirst.promotionInfoDTO = PromotionInfoDTOBean(); |
|
|
|
|
placeOrderFirst.promotionInfoDTO.promotionId = |
|
|
|
|
(promotion != null && tableId <= 0) ? promotion.id : ""; |
|
|
|
@ -753,8 +752,8 @@ class _Settlement extends State<Settlement> {
|
|
|
|
|
child: Container( |
|
|
|
|
child: Column( |
|
|
|
|
children: [ |
|
|
|
|
DistributionMode((addressId, isTake, |
|
|
|
|
memberCouponId, orderId, promotionId) { |
|
|
|
|
DistributionMode((addressId, isTake, memberCouponId, |
|
|
|
|
orderId, promotionId) { |
|
|
|
|
setState(() { |
|
|
|
|
this.selectedBtn = 0; |
|
|
|
|
}); |
|
|
|
@ -785,22 +784,19 @@ class _Settlement extends State<Settlement> {
|
|
|
|
|
// ), |
|
|
|
|
|
|
|
|
|
///订单商品 |
|
|
|
|
if (settleOrderInfo != null || |
|
|
|
|
minOrderInfo != null) |
|
|
|
|
if(settleOrderInfo != null || minOrderInfo != null) |
|
|
|
|
SettlementOrderCommodity( |
|
|
|
|
selectedBtn, |
|
|
|
|
settleOrderInfo, |
|
|
|
|
minOrderInfo, |
|
|
|
|
tableId, |
|
|
|
|
pageType, |
|
|
|
|
(coupons != "" || promotions != "") |
|
|
|
|
? false |
|
|
|
|
: useVipPriceSelect, |
|
|
|
|
this.showVipTips), |
|
|
|
|
(coupons != "" || promotions!="") ? false :useVipPriceSelect, |
|
|
|
|
this.showVipTips |
|
|
|
|
), |
|
|
|
|
|
|
|
|
|
///优惠券/备注/会员优惠金额 |
|
|
|
|
if (settleOrderInfo != null || |
|
|
|
|
minOrderInfo != null) |
|
|
|
|
if(settleOrderInfo != null || minOrderInfo != null) |
|
|
|
|
ActivityCouponRemarks( |
|
|
|
|
couponCart, |
|
|
|
|
activityCart, |
|
|
|
@ -817,26 +813,21 @@ class _Settlement extends State<Settlement> {
|
|
|
|
|
arguments: {}, |
|
|
|
|
).then((value) => { |
|
|
|
|
setState(() { |
|
|
|
|
if (value != null) |
|
|
|
|
remakers = value; |
|
|
|
|
if (value != null) remakers = value; |
|
|
|
|
}) |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
});}, |
|
|
|
|
tableId, |
|
|
|
|
vipPriceSelect, |
|
|
|
|
() { |
|
|
|
|
(){ |
|
|
|
|
setState(() { |
|
|
|
|
this.showVipTips = true; |
|
|
|
|
}); |
|
|
|
|
}), |
|
|
|
|
|
|
|
|
|
if (settleOrderInfo != null && |
|
|
|
|
placeOrder && |
|
|
|
|
joinA != JoinActivity.BargainBug) |
|
|
|
|
} |
|
|
|
|
), |
|
|
|
|
|
|
|
|
|
if (settleOrderInfo != null && placeOrder && joinA != JoinActivity.BargainBug) |
|
|
|
|
///支付方式 |
|
|
|
|
PayMethod(payChannelCheck, coupons, promotions, |
|
|
|
|
useVipPriceSelect, settleOrderInfo), |
|
|
|
|
PayMethod(payChannelCheck,coupons,promotions,useVipPriceSelect,settleOrderInfo), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
@ -945,8 +936,8 @@ class _Settlement extends State<Settlement> {
|
|
|
|
|
useVipPriceSelect, |
|
|
|
|
count1, |
|
|
|
|
payChannel, |
|
|
|
|
tableId); |
|
|
|
|
} |
|
|
|
|
tableId);} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
vipPriceSelect(bool useVipPriceSelect) { |
|
|
|
@ -966,8 +957,7 @@ class _Settlement extends State<Settlement> {
|
|
|
|
|
useVipPriceSelect, |
|
|
|
|
count1, |
|
|
|
|
payChannel, |
|
|
|
|
tableId); |
|
|
|
|
} |
|
|
|
|
tableId);} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
mobileChange(String mobile) { |
|
|
|
@ -1007,8 +997,10 @@ class _Settlement extends State<Settlement> {
|
|
|
|
|
// promotions = ""; |
|
|
|
|
// this.promotion = null; |
|
|
|
|
if (tableId > 0) { |
|
|
|
|
if (couponBean == null) queryCancelMemberCoupon(parentId); |
|
|
|
|
if (couponBean.id != null) queryUseMemberCoupon(couponBean.id); |
|
|
|
|
if(couponBean == null) |
|
|
|
|
queryCancelMemberCoupon(parentId); |
|
|
|
|
if (couponBean.id != null) |
|
|
|
|
queryUseMemberCoupon(couponBean.id); |
|
|
|
|
} else { |
|
|
|
|
queryOrderInfo( |
|
|
|
|
address?.id, |
|
|
|
@ -1048,7 +1040,7 @@ class _Settlement extends State<Settlement> {
|
|
|
|
|
selectedBtn, |
|
|
|
|
null, |
|
|
|
|
0, |
|
|
|
|
(pro.id ?? "") ?? productId, |
|
|
|
|
(pro.id??"")??productId, |
|
|
|
|
productSkuId ?? "", |
|
|
|
|
actProductId ?? "", |
|
|
|
|
actProductSkuId ?? "", |
|
|
|
|