Commit 93cba33a4c418ef8edc14a6757d387818e4f9586

Authored by wdn127929
2 parents dfdd644e 30cbc643

管理员角色员工管理详情页面隐藏“移除员工”按钮

@@ -666,37 +666,38 @@ class _PersonnelDetailPageState extends State<PersonnelDetailPage> { @@ -666,37 +666,38 @@ class _PersonnelDetailPageState extends State<PersonnelDetailPage> {
666 ], 666 ],
667 ), 667 ),
668 )), 668 )),
669 - InkWell(  
670 - onTap: () async {  
671 - await DialogUtil.removePersonnalDialog(  
672 - context, personnelProvider.sellerManageList, onTap: (map) {  
673 - print(map);  
674 - String uid = map['bjtype'];  
675 - if (uid == '') {  
676 - //选择了 全店未分配客户资源  
677 - } else {  
678 - //选择了某个经理  
679 - }  
680 - _delSellerClerk(uid); 669 + if (widget.position != '管理员')
  670 + InkWell(
  671 + onTap: () async {
  672 + await DialogUtil.removePersonnalDialog(
  673 + context, personnelProvider.sellerManageList, onTap: (map) {
  674 + print(map);
  675 + String uid = map['bjtype'];
  676 + if (uid == '') {
  677 + //选择了 全店未分配客户资源
  678 + } else {
  679 + //选择了某个经理
  680 + }
  681 + _delSellerClerk(uid);
681 682
682 - // DialogUtil.cupertinoAlertDialog(context,  
683 - // title: '提示',  
684 - // content: '移除店员后,店员将无法接收门店收款通知,店员收款码也将无法收款',  
685 - // rTitle: '移除', rCallback: () {  
686 - // _delSellerClerk();  
687 - // });  
688 - });  
689 - },  
690 - child: Padding(  
691 - padding: EdgeInsets.symmetric(  
692 - vertical: ScreenUtil().setWidth(34 * 2)),  
693 - child: Text(  
694 - '移除员工',  
695 - style: TextStyle(  
696 - decoration: TextDecoration.underline,  
697 - color: MyColours.color_438E93,  
698 - fontSize: ScreenUtil().setSp(28)),  
699 - ))), 683 + // DialogUtil.cupertinoAlertDialog(context,
  684 + // title: '提示',
  685 + // content: '移除店员后,店员将无法接收门店收款通知,店员收款码也将无法收款',
  686 + // rTitle: '移除', rCallback: () {
  687 + // _delSellerClerk();
  688 + // });
  689 + });
  690 + },
  691 + child: Padding(
  692 + padding: EdgeInsets.symmetric(
  693 + vertical: ScreenUtil().setWidth(34 * 2)),
  694 + child: Text(
  695 + '移除员工',
  696 + style: TextStyle(
  697 + decoration: TextDecoration.underline,
  698 + color: MyColours.color_438E93,
  699 + fontSize: ScreenUtil().setSp(28)),
  700 + ))),
700 ]), 701 ]),
701 ); 702 );
702 } 703 }