|
@@ -350,9 +350,10 @@ class TableItemOrReserveState extends State<TableItemOrReserve> { |
|
@@ -350,9 +350,10 @@ class TableItemOrReserveState extends State<TableItemOrReserve> { |
|
350
|
crossAxisAlignment: CrossAxisAlignment.center,
|
350
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
351
|
mainAxisAlignment: MainAxisAlignment.center,
|
351
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
352
|
children: <Widget>[
|
352
|
children: <Widget>[
|
|
353
|
- widget.need && table.signStr == '已预订' && !isSelf
|
|
|
|
354
|
- ? SizedBox()
|
|
|
|
355
|
- : VEmptyView(10),
|
353
|
+ if (!(widget.need &&
|
|
|
|
354
|
+ table.signStr == '已预订' &&
|
|
|
|
355
|
+ !isSelf))
|
|
|
|
356
|
+ VEmptyView(10),
|
|
356
|
Container(
|
357
|
Container(
|
|
357
|
// color: Colors.red,
|
358
|
// color: Colors.red,
|
|
358
|
alignment: Alignment.center,
|
359
|
alignment: Alignment.center,
|
|
@@ -387,89 +388,85 @@ class TableItemOrReserveState extends State<TableItemOrReserve> { |
|
@@ -387,89 +388,85 @@ class TableItemOrReserveState extends State<TableItemOrReserve> { |
|
387
|
// overflow: TextOverflow.ellipsis,
|
388
|
// overflow: TextOverflow.ellipsis,
|
|
388
|
// ),
|
389
|
// ),
|
|
389
|
),
|
390
|
),
|
|
390
|
- ((table.reserver != null && table.reserver != '') ||
|
391
|
+ if (((table.reserver != null &&
|
|
|
|
392
|
+ table.reserver != '') ||
|
|
|
|
393
|
+ (table.pnum != '' &&
|
|
|
|
394
|
+ table.pnum != null &&
|
|
|
|
395
|
+ table.pnum != '0')))
|
|
|
|
396
|
+ VEmptyView(8),
|
|
|
|
397
|
+
|
|
|
|
398
|
+ if (!(table.signStr == '已预订' && !isSelf))
|
|
|
|
399
|
+ Text(
|
|
|
|
400
|
+ table.tableNum,
|
|
|
|
401
|
+ style: TextStyle(
|
|
|
|
402
|
+ color: table.signStr == '已预订' && !isSelf
|
|
|
|
403
|
+ ? MyColours.color_353535
|
|
|
|
404
|
+ : (widget.canSelected && table.selected)
|
|
|
|
405
|
+ ? MyColours.color_ffffff
|
|
|
|
406
|
+ : MyColours.color_353535,
|
|
|
|
407
|
+ fontSize: ScreenUtil().setSp(22),
|
|
|
|
408
|
+ decoration: TextDecoration.none,
|
|
|
|
409
|
+ fontWeight: FontWeight.normal),
|
|
|
|
410
|
+ overflow: TextOverflow.ellipsis,
|
|
|
|
411
|
+ ),
|
|
|
|
412
|
+ if (table.signStr == '已预订' &&
|
|
|
|
413
|
+ !isSelf &&
|
|
|
|
414
|
+ ((table.reserver != null &&
|
|
|
|
415
|
+ !table.reserver!.isEmpty &&
|
|
|
|
416
|
+ table.reserver != '') ||
|
|
391
|
(table.pnum != '' &&
|
417
|
(table.pnum != '' &&
|
|
392
|
table.pnum != null &&
|
418
|
table.pnum != null &&
|
|
393
|
- table.pnum != '0'))
|
|
|
|
394
|
- ? VEmptyView(8)
|
|
|
|
395
|
- : SizedBox(),
|
|
|
|
396
|
- table.signStr == '已预订' && !isSelf
|
|
|
|
397
|
- ? SizedBox()
|
|
|
|
398
|
- : Text(
|
|
|
|
399
|
- table.tableNum,
|
|
|
|
400
|
- style: TextStyle(
|
|
|
|
401
|
- color: table.signStr == '已预订' && !isSelf
|
|
|
|
402
|
- ? MyColours.color_353535
|
|
|
|
403
|
- : (widget.canSelected &&
|
|
|
|
404
|
- table.selected)
|
|
|
|
405
|
- ? MyColours.color_ffffff
|
|
|
|
406
|
- : MyColours.color_353535,
|
|
|
|
407
|
- fontSize: ScreenUtil().setSp(22),
|
|
|
|
408
|
- decoration: TextDecoration.none,
|
|
|
|
409
|
- fontWeight: FontWeight.normal),
|
|
|
|
410
|
- overflow: TextOverflow.ellipsis,
|
|
|
|
411
|
- ),
|
|
|
|
412
|
- table.signStr == '已预订' &&
|
|
|
|
413
|
- !isSelf &&
|
|
|
|
414
|
- ((table.reserver != null &&
|
|
|
|
415
|
- !table.reserver!.isEmpty &&
|
|
|
|
416
|
- table.reserver != '') ||
|
|
|
|
417
|
- (table.pnum != '' &&
|
419
|
+ table.pnum != '0')))
|
|
|
|
420
|
+ Text(
|
|
|
|
421
|
+ (table.reserver == null ||
|
|
|
|
422
|
+ table.reserver!.isEmpty ||
|
|
|
|
423
|
+ table.reserver == '')
|
|
|
|
424
|
+ ? (table.pnum != '' &&
|
|
418
|
table.pnum != null &&
|
425
|
table.pnum != null &&
|
|
419
|
- table.pnum != '0'))
|
|
|
|
420
|
- ? Text(
|
|
|
|
421
|
- (table.reserver == null ||
|
|
|
|
422
|
- table.reserver!.isEmpty ||
|
|
|
|
423
|
- table.reserver == '')
|
|
|
|
424
|
- ? (table.pnum != '' &&
|
426
|
+ table.pnum != '0')
|
|
|
|
427
|
+ ? '(${table.pnum}人)'
|
|
|
|
428
|
+ : ''
|
|
|
|
429
|
+ : '${table.reserver}' +
|
|
|
|
430
|
+ (table.pnum != '' &&
|
|
425
|
table.pnum != null &&
|
431
|
table.pnum != null &&
|
|
426
|
- table.pnum != '0')
|
432
|
+ table.pnum != '0'
|
|
427
|
? '(${table.pnum}人)'
|
433
|
? '(${table.pnum}人)'
|
|
428
|
- : ''
|
|
|
|
429
|
- : '${table.reserver}' +
|
|
|
|
430
|
- (table.pnum != '' &&
|
|
|
|
431
|
- table.pnum != null &&
|
|
|
|
432
|
- table.pnum != '0'
|
|
|
|
433
|
- ? '(${table.pnum}人)'
|
|
|
|
434
|
- : ''),
|
|
|
|
435
|
- style: TextStyle(
|
|
|
|
436
|
- color: table.signStr == '已预订' && !isSelf
|
|
|
|
437
|
- ? MyColours.color_353535
|
|
|
|
438
|
- : (widget.canSelected &&
|
|
|
|
439
|
- table.selected)
|
|
|
|
440
|
- ? MyColours.color_ffffff
|
|
|
|
441
|
- : MyColours.color_353535,
|
|
|
|
442
|
- fontSize: ScreenUtil().setSp(22),
|
|
|
|
443
|
- decoration: TextDecoration.none,
|
|
|
|
444
|
- fontWeight: FontWeight.normal),
|
|
|
|
445
|
- overflow: TextOverflow.ellipsis,
|
|
|
|
446
|
- )
|
|
|
|
447
|
- : SizedBox(),
|
434
|
+ : ''),
|
|
|
|
435
|
+ style: TextStyle(
|
|
|
|
436
|
+ color: table.signStr == '已预订' && !isSelf
|
|
|
|
437
|
+ ? MyColours.color_353535
|
|
|
|
438
|
+ : (widget.canSelected && table.selected)
|
|
|
|
439
|
+ ? MyColours.color_ffffff
|
|
|
|
440
|
+ : MyColours.color_353535,
|
|
|
|
441
|
+ fontSize: ScreenUtil().setSp(22),
|
|
|
|
442
|
+ decoration: TextDecoration.none,
|
|
|
|
443
|
+ fontWeight: FontWeight.normal),
|
|
|
|
444
|
+ overflow: TextOverflow.ellipsis,
|
|
|
|
445
|
+ ),
|
|
448
|
|
446
|
|
|
449
|
- widget.need &&
|
|
|
|
450
|
- table.signStr == '已预订' &&
|
|
|
|
451
|
- !isSelf &&
|
|
|
|
452
|
- table.place_order_name != null &&
|
|
|
|
453
|
- table.place_order_name != ''
|
|
|
|
454
|
- ? Padding(
|
|
|
|
455
|
- padding: EdgeInsets.only(
|
|
|
|
456
|
- top: ScreenUtil().setWidth(6),
|
|
|
|
457
|
- bottom: ScreenUtil().setWidth(8),
|
|
|
|
458
|
- ),
|
|
|
|
459
|
- child: Text(
|
|
|
|
460
|
- table.place_order_name != null &&
|
|
|
|
461
|
- table.place_order_name != ''
|
|
|
|
462
|
- ? '${table.place_order_name}订'
|
|
|
|
463
|
- : '',
|
|
|
|
464
|
- style: TextStyle(
|
|
|
|
465
|
- color: MyColours.color_353535,
|
|
|
|
466
|
- fontSize: ScreenUtil().setSp(22),
|
|
|
|
467
|
- decoration: TextDecoration.none,
|
|
|
|
468
|
- fontWeight: FontWeight.normal),
|
|
|
|
469
|
- overflow: TextOverflow.ellipsis,
|
|
|
|
470
|
- ),
|
|
|
|
471
|
- )
|
|
|
|
472
|
- : SizedBox(),
|
447
|
+ if (widget.need &&
|
|
|
|
448
|
+ table.signStr == '已预订' &&
|
|
|
|
449
|
+ !isSelf &&
|
|
|
|
450
|
+ table.place_order_name != null &&
|
|
|
|
451
|
+ table.place_order_name != '')
|
|
|
|
452
|
+ Padding(
|
|
|
|
453
|
+ padding: EdgeInsets.only(
|
|
|
|
454
|
+ top: ScreenUtil().setWidth(6),
|
|
|
|
455
|
+ bottom: ScreenUtil().setWidth(8),
|
|
|
|
456
|
+ ),
|
|
|
|
457
|
+ child: Text(
|
|
|
|
458
|
+ table.place_order_name != null &&
|
|
|
|
459
|
+ table.place_order_name != ''
|
|
|
|
460
|
+ ? '${table.place_order_name}订'
|
|
|
|
461
|
+ : '',
|
|
|
|
462
|
+ style: TextStyle(
|
|
|
|
463
|
+ color: MyColours.color_353535,
|
|
|
|
464
|
+ fontSize: ScreenUtil().setSp(22),
|
|
|
|
465
|
+ decoration: TextDecoration.none,
|
|
|
|
466
|
+ fontWeight: FontWeight.normal),
|
|
|
|
467
|
+ overflow: TextOverflow.ellipsis,
|
|
|
|
468
|
+ ),
|
|
|
|
469
|
+ ),
|
|
473
|
// VEmptyView(6),
|
470
|
// VEmptyView(6),
|
|
474
|
// Text(
|
471
|
// Text(
|
|
475
|
// table.lowStr,
|
472
|
// table.lowStr,
|
|
@@ -480,54 +477,54 @@ class TableItemOrReserveState extends State<TableItemOrReserve> { |
|
@@ -480,54 +477,54 @@ class TableItemOrReserveState extends State<TableItemOrReserve> { |
|
480
|
// fontWeight: FontWeight.normal),
|
477
|
// fontWeight: FontWeight.normal),
|
|
481
|
// overflow: TextOverflow.ellipsis,
|
478
|
// overflow: TextOverflow.ellipsis,
|
|
482
|
// )
|
479
|
// )
|
|
483
|
- table.signStr == '已预订' && !isSelf
|
|
|
|
484
|
- ? Container(
|
|
|
|
485
|
- // width: ScreenUtil().setWidth(160),
|
|
|
|
486
|
- height: ScreenUtil().setWidth(34),
|
|
|
|
487
|
- )
|
|
|
|
488
|
- : SizedBox()
|
480
|
+ if (table.label != '' &&
|
|
|
|
481
|
+ table.label != null &&
|
|
|
|
482
|
+ table.signStr == '已预订' &&
|
|
|
|
483
|
+ !isSelf)
|
|
|
|
484
|
+ Container(
|
|
|
|
485
|
+ // width: ScreenUtil().setWidth(160),
|
|
|
|
486
|
+ height: ScreenUtil().setWidth(34),
|
|
|
|
487
|
+ )
|
|
489
|
],
|
488
|
],
|
|
490
|
),
|
489
|
),
|
|
491
|
),
|
490
|
),
|
|
492
|
|
491
|
|
|
493
|
- table.signStr == '已预订' && !isSelf
|
|
|
|
494
|
- ? SizedBox()
|
|
|
|
495
|
- : Positioned(
|
|
|
|
496
|
- left: 0,
|
|
|
|
497
|
- top: 0,
|
|
|
|
498
|
- child: table.tidStr == null
|
|
|
|
499
|
- ? Container()
|
|
|
|
500
|
- : Container(
|
|
|
|
501
|
- // width: ScreenUtil().setWidth(60),
|
|
|
|
502
|
- // height: ScreenUtil().setWidth(42),
|
|
|
|
503
|
- padding: EdgeInsets.all(
|
|
|
|
504
|
- ScreenUtil().setWidth(4)),
|
|
|
|
505
|
- alignment: Alignment.center,
|
|
|
|
506
|
- decoration: BoxDecoration(
|
492
|
+ if (!(table.signStr == '已预订' && !isSelf))
|
|
|
|
493
|
+ Positioned(
|
|
|
|
494
|
+ left: 0,
|
|
|
|
495
|
+ top: 0,
|
|
|
|
496
|
+ child: table.tidStr == null
|
|
|
|
497
|
+ ? Container()
|
|
|
|
498
|
+ : Container(
|
|
|
|
499
|
+ // width: ScreenUtil().setWidth(60),
|
|
|
|
500
|
+ // height: ScreenUtil().setWidth(42),
|
|
|
|
501
|
+ padding:
|
|
|
|
502
|
+ EdgeInsets.all(ScreenUtil().setWidth(4)),
|
|
|
|
503
|
+ alignment: Alignment.center,
|
|
|
|
504
|
+ decoration: BoxDecoration(
|
|
|
|
505
|
+ color: widget.canSelected &&
|
|
|
|
506
|
+ table.selected
|
|
|
|
507
|
+ ? MyColours.color_199095
|
|
|
|
508
|
+ : Color.fromRGBO(239, 239, 239, 1),
|
|
|
|
509
|
+ borderRadius: BorderRadius.only(
|
|
|
|
510
|
+ topLeft: Radius.circular(
|
|
|
|
511
|
+ ScreenUtil().setWidth(20)),
|
|
|
|
512
|
+ // topRight:
|
|
|
|
513
|
+ // Radius.circular(ScreenUtil().setWidth(8)),
|
|
|
|
514
|
+ // bottomRight: Radius.circular(
|
|
|
|
515
|
+ // ScreenUtil().setWidth(8))
|
|
|
|
516
|
+ )),
|
|
|
|
517
|
+ child: Text(table.tidStr,
|
|
|
|
518
|
+ style: TextStyle(
|
|
507
|
color: widget.canSelected &&
|
519
|
color: widget.canSelected &&
|
|
508
|
table.selected
|
520
|
table.selected
|
|
509
|
- ? MyColours.color_199095
|
|
|
|
510
|
- : Color.fromRGBO(
|
|
|
|
511
|
- 239, 239, 239, 1),
|
|
|
|
512
|
- borderRadius: BorderRadius.only(
|
|
|
|
513
|
- topLeft: Radius.circular(
|
|
|
|
514
|
- ScreenUtil().setWidth(20)),
|
|
|
|
515
|
- // topRight:
|
|
|
|
516
|
- // Radius.circular(ScreenUtil().setWidth(8)),
|
|
|
|
517
|
- // bottomRight: Radius.circular(
|
|
|
|
518
|
- // ScreenUtil().setWidth(8))
|
|
|
|
519
|
- )),
|
|
|
|
520
|
- child: Text(table.tidStr,
|
|
|
|
521
|
- style: TextStyle(
|
|
|
|
522
|
- color: widget.canSelected &&
|
|
|
|
523
|
- table.selected
|
|
|
|
524
|
- ? MyColours.color_ffffff
|
|
|
|
525
|
- : MyColours.color_333333,
|
|
|
|
526
|
- fontSize: ScreenUtil().setSp(20),
|
|
|
|
527
|
- decoration: TextDecoration.none,
|
|
|
|
528
|
- fontWeight: FontWeight.normal)),
|
|
|
|
529
|
- ),
|
|
|
|
530
|
- ),
|
521
|
+ ? MyColours.color_ffffff
|
|
|
|
522
|
+ : MyColours.color_333333,
|
|
|
|
523
|
+ fontSize: ScreenUtil().setSp(20),
|
|
|
|
524
|
+ decoration: TextDecoration.none,
|
|
|
|
525
|
+ fontWeight: FontWeight.normal)),
|
|
|
|
526
|
+ ),
|
|
|
|
527
|
+ ),
|
|
531
|
// widget.need && table.signStr == '已预订'
|
528
|
// widget.need && table.signStr == '已预订'
|
|
532
|
// ? Positioned(
|
529
|
// ? Positioned(
|
|
533
|
// bottom: 0,
|
530
|
// bottom: 0,
|
|
@@ -574,52 +571,53 @@ class TableItemOrReserveState extends State<TableItemOrReserve> { |
|
@@ -574,52 +571,53 @@ class TableItemOrReserveState extends State<TableItemOrReserve> { |
|
574
|
// height: ScreenUtil().setWidth(40),
|
571
|
// height: ScreenUtil().setWidth(40),
|
|
575
|
// )
|
572
|
// )
|
|
576
|
// : Container()),
|
573
|
// : Container()),
|
|
577
|
- widget.need && table.signStr == '已预订' && !isSelf
|
|
|
|
578
|
- ? SizedBox()
|
|
|
|
579
|
- : Positioned(
|
|
|
|
580
|
- left: ScreenUtil().setWidth(18),
|
|
|
|
581
|
- bottom: ScreenUtil().setWidth(12),
|
|
|
|
582
|
- child: table.isPhoto != 1
|
|
|
|
583
|
- ? Image.asset(
|
|
|
|
584
|
- widget.canSelected && table.selected
|
|
|
|
585
|
- ? 'assets/f_camera_white.png'
|
|
|
|
586
|
- : "assets/f_camera.png",
|
|
|
|
587
|
- width: ScreenUtil().setWidth(22),
|
|
|
|
588
|
- height: ScreenUtil().setWidth(22),
|
|
|
|
589
|
- )
|
|
|
|
590
|
- : Container()),
|
|
|
|
591
|
- Positioned(
|
|
|
|
592
|
- bottom: 0,
|
|
|
|
593
|
- right: 0,
|
|
|
|
594
|
- left: 0,
|
|
|
|
595
|
- child: table.signStr == '已预订' && !isSelf
|
|
|
|
596
|
- ? Container(
|
|
|
|
597
|
- // width: ScreenUtil().setWidth(160),
|
|
|
|
598
|
- height: ScreenUtil().setWidth(34),
|
|
|
|
599
|
- alignment: Alignment.center,
|
|
|
|
600
|
- padding: EdgeInsets.symmetric(
|
|
|
|
601
|
- horizontal: ScreenUtil().setWidth(10)),
|
|
|
|
602
|
- decoration: BoxDecoration(
|
|
|
|
603
|
- color: table.sign == '10'
|
|
|
|
604
|
- ? MyColours.color_F7C797
|
|
|
|
605
|
- : MyColours.color_d9d9d9,
|
|
|
|
606
|
- borderRadius: BorderRadius.only(
|
|
|
|
607
|
- bottomLeft: Radius.circular(
|
|
|
|
608
|
- ScreenUtil().setWidth(20)),
|
|
|
|
609
|
- bottomRight: Radius.circular(
|
|
|
|
610
|
- ScreenUtil().setWidth(20)))),
|
|
|
|
611
|
- child: Text(
|
|
|
|
612
|
- table.label!,
|
|
|
|
613
|
- textAlign: TextAlign.center,
|
|
|
|
614
|
- overflow: TextOverflow.ellipsis,
|
|
|
|
615
|
- style: TextStyle(
|
|
|
|
616
|
- color: MyColours.color_28323B,
|
|
|
|
617
|
- fontSize: ScreenUtil().setSp(22),
|
|
|
|
618
|
- decoration: TextDecoration.none,
|
|
|
|
619
|
- fontWeight: FontWeight.normal),
|
|
|
|
620
|
- ),
|
|
|
|
621
|
- )
|
|
|
|
622
|
- : SizedBox())
|
574
|
+ if (!(widget.need && table.signStr == '已预订' && !isSelf))
|
|
|
|
575
|
+ Positioned(
|
|
|
|
576
|
+ left: ScreenUtil().setWidth(18),
|
|
|
|
577
|
+ bottom: ScreenUtil().setWidth(12),
|
|
|
|
578
|
+ child: table.isPhoto != 1
|
|
|
|
579
|
+ ? Image.asset(
|
|
|
|
580
|
+ widget.canSelected && table.selected
|
|
|
|
581
|
+ ? 'assets/f_camera_white.png'
|
|
|
|
582
|
+ : "assets/f_camera.png",
|
|
|
|
583
|
+ width: ScreenUtil().setWidth(22),
|
|
|
|
584
|
+ height: ScreenUtil().setWidth(22),
|
|
|
|
585
|
+ )
|
|
|
|
586
|
+ : Container()),
|
|
|
|
587
|
+ if (table.label != '' &&
|
|
|
|
588
|
+ table.label != null &&
|
|
|
|
589
|
+ table.signStr == '已预订' &&
|
|
|
|
590
|
+ !isSelf)
|
|
|
|
591
|
+ Positioned(
|
|
|
|
592
|
+ bottom: 0,
|
|
|
|
593
|
+ right: 0,
|
|
|
|
594
|
+ left: 0,
|
|
|
|
595
|
+ child: Container(
|
|
|
|
596
|
+ // width: ScreenUtil().setWidth(160),
|
|
|
|
597
|
+ height: ScreenUtil().setWidth(34),
|
|
|
|
598
|
+ alignment: Alignment.center,
|
|
|
|
599
|
+ padding: EdgeInsets.symmetric(
|
|
|
|
600
|
+ horizontal: ScreenUtil().setWidth(10)),
|
|
|
|
601
|
+ decoration: BoxDecoration(
|
|
|
|
602
|
+ color: table.sign == '10'
|
|
|
|
603
|
+ ? MyColours.color_F7C797
|
|
|
|
604
|
+ : MyColours.color_d9d9d9,
|
|
|
|
605
|
+ borderRadius: BorderRadius.only(
|
|
|
|
606
|
+ bottomLeft:
|
|
|
|
607
|
+ Radius.circular(ScreenUtil().setWidth(20)),
|
|
|
|
608
|
+ bottomRight: Radius.circular(
|
|
|
|
609
|
+ ScreenUtil().setWidth(20)))),
|
|
|
|
610
|
+ child: Text(
|
|
|
|
611
|
+ table.label!,
|
|
|
|
612
|
+ textAlign: TextAlign.center,
|
|
|
|
613
|
+ overflow: TextOverflow.ellipsis,
|
|
|
|
614
|
+ style: TextStyle(
|
|
|
|
615
|
+ color: MyColours.color_28323B,
|
|
|
|
616
|
+ fontSize: ScreenUtil().setSp(22),
|
|
|
|
617
|
+ decoration: TextDecoration.none,
|
|
|
|
618
|
+ fontWeight: FontWeight.normal),
|
|
|
|
619
|
+ ),
|
|
|
|
620
|
+ ))
|
|
623
|
],
|
621
|
],
|
|
624
|
),
|
622
|
),
|
|
625
|
);
|
623
|
);
|