|
...
|
...
|
@@ -101,7 +101,10 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
|
|
|
|
// _getSellerById();
|
|
|
|
|
|
|
|
if (Provider.of<UserModel>(context,listen: false).user!.role_name_addition == '迎宾') {
|
|
|
|
if (Provider.of<UserModel>(context, listen: false)
|
|
|
|
.user!
|
|
|
|
.role_name_addition ==
|
|
|
|
'迎宾') {
|
|
|
|
_getAuthUserLists(showLoading: false);
|
|
|
|
}
|
|
|
|
getMyPageCountData();
|
|
...
|
...
|
@@ -1428,68 +1431,23 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (Utils.getAuthority(
|
|
|
|
context, '桌位管理')) {
|
|
|
|
NavigatorUtil
|
|
|
|
.goMyTableManagerHomePage(
|
|
|
|
context);
|
|
|
|
context, '桌位设置')) {
|
|
|
|
NavigatorUtil.goTableHome(context);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '桌位管理')
|
|
|
|
? Utils.getImgPath('zwgl_un')
|
|
|
|
: Utils.getImgPath('zwgl'),
|
|
|
|
'桌位管理',
|
|
|
|
context, '桌位设置')
|
|
|
|
? Utils.getImgPath(
|
|
|
|
'table_home_un')
|
|
|
|
: Utils.getImgPath('table_home'),
|
|
|
|
'桌位设置',
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '桌位管理')),
|
|
|
|
context, '桌位设置')),
|
|
|
|
),
|
|
|
|
InkWell(
|
|
|
|
onTap: () async {
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (Utils.getAuthority(
|
|
|
|
context, '桌位照片')) {
|
|
|
|
// Map temp =
|
|
|
|
await NavigatorUtil
|
|
|
|
.goPhotoManagerSelectTablePage(
|
|
|
|
context,
|
|
|
|
"",
|
|
|
|
DateTime.now()
|
|
|
|
.millisecondsSinceEpoch,
|
|
|
|
"1",
|
|
|
|
canChoose: true,
|
|
|
|
object: null,
|
|
|
|
fromPage: "tablePhoto",
|
|
|
|
tid: '');
|
|
|
|
// if (temp != null && temp['tid'] != '') {
|
|
|
|
// // print(temp['tid']);
|
|
|
|
// // print(temp['tname']);
|
|
|
|
// // tname = temp['tname'];
|
|
|
|
// // tid = temp['tid'];
|
|
|
|
// // _getTablePhoto(context, temp['tid'], showLoading: true)
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '桌位照片')
|
|
|
|
? Utils.getImgPath('zwzp_un')
|
|
|
|
: Utils.getImgPath('zwzp'),
|
|
|
|
'桌位照片',
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '桌位照片')))
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(68),
|
|
|
|
Row(
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.spaceBetween,
|
|
|
|
children: [
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
...
|
...
|
@@ -1510,6 +1468,50 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '员工管理'))),
|
|
|
|
// InkWell(
|
|
|
|
// onTap: () async {
|
|
|
|
// if (outDay == '0') {
|
|
|
|
// return;
|
|
|
|
// }
|
|
|
|
// if (Utils.getAuthority(
|
|
|
|
// context, '桌位照片')) {
|
|
|
|
// // Map temp =
|
|
|
|
// await NavigatorUtil
|
|
|
|
// .goPhotoManagerSelectTablePage(
|
|
|
|
// context,
|
|
|
|
// "",
|
|
|
|
// DateTime.now()
|
|
|
|
// .millisecondsSinceEpoch,
|
|
|
|
// "1",
|
|
|
|
// canChoose: true,
|
|
|
|
// object: null,
|
|
|
|
// fromPage: "tablePhoto",
|
|
|
|
// tid: '');
|
|
|
|
// // if (temp != null && temp['tid'] != '') {
|
|
|
|
// // // print(temp['tid']);
|
|
|
|
// // // print(temp['tname']);
|
|
|
|
// // // tname = temp['tname'];
|
|
|
|
// // // tid = temp['tid'];
|
|
|
|
// // // _getTablePhoto(context, temp['tid'], showLoading: true)
|
|
|
|
// }
|
|
|
|
// },
|
|
|
|
// child: _item(
|
|
|
|
// outDay == '0' ||
|
|
|
|
// !Utils.getAuthority(
|
|
|
|
// context, '桌位照片')
|
|
|
|
// ? Utils.getImgPath('zwzp_un')
|
|
|
|
// : Utils.getImgPath('zwzp'),
|
|
|
|
// '桌位照片',
|
|
|
|
// isRowLow: outDay == '0' ||
|
|
|
|
// !Utils.getAuthority(
|
|
|
|
// context, '桌位照片')))
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(68),
|
|
|
|
Row(
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.spaceBetween,
|
|
|
|
children: [
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (outDay == '0') {
|
|
...
|
...
|
@@ -1537,56 +1539,6 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (Utils.getAuthority(
|
|
|
|
context, '包间类型')) {
|
|
|
|
NavigatorUtil.goRoomTypeManagePage(
|
|
|
|
context);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '包间类型')
|
|
|
|
? Utils.getImgPath('bjlx_un')
|
|
|
|
: Utils.getImgPath('bjlx'),
|
|
|
|
'包间类型',
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '包间类型'))),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (Utils.getAuthority(
|
|
|
|
context, '包间置满')) {
|
|
|
|
NavigatorUtil
|
|
|
|
.goStoreTypeFillManagePage(
|
|
|
|
context);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '包间置满')
|
|
|
|
? Utils.getImgPath('bjzm_un')
|
|
|
|
: Utils.getImgPath('bjzm'),
|
|
|
|
'包间置满',
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '包间置满')))
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(68),
|
|
|
|
Row(
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.spaceBetween,
|
|
|
|
children: [
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (Utils.getAuthority(
|
|
|
|
context, '宴会管理')) {
|
|
|
|
NavigatorUtil.goFeastManageHomePage(
|
|
|
|
context);
|
|
...
|
...
|
@@ -1648,6 +1600,56 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '评价管理'))),
|
|
|
|
// InkWell(
|
|
|
|
// onTap: () {
|
|
|
|
// if (outDay == '0') {
|
|
|
|
// return;
|
|
|
|
// }
|
|
|
|
// if (Utils.getAuthority(
|
|
|
|
// context, '包间类型')) {
|
|
|
|
// NavigatorUtil.goRoomTypeManagePage(
|
|
|
|
// context);
|
|
|
|
// }
|
|
|
|
// },
|
|
|
|
// child: _item(
|
|
|
|
// outDay == '0' ||
|
|
|
|
// !Utils.getAuthority(
|
|
|
|
// context, '包间类型')
|
|
|
|
// ? Utils.getImgPath('bjlx_un')
|
|
|
|
// : Utils.getImgPath('bjlx'),
|
|
|
|
// '包间类型',
|
|
|
|
// isRowLow: outDay == '0' ||
|
|
|
|
// !Utils.getAuthority(
|
|
|
|
// context, '包间类型'))),
|
|
|
|
// InkWell(
|
|
|
|
// onTap: () {
|
|
|
|
// if (outDay == '0') {
|
|
|
|
// return;
|
|
|
|
// }
|
|
|
|
// if (Utils.getAuthority(
|
|
|
|
// context, '包间置满')) {
|
|
|
|
// NavigatorUtil
|
|
|
|
// .goStoreTypeFillManagePage(
|
|
|
|
// context);
|
|
|
|
// }
|
|
|
|
// },
|
|
|
|
// child: _item(
|
|
|
|
// outDay == '0' ||
|
|
|
|
// !Utils.getAuthority(
|
|
|
|
// context, '包间置满')
|
|
|
|
// ? Utils.getImgPath('bjzm_un')
|
|
|
|
// : Utils.getImgPath('bjzm'),
|
|
|
|
// '包间置满',
|
|
|
|
// isRowLow: outDay == '0' ||
|
|
|
|
// !Utils.getAuthority(
|
|
|
|
// context, '包间置满')))
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(68),
|
|
|
|
Row(
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.spaceBetween,
|
|
|
|
children: [
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (outDay == '0') {
|
|
...
|
...
|
@@ -1670,6 +1672,12 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '收银管理'))),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {}, child: _item('', '空空空空')),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {}, child: _item('', '空空空空')),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {}, child: _item('', '空空空空')),
|
|
|
|
],
|
|
|
|
)
|
|
|
|
],
|
...
|
...
|
|