|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:one_key/models/cookbook_model.dart';
|
|
|
|
import 'package:one_key/models/plan_cook_list_model.dart';
|
|
|
|
import 'package:one_key/provider/plan_dish_provider.dart';
|
|
|
|
import 'package:one_key/utils/screen_util.dart';
|
|
|
|
import 'package:one_key/widgets/h_empty_view.dart';
|
|
...
|
...
|
@@ -16,6 +17,7 @@ import '../../../utils/utils.dart'; |
|
|
|
import '../../../widgets/MyDivider.dart';
|
|
|
|
import '../../../widgets/page_exception.dart';
|
|
|
|
import '../../../widgets/round_button.dart';
|
|
|
|
import '../../models/cookbook_model.dart';
|
|
|
|
import '../../provider/user_model.dart';
|
|
|
|
|
|
|
|
const scrollDuration = Duration(microseconds: 500);
|
|
...
|
...
|
@@ -42,27 +44,145 @@ class _OrderAdvanceEidtPageState extends State<OrderAdvanceEidtPage> { |
|
|
|
|
|
|
|
PlanDishProvider _planDishProvider;
|
|
|
|
|
|
|
|
int carSum = 0; //购物车显示菜品总个数
|
|
|
|
double priceSum = 0; //总计
|
|
|
|
double memberPriceSum = 0; //会员价
|
|
|
|
TextEditingController planDishC = TextEditingController(); //排菜价
|
|
|
|
List<MenuSunModel> selectMenu = [];
|
|
|
|
|
|
|
|
@override
|
|
|
|
void initState() {
|
|
|
|
super.initState();
|
|
|
|
|
|
|
|
WidgetsBinding.instance.addPostFrameCallback((_) async {
|
|
|
|
_getCookbookByClass(showLoading: false);
|
|
|
|
_getPageMenuData();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
_getCookbookByClass({bool showLoading = true}) async {
|
|
|
|
_getPageMenuData() async {
|
|
|
|
Future.wait<bool>(
|
|
|
|
[_getCookbookByClass(showLoading: true), _getPlanCookList()])
|
|
|
|
.then((results) {
|
|
|
|
print(results[0]);
|
|
|
|
if (results[0] && results[1]) {
|
|
|
|
_planDishProvider.menuModelForManager
|
|
|
|
.addAll(_planDishProvider.menuModel);
|
|
|
|
//成功
|
|
|
|
MenuModel menuModelSetMeal = MenuModel();
|
|
|
|
menuModelSetMeal.className = '套餐';
|
|
|
|
List<MenuSunModel> cookList = [];
|
|
|
|
List<SunListPlan> storeList = _planDishProvider.storeList;
|
|
|
|
storeList.forEach((element) {
|
|
|
|
MenuSunModel menuSunModel = MenuSunModel();
|
|
|
|
menuSunModel.id = element.id;
|
|
|
|
menuSunModel.name = element.pname;
|
|
|
|
menuSunModel.price = element.menuPrice;
|
|
|
|
menuSunModel.member_price = element.memberPrice;
|
|
|
|
menuSunModel.unit = '份';
|
|
|
|
// menuSunModel.amount = element.amount;
|
|
|
|
menuSunModel.cookList = element.cookList;
|
|
|
|
|
|
|
|
cookList.add(menuSunModel);
|
|
|
|
});
|
|
|
|
menuModelSetMeal.cookbooklist = cookList;
|
|
|
|
|
|
|
|
_planDishProvider.menuModelForManager
|
|
|
|
.insert(0, menuModelSetMeal); //添加套餐
|
|
|
|
|
|
|
|
MenuModel menuModelPlanDish = MenuModel();
|
|
|
|
menuModelPlanDish.className = '我的排菜';
|
|
|
|
List<MenuSunModel> cookListPlanDish = [];
|
|
|
|
List<SunListPlan> mineList = _planDishProvider.mineList;
|
|
|
|
mineList.forEach((element) {
|
|
|
|
MenuSunModel menuSunModel = MenuSunModel();
|
|
|
|
menuSunModel.id = element.id;
|
|
|
|
menuSunModel.name = element.pname;
|
|
|
|
menuSunModel.price = element.menuPrice;
|
|
|
|
menuSunModel.member_price = element.memberPrice;
|
|
|
|
menuSunModel.unit = '份';
|
|
|
|
// menuSunModel.amount = element.amount;
|
|
|
|
menuSunModel.cookList = element.cookList;
|
|
|
|
|
|
|
|
cookListPlanDish.add(menuSunModel);
|
|
|
|
});
|
|
|
|
menuModelPlanDish.cookbooklist = cookListPlanDish;
|
|
|
|
|
|
|
|
_planDishProvider.menuModelForManager
|
|
|
|
.insert(1, menuModelPlanDish); //添加排菜
|
|
|
|
setState(() {});
|
|
|
|
} else {
|
|
|
|
if (!results[0]) {
|
|
|
|
// Utils.showToast('');
|
|
|
|
} else {
|
|
|
|
// Utils.showToast('');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).catchError((e) {
|
|
|
|
print(e);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
///菜品数据
|
|
|
|
|
|
|
|
Future<bool> _getCookbookByClass({bool showLoading = true}) async {
|
|
|
|
Map<String, String> params = {
|
|
|
|
"sellerid": Provider.of<UserModel>(context, listen: false).user.sellerid,
|
|
|
|
};
|
|
|
|
|
|
|
|
await _planDishProvider.getCookbookByClass(context, params,
|
|
|
|
bool success = await _planDishProvider.getCookbookByClass(context, params,
|
|
|
|
showLoading: showLoading);
|
|
|
|
if (success) {
|
|
|
|
return true;
|
|
|
|
} else {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
// print(widget.data);
|
|
|
|
|
|
|
|
// if (widget.data.length > 0) {
|
|
|
|
// widget.data.forEach((old) {
|
|
|
|
// _planDishProvider.menuModel.forEach((element) {
|
|
|
|
// if (old.id == element.id) {
|
|
|
|
// element.cookbooklist.forEach((value) {
|
|
|
|
// old.cookbooklist.forEach((oldCook) {
|
|
|
|
// if (oldCook.id == value.id) {
|
|
|
|
// value.amount = oldCook.amount;
|
|
|
|
// if (oldCook.amount > 0) {
|
|
|
|
// carSum += oldCook.amount;
|
|
|
|
// priceSum += double.parse(oldCook.price) * oldCook.amount;
|
|
|
|
// memberPriceSum +=
|
|
|
|
// double.parse(oldCook.member_price) * oldCook.amount;
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// });
|
|
|
|
// });
|
|
|
|
// }
|
|
|
|
// });
|
|
|
|
// });
|
|
|
|
// if (widget.planDishPrice != '' && widget.planDishPrice != null) {
|
|
|
|
// planDishC.text = widget.planDishPrice;
|
|
|
|
// } else {
|
|
|
|
// planDishC.text = '${priceSum}';
|
|
|
|
// }
|
|
|
|
|
|
|
|
// setState(() {});
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
|
|
|
|
///接口
|
|
|
|
_getMenuData() {
|
|
|
|
// Map<String, dynamic> params = {"sellerid": int.parse(widget.sellerID)};
|
|
|
|
// _storeMenuProvider.getStoreMenu(context, params);
|
|
|
|
///排菜/套餐列表
|
|
|
|
|
|
|
|
Future<bool> _getPlanCookList({bool isShowLoading = true}) async {
|
|
|
|
Map<String, String> params = {
|
|
|
|
"uid": Provider.of<UserModel>(context, listen: false).user.openid,
|
|
|
|
// 'is_time': '0'
|
|
|
|
"sellerid": Provider.of<UserModel>(context, listen: false).user.sellerid,
|
|
|
|
};
|
|
|
|
bool success = await _planDishProvider.getPlanCookList(context, params,
|
|
|
|
showLoading: isShowLoading);
|
|
|
|
if (success) {
|
|
|
|
return true;
|
|
|
|
} else {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Widget list(List data) => ScrollablePositionedList.builder(
|
|
...
|
...
|
@@ -206,14 +326,20 @@ class _OrderAdvanceEidtPageState extends State<OrderAdvanceEidtPage> { |
|
|
|
return Container(
|
|
|
|
height: double.infinity,
|
|
|
|
color: MyColours.color_F9F9F9,
|
|
|
|
width: ScreenUtil().setWidth(85 * 2),
|
|
|
|
width: ScreenUtil().setWidth(90 * 2),
|
|
|
|
child: ListView.builder(
|
|
|
|
// itemCount:
|
|
|
|
// _storeMenuProvider.menulist.length,
|
|
|
|
itemCount:
|
|
|
|
_planDishProvider.menuModel.length,
|
|
|
|
itemCount: _planDishProvider
|
|
|
|
.menuModelForManager.length,
|
|
|
|
itemBuilder:
|
|
|
|
(BuildContext context, int index) {
|
|
|
|
MenuModel menuModel = _planDishProvider
|
|
|
|
.menuModelForManager[index];
|
|
|
|
int sum = 0;
|
|
|
|
menuModel.cookbooklist.forEach((element) {
|
|
|
|
sum += element.amount;
|
|
|
|
});
|
|
|
|
return InkWell(
|
|
|
|
onTap: () {
|
|
|
|
isTap = true;
|
|
...
|
...
|
@@ -249,8 +375,7 @@ class _OrderAdvanceEidtPageState extends State<OrderAdvanceEidtPage> { |
|
|
|
child: Text(
|
|
|
|
// _storeMenuProvider
|
|
|
|
// .menulist[index].className,
|
|
|
|
_planDishProvider
|
|
|
|
.menuModel[index].className,
|
|
|
|
menuModel.className,
|
|
|
|
maxLines: 2,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
style: TextStyle(
|
|
...
|
...
|
@@ -262,29 +387,34 @@ class _OrderAdvanceEidtPageState extends State<OrderAdvanceEidtPage> { |
|
|
|
.color_999999),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Positioned(
|
|
|
|
top: w(2),
|
|
|
|
right: w(2),
|
|
|
|
child: Container(
|
|
|
|
// width: w(16),
|
|
|
|
constraints: BoxConstraints(
|
|
|
|
minWidth: w(16)),
|
|
|
|
height: w(16),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius.circular(
|
|
|
|
r(8)),
|
|
|
|
color: MyColours
|
|
|
|
.color_E34D59),
|
|
|
|
child: Text(
|
|
|
|
'23',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(10),
|
|
|
|
color: MyColours
|
|
|
|
.color_F6F6F6),
|
|
|
|
),
|
|
|
|
))
|
|
|
|
sum > 0
|
|
|
|
? Positioned(
|
|
|
|
top: w(2),
|
|
|
|
right: w(2),
|
|
|
|
child: Container(
|
|
|
|
// width: w(16),
|
|
|
|
constraints:
|
|
|
|
BoxConstraints(
|
|
|
|
minWidth: w(16)),
|
|
|
|
height: w(16),
|
|
|
|
alignment:
|
|
|
|
Alignment.center,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius
|
|
|
|
.circular(
|
|
|
|
r(8)),
|
|
|
|
color: MyColours
|
|
|
|
.color_E34D59),
|
|
|
|
child: Text(
|
|
|
|
'${sum}',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(10),
|
|
|
|
color: MyColours
|
|
|
|
.color_F6F6F6),
|
|
|
|
),
|
|
|
|
))
|
|
|
|
: SizedBox()
|
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
|
...
|
...
|
@@ -299,14 +429,14 @@ class _OrderAdvanceEidtPageState extends State<OrderAdvanceEidtPage> { |
|
|
|
shrinkWrap: true,
|
|
|
|
// physics: NeverScrollableScrollPhysics(),
|
|
|
|
itemCount: _planDishProvider
|
|
|
|
.menuModel[_selectIndex]
|
|
|
|
.menuModelForManager[_selectIndex]
|
|
|
|
.cookbooklist
|
|
|
|
.length,
|
|
|
|
itemBuilder:
|
|
|
|
(BuildContext context, int index) {
|
|
|
|
MenuSunModel menuSunModel =
|
|
|
|
_planDishProvider
|
|
|
|
.menuModel[_selectIndex]
|
|
|
|
.menuModelForManager[_selectIndex]
|
|
|
|
.cookbooklist[index];
|
|
|
|
return Container(
|
|
|
|
padding:
|
|
...
|
...
|
@@ -341,8 +471,8 @@ class _OrderAdvanceEidtPageState extends State<OrderAdvanceEidtPage> { |
|
|
|
color: MyColours
|
|
|
|
.color_515151),
|
|
|
|
)),
|
|
|
|
HEmptyView(8),
|
|
|
|
_laduWidget()
|
|
|
|
// HEmptyView(8),
|
|
|
|
// _laduWidget()
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(24),
|
|
...
|
...
|
@@ -368,74 +498,140 @@ class _OrderAdvanceEidtPageState extends State<OrderAdvanceEidtPage> { |
|
|
|
],
|
|
|
|
)),
|
|
|
|
// Spacer(),
|
|
|
|
Image.asset(
|
|
|
|
Utils.getImgPath('plan_dish_minus'),
|
|
|
|
width: w(16),
|
|
|
|
),
|
|
|
|
menuSunModel.amount != null &&
|
|
|
|
menuSunModel.amount > 0
|
|
|
|
? InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (menuSunModel.amount >
|
|
|
|
0) {
|
|
|
|
setState(() {
|
|
|
|
menuSunModel.amount--;
|
|
|
|
carSum--;
|
|
|
|
priceSum -=
|
|
|
|
double.parse(
|
|
|
|
menuSunModel
|
|
|
|
.price);
|
|
|
|
memberPriceSum -= double
|
|
|
|
.parse(menuSunModel
|
|
|
|
.member_price);
|
|
|
|
planDishC.text =
|
|
|
|
'${priceSum}';
|
|
|
|
});
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
height: w(48),
|
|
|
|
padding:
|
|
|
|
EdgeInsets.symmetric(
|
|
|
|
horizontal: w(8)),
|
|
|
|
child: Image.asset(
|
|
|
|
Utils.getImgPath(
|
|
|
|
'plan_dish_minus'),
|
|
|
|
width: w(16),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
: SizedBox(),
|
|
|
|
HEmptyView(8),
|
|
|
|
Container(
|
|
|
|
width: w(32),
|
|
|
|
height: w(16),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius.circular(
|
|
|
|
r(5)),
|
|
|
|
border: Border.all(
|
|
|
|
width: w(1),
|
|
|
|
color: MyColours
|
|
|
|
.color_999999)),
|
|
|
|
// constraints: BoxConstraints(minWidth: w(20)),
|
|
|
|
child: TextField(
|
|
|
|
maxLines: 1,
|
|
|
|
// controller:
|
|
|
|
// focusNode: _focusNode,
|
|
|
|
// autofocus: true,
|
|
|
|
|
|
|
|
style: TextStyle(
|
|
|
|
color:
|
|
|
|
MyColours.color_438E93,
|
|
|
|
fontSize: font(12)),
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
// textAlignVertical: TextAlignVertical.center,
|
|
|
|
decoration: InputDecoration(
|
|
|
|
hintText: "人数",
|
|
|
|
hintStyle: TextStyle(
|
|
|
|
color:
|
|
|
|
MyColours.color_999999,
|
|
|
|
fontSize: font(12),
|
|
|
|
menuSunModel.amount != null &&
|
|
|
|
menuSunModel.amount > 0
|
|
|
|
? Container(
|
|
|
|
constraints: BoxConstraints(
|
|
|
|
minWidth: w(32),
|
|
|
|
),
|
|
|
|
// isCollapsed:
|
|
|
|
// true, //重点,相当于高度包裹的意思,必须设置为true,不然有默认奇妙的最小高度
|
|
|
|
border: OutlineInputBorder(
|
|
|
|
borderSide:
|
|
|
|
BorderSide.none),
|
|
|
|
contentPadding:
|
|
|
|
EdgeInsets.zero,
|
|
|
|
),
|
|
|
|
keyboardType:
|
|
|
|
TextInputType.number,
|
|
|
|
textInputAction:
|
|
|
|
TextInputAction.done,
|
|
|
|
|
|
|
|
onChanged: (value) {
|
|
|
|
// setState(() {});
|
|
|
|
// _searchSellerLocation();
|
|
|
|
// customerProvider.searchData(value);
|
|
|
|
},
|
|
|
|
onEditingComplete: () {
|
|
|
|
FocusScope.of(context)
|
|
|
|
.requestFocus(
|
|
|
|
FocusNode()); //点击空白处隐藏键盘
|
|
|
|
// contantShowModel.searchData(
|
|
|
|
// contantShowModel.controller.text);
|
|
|
|
// _searchSellerLocation();
|
|
|
|
// _focusNode.unfocus();
|
|
|
|
},
|
|
|
|
)),
|
|
|
|
// width: w(32),
|
|
|
|
height: w(16),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius.circular(
|
|
|
|
r(5)),
|
|
|
|
border: Border.all(
|
|
|
|
width: w(1),
|
|
|
|
color: MyColours
|
|
|
|
.color_999999)),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
// constraints: BoxConstraints(minWidth: w(20)),
|
|
|
|
child: Text(
|
|
|
|
'${menuSunModel.amount}',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours
|
|
|
|
.color_438E93,
|
|
|
|
fontSize: font(12)),
|
|
|
|
),
|
|
|
|
// child: TextField(
|
|
|
|
// maxLines: 1,
|
|
|
|
// // controller:
|
|
|
|
// // focusNode: _focusNode,
|
|
|
|
// // autofocus: true,
|
|
|
|
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours
|
|
|
|
// .color_438E93,
|
|
|
|
// fontSize: font(12)),
|
|
|
|
// textAlign: TextAlign.center,
|
|
|
|
// // textAlignVertical: TextAlignVertical.center,
|
|
|
|
// decoration: InputDecoration(
|
|
|
|
// hintText: "人数",
|
|
|
|
// hintStyle: TextStyle(
|
|
|
|
// color: MyColours
|
|
|
|
// .color_999999,
|
|
|
|
// fontSize: font(12),
|
|
|
|
// ),
|
|
|
|
// // isCollapsed:
|
|
|
|
// // true, //重点,相当于高度包裹的意思,必须设置为true,不然有默认奇妙的最小高度
|
|
|
|
// border:
|
|
|
|
// OutlineInputBorder(
|
|
|
|
// borderSide:
|
|
|
|
// BorderSide
|
|
|
|
// .none),
|
|
|
|
// contentPadding:
|
|
|
|
// EdgeInsets.zero,
|
|
|
|
// ),
|
|
|
|
// keyboardType:
|
|
|
|
// TextInputType.number,
|
|
|
|
// textInputAction:
|
|
|
|
// TextInputAction.done,
|
|
|
|
|
|
|
|
// onChanged: (value) {
|
|
|
|
// // setState(() {});
|
|
|
|
// // _searchSellerLocation();
|
|
|
|
// // customerProvider.searchData(value);
|
|
|
|
// },
|
|
|
|
// onEditingComplete: () {
|
|
|
|
// FocusScope.of(context)
|
|
|
|
// .requestFocus(
|
|
|
|
// FocusNode()); //点击空白处隐藏键盘
|
|
|
|
// // contantShowModel.searchData(
|
|
|
|
// // contantShowModel.controller.text);
|
|
|
|
// // _searchSellerLocation();
|
|
|
|
// // _focusNode.unfocus();
|
|
|
|
// },
|
|
|
|
// )
|
|
|
|
)
|
|
|
|
: SizedBox(),
|
|
|
|
HEmptyView(8),
|
|
|
|
Image.asset(
|
|
|
|
Utils.getImgPath('plan_dish_add'),
|
|
|
|
width: w(16),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
setState(() {
|
|
|
|
menuSunModel.amount++;
|
|
|
|
carSum++;
|
|
|
|
priceSum += double.parse(
|
|
|
|
menuSunModel.price);
|
|
|
|
memberPriceSum += double.parse(
|
|
|
|
menuSunModel.member_price);
|
|
|
|
planDishC.text = '${priceSum}';
|
|
|
|
});
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
height: w(48),
|
|
|
|
padding:
|
|
|
|
EdgeInsets.only(left: w(8)),
|
|
|
|
child: Image.asset(
|
|
|
|
Utils.getImgPath(
|
|
|
|
'plan_dish_add'),
|
|
|
|
width: w(16),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
...
|
...
|
@@ -460,24 +656,28 @@ class _OrderAdvanceEidtPageState extends State<OrderAdvanceEidtPage> { |
|
|
|
Utils.getImgPath('plan_dish_car'),
|
|
|
|
width: w(35),
|
|
|
|
),
|
|
|
|
Positioned(
|
|
|
|
top: w(-3),
|
|
|
|
right: w(-4),
|
|
|
|
child: Container(
|
|
|
|
// width: w(16),
|
|
|
|
constraints: BoxConstraints(minWidth: w(16)),
|
|
|
|
height: w(16),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius: BorderRadius.circular(r(8)),
|
|
|
|
color: MyColours.color_E34D59),
|
|
|
|
child: Text(
|
|
|
|
'23',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(10),
|
|
|
|
color: MyColours.color_F6F6F6),
|
|
|
|
),
|
|
|
|
))
|
|
|
|
carSum > 0
|
|
|
|
? Positioned(
|
|
|
|
top: w(-3),
|
|
|
|
right: w(-4),
|
|
|
|
child: Container(
|
|
|
|
// width: w(16),
|
|
|
|
constraints:
|
|
|
|
BoxConstraints(minWidth: w(16)),
|
|
|
|
height: w(16),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius.circular(r(8)),
|
|
|
|
color: MyColours.color_E34D59),
|
|
|
|
child: Text(
|
|
|
|
'${carSum}',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(10),
|
|
|
|
color: MyColours.color_F6F6F6),
|
|
|
|
),
|
|
|
|
))
|
|
|
|
: SizedBox()
|
|
|
|
],
|
|
|
|
),
|
|
|
|
HEmptyView(66),
|
|
...
|
...
|
@@ -493,7 +693,7 @@ class _OrderAdvanceEidtPageState extends State<OrderAdvanceEidtPage> { |
|
|
|
color: MyColours.color_515151),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'0.00',
|
|
|
|
'${priceSum}',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(12),
|
|
|
|
color: MyColours.color_000000),
|
|
...
|
...
|
@@ -516,7 +716,7 @@ class _OrderAdvanceEidtPageState extends State<OrderAdvanceEidtPage> { |
|
|
|
color: MyColours.color_515151),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'0.00',
|
|
|
|
'${memberPriceSum}',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(12),
|
|
|
|
color: MyColours.color_000000),
|
|
...
|
...
|
@@ -547,7 +747,7 @@ class _OrderAdvanceEidtPageState extends State<OrderAdvanceEidtPage> { |
|
|
|
// constraints: BoxConstraints(minWidth: w(20)),
|
|
|
|
child: TextField(
|
|
|
|
maxLines: 1,
|
|
|
|
// controller:
|
|
|
|
controller: planDishC,
|
|
|
|
// focusNode: _focusNode,
|
|
|
|
// autofocus: true,
|
|
|
|
|
|
...
|
...
|
@@ -612,6 +812,10 @@ class _OrderAdvanceEidtPageState extends State<OrderAdvanceEidtPage> { |
|
|
|
borderColor: MyColours.color_438E93,
|
|
|
|
textColor: MyColours.color_438E93,
|
|
|
|
onPressed: () {
|
|
|
|
_planDishProvider.menuModel.forEach((element) {
|
|
|
|
_planDishProvider.menuModelForManager
|
|
|
|
.forEach((value) {});
|
|
|
|
});
|
|
|
|
NavigatorUtil.goOrderEditListShowPage(context);
|
|
|
|
},
|
|
|
|
),
|
...
|
...
|
|