Showing
4 changed files
with
40 additions
and
25 deletions
| @@ -52,6 +52,8 @@ PODS: | @@ -52,6 +52,8 @@ PODS: | ||
| 52 | - flutter_inappwebview/Core (0.0.1): | 52 | - flutter_inappwebview/Core (0.0.1): |
| 53 | - Flutter | 53 | - Flutter |
| 54 | - OrderedSet (~> 5.0) | 54 | - OrderedSet (~> 5.0) |
| 55 | + - flutter_keyboard_visibility (0.0.1): | ||
| 56 | + - Flutter | ||
| 55 | - flutter_native_image (0.0.1): | 57 | - flutter_native_image (0.0.1): |
| 56 | - Flutter | 58 | - Flutter |
| 57 | - flutter_sms (1.1.0): | 59 | - flutter_sms (1.1.0): |
| @@ -126,6 +128,7 @@ DEPENDENCIES: | @@ -126,6 +128,7 @@ DEPENDENCIES: | ||
| 126 | - flutter_app_update (from `.symlinks/plugins/flutter_app_update/ios`) | 128 | - flutter_app_update (from `.symlinks/plugins/flutter_app_update/ios`) |
| 127 | - flutter_bugly (from `.symlinks/plugins/flutter_bugly/ios`) | 129 | - flutter_bugly (from `.symlinks/plugins/flutter_bugly/ios`) |
| 128 | - flutter_inappwebview (from `.symlinks/plugins/flutter_inappwebview/ios`) | 130 | - flutter_inappwebview (from `.symlinks/plugins/flutter_inappwebview/ios`) |
| 131 | + - flutter_keyboard_visibility (from `.symlinks/plugins/flutter_keyboard_visibility/ios`) | ||
| 129 | - flutter_native_image (from `.symlinks/plugins/flutter_native_image/ios`) | 132 | - flutter_native_image (from `.symlinks/plugins/flutter_native_image/ios`) |
| 130 | - flutter_sms (from `.symlinks/plugins/flutter_sms/ios`) | 133 | - flutter_sms (from `.symlinks/plugins/flutter_sms/ios`) |
| 131 | - flutter_statusbarcolor (from `.symlinks/plugins/flutter_statusbarcolor/ios`) | 134 | - flutter_statusbarcolor (from `.symlinks/plugins/flutter_statusbarcolor/ios`) |
| @@ -194,6 +197,8 @@ EXTERNAL SOURCES: | @@ -194,6 +197,8 @@ EXTERNAL SOURCES: | ||
| 194 | :path: ".symlinks/plugins/flutter_bugly/ios" | 197 | :path: ".symlinks/plugins/flutter_bugly/ios" |
| 195 | flutter_inappwebview: | 198 | flutter_inappwebview: |
| 196 | :path: ".symlinks/plugins/flutter_inappwebview/ios" | 199 | :path: ".symlinks/plugins/flutter_inappwebview/ios" |
| 200 | + flutter_keyboard_visibility: | ||
| 201 | + :path: ".symlinks/plugins/flutter_keyboard_visibility/ios" | ||
| 197 | flutter_native_image: | 202 | flutter_native_image: |
| 198 | :path: ".symlinks/plugins/flutter_native_image/ios" | 203 | :path: ".symlinks/plugins/flutter_native_image/ios" |
| 199 | flutter_sms: | 204 | flutter_sms: |
| @@ -260,6 +265,7 @@ SPEC CHECKSUMS: | @@ -260,6 +265,7 @@ SPEC CHECKSUMS: | ||
| 260 | flutter_app_update: 65f61da626cb111d1b24674abc4b01728d7723bc | 265 | flutter_app_update: 65f61da626cb111d1b24674abc4b01728d7723bc |
| 261 | flutter_bugly: c9800f4d5bc5bdc27ffdde3417a26ba44266e0c3 | 266 | flutter_bugly: c9800f4d5bc5bdc27ffdde3417a26ba44266e0c3 |
| 262 | flutter_inappwebview: bfd58618f49dc62f2676de690fc6dcda1d6c3721 | 267 | flutter_inappwebview: bfd58618f49dc62f2676de690fc6dcda1d6c3721 |
| 268 | + flutter_keyboard_visibility: 0339d06371254c3eb25eeb90ba8d17dca8f9c069 | ||
| 263 | flutter_native_image: 9c0b7451838484458e5b0fae007b86a4c2d4bdfe | 269 | flutter_native_image: 9c0b7451838484458e5b0fae007b86a4c2d4bdfe |
| 264 | flutter_sms: 91ce41530f55c85d6524d82307a5d555844c086a | 270 | flutter_sms: 91ce41530f55c85d6524d82307a5d555844c086a |
| 265 | flutter_statusbarcolor: 8afb1071ed8c58be929f1e32b36c629771fd2259 | 271 | flutter_statusbarcolor: 8afb1071ed8c58be929f1e32b36c629771fd2259 |
| @@ -312,6 +312,7 @@ | @@ -312,6 +312,7 @@ | ||
| 312 | "${BUILT_PRODUCTS_DIR}/flutter_app_badger/flutter_app_badger.framework", | 312 | "${BUILT_PRODUCTS_DIR}/flutter_app_badger/flutter_app_badger.framework", |
| 313 | "${BUILT_PRODUCTS_DIR}/flutter_app_update/flutter_app_update.framework", | 313 | "${BUILT_PRODUCTS_DIR}/flutter_app_update/flutter_app_update.framework", |
| 314 | "${BUILT_PRODUCTS_DIR}/flutter_inappwebview/flutter_inappwebview.framework", | 314 | "${BUILT_PRODUCTS_DIR}/flutter_inappwebview/flutter_inappwebview.framework", |
| 315 | + "${BUILT_PRODUCTS_DIR}/flutter_keyboard_visibility/flutter_keyboard_visibility.framework", | ||
| 315 | "${BUILT_PRODUCTS_DIR}/flutter_native_image/flutter_native_image.framework", | 316 | "${BUILT_PRODUCTS_DIR}/flutter_native_image/flutter_native_image.framework", |
| 316 | "${BUILT_PRODUCTS_DIR}/flutter_sms/flutter_sms.framework", | 317 | "${BUILT_PRODUCTS_DIR}/flutter_sms/flutter_sms.framework", |
| 317 | "${BUILT_PRODUCTS_DIR}/flutter_statusbarcolor/flutter_statusbarcolor.framework", | 318 | "${BUILT_PRODUCTS_DIR}/flutter_statusbarcolor/flutter_statusbarcolor.framework", |
| @@ -345,6 +346,7 @@ | @@ -345,6 +346,7 @@ | ||
| 345 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_app_badger.framework", | 346 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_app_badger.framework", |
| 346 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_app_update.framework", | 347 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_app_update.framework", |
| 347 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_inappwebview.framework", | 348 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_inappwebview.framework", |
| 349 | + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_keyboard_visibility.framework", | ||
| 348 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_native_image.framework", | 350 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_native_image.framework", |
| 349 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_sms.framework", | 351 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_sms.framework", |
| 350 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_statusbarcolor.framework", | 352 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_statusbarcolor.framework", |
| @@ -487,7 +489,7 @@ | @@ -487,7 +489,7 @@ | ||
| 487 | CODE_SIGN_IDENTITY = "iPhone Developer"; | 489 | CODE_SIGN_IDENTITY = "iPhone Developer"; |
| 488 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; | 490 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; |
| 489 | CODE_SIGN_STYLE = Automatic; | 491 | CODE_SIGN_STYLE = Automatic; |
| 490 | - CURRENT_PROJECT_VERSION = 393; | 492 | + CURRENT_PROJECT_VERSION = 400; |
| 491 | DEVELOPMENT_TEAM = 8J59HM8B82; | 493 | DEVELOPMENT_TEAM = 8J59HM8B82; |
| 492 | ENABLE_BITCODE = NO; | 494 | ENABLE_BITCODE = NO; |
| 493 | FLUTTER_BUILD_MODE = release; | 495 | FLUTTER_BUILD_MODE = release; |
| @@ -502,7 +504,7 @@ | @@ -502,7 +504,7 @@ | ||
| 502 | "$(inherited)", | 504 | "$(inherited)", |
| 503 | "$(PROJECT_DIR)/Flutter", | 505 | "$(PROJECT_DIR)/Flutter", |
| 504 | ); | 506 | ); |
| 505 | - MARKETING_VERSION = 3.9.3; | 507 | + MARKETING_VERSION = 4.0.3; |
| 506 | PRODUCT_BUNDLE_IDENTIFIER = com.naji.reserveLine; | 508 | PRODUCT_BUNDLE_IDENTIFIER = com.naji.reserveLine; |
| 507 | PRODUCT_NAME = Runner; | 509 | PRODUCT_NAME = Runner; |
| 508 | PROVISIONING_PROFILE_SPECIFIER = ""; | 510 | PROVISIONING_PROFILE_SPECIFIER = ""; |
| @@ -633,7 +635,7 @@ | @@ -633,7 +635,7 @@ | ||
| 633 | CODE_SIGN_ENTITLEMENTS = "Runner/一键订Debug.entitlements"; | 635 | CODE_SIGN_ENTITLEMENTS = "Runner/一键订Debug.entitlements"; |
| 634 | CODE_SIGN_IDENTITY = "iPhone Developer"; | 636 | CODE_SIGN_IDENTITY = "iPhone Developer"; |
| 635 | CODE_SIGN_STYLE = Automatic; | 637 | CODE_SIGN_STYLE = Automatic; |
| 636 | - CURRENT_PROJECT_VERSION = 393; | 638 | + CURRENT_PROJECT_VERSION = 400; |
| 637 | DEVELOPMENT_TEAM = 8J59HM8B82; | 639 | DEVELOPMENT_TEAM = 8J59HM8B82; |
| 638 | ENABLE_BITCODE = NO; | 640 | ENABLE_BITCODE = NO; |
| 639 | FLUTTER_BUILD_MODE = debug; | 641 | FLUTTER_BUILD_MODE = debug; |
| @@ -648,7 +650,7 @@ | @@ -648,7 +650,7 @@ | ||
| 648 | "$(inherited)", | 650 | "$(inherited)", |
| 649 | "$(PROJECT_DIR)/Flutter", | 651 | "$(PROJECT_DIR)/Flutter", |
| 650 | ); | 652 | ); |
| 651 | - MARKETING_VERSION = 3.9.3; | 653 | + MARKETING_VERSION = 4.0.3; |
| 652 | PRODUCT_BUNDLE_IDENTIFIER = com.naji.reserveLine; | 654 | PRODUCT_BUNDLE_IDENTIFIER = com.naji.reserveLine; |
| 653 | PRODUCT_NAME = Runner; | 655 | PRODUCT_NAME = Runner; |
| 654 | PROVISIONING_PROFILE_SPECIFIER = ""; | 656 | PROVISIONING_PROFILE_SPECIFIER = ""; |
| @@ -669,7 +671,7 @@ | @@ -669,7 +671,7 @@ | ||
| 669 | CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; | 671 | CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; |
| 670 | CODE_SIGN_IDENTITY = "iPhone Developer"; | 672 | CODE_SIGN_IDENTITY = "iPhone Developer"; |
| 671 | CODE_SIGN_STYLE = Automatic; | 673 | CODE_SIGN_STYLE = Automatic; |
| 672 | - CURRENT_PROJECT_VERSION = 393; | 674 | + CURRENT_PROJECT_VERSION = 400; |
| 673 | DEVELOPMENT_TEAM = 8J59HM8B82; | 675 | DEVELOPMENT_TEAM = 8J59HM8B82; |
| 674 | ENABLE_BITCODE = NO; | 676 | ENABLE_BITCODE = NO; |
| 675 | FLUTTER_BUILD_MODE = release; | 677 | FLUTTER_BUILD_MODE = release; |
| @@ -684,7 +686,7 @@ | @@ -684,7 +686,7 @@ | ||
| 684 | "$(inherited)", | 686 | "$(inherited)", |
| 685 | "$(PROJECT_DIR)/Flutter", | 687 | "$(PROJECT_DIR)/Flutter", |
| 686 | ); | 688 | ); |
| 687 | - MARKETING_VERSION = 3.9.3; | 689 | + MARKETING_VERSION = 4.0.3; |
| 688 | PRODUCT_BUNDLE_IDENTIFIER = com.naji.reserveLine; | 690 | PRODUCT_BUNDLE_IDENTIFIER = com.naji.reserveLine; |
| 689 | PRODUCT_NAME = Runner; | 691 | PRODUCT_NAME = Runner; |
| 690 | PROVISIONING_PROFILE_SPECIFIER = ""; | 692 | PROVISIONING_PROFILE_SPECIFIER = ""; |
| @@ -296,7 +296,7 @@ class InvicationPageState extends State<InvicationPage> | @@ -296,7 +296,7 @@ class InvicationPageState extends State<InvicationPage> | ||
| 296 | String sex = ''; | 296 | String sex = ''; |
| 297 | String remark = ''; | 297 | String remark = ''; |
| 298 | if (_baseIndoProvider.phoneController.text.trim().length > 0) { | 298 | if (_baseIndoProvider.phoneController.text.trim().length > 0) { |
| 299 | - phone = _baseIndoProvider.phoneController.text; | 299 | + phone = _baseIndoProvider.phoneController.text.replaceAll(' ', ''); |
| 300 | } | 300 | } |
| 301 | if (customController.text.trim().length > 0) { | 301 | if (customController.text.trim().length > 0) { |
| 302 | remark = customController.text; | 302 | remark = customController.text; |
| @@ -332,6 +332,7 @@ class InvicationPageState extends State<InvicationPage> | @@ -332,6 +332,7 @@ class InvicationPageState extends State<InvicationPage> | ||
| 332 | _baseIndoProvider.phoneController.text = | 332 | _baseIndoProvider.phoneController.text = |
| 333 | _baseIndoProvider.userHistorys[index].phone != null | 333 | _baseIndoProvider.userHistorys[index].phone != null |
| 334 | ? _baseIndoProvider.userHistorys[index].phone | 334 | ? _baseIndoProvider.userHistorys[index].phone |
| 335 | + .replaceAll(' ', '') | ||
| 335 | : ''; | 336 | : ''; |
| 336 | // _homeEnterModel.nameController.text = | 337 | // _homeEnterModel.nameController.text = |
| 337 | // _homeEnterModel | 338 | // _homeEnterModel |
| @@ -756,7 +757,8 @@ class InvicationPageState extends State<InvicationPage> | @@ -756,7 +757,8 @@ class InvicationPageState extends State<InvicationPage> | ||
| 756 | /// 修改预订人信息 | 757 | /// 修改预订人信息 |
| 757 | _updateReserve() async { | 758 | _updateReserve() async { |
| 758 | if ((nameStr == null || nameStr.trim().length == 0) && | 759 | if ((nameStr == null || nameStr.trim().length == 0) && |
| 759 | - _baseIndoProvider.phoneController.text.trim().length == 0 && | 760 | + _baseIndoProvider.phoneController.text.replaceAll(' ', '').length == |
| 761 | + 0 && | ||
| 760 | customController.text.trim().length == 0) { | 762 | customController.text.trim().length == 0) { |
| 761 | return; | 763 | return; |
| 762 | } | 764 | } |
| @@ -764,8 +766,8 @@ class InvicationPageState extends State<InvicationPage> | @@ -764,8 +766,8 @@ class InvicationPageState extends State<InvicationPage> | ||
| 764 | String name; | 766 | String name; |
| 765 | String sex; | 767 | String sex; |
| 766 | String remark; | 768 | String remark; |
| 767 | - if (_baseIndoProvider.phoneController.text.trim().length > 0) { | ||
| 768 | - phone = _baseIndoProvider.phoneController.text; | 769 | + if (_baseIndoProvider.phoneController.text.replaceAll(' ', '').length > 0) { |
| 770 | + phone = _baseIndoProvider.phoneController.text.replaceAll(' ', ''); | ||
| 769 | } | 771 | } |
| 770 | if (nameStr != null && nameStr.trim().length > 0) { | 772 | if (nameStr != null && nameStr.trim().length > 0) { |
| 771 | name = nameStr; | 773 | name = nameStr; |
| @@ -789,7 +791,7 @@ class InvicationPageState extends State<InvicationPage> | @@ -789,7 +791,7 @@ class InvicationPageState extends State<InvicationPage> | ||
| 789 | bus.emit("refresh_detail"); | 791 | bus.emit("refresh_detail"); |
| 790 | } else { | 792 | } else { |
| 791 | reserverPhone = oldPhone; | 793 | reserverPhone = oldPhone; |
| 792 | - _baseIndoProvider.phoneController.text = oldPhone; | 794 | + _baseIndoProvider.phoneController.text = oldPhone.replaceAll(' ', ''); |
| 793 | customController.text = oldRemark; | 795 | customController.text = oldRemark; |
| 794 | // oldName = nameStr; | 796 | // oldName = nameStr; |
| 795 | // reserverPhone = oldPhone; | 797 | // reserverPhone = oldPhone; |
| @@ -836,7 +838,7 @@ class InvicationPageState extends State<InvicationPage> | @@ -836,7 +838,7 @@ class InvicationPageState extends State<InvicationPage> | ||
| 836 | ddate = detailEntity.ddate; | 838 | ddate = detailEntity.ddate; |
| 837 | ddateStr = detailEntity.ddateStr; | 839 | ddateStr = detailEntity.ddateStr; |
| 838 | reserverPhone = detailEntity.phone; | 840 | reserverPhone = detailEntity.phone; |
| 839 | - _baseIndoProvider.phoneController.text = reserverPhone; | 841 | + _baseIndoProvider.phoneController.text = reserverPhone.replaceAll(' ', ''); |
| 840 | dateSolt = detailEntity.ddate_solt; | 842 | dateSolt = detailEntity.ddate_solt; |
| 841 | nameWidget = detailEntity.rname == null ? '' : detailEntity.rname; | 843 | nameWidget = detailEntity.rname == null ? '' : detailEntity.rname; |
| 842 | sex = detailEntity.sex == null ? '' : detailEntity.sex; | 844 | sex = detailEntity.sex == null ? '' : detailEntity.sex; |
| @@ -1634,7 +1636,8 @@ class InvicationPageState extends State<InvicationPage> | @@ -1634,7 +1636,8 @@ class InvicationPageState extends State<InvicationPage> | ||
| 1634 | border: OutlineInputBorder(borderSide: BorderSide.none), | 1636 | border: OutlineInputBorder(borderSide: BorderSide.none), |
| 1635 | ), | 1637 | ), |
| 1636 | onChanged: (value) { | 1638 | onChanged: (value) { |
| 1637 | - if (value.isEmpty || value.length > 11) { | 1639 | + print(value); |
| 1640 | + if (value.trim().isEmpty || value.trim().length > 11) { | ||
| 1638 | //内容为空,或 超过11位 | 1641 | //内容为空,或 超过11位 |
| 1639 | setState(() { | 1642 | setState(() { |
| 1640 | _baseIndoProvider.userHistorys.clear(); | 1643 | _baseIndoProvider.userHistorys.clear(); |
| @@ -1642,7 +1645,7 @@ class InvicationPageState extends State<InvicationPage> | @@ -1642,7 +1645,7 @@ class InvicationPageState extends State<InvicationPage> | ||
| 1642 | return; | 1645 | return; |
| 1643 | } | 1646 | } |
| 1644 | Map<String, String> params = { | 1647 | Map<String, String> params = { |
| 1645 | - "keywords": value, | 1648 | + "keywords": value.trim(), |
| 1646 | "sid": Provider.of<UserModel>(context, listen: false) | 1649 | "sid": Provider.of<UserModel>(context, listen: false) |
| 1647 | .user | 1650 | .user |
| 1648 | .sellerid, | 1651 | .sellerid, |
| @@ -1667,7 +1670,7 @@ class InvicationPageState extends State<InvicationPage> | @@ -1667,7 +1670,7 @@ class InvicationPageState extends State<InvicationPage> | ||
| 1667 | _openAddressBook(); | 1670 | _openAddressBook(); |
| 1668 | }, | 1671 | }, |
| 1669 | child: Container( | 1672 | child: Container( |
| 1670 | - width: ScreenUtil().setWidth(84) * 3, | 1673 | + width: ScreenUtil().setWidth(74) * 2, |
| 1671 | height: ScreenUtil().setWidth(48), | 1674 | height: ScreenUtil().setWidth(48), |
| 1672 | alignment: Alignment.centerRight, | 1675 | alignment: Alignment.centerRight, |
| 1673 | child: Text('一键录入', | 1676 | child: Text('一键录入', |
| @@ -2950,6 +2953,7 @@ class InvicationPageState extends State<InvicationPage> | @@ -2950,6 +2953,7 @@ class InvicationPageState extends State<InvicationPage> | ||
| 2950 | borderSide: BorderSide.none), | 2953 | borderSide: BorderSide.none), |
| 2951 | ), | 2954 | ), |
| 2952 | onChanged: (value) { | 2955 | onChanged: (value) { |
| 2956 | + print(value); | ||
| 2953 | if (value.isEmpty || value.length > 11) { | 2957 | if (value.isEmpty || value.length > 11) { |
| 2954 | //内容为空,或 超过11位 | 2958 | //内容为空,或 超过11位 |
| 2955 | setState(() { | 2959 | setState(() { |
| @@ -3331,8 +3335,9 @@ class InvicationPageState extends State<InvicationPage> | @@ -3331,8 +3335,9 @@ class InvicationPageState extends State<InvicationPage> | ||
| 3331 | } else { | 3335 | } else { |
| 3332 | fullName = contact.fullName; | 3336 | fullName = contact.fullName; |
| 3333 | } | 3337 | } |
| 3334 | - _baseIndoProvider.phoneController.text = | ||
| 3335 | - contact.phoneNumber.replaceAll(new RegExp(r"\s+"), ""); | 3338 | + _baseIndoProvider.phoneController.text = contact.phoneNumber |
| 3339 | + .replaceAll(new RegExp(r"\s+"), "") | ||
| 3340 | + .replaceAll(' ', ''); | ||
| 3336 | nameStr = fullName; | 3341 | nameStr = fullName; |
| 3337 | // _homeEnterModel.nameController.text = fullName + _nameSuffix(); | 3342 | // _homeEnterModel.nameController.text = fullName + _nameSuffix(); |
| 3338 | _addNameSuffix(fullName, sexStr); | 3343 | _addNameSuffix(fullName, sexStr); |
| @@ -520,8 +520,9 @@ class TableManagerPageState extends State<TableManagerPage> { | @@ -520,8 +520,9 @@ class TableManagerPageState extends State<TableManagerPage> { | ||
| 520 | } else { | 520 | } else { |
| 521 | fullName = contact.fullName; | 521 | fullName = contact.fullName; |
| 522 | } | 522 | } |
| 523 | - _baseIndoProvider.phoneController.text = | ||
| 524 | - contact.phoneNumber.replaceAll(new RegExp(r"\s+"), ""); | 523 | + _baseIndoProvider.phoneController.text = contact.phoneNumber |
| 524 | + .replaceAll(new RegExp(r"\s+"), "") | ||
| 525 | + .replaceAll(' ', ''); | ||
| 525 | nameStr = fullName; | 526 | nameStr = fullName; |
| 526 | // _homeEnterModel.nameController.text = fullName + _nameSuffix(); | 527 | // _homeEnterModel.nameController.text = fullName + _nameSuffix(); |
| 527 | _addNameSuffix(fullName, sexStr); | 528 | _addNameSuffix(fullName, sexStr); |
| @@ -754,7 +755,7 @@ class TableManagerPageState extends State<TableManagerPage> { | @@ -754,7 +755,7 @@ class TableManagerPageState extends State<TableManagerPage> { | ||
| 754 | _openAddressBook(); | 755 | _openAddressBook(); |
| 755 | }, | 756 | }, |
| 756 | child: Container( | 757 | child: Container( |
| 757 | - width: ScreenUtil().setWidth(84) * 3, | 758 | + width: ScreenUtil().setWidth(74) * 2, |
| 758 | height: ScreenUtil().setWidth(48), | 759 | height: ScreenUtil().setWidth(48), |
| 759 | alignment: Alignment.centerRight, | 760 | alignment: Alignment.centerRight, |
| 760 | child: Text('一键录入', | 761 | child: Text('一键录入', |
| @@ -1905,10 +1906,11 @@ class TableManagerPageState extends State<TableManagerPage> { | @@ -1905,10 +1906,11 @@ class TableManagerPageState extends State<TableManagerPage> { | ||
| 1905 | return; | 1906 | return; |
| 1906 | } | 1907 | } |
| 1907 | if ((_baseIndoProvider.phoneController.text | 1908 | if ((_baseIndoProvider.phoneController.text |
| 1908 | - .trim() | 1909 | + .replaceAll(' ', '') |
| 1909 | .isEmpty || | 1910 | .isEmpty || |
| 1910 | - !Utils.phoneRegExp( | ||
| 1911 | - _baseIndoProvider.phoneController.text))) { | 1911 | + !Utils.phoneRegExp(_baseIndoProvider |
| 1912 | + .phoneController.text | ||
| 1913 | + .replaceAll(' ', '')))) { | ||
| 1912 | setState(() { | 1914 | setState(() { |
| 1913 | showErro = '请输入正确的11位手机号码'; | 1915 | showErro = '请输入正确的11位手机号码'; |
| 1914 | }); | 1916 | }); |
| @@ -1981,8 +1983,8 @@ class TableManagerPageState extends State<TableManagerPage> { | @@ -1981,8 +1983,8 @@ class TableManagerPageState extends State<TableManagerPage> { | ||
| 1981 | null, | 1983 | null, |
| 1982 | null); | 1984 | null); |
| 1983 | if (widget.guest == null) { | 1985 | if (widget.guest == null) { |
| 1984 | - guest.phone = | ||
| 1985 | - _baseIndoProvider.phoneController.text; //预订人电话 | 1986 | + guest.phone = _baseIndoProvider.phoneController.text |
| 1987 | + .replaceAll(' ', ''); //预订人电话 | ||
| 1986 | 1988 | ||
| 1987 | if (nameStr != null && nameStr.trim().length > 0) { | 1989 | if (nameStr != null && nameStr.trim().length > 0) { |
| 1988 | String sex = '1'; | 1990 | String sex = '1'; |
-
Please register or login to post a comment