|
@@ -180,6 +180,20 @@ class TableManagerPageState extends State<TableManagerPage> { |
|
@@ -180,6 +180,20 @@ class TableManagerPageState extends State<TableManagerPage> { |
|
180
|
///刷新优惠券
|
180
|
///刷新优惠券
|
|
181
|
_couponNetworkData();
|
181
|
_couponNetworkData();
|
|
182
|
});
|
182
|
});
|
|
|
|
183
|
+ if (widget.guest != null) {
|
|
|
|
184
|
+ for (var item in _baseIndoProvider.sexList) {
|
|
|
|
185
|
+ item['select'] = false;
|
|
|
|
186
|
+ if (item['title'] == widget.guest.sexStr) {
|
|
|
|
187
|
+ item['select'] = true;
|
|
|
|
188
|
+ sexSelectIndex = int.parse(item['code']) - 1;
|
|
|
|
189
|
+ sexStr = widget.guest.sexStr;
|
|
|
|
190
|
+ }
|
|
|
|
191
|
+ }
|
|
|
|
192
|
+ _baseIndoProvider.phoneController.text = widget.guest.phone; //预订人电话
|
|
|
|
193
|
+ nameStr = widget.guest.rname;
|
|
|
|
194
|
+ // _homeEnterModel.nameController.text = fullName + _nameSuffix();
|
|
|
|
195
|
+ _addNameSuffix(nameStr, sexStr);
|
|
|
|
196
|
+ }
|
|
183
|
});
|
197
|
});
|
|
184
|
}
|
198
|
}
|
|
185
|
|
199
|
|
|
@@ -2407,24 +2421,25 @@ class TableManagerPageState extends State<TableManagerPage> { |
|
@@ -2407,24 +2421,25 @@ class TableManagerPageState extends State<TableManagerPage> { |
|
2407
|
null,
|
2421
|
null,
|
|
2408
|
null,
|
2422
|
null,
|
|
2409
|
null);
|
2423
|
null);
|
|
2410
|
- if (widget.guest == null) {
|
|
|
|
2411
|
- guest.phone = _baseIndoProvider
|
|
|
|
2412
|
- .phoneController.text
|
|
|
|
2413
|
- .replaceAll(' ', ''); //预订人电话
|
|
|
|
2414
|
-
|
|
|
|
2415
|
- if (nameStr != null &&
|
|
|
|
2416
|
- nameStr.trim().length > 0) {
|
|
|
|
2417
|
- String sex = '1';
|
|
|
|
2418
|
- if (sexStr == '女士') {
|
|
|
|
2419
|
- sex = '2';
|
|
|
|
2420
|
- } else if (sexStr == '公司') {
|
|
|
|
2421
|
- sex = '3';
|
|
|
|
2422
|
- }
|
|
|
|
2423
|
- guest.rname = nameStr; //预订人姓名
|
|
|
|
2424
|
- guest.sex = sex; //预订人性别:1:男 2:女
|
|
|
|
2425
|
-
|
2424
|
+ // if (widget.guest == null) {
|
|
|
|
2425
|
+
|
|
|
|
2426
|
+ guest.phone = _baseIndoProvider
|
|
|
|
2427
|
+ .phoneController.text
|
|
|
|
2428
|
+ .replaceAll(' ', ''); //预订人电话
|
|
|
|
2429
|
+
|
|
|
|
2430
|
+ if (nameStr != null &&
|
|
|
|
2431
|
+ nameStr.trim().length > 0) {
|
|
|
|
2432
|
+ String sex = '1';
|
|
|
|
2433
|
+ if (sexStr == '女士') {
|
|
|
|
2434
|
+ sex = '2';
|
|
|
|
2435
|
+ } else if (sexStr == '公司') {
|
|
|
|
2436
|
+ sex = '3';
|
|
2426
|
}
|
2437
|
}
|
|
|
|
2438
|
+ guest.rname = nameStr; //预订人姓名
|
|
|
|
2439
|
+ guest.sex = sex; //预订人性别:1:男 2:女
|
|
|
|
2440
|
+
|
|
2427
|
}
|
2441
|
}
|
|
|
|
2442
|
+ // }
|
|
2428
|
String pnum;
|
2443
|
String pnum;
|
|
2429
|
if (pnumController.text != '') {
|
2444
|
if (pnumController.text != '') {
|
|
2430
|
pnum = pnumController.text;
|
2445
|
pnum = pnumController.text;
|
|
@@ -2441,9 +2456,7 @@ class TableManagerPageState extends State<TableManagerPage> { |
|
@@ -2441,9 +2456,7 @@ class TableManagerPageState extends State<TableManagerPage> { |
|
2441
|
cusdem: cusdem,
|
2456
|
cusdem: cusdem,
|
|
2442
|
tempTime:
|
2457
|
tempTime:
|
|
2443
|
ddateHm == '选填' ? null : ddateHm,
|
2458
|
ddateHm == '选填' ? null : ddateHm,
|
|
2444
|
- guest: widget.guest == null
|
|
|
|
2445
|
- ? guest
|
|
|
|
2446
|
- : widget.guest);
|
2459
|
+ guest: guest);
|
|
2447
|
if (_model != null &&
|
2460
|
if (_model != null &&
|
|
2448
|
ObjectUtil.isNotEmpty(_model.row) &&
|
2461
|
ObjectUtil.isNotEmpty(_model.row) &&
|
|
2449
|
ObjectUtil.isNotEmpty(_model.row.id)) {
|
2462
|
ObjectUtil.isNotEmpty(_model.row.id)) {
|