|
...
|
...
|
@@ -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) {});
|
...
|
...
|
|