Commit 05ac2f5c3b78f91758657037f826b6d3dc876b5c

Authored by wdn127929
1 parent 82ef8eca

贵宾保存

... ... @@ -548,7 +548,7 @@
CODE_SIGN_ENTITLEMENTS = Runner/RunnerProfile.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 5328;
CURRENT_PROJECT_VERSION = 5329;
DEVELOPMENT_TEAM = 8J59HM8B82;
ENABLE_BITCODE = NO;
FLUTTER_BUILD_MODE = release;
... ... @@ -696,7 +696,7 @@
CODE_SIGN_ENTITLEMENTS = "Runner/一键订Debug.entitlements";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 5328;
CURRENT_PROJECT_VERSION = 5329;
DEVELOPMENT_TEAM = 8J59HM8B82;
ENABLE_BITCODE = NO;
FLUTTER_BUILD_MODE = release;
... ... @@ -732,7 +732,7 @@
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 5328;
CURRENT_PROJECT_VERSION = 5329;
DEVELOPMENT_TEAM = 8J59HM8B82;
ENABLE_BITCODE = NO;
FLUTTER_BUILD_MODE = release;
... ...
... ... @@ -367,8 +367,8 @@ class InvicationPageState extends State<InvicationPage>
//临餐不可以取消
//比较相差的天数
int differenceSeconds = detailModel.detailModelAllSunModel.ddateFhms
int differenceSeconds = detailModel.detailModelAllSunModel.ddateFhms
.difference(DateTime.now())
.inSeconds;
... ... @@ -406,7 +406,7 @@ class InvicationPageState extends State<InvicationPage>
//临餐不可以取消
//比较相差的天数
int differenceSeconds = detailModel.detailModelAllSunModel.ddateFhms
int differenceSeconds = detailModel.detailModelAllSunModel.ddateFhms
.difference(DateTime.now())
.inSeconds;
... ... @@ -485,6 +485,19 @@ class InvicationPageState extends State<InvicationPage>
currentRemark = oldRemark ?? "";
customController.text = oldRemark ?? "";
oldSex = sex;
if (sex != '' && sex != null) {
if (sex == '1') {
sexStr = '先生';
} else if (sex == '2') {
sexStr = '女士';
} else if (sex == '3') {
sexStr = '公司';
} else if (sex == '4') {
sexStr = '贵宾';
}
sexSelectIndex = sexList.indexOf(sexStr);
}
if (nameWidget != ' ' &&
nameWidget != '' &&
nameWidget != null &&
... ... @@ -498,19 +511,10 @@ class InvicationPageState extends State<InvicationPage>
// }
// }
if (sex == '1') {
sexStr = '先生';
} else if (sex == '2') {
sexStr = '女士';
} else if (sex == '3') {
sexStr = '公司';
} else if (sex == '4') {
sexStr = '贵宾';
}
sexSelectIndex = sexList.indexOf(sexStr);
_addNameSuffix(nameStr, sexStr);
// setState(() {});
}
dateTime = DateTime.fromMillisecondsSinceEpoch(int.parse(ddate) * 1000);
dateTimeStr =
"${dateTime.year}年${Utils.addZeroNumber(dateTime.month)}月${Utils.addZeroNumber(dateTime.day)}日 ${detailModel.detailModelAllSunModel.ddate_solt}";
... ... @@ -903,9 +907,9 @@ class InvicationPageState extends State<InvicationPage>
needBack = false;
Navigator.of(context).pop();
}
if (needSex) {
needSex = false;
}
// if (needSex) {
// needSex = false;
// }
// if (needRemark) {
// needRemark = false;
// }
... ... @@ -944,7 +948,7 @@ class InvicationPageState extends State<InvicationPage>
needBlack = false;
}
_updateReserve();
_updateReserve(needSex: needSex);
}
// DialogUtil.cupertinoAlertDialog(context,
// title: "客户信息",
... ... @@ -1385,13 +1389,16 @@ class InvicationPageState extends State<InvicationPage>
}
/// 修改预订人信息
_updateReserve() async {
if ((nameStr == null || nameStr.trim().length == 0) &&
_baseIndoProvider.phoneController.text.replaceAll(' ', '').length ==
0 &&
customController.text.trim().length == 0) {
return;
_updateReserve({needSex = false}) async {
if (!needSex) {
if ((nameStr == null || nameStr.trim().length == 0) &&
_baseIndoProvider.phoneController.text.replaceAll(' ', '').length ==
0 &&
customController.text.trim().length == 0) {
return;
}
}
// if ((nameStr == null || nameStr.trim().length == 0) &&
// _baseIndoProvider.phoneController.text.replaceAll(' ', '').length > 0 &&
// oldName == null) {
... ... @@ -1447,8 +1454,8 @@ class InvicationPageState extends State<InvicationPage>
if (nameStr != null && nameStr.trim().length > 0) {
pramas['rname'] = nameStr;
pramas['sex'] = '${sexList.indexOf(sexStr) + 1}';
}
pramas['sex'] = '${sexList.indexOf(sexStr) + 1}';
if (_baseIndoProvider.phoneController.text.replaceAll(' ', '').length >
0) {
pramas['phone'] =
... ... @@ -2675,8 +2682,8 @@ class InvicationPageState extends State<InvicationPage>
sexStr = sexList[sexSelectIndex];
if (nameStr != null && nameStr != '') {
_addNameSuffix(nameStr, sexStr);
_showConfirmWidget(needSex: true);
}
_showConfirmWidget(needSex: true);
setState(() {});
}
}, selecteds: [sexSelectIndex]).then((value) {});
... ...
... ... @@ -164,7 +164,7 @@ class _CollectStoreInfoPageState extends State<CollectStoreInfoPage> {
child: SingleChildScrollView(
child: Column(
children: [
VEmptyView(210),
VEmptyView(50),
Container(
padding: EdgeInsets.symmetric(
horizontal: w(20), vertical: w(15)),
... ...