|
...
|
...
|
@@ -1060,21 +1060,21 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
customController.text.trim().length == 0) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if ((nameStr == null || nameStr.trim().length == 0) &&
|
|
|
|
_baseIndoProvider.phoneController.text.replaceAll(' ', '').length > 0 &&
|
|
|
|
oldName == null) {
|
|
|
|
Utils.showToast('请输入顾客姓名!');
|
|
|
|
// if ((nameStr == null || nameStr.trim().length == 0) &&
|
|
|
|
// _baseIndoProvider.phoneController.text.replaceAll(' ', '').length > 0 &&
|
|
|
|
// oldName == null) {
|
|
|
|
// Utils.showToast('请输入顾客姓名!');
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if ((nameStr != null && nameStr.trim().length > 0) &&
|
|
|
|
_baseIndoProvider.phoneController.text.replaceAll(' ', '').length ==
|
|
|
|
0 &&
|
|
|
|
oldPhone == null) {
|
|
|
|
Utils.showToast('请输入顾客电话!');
|
|
|
|
// return;
|
|
|
|
// }
|
|
|
|
// if ((nameStr != null && nameStr.trim().length > 0) &&
|
|
|
|
// _baseIndoProvider.phoneController.text.replaceAll(' ', '').length ==
|
|
|
|
// 0 &&
|
|
|
|
// oldPhone == null) {
|
|
|
|
// Utils.showToast('请输入顾客电话!');
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
// return;
|
|
|
|
// }
|
|
|
|
String phone;
|
|
|
|
String name;
|
|
|
|
String sex;
|
|
...
|
...
|
@@ -2119,6 +2119,10 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
});
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (erroInfo == '请正确输入11位手机号码' && showErroInfo) {
|
|
|
|
showErroInfo = false;
|
|
|
|
setState(() {});
|
|
|
|
}
|
|
|
|
Map<String, String> params = {
|
|
|
|
"keywords": value.trim(),
|
|
|
|
"sid": Provider.of<UserModel>(context, listen: false)
|
...
|
...
|
|