|
...
|
...
|
@@ -482,6 +482,9 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
children: [
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (Utils.getAuthority(
|
|
|
|
context, '全店-月订单量')) {
|
|
|
|
NavigatorUtil.goMonthOrderPage(
|
|
...
|
...
|
@@ -550,6 +553,9 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (Utils.getAuthority(context, '充值短信')) {
|
|
|
|
NavigatorUtil.goSmsManagePage(context,
|
|
|
|
smsInfoData: smsInfoData);
|
|
...
|
...
|
@@ -590,16 +596,19 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
RoundButton(
|
|
|
|
text: '充值短信',
|
|
|
|
gradientStart:
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '充值短信')
|
|
|
|
(!Utils.getAuthority(context,
|
|
|
|
'充值短信') ||
|
|
|
|
outDay == '0')
|
|
|
|
? MyColours.color_999999
|
|
|
|
: MyColours.color_438E93,
|
|
|
|
gradientEnd: !Utils.getAuthority(
|
|
|
|
context, '充值短信')
|
|
|
|
gradientEnd: (!Utils.getAuthority(
|
|
|
|
context, '充值短信') ||
|
|
|
|
outDay == '0')
|
|
|
|
? MyColours.color_999999
|
|
|
|
: MyColours.color_438E93,
|
|
|
|
borderColor: !Utils.getAuthority(
|
|
|
|
context, '充值短信')
|
|
|
|
borderColor: (!Utils.getAuthority(
|
|
|
|
context, '充值短信') ||
|
|
|
|
outDay == '0')
|
|
|
|
? MyColours.color_999999
|
|
|
|
: MyColours.color_438E93,
|
|
|
|
width:
|
|
...
|
...
|
@@ -611,6 +620,9 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
textColor: MyColours.color_ffffff,
|
|
|
|
radius: ScreenUtil().setWidth(8),
|
|
|
|
onPressed: () {
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (Utils.getAuthority(
|
|
|
|
context, '充值短信')) {
|
|
|
|
NavigatorUtil.goSmsManagePage(
|
|
...
|
...
|
@@ -860,59 +872,85 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
children: [
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (Utils.getAuthority(context, '个人信息')) {
|
|
|
|
NavigatorUtil.goBaseInfoPage(
|
|
|
|
context, FromPage.FromPageMyPage);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
!Utils.getAuthority(context, '个人信息')
|
|
|
|
!Utils.getAuthority(context, '个人信息') ||
|
|
|
|
outDay == '0'
|
|
|
|
? Utils.getImgPath('grxx_un')
|
|
|
|
: Utils.getImgPath('grxx'),
|
|
|
|
'个人信息',
|
|
|
|
isRowLow:
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(context, '个人信息')),
|
|
|
|
),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (Utils.getAuthority(context, '我的客情')) {
|
|
|
|
NavigatorUtil.goMyCustomerPage(context);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
!Utils.getAuthority(context, '我的客情')
|
|
|
|
outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '我的客情')
|
|
|
|
? Utils.getImgPath('wdkq_un')
|
|
|
|
: Utils.getImgPath('wdkq'),
|
|
|
|
'我的客情',
|
|
|
|
isRowLow: !Utils.getAuthority(
|
|
|
|
context, '我的客情'))),
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '我的客情'))),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (Utils.getAuthority(context, '优惠券')) {
|
|
|
|
NavigatorUtil.goCouponPage(context);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
!Utils.getAuthority(context, '优惠券')
|
|
|
|
outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '优惠券')
|
|
|
|
? Utils.getImgPath('yhq_un')
|
|
|
|
: Utils.getImgPath('yhq'),
|
|
|
|
'优惠券',
|
|
|
|
isRowLow: !Utils.getAuthority(
|
|
|
|
context, '优惠券'))),
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '优惠券'))),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (Utils.getAuthority(context, '常用备注')) {
|
|
|
|
NavigatorUtil.goRemarkManagerPage(
|
|
|
|
context);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
!Utils.getAuthority(context, '常用备注')
|
|
|
|
outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '常用备注')
|
|
|
|
? Utils.getImgPath('cybz_un')
|
|
|
|
: Utils.getImgPath('cybz'),
|
|
|
|
'常用备注',
|
|
|
|
isRowLow: !Utils.getAuthority(
|
|
|
|
context, '常用备注'))),
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '常用备注'))),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(68),
|
|
...
|
...
|
@@ -922,6 +960,9 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
children: [
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (Utils.getAuthority(
|
|
|
|
context, '套餐排菜')) {
|
|
|
|
NavigatorUtil.goMyPlanDishHomePage(
|
|
...
|
...
|
@@ -929,14 +970,20 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
!Utils.getAuthority(context, '套餐排菜')
|
|
|
|
outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '套餐排菜')
|
|
|
|
? Utils.getImgPath('cdgl_un')
|
|
|
|
: Utils.getImgPath('cdgl'),
|
|
|
|
'套餐排菜',
|
|
|
|
isRowLow: !Utils.getAuthority(
|
|
|
|
context, '套餐排菜'))),
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '套餐排菜'))),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (Utils.getAuthority(
|
|
|
|
context, '客户存酒')) {
|
|
|
|
NavigatorUtil
|
|
...
|
...
|
@@ -945,12 +992,15 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
!Utils.getAuthority(context, '客户存酒')
|
|
|
|
outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '客户存酒')
|
|
|
|
? Utils.getImgPath('khcj_un')
|
|
|
|
: Utils.getImgPath('khcj'),
|
|
|
|
'客户存酒',
|
|
|
|
isRowLow: !Utils.getAuthority(
|
|
|
|
context, '客户存酒'))),
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '客户存酒'))),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {}, child: _item('', '空空空空')),
|
|
|
|
InkWell(
|
|
...
|
...
|
@@ -990,6 +1040,9 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
children: [
|
|
|
|
InkWell(
|
|
|
|
onTap: () async {
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (Utils.getAuthority(
|
|
|
|
context, '店铺信息')) {
|
|
|
|
await NavigatorUtil
|
|
...
|
...
|
@@ -1007,14 +1060,20 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
!Utils.getAuthority(context, '店铺信息')
|
|
|
|
outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '店铺信息')
|
|
|
|
? Utils.getImgPath('dpxx_un')
|
|
|
|
: Utils.getImgPath('dpxx'),
|
|
|
|
'店铺信息',
|
|
|
|
isRowLow: !Utils.getAuthority(
|
|
|
|
context, '店铺信息'))),
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '店铺信息'))),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (Utils.getAuthority(
|
|
|
|
context, '全店客情')) {
|
|
|
|
NavigatorUtil.goStoreCustomerPage(
|
|
...
|
...
|
@@ -1022,14 +1081,20 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
!Utils.getAuthority(context, '全店客情')
|
|
|
|
outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '全店客情')
|
|
|
|
? Utils.getImgPath('qdkq_un')
|
|
|
|
: Utils.getImgPath('qdkq'),
|
|
|
|
'全店客情',
|
|
|
|
isRowLow: !Utils.getAuthority(
|
|
|
|
context, '全店客情'))),
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '全店客情'))),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (Utils.getAuthority(
|
|
|
|
context, '桌位管理')) {
|
|
|
|
NavigatorUtil
|
|
...
|
...
|
@@ -1038,15 +1103,21 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
!Utils.getAuthority(context, '桌位管理')
|
|
|
|
outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '桌位管理')
|
|
|
|
? Utils.getImgPath('zwgl_un')
|
|
|
|
: Utils.getImgPath('zwgl'),
|
|
|
|
'桌位管理',
|
|
|
|
isRowLow: !Utils.getAuthority(
|
|
|
|
context, '桌位管理')),
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '桌位管理')),
|
|
|
|
),
|
|
|
|
InkWell(
|
|
|
|
onTap: () async {
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (Utils.getAuthority(
|
|
|
|
context, '桌位照片')) {
|
|
|
|
// Map temp =
|
|
...
|
...
|
@@ -1070,12 +1141,15 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
!Utils.getAuthority(context, '桌位照片')
|
|
|
|
outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '桌位照片')
|
|
|
|
? Utils.getImgPath('zwzp_un')
|
|
|
|
: Utils.getImgPath('zwzp'),
|
|
|
|
'桌位照片',
|
|
|
|
isRowLow: !Utils.getAuthority(
|
|
|
|
context, '桌位照片')))
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '桌位照片')))
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(68),
|
|
...
|
...
|
@@ -1085,6 +1159,9 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
children: [
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (Utils.getAuthority(
|
|
|
|
context, '员工管理')) {
|
|
|
|
NavigatorUtil.goPersonnelManagePage(
|
|
...
|
...
|
@@ -1092,14 +1169,20 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
!Utils.getAuthority(context, '员工管理')
|
|
|
|
outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '员工管理')
|
|
|
|
? Utils.getImgPath('yggl_un')
|
|
|
|
: Utils.getImgPath('yggl'),
|
|
|
|
'员工管理',
|
|
|
|
isRowLow: !Utils.getAuthority(
|
|
|
|
context, '员工管理'))),
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '员工管理'))),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (Utils.getAuthority(
|
|
|
|
context, '菜单管理')) {
|
|
|
|
NavigatorUtil.goMenuManagePage(
|
|
...
|
...
|
@@ -1107,14 +1190,20 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
!Utils.getAuthority(context, '菜单管理')
|
|
|
|
outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '菜单管理')
|
|
|
|
? Utils.getImgPath('cdgl_un')
|
|
|
|
: Utils.getImgPath('cdgl'),
|
|
|
|
'菜单管理',
|
|
|
|
isRowLow: !Utils.getAuthority(
|
|
|
|
context, '菜单管理'))),
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '菜单管理'))),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (Utils.getAuthority(
|
|
|
|
context, '包间类型')) {
|
|
|
|
NavigatorUtil.goRoomTypeManagePage(
|
|
...
|
...
|
@@ -1122,14 +1211,20 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
!Utils.getAuthority(context, '包间类型')
|
|
|
|
outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '包间类型')
|
|
|
|
? Utils.getImgPath('bjlx_un')
|
|
|
|
: Utils.getImgPath('bjlx'),
|
|
|
|
'包间类型',
|
|
|
|
isRowLow: !Utils.getAuthority(
|
|
|
|
context, '包间类型'))),
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '包间类型'))),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (Utils.getAuthority(
|
|
|
|
context, '包间置满')) {
|
|
|
|
NavigatorUtil
|
|
...
|
...
|
@@ -1138,12 +1233,15 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
!Utils.getAuthority(context, '包间置满')
|
|
|
|
outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '包间置满')
|
|
|
|
? Utils.getImgPath('bjzm_un')
|
|
|
|
: Utils.getImgPath('bjzm'),
|
|
|
|
'包间置满',
|
|
|
|
isRowLow: !Utils.getAuthority(
|
|
|
|
context, '包间置满')))
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '包间置满')))
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(68),
|
|
...
|
...
|
@@ -1153,6 +1251,9 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
children: [
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (Utils.getAuthority(
|
|
|
|
context, '宴会管理')) {
|
|
|
|
NavigatorUtil.goFeastManageHomePage(
|
|
...
|
...
|
@@ -1160,14 +1261,20 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
!Utils.getAuthority(context, '宴会管理')
|
|
|
|
outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '宴会管理')
|
|
|
|
? Utils.getImgPath('yhgl_un')
|
|
|
|
: Utils.getImgPath('yhgl'),
|
|
|
|
'宴会管理',
|
|
|
|
isRowLow: !Utils.getAuthority(
|
|
|
|
context, '宴会管理'))),
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '宴会管理'))),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (Utils.getAuthority(
|
|
|
|
context, '营销中心')) {
|
|
|
|
NavigatorUtil
|
|
...
|
...
|
@@ -1176,12 +1283,15 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
!Utils.getAuthority(context, '营销中心')
|
|
|
|
outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '营销中心')
|
|
|
|
? Utils.getImgPath('bjzm_un')
|
|
|
|
: Utils.getImgPath('bjzm'),
|
|
|
|
'营销中心',
|
|
|
|
isRowLow: !Utils.getAuthority(
|
|
|
|
context, '营销中心'))),
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '营销中心'))),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {}, child: _item('', '空空空空')),
|
|
|
|
InkWell(
|
...
|
...
|
|