|
...
|
...
|
@@ -666,37 +666,38 @@ class _PersonnelDetailPageState extends State<PersonnelDetailPage> { |
|
|
|
],
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
InkWell(
|
|
|
|
onTap: () async {
|
|
|
|
await DialogUtil.removePersonnalDialog(
|
|
|
|
context, personnelProvider.sellerManageList, onTap: (map) {
|
|
|
|
print(map);
|
|
|
|
String uid = map['bjtype'];
|
|
|
|
if (uid == '') {
|
|
|
|
//选择了 全店未分配客户资源
|
|
|
|
} else {
|
|
|
|
//选择了某个经理
|
|
|
|
}
|
|
|
|
_delSellerClerk(uid);
|
|
|
|
if (widget.position != '管理员')
|
|
|
|
InkWell(
|
|
|
|
onTap: () async {
|
|
|
|
await DialogUtil.removePersonnalDialog(
|
|
|
|
context, personnelProvider.sellerManageList, onTap: (map) {
|
|
|
|
print(map);
|
|
|
|
String uid = map['bjtype'];
|
|
|
|
if (uid == '') {
|
|
|
|
//选择了 全店未分配客户资源
|
|
|
|
} else {
|
|
|
|
//选择了某个经理
|
|
|
|
}
|
|
|
|
_delSellerClerk(uid);
|
|
|
|
|
|
|
|
// DialogUtil.cupertinoAlertDialog(context,
|
|
|
|
// title: '提示',
|
|
|
|
// content: '移除店员后,店员将无法接收门店收款通知,店员收款码也将无法收款',
|
|
|
|
// rTitle: '移除', rCallback: () {
|
|
|
|
// _delSellerClerk();
|
|
|
|
// });
|
|
|
|
});
|
|
|
|
},
|
|
|
|
child: Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
vertical: ScreenUtil().setWidth(34 * 2)),
|
|
|
|
child: Text(
|
|
|
|
'移除员工',
|
|
|
|
style: TextStyle(
|
|
|
|
decoration: TextDecoration.underline,
|
|
|
|
color: MyColours.color_438E93,
|
|
|
|
fontSize: ScreenUtil().setSp(28)),
|
|
|
|
))),
|
|
|
|
// DialogUtil.cupertinoAlertDialog(context,
|
|
|
|
// title: '提示',
|
|
|
|
// content: '移除店员后,店员将无法接收门店收款通知,店员收款码也将无法收款',
|
|
|
|
// rTitle: '移除', rCallback: () {
|
|
|
|
// _delSellerClerk();
|
|
|
|
// });
|
|
|
|
});
|
|
|
|
},
|
|
|
|
child: Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
vertical: ScreenUtil().setWidth(34 * 2)),
|
|
|
|
child: Text(
|
|
|
|
'移除员工',
|
|
|
|
style: TextStyle(
|
|
|
|
decoration: TextDecoration.underline,
|
|
|
|
color: MyColours.color_438E93,
|
|
|
|
fontSize: ScreenUtil().setSp(28)),
|
|
|
|
))),
|
|
|
|
]),
|
|
|
|
);
|
|
|
|
}
|
...
|
...
|
|