|
...
|
...
|
@@ -296,7 +296,7 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
String sex = '';
|
|
|
|
String remark = '';
|
|
|
|
if (_baseIndoProvider.phoneController.text.trim().length > 0) {
|
|
|
|
phone = _baseIndoProvider.phoneController.text;
|
|
|
|
phone = _baseIndoProvider.phoneController.text.replaceAll(' ', '');
|
|
|
|
}
|
|
|
|
if (customController.text.trim().length > 0) {
|
|
|
|
remark = customController.text;
|
|
...
|
...
|
@@ -332,6 +332,7 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
_baseIndoProvider.phoneController.text =
|
|
|
|
_baseIndoProvider.userHistorys[index].phone != null
|
|
|
|
? _baseIndoProvider.userHistorys[index].phone
|
|
|
|
.replaceAll(' ', '')
|
|
|
|
: '';
|
|
|
|
// _homeEnterModel.nameController.text =
|
|
|
|
// _homeEnterModel
|
|
...
|
...
|
@@ -756,7 +757,8 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
/// 修改预订人信息
|
|
|
|
_updateReserve() async {
|
|
|
|
if ((nameStr == null || nameStr.trim().length == 0) &&
|
|
|
|
_baseIndoProvider.phoneController.text.trim().length == 0 &&
|
|
|
|
_baseIndoProvider.phoneController.text.replaceAll(' ', '').length ==
|
|
|
|
0 &&
|
|
|
|
customController.text.trim().length == 0) {
|
|
|
|
return;
|
|
|
|
}
|
|
...
|
...
|
@@ -764,8 +766,8 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
String name;
|
|
|
|
String sex;
|
|
|
|
String remark;
|
|
|
|
if (_baseIndoProvider.phoneController.text.trim().length > 0) {
|
|
|
|
phone = _baseIndoProvider.phoneController.text;
|
|
|
|
if (_baseIndoProvider.phoneController.text.replaceAll(' ', '').length > 0) {
|
|
|
|
phone = _baseIndoProvider.phoneController.text.replaceAll(' ', '');
|
|
|
|
}
|
|
|
|
if (nameStr != null && nameStr.trim().length > 0) {
|
|
|
|
name = nameStr;
|
|
...
|
...
|
@@ -789,7 +791,7 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
bus.emit("refresh_detail");
|
|
|
|
} else {
|
|
|
|
reserverPhone = oldPhone;
|
|
|
|
_baseIndoProvider.phoneController.text = oldPhone;
|
|
|
|
_baseIndoProvider.phoneController.text = oldPhone.replaceAll(' ', '');
|
|
|
|
customController.text = oldRemark;
|
|
|
|
// oldName = nameStr;
|
|
|
|
// reserverPhone = oldPhone;
|
|
...
|
...
|
@@ -836,7 +838,7 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
ddate = detailEntity.ddate;
|
|
|
|
ddateStr = detailEntity.ddateStr;
|
|
|
|
reserverPhone = detailEntity.phone;
|
|
|
|
_baseIndoProvider.phoneController.text = reserverPhone;
|
|
|
|
_baseIndoProvider.phoneController.text = reserverPhone.replaceAll(' ', '');
|
|
|
|
dateSolt = detailEntity.ddate_solt;
|
|
|
|
nameWidget = detailEntity.rname == null ? '' : detailEntity.rname;
|
|
|
|
sex = detailEntity.sex == null ? '' : detailEntity.sex;
|
|
...
|
...
|
@@ -1634,7 +1636,8 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
border: OutlineInputBorder(borderSide: BorderSide.none),
|
|
|
|
),
|
|
|
|
onChanged: (value) {
|
|
|
|
if (value.isEmpty || value.length > 11) {
|
|
|
|
print(value);
|
|
|
|
if (value.trim().isEmpty || value.trim().length > 11) {
|
|
|
|
//内容为空,或 超过11位
|
|
|
|
setState(() {
|
|
|
|
_baseIndoProvider.userHistorys.clear();
|
|
...
|
...
|
@@ -1642,7 +1645,7 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
return;
|
|
|
|
}
|
|
|
|
Map<String, String> params = {
|
|
|
|
"keywords": value,
|
|
|
|
"keywords": value.trim(),
|
|
|
|
"sid": Provider.of<UserModel>(context, listen: false)
|
|
|
|
.user
|
|
|
|
.sellerid,
|
|
...
|
...
|
@@ -1667,7 +1670,7 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
_openAddressBook();
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
width: ScreenUtil().setWidth(84) * 3,
|
|
|
|
width: ScreenUtil().setWidth(74) * 2,
|
|
|
|
height: ScreenUtil().setWidth(48),
|
|
|
|
alignment: Alignment.centerRight,
|
|
|
|
child: Text('一键录入',
|
|
...
|
...
|
@@ -2950,6 +2953,7 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
borderSide: BorderSide.none),
|
|
|
|
),
|
|
|
|
onChanged: (value) {
|
|
|
|
print(value);
|
|
|
|
if (value.isEmpty || value.length > 11) {
|
|
|
|
//内容为空,或 超过11位
|
|
|
|
setState(() {
|
|
...
|
...
|
@@ -3331,8 +3335,9 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
} else {
|
|
|
|
fullName = contact.fullName;
|
|
|
|
}
|
|
|
|
_baseIndoProvider.phoneController.text =
|
|
|
|
contact.phoneNumber.replaceAll(new RegExp(r"\s+"), "");
|
|
|
|
_baseIndoProvider.phoneController.text = contact.phoneNumber
|
|
|
|
.replaceAll(new RegExp(r"\s+"), "")
|
|
|
|
.replaceAll(' ', '');
|
|
|
|
nameStr = fullName;
|
|
|
|
// _homeEnterModel.nameController.text = fullName + _nameSuffix();
|
|
|
|
_addNameSuffix(fullName, sexStr);
|
...
|
...
|
|