|
...
|
...
|
@@ -2587,11 +2587,18 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
'') {
|
|
|
|
if (Utils.getAuthority(
|
|
|
|
context,
|
|
|
|
'电话') ||
|
|
|
|
'订座详情-电话') ||
|
|
|
|
widget.uid ==
|
|
|
|
userModel
|
|
|
|
.user
|
|
|
|
.openid) {
|
|
|
|
.openid ||
|
|
|
|
(userModel
|
|
|
|
.user.role_name ==
|
|
|
|
'店长' &&
|
|
|
|
detailEntity.role_name !=
|
|
|
|
'管理员' &&
|
|
|
|
detailEntity.role_name !=
|
|
|
|
'店长')) {
|
|
|
|
DialogUtil
|
|
|
|
.goPhone(
|
|
|
|
formatPhone);
|
|
...
|
...
|
@@ -2603,8 +2610,19 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
detailEntity.phone ==
|
|
|
|
null
|
|
|
|
? ''
|
|
|
|
: detailEntity
|
|
|
|
.phone,
|
|
|
|
: (Utils.getAuthority(context, '订座详情-电话') ||
|
|
|
|
widget.uid ==
|
|
|
|
userModel
|
|
|
|
.user.openid ||
|
|
|
|
(userModel.user.role_name == '店长' &&
|
|
|
|
detailEntity.role_name !=
|
|
|
|
'管理员' &&
|
|
|
|
detailEntity.role_name !=
|
|
|
|
'店长'))
|
|
|
|
? detailEntity
|
|
|
|
.phone
|
|
|
|
: Utils.starPhone(detailEntity
|
|
|
|
.phone),
|
|
|
|
textColor: MyColours
|
|
|
|
.color_333333))
|
|
|
|
],
|
|
...
|
...
|
@@ -3381,7 +3399,12 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
if (Utils.getAuthority(
|
|
|
|
context, '变更预订') ||
|
|
|
|
widget.uid ==
|
|
|
|
userModel.user.openid) {
|
|
|
|
userModel.user.openid ||
|
|
|
|
(userModel.user.role_name == '店长' &&
|
|
|
|
detailEntity.role_name !=
|
|
|
|
'管理员' &&
|
|
|
|
detailEntity.role_name !=
|
|
|
|
'店长')) {
|
|
|
|
NavigatorUtil
|
|
|
|
.goNoteBookChangeFPage(
|
|
|
|
context,
|
|
...
|
...
|
@@ -3398,10 +3421,14 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
border: Border.all(
|
|
|
|
width: w(1),
|
|
|
|
color: !(Utils.getAuthority(
|
|
|
|
context, '变更预订') ||
|
|
|
|
widget.uid ==
|
|
|
|
userModel
|
|
|
|
.user.openid)
|
|
|
|
context, '变更预订') ||
|
|
|
|
widget.uid ==
|
|
|
|
userModel.user.openid ||
|
|
|
|
(userModel.user.role_name == '店长' &&
|
|
|
|
detailEntity.role_name !=
|
|
|
|
'管理员' &&
|
|
|
|
detailEntity.role_name !=
|
|
|
|
'店长'))
|
|
|
|
? MyColours.color_999999
|
|
|
|
: MyColours.color_199095,
|
|
|
|
),
|
|
...
|
...
|
@@ -3414,13 +3441,15 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
alignment: Alignment.center,
|
|
|
|
child: Text('变更预订',
|
|
|
|
style: TextStyle(
|
|
|
|
color: !(Utils
|
|
|
|
.getAuthority(
|
|
|
|
context,
|
|
|
|
'变更预订') ||
|
|
|
|
widget.uid ==
|
|
|
|
userModel.user
|
|
|
|
.openid)
|
|
|
|
color: !(Utils.getAuthority(
|
|
|
|
context, '变更预订') ||
|
|
|
|
widget.uid ==
|
|
|
|
userModel.user.openid ||
|
|
|
|
(userModel.user.role_name == '店长' &&
|
|
|
|
detailEntity.role_name !=
|
|
|
|
'管理员' &&
|
|
|
|
detailEntity.role_name !=
|
|
|
|
'店长'))
|
|
|
|
? MyColours
|
|
|
|
.color_999999
|
|
|
|
: MyColours
|
...
|
...
|
|