Commit 62bf481a78f15758cc68430d81196320991e6adb

Authored by wdn127929
1 parent a22e89ae

排菜页面数据编辑

... ... @@ -11,6 +11,7 @@ class MenuModel {
String status;
String classType;
List<MenuSunModel> cookbooklist;
int allSum; //总共选中菜数量
MenuModel(
{this.id,
... ... @@ -102,7 +103,9 @@ class MenuSunModel {
List<MenuModel> cookList;
int amount; //菜品数量
TextEditingController amountC = TextEditingController();
int moreSum = 0; //排菜编辑页展示选中总数
MenuSunModel(
{this.id,
... ...
... ... @@ -799,7 +799,7 @@ class _PlanDishEidtPageState extends State<PlanDishEidtPage> {
color: MyColours.color_DBDBDB),
VEmptyView(24),
_select('菜品', '编辑', () async {
if (widget.onlyShow) {
if (!widget.onlyShow) {
FocusScope.of(context)
.requestFocus(FocusNode()); //点击空白处隐藏键盘
Map temp;
... ...
... ... @@ -117,7 +117,7 @@ class _PlanDishSunPageState extends State<PlanDishSunPage> {
onTap: () async {
UserModel userModel =
Provider.of<UserModel>(context, listen: false);
bool canedit = widget.data[index].type == '0' ||
bool canedit = widget.data[index].type == '2' ||
userModel.user.role_name == '管理员' ||
userModel.user.role_name == '店长';
... ...
This diff could not be displayed because it is too large.