|
...
|
...
|
@@ -728,7 +728,8 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
bool sucess = await detailModel.upReserveInfo(
|
|
|
|
context, widget.rid,
|
|
|
|
dateStr: ddateHm,
|
|
|
|
ymd: detailEntity.ddateYMD,needToast: false);
|
|
|
|
ymd: detailEntity.ddateYMD,
|
|
|
|
needToast: false);
|
|
|
|
|
|
|
|
if (sucess) {
|
|
|
|
EventBus()
|
|
...
|
...
|
@@ -775,7 +776,7 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
|
|
|
|
sex = '${sexList.indexOf(sexStr) + 1}';
|
|
|
|
bool sucess = await detailModel.upReserveInfo(context, widget.rid,
|
|
|
|
name: name, sex: sex, phone: phone, cusdem: remark,needToast: false);
|
|
|
|
name: name, sex: sex, phone: phone, cusdem: remark, needToast: false);
|
|
|
|
if (sucess) {
|
|
|
|
reserverPhone = phone;
|
|
|
|
oldPhone = phone;
|
|
...
|
...
|
@@ -1459,7 +1460,8 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
await detailModel.upReserveInfo(
|
|
|
|
context, widget.rid,
|
|
|
|
actualPum:
|
|
|
|
detailModel.selectNum,needToast: false);
|
|
|
|
detailModel.selectNum,
|
|
|
|
needToast: false);
|
|
|
|
|
|
|
|
if (sucess) {
|
|
|
|
EventBus().emit(
|
|
...
|
...
|
@@ -1545,7 +1547,8 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
await detailModel.upReserveInfo(
|
|
|
|
context, widget.rid,
|
|
|
|
dateStr: ddateHm,
|
|
|
|
ymd: detailEntity.ddateYMD,needToast: false);
|
|
|
|
ymd: detailEntity.ddateYMD,
|
|
|
|
needToast: false);
|
|
|
|
|
|
|
|
if (sucess) {
|
|
|
|
EventBus().emit(
|
|
...
|
...
|
@@ -2797,7 +2800,8 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
// });
|
|
|
|
bool sucess = await detailModel.upReserveInfo(
|
|
|
|
context, widget.rid,
|
|
|
|
actualPum: detailModel.selectNum,needToast: false);
|
|
|
|
actualPum: detailModel.selectNum,
|
|
|
|
needToast: false);
|
|
|
|
|
|
|
|
if (sucess) {
|
|
|
|
EventBus().emit("refresh_tablemanager"); //刷新桌位
|
|
...
|
...
|
@@ -3317,23 +3321,23 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
// rTitle: "确定修改", lCallback: () {
|
|
|
|
// print("取消");
|
|
|
|
// }, rCallback: () {
|
|
|
|
setState(() {
|
|
|
|
String fullName =
|
|
|
|
contact.fullName.replaceAll(new RegExp(r"\s+\b|\b\s"), "");
|
|
|
|
String phone =
|
|
|
|
contact.phoneNumber.replaceAll(new RegExp(r"\s+\b|\b\s"), "");
|
|
|
|
if (fullName.compareTo(phone) == 0) {
|
|
|
|
fullName = '';
|
|
|
|
} else {
|
|
|
|
fullName = contact.fullName;
|
|
|
|
}
|
|
|
|
_baseIndoProvider.phoneController.text =
|
|
|
|
contact.phoneNumber.replaceAll(new RegExp(r"\s+"), "");
|
|
|
|
nameStr = fullName;
|
|
|
|
// _homeEnterModel.nameController.text = fullName + _nameSuffix();
|
|
|
|
_addNameSuffix(fullName, sexStr);
|
|
|
|
});
|
|
|
|
_updateReserve();
|
|
|
|
setState(() {
|
|
|
|
String fullName =
|
|
|
|
contact.fullName.replaceAll(new RegExp(r"\s+\b|\b\s"), "");
|
|
|
|
String phone =
|
|
|
|
contact.phoneNumber.replaceAll(new RegExp(r"\s+\b|\b\s"), "");
|
|
|
|
if (fullName.compareTo(phone) == 0) {
|
|
|
|
fullName = '';
|
|
|
|
} else {
|
|
|
|
fullName = contact.fullName;
|
|
|
|
}
|
|
|
|
_baseIndoProvider.phoneController.text =
|
|
|
|
contact.phoneNumber.replaceAll(new RegExp(r"\s+"), "");
|
|
|
|
nameStr = fullName;
|
|
|
|
// _homeEnterModel.nameController.text = fullName + _nameSuffix();
|
|
|
|
_addNameSuffix(fullName, sexStr);
|
|
|
|
});
|
|
|
|
_updateReserve();
|
|
|
|
// });
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -3542,6 +3546,20 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
});
|
|
|
|
|
|
|
|
return;
|
|
|
|
} else if (ObjectUtil.isEmpty(
|
|
|
|
_baseIndoProvider.baseInfoSunModel) ||
|
|
|
|
ObjectUtil.isEmpty(
|
|
|
|
_baseIndoProvider.baseInfoSunModel.phone)) {
|
|
|
|
// Utils.showToast('请填写经理的联系电话');
|
|
|
|
DialogUtil.cupertinoAlertDialog(context,
|
|
|
|
title: "填写个人信息",
|
|
|
|
content: "暂未填写您的联系信息,请先前往填写,个人信息将会展示给您的顾客。",
|
|
|
|
lTitle: "取消",
|
|
|
|
rTitle: "去填写",
|
|
|
|
lCallback: () {}, rCallback: () {
|
|
|
|
_goBaseInfoPage();
|
|
|
|
});
|
|
|
|
return;
|
|
|
|
} else {
|
|
|
|
/*
|
|
|
|
String dateSoltStr = '';
|
|
...
|
...
|
@@ -3634,6 +3652,20 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
erroInfo = '请正确输入11位手机号码';
|
|
|
|
});
|
|
|
|
return;
|
|
|
|
} else if (ObjectUtil.isEmpty(
|
|
|
|
_baseIndoProvider.baseInfoSunModel) ||
|
|
|
|
ObjectUtil.isEmpty(
|
|
|
|
_baseIndoProvider.baseInfoSunModel.phone)) {
|
|
|
|
// Utils.showToast('请填写经理的联系电话');
|
|
|
|
DialogUtil.cupertinoAlertDialog(context,
|
|
|
|
title: "填写个人信息",
|
|
|
|
content: "暂未填写您的联系信息,请先前往填写,个人信息将会展示给您的顾客。",
|
|
|
|
lTitle: "取消",
|
|
|
|
rTitle: "去填写",
|
|
|
|
lCallback: () {}, rCallback: () {
|
|
|
|
_goBaseInfoPage();
|
|
|
|
});
|
|
|
|
return;
|
|
|
|
} else {
|
|
|
|
setState(() {
|
|
|
|
showErroInfo = false;
|
|
...
|
...
|
@@ -3698,13 +3730,22 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
_showConfirmWidget(
|
|
|
|
needWechat: true,
|
|
|
|
callback: () async {
|
|
|
|
// if (ObjectUtil.isEmpty(
|
|
|
|
// _baseIndoProvider.baseInfoSunModel) ||
|
|
|
|
// ObjectUtil.isEmpty(
|
|
|
|
// _baseIndoProvider.baseInfoSunModel.phone)) {
|
|
|
|
// Utils.showToast('请填写经理的联系电话');
|
|
|
|
// return;
|
|
|
|
// }
|
|
|
|
if (ObjectUtil.isEmpty(
|
|
|
|
_baseIndoProvider.baseInfoSunModel) ||
|
|
|
|
ObjectUtil.isEmpty(
|
|
|
|
_baseIndoProvider.baseInfoSunModel.phone)) {
|
|
|
|
// Utils.showToast('请填写经理的联系电话');
|
|
|
|
DialogUtil.cupertinoAlertDialog(context,
|
|
|
|
title: "填写个人信息",
|
|
|
|
content: "暂未填写您的联系信息,请先前往填写,个人信息将会展示给您的顾客。",
|
|
|
|
lTitle: "取消",
|
|
|
|
rTitle: "去填写",
|
|
|
|
lCallback: () {}, rCallback: () {
|
|
|
|
_goBaseInfoPage();
|
|
|
|
});
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (youhui != '选择优惠') {
|
|
|
|
Map<String, String> params = {
|
|
|
|
"rid": widget.rid,
|
|
...
|
...
|
@@ -3749,7 +3790,15 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
_baseIndoProvider.baseInfoSunModel) ||
|
|
|
|
ObjectUtil.isEmpty(
|
|
|
|
_baseIndoProvider.baseInfoSunModel.phone)) {
|
|
|
|
Utils.showToast('请填写经理的联系电话');
|
|
|
|
// Utils.showToast('请填写经理的联系电话');
|
|
|
|
DialogUtil.cupertinoAlertDialog(context,
|
|
|
|
title: "填写个人信息",
|
|
|
|
content: "暂未填写您的联系信息,请先前往填写,个人信息将会展示给您的顾客。",
|
|
|
|
lTitle: "取消",
|
|
|
|
rTitle: "去填写",
|
|
|
|
lCallback: () {}, rCallback: () {
|
|
|
|
_goBaseInfoPage();
|
|
|
|
});
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (youhui != '选择优惠') {
|
...
|
...
|
|