|
@@ -1429,6 +1429,8 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
@@ -1429,6 +1429,8 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
1429
|
.selectNum);
|
1429
|
.selectNum);
|
|
1430
|
|
1430
|
|
|
1431
|
if (sucess) {
|
1431
|
if (sucess) {
|
|
|
|
1432
|
+ EventBus().emit(
|
|
|
|
1433
|
+ "refresh_tablemanager"); //刷新桌位
|
|
1432
|
await _getReserveDetail(
|
1434
|
await _getReserveDetail(
|
|
1433
|
showCicle:
|
1435
|
showCicle:
|
|
1434
|
false);
|
1436
|
false);
|
|
@@ -2192,6 +2194,7 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
@@ -2192,6 +2194,7 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
2192
|
sex: sex,
|
2194
|
sex: sex,
|
|
2193
|
phone: detailModel.phoneController.text);
|
2195
|
phone: detailModel.phoneController.text);
|
|
2194
|
if (sucess) {
|
2196
|
if (sucess) {
|
|
|
|
2197
|
+ EventBus().emit("refresh_tablemanager"); //刷新桌位
|
|
2195
|
await _getReserveDetail(showCicle: true);
|
2198
|
await _getReserveDetail(showCicle: true);
|
|
2196
|
setState(() {
|
2199
|
setState(() {
|
|
2197
|
setTop = false;
|
2200
|
setTop = false;
|
|
@@ -2273,10 +2276,11 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
@@ -2273,10 +2276,11 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
2273
|
detailModel.userHistorys[index].phone,
|
2276
|
detailModel.userHistorys[index].phone,
|
|
2274
|
style: TextStyle(color: MyColours.color_333333, fontSize: ScreenUtil().setSp(32)),
|
2277
|
style: TextStyle(color: MyColours.color_333333, fontSize: ScreenUtil().setSp(32)),
|
|
2275
|
),
|
2278
|
),
|
|
2276
|
- Text(
|
2279
|
+ Expanded(
|
|
|
|
2280
|
+ child: Text(
|
|
2277
|
detailModel.userHistorys[index].rname,
|
2281
|
detailModel.userHistorys[index].rname,
|
|
2278
|
style: TextStyle(color: MyColours.color_333333, fontSize: ScreenUtil().setSp(32)),
|
2282
|
style: TextStyle(color: MyColours.color_333333, fontSize: ScreenUtil().setSp(32)),
|
|
2279
|
- )
|
2283
|
+ ))
|
|
2280
|
],
|
2284
|
],
|
|
2281
|
),
|
2285
|
),
|
|
2282
|
),
|
2286
|
),
|
|
@@ -2486,7 +2490,7 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
@@ -2486,7 +2490,7 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
2486
|
detailEntity.status == "4" ||
|
2490
|
detailEntity.status == "4" ||
|
|
2487
|
detailEntity.status == "6"),
|
2491
|
detailEntity.status == "6"),
|
|
2488
|
child: Container(
|
2492
|
child: Container(
|
|
2489
|
- width: double.infinity,
|
2493
|
+ // width: double.infinity,
|
|
2490
|
height: ScreenUtil().setWidth(84),
|
2494
|
height: ScreenUtil().setWidth(84),
|
|
2491
|
decoration: BoxDecoration(
|
2495
|
decoration: BoxDecoration(
|
|
2492
|
color: MyColours.color_ffffff,
|
2496
|
color: MyColours.color_ffffff,
|
|
@@ -2498,9 +2502,8 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
@@ -2498,9 +2502,8 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
2498
|
ScreenUtil().setHeight(20),
|
2502
|
ScreenUtil().setHeight(20),
|
|
2499
|
horizontal:
|
2503
|
horizontal:
|
|
2500
|
ScreenUtil().setHeight(40)),
|
2504
|
ScreenUtil().setHeight(40)),
|
|
2501
|
- child: Offstage(
|
|
|
|
2502
|
- offstage: ((detailEntity.orderInfo !=
|
|
|
|
2503
|
- null &&
|
2505
|
+ child:
|
|
|
|
2506
|
+ ((detailEntity.orderInfo != null &&
|
|
2504
|
detailEntity.orderInfo
|
2507
|
detailEntity.orderInfo
|
|
2505
|
.status ==
|
2508
|
.status ==
|
|
2506
|
"3") ||
|
2509
|
"3") ||
|
|
@@ -2509,413 +2512,410 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
@@ -2509,413 +2512,410 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
2509
|
detailEntity.status ==
|
2512
|
detailEntity.status ==
|
|
2510
|
"4" ||
|
2513
|
"4" ||
|
|
2511
|
detailEntity.status == "6")
|
2514
|
detailEntity.status == "6")
|
|
2512
|
- ? true
|
|
|
|
2513
|
- : false,
|
|
|
|
2514
|
- child: Row(
|
|
|
|
2515
|
- children: [
|
|
|
|
2516
|
- Expanded(
|
|
|
|
2517
|
- flex: 2,
|
|
|
|
2518
|
- child: InkWell(
|
|
|
|
2519
|
- onTap: () {
|
|
|
|
2520
|
- String _tid = '';
|
|
|
|
2521
|
- for (int i = 0;
|
|
|
|
2522
|
- i <
|
|
|
|
2523
|
- detailEntity
|
|
|
|
2524
|
- .tables
|
|
|
|
2525
|
- .length;
|
|
|
|
2526
|
- i++) {
|
|
|
|
2527
|
- _tid +=
|
|
|
|
2528
|
- '${detailEntity.tables[i].id},';
|
|
|
|
2529
|
- }
|
|
|
|
2530
|
- if (_tid
|
|
|
|
2531
|
- .endsWith(',')) {
|
|
|
|
2532
|
- _tid = _tid.substring(
|
|
|
|
2533
|
- 0,
|
|
|
|
2534
|
- _tid.length - 1);
|
|
|
|
2535
|
- }
|
|
|
|
2536
|
- NavigatorUtil
|
|
|
|
2537
|
- .goInvicationPage(
|
|
|
|
2538
|
- context,
|
|
|
|
2539
|
- detailEntity.id,
|
|
|
|
2540
|
- detailEntity
|
|
|
|
2541
|
- .tableinfoStr,
|
|
|
|
2542
|
- detailEntity
|
|
|
|
2543
|
- .ddate,
|
|
|
|
2544
|
- detailEntity
|
|
|
|
2545
|
- .ddateStr,
|
|
|
|
2546
|
- detailEntity
|
|
|
|
2547
|
- .phone,
|
|
|
|
2548
|
- detailEntity
|
|
|
|
2549
|
- .ddate_solt,
|
|
|
|
2550
|
- tid: _tid);
|
|
|
|
2551
|
- },
|
|
|
|
2552
|
- child: Container(
|
|
|
|
2553
|
- decoration:
|
|
|
|
2554
|
- BoxDecoration(
|
|
|
|
2555
|
- color: MyColours
|
|
|
|
2556
|
- .color_199095,
|
|
|
|
2557
|
- borderRadius:
|
|
|
|
2558
|
- BorderRadius.circular(
|
|
|
|
2559
|
- ScreenUtil()
|
|
|
|
2560
|
- .setWidth(
|
|
|
|
2561
|
- 10)),
|
|
|
|
2562
|
- ),
|
|
|
|
2563
|
- child: Align(
|
|
|
|
2564
|
- alignment:
|
|
|
|
2565
|
- Alignment.center,
|
|
|
|
2566
|
- child: Text('微信通知',
|
|
|
|
2567
|
- style: TextStyle(
|
|
|
|
2568
|
- color: MyColours
|
|
|
|
2569
|
- .color_ffffff,
|
|
|
|
2570
|
- fontSize:
|
|
|
|
2571
|
- ScreenUtil()
|
|
|
|
2572
|
- .setSp(
|
|
|
|
2573
|
- 34))),
|
|
|
|
2574
|
- ),
|
|
|
|
2575
|
- ),
|
|
|
|
2576
|
- )),
|
|
|
|
2577
|
-
|
|
|
|
2578
|
- Expanded(
|
|
|
|
2579
|
- flex: 1,
|
|
|
|
2580
|
- child: InkWell(
|
|
|
|
2581
|
- onTap: () {
|
|
|
|
2582
|
- if (detailEntity
|
|
|
|
2583
|
- .phone ==
|
|
|
|
2584
|
- null ||
|
|
|
|
2585
|
- detailEntity.phone
|
|
|
|
2586
|
- .isEmpty) {
|
|
|
|
2587
|
- Utils.showToast(
|
|
|
|
2588
|
- "短信通知需填写顾客手机号");
|
|
|
|
2589
|
- return;
|
|
|
|
2590
|
- }
|
|
|
|
2591
|
- if (!Utils.phoneRegExp(
|
|
|
|
2592
|
- detailEntity
|
|
|
|
2593
|
- .phone)) {
|
|
|
|
2594
|
- Utils.showToast(
|
|
|
|
2595
|
- '手机号错误,请修改正确');
|
|
|
|
2596
|
- return;
|
|
|
|
2597
|
- }
|
|
|
|
2598
|
- NavigatorUtil.goSmsPage(
|
|
|
|
2599
|
- context,
|
|
|
|
2600
|
- detailEntity.id,
|
|
|
|
2601
|
- );
|
|
|
|
2602
|
- },
|
|
|
|
2603
|
- child: Container(
|
|
|
|
2604
|
- margin: EdgeInsets.only(
|
|
|
|
2605
|
- left: ScreenUtil()
|
|
|
|
2606
|
- .setWidth(20)),
|
|
|
|
2607
|
- decoration:
|
|
|
|
2608
|
- BoxDecoration(
|
|
|
|
2609
|
- color: detailEntity
|
2515
|
+ ? SizedBox()
|
|
|
|
2516
|
+ : Row(
|
|
|
|
2517
|
+ children: [
|
|
|
|
2518
|
+ Expanded(
|
|
|
|
2519
|
+ flex: 2,
|
|
|
|
2520
|
+ child: InkWell(
|
|
|
|
2521
|
+ onTap: () {
|
|
|
|
2522
|
+ String _tid = '';
|
|
|
|
2523
|
+ for (int i = 0;
|
|
|
|
2524
|
+ i <
|
|
|
|
2525
|
+ detailEntity
|
|
|
|
2526
|
+ .tables
|
|
|
|
2527
|
+ .length;
|
|
|
|
2528
|
+ i++) {
|
|
|
|
2529
|
+ _tid +=
|
|
|
|
2530
|
+ '${detailEntity.tables[i].id},';
|
|
|
|
2531
|
+ }
|
|
|
|
2532
|
+ if (_tid.endsWith(
|
|
|
|
2533
|
+ ',')) {
|
|
|
|
2534
|
+ _tid = _tid
|
|
|
|
2535
|
+ .substring(
|
|
|
|
2536
|
+ 0,
|
|
|
|
2537
|
+ _tid.length -
|
|
|
|
2538
|
+ 1);
|
|
|
|
2539
|
+ }
|
|
|
|
2540
|
+ NavigatorUtil.goInvicationPage(
|
|
|
|
2541
|
+ context,
|
|
|
|
2542
|
+ detailEntity
|
|
|
|
2543
|
+ .id,
|
|
|
|
2544
|
+ detailEntity
|
|
|
|
2545
|
+ .tableinfoStr,
|
|
|
|
2546
|
+ detailEntity
|
|
|
|
2547
|
+ .ddate,
|
|
|
|
2548
|
+ detailEntity
|
|
|
|
2549
|
+ .ddateStr,
|
|
|
|
2550
|
+ detailEntity
|
|
|
|
2551
|
+ .phone,
|
|
|
|
2552
|
+ detailEntity
|
|
|
|
2553
|
+ .ddate_solt,
|
|
|
|
2554
|
+ tid: _tid);
|
|
|
|
2555
|
+ },
|
|
|
|
2556
|
+ child: Container(
|
|
|
|
2557
|
+ decoration:
|
|
|
|
2558
|
+ BoxDecoration(
|
|
|
|
2559
|
+ color: MyColours
|
|
|
|
2560
|
+ .color_199095,
|
|
|
|
2561
|
+ borderRadius: BorderRadius.circular(
|
|
|
|
2562
|
+ ScreenUtil()
|
|
|
|
2563
|
+ .setWidth(
|
|
|
|
2564
|
+ 10)),
|
|
|
|
2565
|
+ ),
|
|
|
|
2566
|
+ child: Align(
|
|
|
|
2567
|
+ alignment:
|
|
|
|
2568
|
+ Alignment
|
|
|
|
2569
|
+ .center,
|
|
|
|
2570
|
+ child: Text(
|
|
|
|
2571
|
+ '微信通知',
|
|
|
|
2572
|
+ style: TextStyle(
|
|
|
|
2573
|
+ color: MyColours
|
|
|
|
2574
|
+ .color_ffffff,
|
|
|
|
2575
|
+ fontSize:
|
|
|
|
2576
|
+ ScreenUtil().setSp(34))),
|
|
|
|
2577
|
+ ),
|
|
|
|
2578
|
+ ),
|
|
|
|
2579
|
+ )),
|
|
|
|
2580
|
+
|
|
|
|
2581
|
+ Expanded(
|
|
|
|
2582
|
+ flex: 1,
|
|
|
|
2583
|
+ child: InkWell(
|
|
|
|
2584
|
+ onTap: () {
|
|
|
|
2585
|
+ if (detailEntity
|
|
2610
|
.phone ==
|
2586
|
.phone ==
|
|
2611
|
null ||
|
2587
|
null ||
|
|
2612
|
detailEntity
|
2588
|
detailEntity
|
|
2613
|
.phone
|
2589
|
.phone
|
|
2614
|
- .isEmpty
|
|
|
|
2615
|
- ? Color.fromRGBO(
|
|
|
|
2616
|
- 154,
|
|
|
|
2617
|
- 154,
|
|
|
|
2618
|
- 154,
|
|
|
|
2619
|
- 1)
|
|
|
|
2620
|
- : MyColours
|
|
|
|
2621
|
- .color_199095,
|
|
|
|
2622
|
- borderRadius:
|
|
|
|
2623
|
- BorderRadius.circular(
|
|
|
|
2624
|
- ScreenUtil()
|
|
|
|
2625
|
- .setWidth(
|
|
|
|
2626
|
- 10)),
|
|
|
|
2627
|
- ),
|
|
|
|
2628
|
- child: Align(
|
|
|
|
2629
|
- alignment:
|
|
|
|
2630
|
- Alignment.center,
|
|
|
|
2631
|
- child: Text('短信通知',
|
|
|
|
2632
|
- style: TextStyle(
|
|
|
|
2633
|
- color: MyColours
|
|
|
|
2634
|
- .color_ffffff,
|
|
|
|
2635
|
- fontSize:
|
|
|
|
2636
|
- ScreenUtil()
|
|
|
|
2637
|
- .setSp(
|
|
|
|
2638
|
- 34))),
|
|
|
|
2639
|
- ),
|
|
|
|
2640
|
- ),
|
|
|
|
2641
|
- )),
|
|
|
|
2642
|
- Offstage(
|
|
|
|
2643
|
- offstage: detailEntity
|
|
|
|
2644
|
- .order
|
|
|
|
2645
|
- .cookbooklist
|
|
|
|
2646
|
- .length ==
|
|
|
|
2647
|
- 0
|
|
|
|
2648
|
- ? true
|
|
|
|
2649
|
- : false,
|
|
|
|
2650
|
- child: Expanded(
|
|
|
|
2651
|
- flex: 1,
|
|
|
|
2652
|
- child: InkWell(
|
|
|
|
2653
|
- onTap: () {
|
|
|
|
2654
|
- NavigatorUtil
|
|
|
|
2655
|
- .goHasOrderFoodPage(
|
|
|
|
2656
|
- context,
|
|
|
|
2657
|
- rid: detailEntity
|
|
|
|
2658
|
- .id);
|
|
|
|
2659
|
- },
|
|
|
|
2660
|
- child: Container(
|
|
|
|
2661
|
- margin: EdgeInsets.only(
|
|
|
|
2662
|
- left: ScreenUtil()
|
|
|
|
2663
|
- .setWidth(
|
|
|
|
2664
|
- 20)),
|
|
|
|
2665
|
- decoration:
|
|
|
|
2666
|
- BoxDecoration(
|
|
|
|
2667
|
- color: MyColours
|
|
|
|
2668
|
- .color_199095,
|
|
|
|
2669
|
- borderRadius: BorderRadius
|
|
|
|
2670
|
- .circular(ScreenUtil()
|
2590
|
+ .isEmpty) {
|
|
|
|
2591
|
+ Utils.showToast(
|
|
|
|
2592
|
+ "短信通知需填写顾客手机号");
|
|
|
|
2593
|
+ return;
|
|
|
|
2594
|
+ }
|
|
|
|
2595
|
+ if (!Utils.phoneRegExp(
|
|
|
|
2596
|
+ detailEntity
|
|
|
|
2597
|
+ .phone)) {
|
|
|
|
2598
|
+ Utils.showToast(
|
|
|
|
2599
|
+ '手机号错误,请修改正确');
|
|
|
|
2600
|
+ return;
|
|
|
|
2601
|
+ }
|
|
|
|
2602
|
+ NavigatorUtil
|
|
|
|
2603
|
+ .goSmsPage(
|
|
|
|
2604
|
+ context,
|
|
|
|
2605
|
+ detailEntity.id,
|
|
|
|
2606
|
+ );
|
|
|
|
2607
|
+ },
|
|
|
|
2608
|
+ child: Container(
|
|
|
|
2609
|
+ margin: EdgeInsets.only(
|
|
|
|
2610
|
+ left: ScreenUtil()
|
|
2671
|
.setWidth(
|
2611
|
.setWidth(
|
|
2672
|
- 10)),
|
|
|
|
2673
|
- ),
|
|
|
|
2674
|
- child: Align(
|
|
|
|
2675
|
- alignment:
|
|
|
|
2676
|
- Alignment
|
|
|
|
2677
|
- .center,
|
|
|
|
2678
|
- child: Text(
|
|
|
|
2679
|
- '查看菜品',
|
|
|
|
2680
|
- style: TextStyle(
|
|
|
|
2681
|
- color: MyColours
|
|
|
|
2682
|
- .color_ffffff,
|
|
|
|
2683
|
- fontSize:
|
|
|
|
2684
|
- ScreenUtil()
|
|
|
|
2685
|
- .setSp(34))),
|
2612
|
+ 20)),
|
|
|
|
2613
|
+ decoration:
|
|
|
|
2614
|
+ BoxDecoration(
|
|
|
|
2615
|
+ color: detailEntity.phone ==
|
|
|
|
2616
|
+ null ||
|
|
|
|
2617
|
+ detailEntity
|
|
|
|
2618
|
+ .phone
|
|
|
|
2619
|
+ .isEmpty
|
|
|
|
2620
|
+ ? Color
|
|
|
|
2621
|
+ .fromRGBO(
|
|
|
|
2622
|
+ 154,
|
|
|
|
2623
|
+ 154,
|
|
|
|
2624
|
+ 154,
|
|
|
|
2625
|
+ 1)
|
|
|
|
2626
|
+ : MyColours
|
|
|
|
2627
|
+ .color_199095,
|
|
|
|
2628
|
+ borderRadius: BorderRadius.circular(
|
|
|
|
2629
|
+ ScreenUtil()
|
|
|
|
2630
|
+ .setWidth(
|
|
|
|
2631
|
+ 10)),
|
|
|
|
2632
|
+ ),
|
|
|
|
2633
|
+ child: Align(
|
|
|
|
2634
|
+ alignment:
|
|
|
|
2635
|
+ Alignment
|
|
|
|
2636
|
+ .center,
|
|
|
|
2637
|
+ child: Text(
|
|
|
|
2638
|
+ '短信通知',
|
|
|
|
2639
|
+ style: TextStyle(
|
|
|
|
2640
|
+ color: MyColours
|
|
|
|
2641
|
+ .color_ffffff,
|
|
|
|
2642
|
+ fontSize:
|
|
|
|
2643
|
+ ScreenUtil().setSp(34))),
|
|
|
|
2644
|
+ ),
|
|
2686
|
),
|
2645
|
),
|
|
2687
|
- ),
|
|
|
|
2688
|
- ))),
|
|
|
|
2689
|
- // _cancelAndChangeBtn(() {
|
|
|
|
2690
|
- // DialogUtil
|
|
|
|
2691
|
- // .showShareDialog(
|
|
|
|
2692
|
- // context)
|
|
|
|
2693
|
- // ?.then((value) {
|
|
|
|
2694
|
- // switch (value) {
|
|
|
|
2695
|
- // case 1: //微信
|
|
|
|
2696
|
- // String _tid = '';
|
|
|
|
2697
|
- // for (int i = 0;
|
|
|
|
2698
|
- // i <
|
|
|
|
2699
|
- // detailEntity
|
|
|
|
2700
|
- // .tables
|
|
|
|
2701
|
- // .length;
|
|
|
|
2702
|
- // i++) {
|
|
|
|
2703
|
- // _tid +=
|
|
|
|
2704
|
- // '${detailEntity.tables[i].id},';
|
|
|
|
2705
|
- // }
|
|
|
|
2706
|
- // if (_tid.endsWith(
|
|
|
|
2707
|
- // ',')) {
|
|
|
|
2708
|
- // _tid = _tid
|
|
|
|
2709
|
- // .substring(
|
|
|
|
2710
|
- // 0,
|
|
|
|
2711
|
- // _tid.length -
|
|
|
|
2712
|
- // 1);
|
|
|
|
2713
|
- // }
|
|
|
|
2714
|
- // NavigatorUtil.goInvicationPage(
|
|
|
|
2715
|
- // context,
|
|
|
|
2716
|
- // detailEntity
|
|
|
|
2717
|
- // .id,
|
|
|
|
2718
|
- // detailEntity
|
|
|
|
2719
|
- // .tableinfoStr,
|
|
|
|
2720
|
- // detailEntity
|
|
|
|
2721
|
- // .ddate,
|
|
|
|
2722
|
- // detailEntity
|
|
|
|
2723
|
- // .ddateStr,
|
|
|
|
2724
|
- // detailEntity
|
|
|
|
2725
|
- // .phone,
|
|
|
|
2726
|
- // detailEntity
|
|
|
|
2727
|
- // .ddate_solt,
|
|
|
|
2728
|
- // tid: _tid);
|
|
|
|
2729
|
- // break;
|
|
|
|
2730
|
- // case 2: //短信
|
|
|
|
2731
|
- // if (detailEntity
|
|
|
|
2732
|
- // .phone ==
|
|
|
|
2733
|
- // null ||
|
|
|
|
2734
|
- // detailEntity
|
|
|
|
2735
|
- // .phone
|
|
|
|
2736
|
- // .isEmpty) {
|
|
|
|
2737
|
- // Utils.showToast(
|
|
|
|
2738
|
- // "没有预订人电话信息");
|
|
|
|
2739
|
- // return;
|
|
|
|
2740
|
- // }
|
|
|
|
2741
|
- // NavigatorUtil
|
|
|
|
2742
|
- // .goSmsPage(
|
|
|
|
2743
|
- // context,
|
|
|
|
2744
|
- // detailEntity.id,
|
|
|
|
2745
|
- // );
|
|
|
|
2746
|
- // break;
|
|
|
|
2747
|
- // case 3: //电话
|
|
|
|
2748
|
- // if (detailEntity
|
|
|
|
2749
|
- // .phone !=
|
|
|
|
2750
|
- // null &&
|
|
|
|
2751
|
- // detailEntity
|
|
|
|
2752
|
- // .phone
|
|
|
|
2753
|
- // .isNotEmpty) {
|
|
|
|
2754
|
- // if (userModel
|
|
|
|
2755
|
- // .user
|
|
|
|
2756
|
- // .role_name !=
|
|
|
|
2757
|
- // '管理员' &&
|
|
|
|
2758
|
- // userModel
|
|
|
|
2759
|
- // .user
|
|
|
|
2760
|
- // .role_name !=
|
|
|
|
2761
|
- // '店长' &&
|
|
|
|
2762
|
- // widget.uid !=
|
|
|
|
2763
|
- // "null" &&
|
|
|
|
2764
|
- // widget.uid !=
|
|
|
|
2765
|
- // userModel
|
|
|
|
2766
|
- // .user
|
|
|
|
2767
|
- // .openid) {
|
|
|
|
2768
|
- // Utils.showToast(
|
|
|
|
2769
|
- // "您无权拨打该电话");
|
|
|
|
2770
|
- // } else {
|
|
|
|
2771
|
- // Utils.goPhone(
|
|
|
|
2772
|
- // detailEntity
|
|
|
|
2773
|
- // .phone);
|
|
|
|
2774
|
- // }
|
|
|
|
2775
|
- // } else {
|
|
|
|
2776
|
- // Utils.showToast(
|
|
|
|
2777
|
- // "没有预订人电话信息");
|
|
|
|
2778
|
- // }
|
|
|
|
2779
|
- // break;
|
|
|
|
2780
|
- // }
|
|
|
|
2781
|
- // });
|
|
|
|
2782
|
- // }, "通知客户",
|
|
|
|
2783
|
- // bgColor: MyColours
|
|
|
|
2784
|
- // .color_199095,
|
|
|
|
2785
|
- // width: detailEntity
|
|
|
|
2786
|
- // .order
|
|
|
|
2787
|
- // .cookbooklist
|
|
|
|
2788
|
- // .length ==
|
|
|
|
2789
|
- // 0
|
|
|
|
2790
|
- // ? ScreenUtil
|
|
|
|
2791
|
- // .screenWidthDp -
|
|
|
|
2792
|
- // ScreenUtil()
|
|
|
|
2793
|
- // .setWidth(
|
|
|
|
2794
|
- // 100)
|
|
|
|
2795
|
- // : (ScreenUtil
|
|
|
|
2796
|
- // .screenWidthDp -
|
|
|
|
2797
|
- // ScreenUtil()
|
|
|
|
2798
|
- // .setWidth(
|
|
|
|
2799
|
- // 91)) /
|
|
|
|
2800
|
- // 2,
|
|
|
|
2801
|
- // fontColor: MyColours
|
|
|
|
2802
|
- // .color_ffffff),
|
|
|
|
2803
|
- // _cancelAndChangeBtn(() {
|
|
|
|
2804
|
- // DialogUtil
|
|
|
|
2805
|
- // .showShareDialog(
|
|
|
|
2806
|
- // context)
|
|
|
|
2807
|
- // ?.then((value) {
|
|
|
|
2808
|
- // switch (value) {
|
|
|
|
2809
|
- // case 1: //微信
|
|
|
|
2810
|
- // String _tid = '';
|
|
|
|
2811
|
- // for (int i = 0;
|
|
|
|
2812
|
- // i <
|
|
|
|
2813
|
- // detailEntity
|
|
|
|
2814
|
- // .tables
|
|
|
|
2815
|
- // .length;
|
|
|
|
2816
|
- // i++) {
|
|
|
|
2817
|
- // _tid +=
|
|
|
|
2818
|
- // '${detailEntity.tables[i].id},';
|
|
|
|
2819
|
- // }
|
|
|
|
2820
|
- // if (_tid.endsWith(
|
|
|
|
2821
|
- // ',')) {
|
|
|
|
2822
|
- // _tid = _tid
|
|
|
|
2823
|
- // .substring(
|
|
|
|
2824
|
- // 0,
|
|
|
|
2825
|
- // _tid.length -
|
|
|
|
2826
|
- // 1);
|
|
|
|
2827
|
- // }
|
|
|
|
2828
|
- // NavigatorUtil.goInvicationPage(
|
|
|
|
2829
|
- // context,
|
|
|
|
2830
|
- // detailEntity
|
|
|
|
2831
|
- // .id,
|
|
|
|
2832
|
- // detailEntity
|
|
|
|
2833
|
- // .tableinfoStr,
|
|
|
|
2834
|
- // detailEntity
|
|
|
|
2835
|
- // .ddate,
|
|
|
|
2836
|
- // detailEntity
|
|
|
|
2837
|
- // .ddateStr,
|
|
|
|
2838
|
- // detailEntity
|
|
|
|
2839
|
- // .phone,
|
|
|
|
2840
|
- // detailEntity
|
|
|
|
2841
|
- // .ddate_solt,
|
|
|
|
2842
|
- // tid: _tid);
|
|
|
|
2843
|
- // break;
|
|
|
|
2844
|
- // case 2: //短信
|
|
|
|
2845
|
- // if (detailEntity
|
|
|
|
2846
|
- // .phone ==
|
|
|
|
2847
|
- // null ||
|
|
|
|
2848
|
- // detailEntity
|
|
|
|
2849
|
- // .phone
|
|
|
|
2850
|
- // .isEmpty) {
|
|
|
|
2851
|
- // Utils.showToast(
|
|
|
|
2852
|
- // "没有预订人电话信息");
|
|
|
|
2853
|
- // return;
|
|
|
|
2854
|
- // }
|
|
|
|
2855
|
- // NavigatorUtil
|
|
|
|
2856
|
- // .goSmsPage(
|
|
|
|
2857
|
- // context,
|
|
|
|
2858
|
- // detailEntity.id,
|
|
|
|
2859
|
- // );
|
|
|
|
2860
|
- // break;
|
|
|
|
2861
|
- // case 3: //电话
|
|
|
|
2862
|
- // if (detailEntity
|
|
|
|
2863
|
- // .phone !=
|
|
|
|
2864
|
- // null &&
|
|
|
|
2865
|
- // detailEntity
|
|
|
|
2866
|
- // .phone
|
|
|
|
2867
|
- // .isNotEmpty) {
|
|
|
|
2868
|
- // if (userModel
|
|
|
|
2869
|
- // .user
|
|
|
|
2870
|
- // .role_name !=
|
|
|
|
2871
|
- // '管理员' &&
|
|
|
|
2872
|
- // userModel
|
|
|
|
2873
|
- // .user
|
|
|
|
2874
|
- // .role_name !=
|
|
|
|
2875
|
- // '店长' &&
|
|
|
|
2876
|
- // widget.uid !=
|
|
|
|
2877
|
- // "null" &&
|
|
|
|
2878
|
- // widget.uid !=
|
|
|
|
2879
|
- // userModel
|
|
|
|
2880
|
- // .user
|
|
|
|
2881
|
- // .openid) {
|
|
|
|
2882
|
- // Utils.showToast(
|
|
|
|
2883
|
- // "您无权拨打该电话");
|
|
|
|
2884
|
- // } else {
|
|
|
|
2885
|
- // Utils.goPhone(
|
|
|
|
2886
|
- // detailEntity
|
|
|
|
2887
|
- // .phone);
|
|
|
|
2888
|
- // }
|
|
|
|
2889
|
- // } else {
|
|
|
|
2890
|
- // Utils.showToast(
|
|
|
|
2891
|
- // "没有预订人电话信息");
|
|
|
|
2892
|
- // }
|
|
|
|
2893
|
- // break;
|
|
|
|
2894
|
- // }
|
|
|
|
2895
|
- // });
|
|
|
|
2896
|
- // }, "通知客户",
|
|
|
|
2897
|
- // bgColor: MyColours
|
|
|
|
2898
|
- // .color_199095,
|
|
|
|
2899
|
- // width: detailEntity
|
|
|
|
2900
|
- // .order
|
|
|
|
2901
|
- // .cookbooklist
|
|
|
|
2902
|
- // .length ==
|
|
|
|
2903
|
- // 0
|
|
|
|
2904
|
- // ? ScreenUtil
|
|
|
|
2905
|
- // .screenWidthDp -
|
|
|
|
2906
|
- // ScreenUtil()
|
|
|
|
2907
|
- // .setWidth(
|
|
|
|
2908
|
- // 100)
|
|
|
|
2909
|
- // : (ScreenUtil
|
|
|
|
2910
|
- // .screenWidthDp -
|
|
|
|
2911
|
- // ScreenUtil()
|
|
|
|
2912
|
- // .setWidth(
|
|
|
|
2913
|
- // 91)) /
|
|
|
|
2914
|
- // 2,
|
|
|
|
2915
|
- // fontColor: MyColours
|
|
|
|
2916
|
- // .color_ffffff)
|
|
|
|
2917
|
- ],
|
|
|
|
2918
|
- )),
|
2646
|
+ )),
|
|
|
|
2647
|
+ detailEntity
|
|
|
|
2648
|
+ .order
|
|
|
|
2649
|
+ .cookbooklist
|
|
|
|
2650
|
+ .length ==
|
|
|
|
2651
|
+ 0
|
|
|
|
2652
|
+ ? SizedBox()
|
|
|
|
2653
|
+ : Expanded(
|
|
|
|
2654
|
+ flex: 1,
|
|
|
|
2655
|
+ child: InkWell(
|
|
|
|
2656
|
+ onTap: () {
|
|
|
|
2657
|
+ NavigatorUtil.goHasOrderFoodPage(
|
|
|
|
2658
|
+ context,
|
|
|
|
2659
|
+ rid: detailEntity
|
|
|
|
2660
|
+ .id);
|
|
|
|
2661
|
+ },
|
|
|
|
2662
|
+ child:
|
|
|
|
2663
|
+ Container(
|
|
|
|
2664
|
+ margin: EdgeInsets.only(
|
|
|
|
2665
|
+ left: ScreenUtil()
|
|
|
|
2666
|
+ .setWidth(
|
|
|
|
2667
|
+ 20)),
|
|
|
|
2668
|
+ decoration:
|
|
|
|
2669
|
+ BoxDecoration(
|
|
|
|
2670
|
+ color: MyColours
|
|
|
|
2671
|
+ .color_199095,
|
|
|
|
2672
|
+ borderRadius:
|
|
|
|
2673
|
+ BorderRadius.circular(
|
|
|
|
2674
|
+ ScreenUtil().setWidth(10)),
|
|
|
|
2675
|
+ ),
|
|
|
|
2676
|
+ child: Align(
|
|
|
|
2677
|
+ alignment:
|
|
|
|
2678
|
+ Alignment
|
|
|
|
2679
|
+ .center,
|
|
|
|
2680
|
+ child: Text(
|
|
|
|
2681
|
+ '查看菜品',
|
|
|
|
2682
|
+ style: TextStyle(
|
|
|
|
2683
|
+ color:
|
|
|
|
2684
|
+ MyColours.color_ffffff,
|
|
|
|
2685
|
+ fontSize: ScreenUtil().setSp(34))),
|
|
|
|
2686
|
+ ),
|
|
|
|
2687
|
+ ),
|
|
|
|
2688
|
+ )),
|
|
|
|
2689
|
+ // _cancelAndChangeBtn(() {
|
|
|
|
2690
|
+ // DialogUtil
|
|
|
|
2691
|
+ // .showShareDialog(
|
|
|
|
2692
|
+ // context)
|
|
|
|
2693
|
+ // ?.then((value) {
|
|
|
|
2694
|
+ // switch (value) {
|
|
|
|
2695
|
+ // case 1: //微信
|
|
|
|
2696
|
+ // String _tid = '';
|
|
|
|
2697
|
+ // for (int i = 0;
|
|
|
|
2698
|
+ // i <
|
|
|
|
2699
|
+ // detailEntity
|
|
|
|
2700
|
+ // .tables
|
|
|
|
2701
|
+ // .length;
|
|
|
|
2702
|
+ // i++) {
|
|
|
|
2703
|
+ // _tid +=
|
|
|
|
2704
|
+ // '${detailEntity.tables[i].id},';
|
|
|
|
2705
|
+ // }
|
|
|
|
2706
|
+ // if (_tid.endsWith(
|
|
|
|
2707
|
+ // ',')) {
|
|
|
|
2708
|
+ // _tid = _tid
|
|
|
|
2709
|
+ // .substring(
|
|
|
|
2710
|
+ // 0,
|
|
|
|
2711
|
+ // _tid.length -
|
|
|
|
2712
|
+ // 1);
|
|
|
|
2713
|
+ // }
|
|
|
|
2714
|
+ // NavigatorUtil.goInvicationPage(
|
|
|
|
2715
|
+ // context,
|
|
|
|
2716
|
+ // detailEntity
|
|
|
|
2717
|
+ // .id,
|
|
|
|
2718
|
+ // detailEntity
|
|
|
|
2719
|
+ // .tableinfoStr,
|
|
|
|
2720
|
+ // detailEntity
|
|
|
|
2721
|
+ // .ddate,
|
|
|
|
2722
|
+ // detailEntity
|
|
|
|
2723
|
+ // .ddateStr,
|
|
|
|
2724
|
+ // detailEntity
|
|
|
|
2725
|
+ // .phone,
|
|
|
|
2726
|
+ // detailEntity
|
|
|
|
2727
|
+ // .ddate_solt,
|
|
|
|
2728
|
+ // tid: _tid);
|
|
|
|
2729
|
+ // break;
|
|
|
|
2730
|
+ // case 2: //短信
|
|
|
|
2731
|
+ // if (detailEntity
|
|
|
|
2732
|
+ // .phone ==
|
|
|
|
2733
|
+ // null ||
|
|
|
|
2734
|
+ // detailEntity
|
|
|
|
2735
|
+ // .phone
|
|
|
|
2736
|
+ // .isEmpty) {
|
|
|
|
2737
|
+ // Utils.showToast(
|
|
|
|
2738
|
+ // "没有预订人电话信息");
|
|
|
|
2739
|
+ // return;
|
|
|
|
2740
|
+ // }
|
|
|
|
2741
|
+ // NavigatorUtil
|
|
|
|
2742
|
+ // .goSmsPage(
|
|
|
|
2743
|
+ // context,
|
|
|
|
2744
|
+ // detailEntity.id,
|
|
|
|
2745
|
+ // );
|
|
|
|
2746
|
+ // break;
|
|
|
|
2747
|
+ // case 3: //电话
|
|
|
|
2748
|
+ // if (detailEntity
|
|
|
|
2749
|
+ // .phone !=
|
|
|
|
2750
|
+ // null &&
|
|
|
|
2751
|
+ // detailEntity
|
|
|
|
2752
|
+ // .phone
|
|
|
|
2753
|
+ // .isNotEmpty) {
|
|
|
|
2754
|
+ // if (userModel
|
|
|
|
2755
|
+ // .user
|
|
|
|
2756
|
+ // .role_name !=
|
|
|
|
2757
|
+ // '管理员' &&
|
|
|
|
2758
|
+ // userModel
|
|
|
|
2759
|
+ // .user
|
|
|
|
2760
|
+ // .role_name !=
|
|
|
|
2761
|
+ // '店长' &&
|
|
|
|
2762
|
+ // widget.uid !=
|
|
|
|
2763
|
+ // "null" &&
|
|
|
|
2764
|
+ // widget.uid !=
|
|
|
|
2765
|
+ // userModel
|
|
|
|
2766
|
+ // .user
|
|
|
|
2767
|
+ // .openid) {
|
|
|
|
2768
|
+ // Utils.showToast(
|
|
|
|
2769
|
+ // "您无权拨打该电话");
|
|
|
|
2770
|
+ // } else {
|
|
|
|
2771
|
+ // Utils.goPhone(
|
|
|
|
2772
|
+ // detailEntity
|
|
|
|
2773
|
+ // .phone);
|
|
|
|
2774
|
+ // }
|
|
|
|
2775
|
+ // } else {
|
|
|
|
2776
|
+ // Utils.showToast(
|
|
|
|
2777
|
+ // "没有预订人电话信息");
|
|
|
|
2778
|
+ // }
|
|
|
|
2779
|
+ // break;
|
|
|
|
2780
|
+ // }
|
|
|
|
2781
|
+ // });
|
|
|
|
2782
|
+ // }, "通知客户",
|
|
|
|
2783
|
+ // bgColor: MyColours
|
|
|
|
2784
|
+ // .color_199095,
|
|
|
|
2785
|
+ // width: detailEntity
|
|
|
|
2786
|
+ // .order
|
|
|
|
2787
|
+ // .cookbooklist
|
|
|
|
2788
|
+ // .length ==
|
|
|
|
2789
|
+ // 0
|
|
|
|
2790
|
+ // ? ScreenUtil
|
|
|
|
2791
|
+ // .screenWidthDp -
|
|
|
|
2792
|
+ // ScreenUtil()
|
|
|
|
2793
|
+ // .setWidth(
|
|
|
|
2794
|
+ // 100)
|
|
|
|
2795
|
+ // : (ScreenUtil
|
|
|
|
2796
|
+ // .screenWidthDp -
|
|
|
|
2797
|
+ // ScreenUtil()
|
|
|
|
2798
|
+ // .setWidth(
|
|
|
|
2799
|
+ // 91)) /
|
|
|
|
2800
|
+ // 2,
|
|
|
|
2801
|
+ // fontColor: MyColours
|
|
|
|
2802
|
+ // .color_ffffff),
|
|
|
|
2803
|
+ // _cancelAndChangeBtn(() {
|
|
|
|
2804
|
+ // DialogUtil
|
|
|
|
2805
|
+ // .showShareDialog(
|
|
|
|
2806
|
+ // context)
|
|
|
|
2807
|
+ // ?.then((value) {
|
|
|
|
2808
|
+ // switch (value) {
|
|
|
|
2809
|
+ // case 1: //微信
|
|
|
|
2810
|
+ // String _tid = '';
|
|
|
|
2811
|
+ // for (int i = 0;
|
|
|
|
2812
|
+ // i <
|
|
|
|
2813
|
+ // detailEntity
|
|
|
|
2814
|
+ // .tables
|
|
|
|
2815
|
+ // .length;
|
|
|
|
2816
|
+ // i++) {
|
|
|
|
2817
|
+ // _tid +=
|
|
|
|
2818
|
+ // '${detailEntity.tables[i].id},';
|
|
|
|
2819
|
+ // }
|
|
|
|
2820
|
+ // if (_tid.endsWith(
|
|
|
|
2821
|
+ // ',')) {
|
|
|
|
2822
|
+ // _tid = _tid
|
|
|
|
2823
|
+ // .substring(
|
|
|
|
2824
|
+ // 0,
|
|
|
|
2825
|
+ // _tid.length -
|
|
|
|
2826
|
+ // 1);
|
|
|
|
2827
|
+ // }
|
|
|
|
2828
|
+ // NavigatorUtil.goInvicationPage(
|
|
|
|
2829
|
+ // context,
|
|
|
|
2830
|
+ // detailEntity
|
|
|
|
2831
|
+ // .id,
|
|
|
|
2832
|
+ // detailEntity
|
|
|
|
2833
|
+ // .tableinfoStr,
|
|
|
|
2834
|
+ // detailEntity
|
|
|
|
2835
|
+ // .ddate,
|
|
|
|
2836
|
+ // detailEntity
|
|
|
|
2837
|
+ // .ddateStr,
|
|
|
|
2838
|
+ // detailEntity
|
|
|
|
2839
|
+ // .phone,
|
|
|
|
2840
|
+ // detailEntity
|
|
|
|
2841
|
+ // .ddate_solt,
|
|
|
|
2842
|
+ // tid: _tid);
|
|
|
|
2843
|
+ // break;
|
|
|
|
2844
|
+ // case 2: //短信
|
|
|
|
2845
|
+ // if (detailEntity
|
|
|
|
2846
|
+ // .phone ==
|
|
|
|
2847
|
+ // null ||
|
|
|
|
2848
|
+ // detailEntity
|
|
|
|
2849
|
+ // .phone
|
|
|
|
2850
|
+ // .isEmpty) {
|
|
|
|
2851
|
+ // Utils.showToast(
|
|
|
|
2852
|
+ // "没有预订人电话信息");
|
|
|
|
2853
|
+ // return;
|
|
|
|
2854
|
+ // }
|
|
|
|
2855
|
+ // NavigatorUtil
|
|
|
|
2856
|
+ // .goSmsPage(
|
|
|
|
2857
|
+ // context,
|
|
|
|
2858
|
+ // detailEntity.id,
|
|
|
|
2859
|
+ // );
|
|
|
|
2860
|
+ // break;
|
|
|
|
2861
|
+ // case 3: //电话
|
|
|
|
2862
|
+ // if (detailEntity
|
|
|
|
2863
|
+ // .phone !=
|
|
|
|
2864
|
+ // null &&
|
|
|
|
2865
|
+ // detailEntity
|
|
|
|
2866
|
+ // .phone
|
|
|
|
2867
|
+ // .isNotEmpty) {
|
|
|
|
2868
|
+ // if (userModel
|
|
|
|
2869
|
+ // .user
|
|
|
|
2870
|
+ // .role_name !=
|
|
|
|
2871
|
+ // '管理员' &&
|
|
|
|
2872
|
+ // userModel
|
|
|
|
2873
|
+ // .user
|
|
|
|
2874
|
+ // .role_name !=
|
|
|
|
2875
|
+ // '店长' &&
|
|
|
|
2876
|
+ // widget.uid !=
|
|
|
|
2877
|
+ // "null" &&
|
|
|
|
2878
|
+ // widget.uid !=
|
|
|
|
2879
|
+ // userModel
|
|
|
|
2880
|
+ // .user
|
|
|
|
2881
|
+ // .openid) {
|
|
|
|
2882
|
+ // Utils.showToast(
|
|
|
|
2883
|
+ // "您无权拨打该电话");
|
|
|
|
2884
|
+ // } else {
|
|
|
|
2885
|
+ // Utils.goPhone(
|
|
|
|
2886
|
+ // detailEntity
|
|
|
|
2887
|
+ // .phone);
|
|
|
|
2888
|
+ // }
|
|
|
|
2889
|
+ // } else {
|
|
|
|
2890
|
+ // Utils.showToast(
|
|
|
|
2891
|
+ // "没有预订人电话信息");
|
|
|
|
2892
|
+ // }
|
|
|
|
2893
|
+ // break;
|
|
|
|
2894
|
+ // }
|
|
|
|
2895
|
+ // });
|
|
|
|
2896
|
+ // }, "通知客户",
|
|
|
|
2897
|
+ // bgColor: MyColours
|
|
|
|
2898
|
+ // .color_199095,
|
|
|
|
2899
|
+ // width: detailEntity
|
|
|
|
2900
|
+ // .order
|
|
|
|
2901
|
+ // .cookbooklist
|
|
|
|
2902
|
+ // .length ==
|
|
|
|
2903
|
+ // 0
|
|
|
|
2904
|
+ // ? ScreenUtil
|
|
|
|
2905
|
+ // .screenWidthDp -
|
|
|
|
2906
|
+ // ScreenUtil()
|
|
|
|
2907
|
+ // .setWidth(
|
|
|
|
2908
|
+ // 100)
|
|
|
|
2909
|
+ // : (ScreenUtil
|
|
|
|
2910
|
+ // .screenWidthDp -
|
|
|
|
2911
|
+ // ScreenUtil()
|
|
|
|
2912
|
+ // .setWidth(
|
|
|
|
2913
|
+ // 91)) /
|
|
|
|
2914
|
+ // 2,
|
|
|
|
2915
|
+ // fontColor: MyColours
|
|
|
|
2916
|
+ // .color_ffffff)
|
|
|
|
2917
|
+ ],
|
|
|
|
2918
|
+ ),
|
|
2919
|
// Offstage(
|
2919
|
// Offstage(
|
|
2920
|
// offstage: !(detailEntity
|
2920
|
// offstage: !(detailEntity
|
|
2921
|
// .order
|
2921
|
// .order
|