|
...
|
...
|
@@ -350,9 +350,10 @@ class TableItemOrReserveState extends State<TableItemOrReserve> { |
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: <Widget>[
|
|
|
|
widget.need && table.signStr == '已预订' && !isSelf
|
|
|
|
? SizedBox()
|
|
|
|
: VEmptyView(10),
|
|
|
|
if (!(widget.need &&
|
|
|
|
table.signStr == '已预订' &&
|
|
|
|
!isSelf))
|
|
|
|
VEmptyView(10),
|
|
|
|
Container(
|
|
|
|
// color: Colors.red,
|
|
|
|
alignment: Alignment.center,
|
|
...
|
...
|
@@ -387,89 +388,85 @@ class TableItemOrReserveState extends State<TableItemOrReserve> { |
|
|
|
// overflow: TextOverflow.ellipsis,
|
|
|
|
// ),
|
|
|
|
),
|
|
|
|
((table.reserver != null && table.reserver != '') ||
|
|
|
|
if (((table.reserver != null &&
|
|
|
|
table.reserver != '') ||
|
|
|
|
(table.pnum != '' &&
|
|
|
|
table.pnum != null &&
|
|
|
|
table.pnum != '0')))
|
|
|
|
VEmptyView(8),
|
|
|
|
|
|
|
|
if (!(table.signStr == '已预订' && !isSelf))
|
|
|
|
Text(
|
|
|
|
table.tableNum,
|
|
|
|
style: TextStyle(
|
|
|
|
color: table.signStr == '已预订' && !isSelf
|
|
|
|
? MyColours.color_353535
|
|
|
|
: (widget.canSelected && table.selected)
|
|
|
|
? MyColours.color_ffffff
|
|
|
|
: MyColours.color_353535,
|
|
|
|
fontSize: ScreenUtil().setSp(22),
|
|
|
|
decoration: TextDecoration.none,
|
|
|
|
fontWeight: FontWeight.normal),
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
),
|
|
|
|
if (table.signStr == '已预订' &&
|
|
|
|
!isSelf &&
|
|
|
|
((table.reserver != null &&
|
|
|
|
!table.reserver!.isEmpty &&
|
|
|
|
table.reserver != '') ||
|
|
|
|
(table.pnum != '' &&
|
|
|
|
table.pnum != null &&
|
|
|
|
table.pnum != '0'))
|
|
|
|
? VEmptyView(8)
|
|
|
|
: SizedBox(),
|
|
|
|
table.signStr == '已预订' && !isSelf
|
|
|
|
? SizedBox()
|
|
|
|
: Text(
|
|
|
|
table.tableNum,
|
|
|
|
style: TextStyle(
|
|
|
|
color: table.signStr == '已预订' && !isSelf
|
|
|
|
? MyColours.color_353535
|
|
|
|
: (widget.canSelected &&
|
|
|
|
table.selected)
|
|
|
|
? MyColours.color_ffffff
|
|
|
|
: MyColours.color_353535,
|
|
|
|
fontSize: ScreenUtil().setSp(22),
|
|
|
|
decoration: TextDecoration.none,
|
|
|
|
fontWeight: FontWeight.normal),
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
),
|
|
|
|
table.signStr == '已预订' &&
|
|
|
|
!isSelf &&
|
|
|
|
((table.reserver != null &&
|
|
|
|
!table.reserver!.isEmpty &&
|
|
|
|
table.reserver != '') ||
|
|
|
|
(table.pnum != '' &&
|
|
|
|
table.pnum != '0')))
|
|
|
|
Text(
|
|
|
|
(table.reserver == null ||
|
|
|
|
table.reserver!.isEmpty ||
|
|
|
|
table.reserver == '')
|
|
|
|
? (table.pnum != '' &&
|
|
|
|
table.pnum != null &&
|
|
|
|
table.pnum != '0'))
|
|
|
|
? Text(
|
|
|
|
(table.reserver == null ||
|
|
|
|
table.reserver!.isEmpty ||
|
|
|
|
table.reserver == '')
|
|
|
|
? (table.pnum != '' &&
|
|
|
|
table.pnum != '0')
|
|
|
|
? '(${table.pnum}人)'
|
|
|
|
: ''
|
|
|
|
: '${table.reserver}' +
|
|
|
|
(table.pnum != '' &&
|
|
|
|
table.pnum != null &&
|
|
|
|
table.pnum != '0')
|
|
|
|
table.pnum != '0'
|
|
|
|
? '(${table.pnum}人)'
|
|
|
|
: ''
|
|
|
|
: '${table.reserver}' +
|
|
|
|
(table.pnum != '' &&
|
|
|
|
table.pnum != null &&
|
|
|
|
table.pnum != '0'
|
|
|
|
? '(${table.pnum}人)'
|
|
|
|
: ''),
|
|
|
|
style: TextStyle(
|
|
|
|
color: table.signStr == '已预订' && !isSelf
|
|
|
|
? MyColours.color_353535
|
|
|
|
: (widget.canSelected &&
|
|
|
|
table.selected)
|
|
|
|
? MyColours.color_ffffff
|
|
|
|
: MyColours.color_353535,
|
|
|
|
fontSize: ScreenUtil().setSp(22),
|
|
|
|
decoration: TextDecoration.none,
|
|
|
|
fontWeight: FontWeight.normal),
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
)
|
|
|
|
: SizedBox(),
|
|
|
|
: ''),
|
|
|
|
style: TextStyle(
|
|
|
|
color: table.signStr == '已预订' && !isSelf
|
|
|
|
? MyColours.color_353535
|
|
|
|
: (widget.canSelected && table.selected)
|
|
|
|
? MyColours.color_ffffff
|
|
|
|
: MyColours.color_353535,
|
|
|
|
fontSize: ScreenUtil().setSp(22),
|
|
|
|
decoration: TextDecoration.none,
|
|
|
|
fontWeight: FontWeight.normal),
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
),
|
|
|
|
|
|
|
|
widget.need &&
|
|
|
|
table.signStr == '已预订' &&
|
|
|
|
!isSelf &&
|
|
|
|
table.place_order_name != null &&
|
|
|
|
table.place_order_name != ''
|
|
|
|
? Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
top: ScreenUtil().setWidth(6),
|
|
|
|
bottom: ScreenUtil().setWidth(8),
|
|
|
|
),
|
|
|
|
child: Text(
|
|
|
|
table.place_order_name != null &&
|
|
|
|
table.place_order_name != ''
|
|
|
|
? '${table.place_order_name}订'
|
|
|
|
: '',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_353535,
|
|
|
|
fontSize: ScreenUtil().setSp(22),
|
|
|
|
decoration: TextDecoration.none,
|
|
|
|
fontWeight: FontWeight.normal),
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
),
|
|
|
|
)
|
|
|
|
: SizedBox(),
|
|
|
|
if (widget.need &&
|
|
|
|
table.signStr == '已预订' &&
|
|
|
|
!isSelf &&
|
|
|
|
table.place_order_name != null &&
|
|
|
|
table.place_order_name != '')
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
top: ScreenUtil().setWidth(6),
|
|
|
|
bottom: ScreenUtil().setWidth(8),
|
|
|
|
),
|
|
|
|
child: Text(
|
|
|
|
table.place_order_name != null &&
|
|
|
|
table.place_order_name != ''
|
|
|
|
? '${table.place_order_name}订'
|
|
|
|
: '',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_353535,
|
|
|
|
fontSize: ScreenUtil().setSp(22),
|
|
|
|
decoration: TextDecoration.none,
|
|
|
|
fontWeight: FontWeight.normal),
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
// VEmptyView(6),
|
|
|
|
// Text(
|
|
|
|
// table.lowStr,
|
|
...
|
...
|
@@ -480,54 +477,54 @@ class TableItemOrReserveState extends State<TableItemOrReserve> { |
|
|
|
// fontWeight: FontWeight.normal),
|
|
|
|
// overflow: TextOverflow.ellipsis,
|
|
|
|
// )
|
|
|
|
table.signStr == '已预订' && !isSelf
|
|
|
|
? Container(
|
|
|
|
// width: ScreenUtil().setWidth(160),
|
|
|
|
height: ScreenUtil().setWidth(34),
|
|
|
|
)
|
|
|
|
: SizedBox()
|
|
|
|
if (table.label != '' &&
|
|
|
|
table.label != null &&
|
|
|
|
table.signStr == '已预订' &&
|
|
|
|
!isSelf)
|
|
|
|
Container(
|
|
|
|
// width: ScreenUtil().setWidth(160),
|
|
|
|
height: ScreenUtil().setWidth(34),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
table.signStr == '已预订' && !isSelf
|
|
|
|
? SizedBox()
|
|
|
|
: Positioned(
|
|
|
|
left: 0,
|
|
|
|
top: 0,
|
|
|
|
child: table.tidStr == null
|
|
|
|
? Container()
|
|
|
|
: Container(
|
|
|
|
// width: ScreenUtil().setWidth(60),
|
|
|
|
// height: ScreenUtil().setWidth(42),
|
|
|
|
padding: EdgeInsets.all(
|
|
|
|
ScreenUtil().setWidth(4)),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
if (!(table.signStr == '已预订' && !isSelf))
|
|
|
|
Positioned(
|
|
|
|
left: 0,
|
|
|
|
top: 0,
|
|
|
|
child: table.tidStr == null
|
|
|
|
? Container()
|
|
|
|
: Container(
|
|
|
|
// width: ScreenUtil().setWidth(60),
|
|
|
|
// height: ScreenUtil().setWidth(42),
|
|
|
|
padding:
|
|
|
|
EdgeInsets.all(ScreenUtil().setWidth(4)),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: widget.canSelected &&
|
|
|
|
table.selected
|
|
|
|
? MyColours.color_199095
|
|
|
|
: Color.fromRGBO(239, 239, 239, 1),
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
topLeft: Radius.circular(
|
|
|
|
ScreenUtil().setWidth(20)),
|
|
|
|
// topRight:
|
|
|
|
// Radius.circular(ScreenUtil().setWidth(8)),
|
|
|
|
// bottomRight: Radius.circular(
|
|
|
|
// ScreenUtil().setWidth(8))
|
|
|
|
)),
|
|
|
|
child: Text(table.tidStr,
|
|
|
|
style: TextStyle(
|
|
|
|
color: widget.canSelected &&
|
|
|
|
table.selected
|
|
|
|
? MyColours.color_199095
|
|
|
|
: Color.fromRGBO(
|
|
|
|
239, 239, 239, 1),
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
topLeft: Radius.circular(
|
|
|
|
ScreenUtil().setWidth(20)),
|
|
|
|
// topRight:
|
|
|
|
// Radius.circular(ScreenUtil().setWidth(8)),
|
|
|
|
// bottomRight: Radius.circular(
|
|
|
|
// ScreenUtil().setWidth(8))
|
|
|
|
)),
|
|
|
|
child: Text(table.tidStr,
|
|
|
|
style: TextStyle(
|
|
|
|
color: widget.canSelected &&
|
|
|
|
table.selected
|
|
|
|
? MyColours.color_ffffff
|
|
|
|
: MyColours.color_333333,
|
|
|
|
fontSize: ScreenUtil().setSp(20),
|
|
|
|
decoration: TextDecoration.none,
|
|
|
|
fontWeight: FontWeight.normal)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
? MyColours.color_ffffff
|
|
|
|
: MyColours.color_333333,
|
|
|
|
fontSize: ScreenUtil().setSp(20),
|
|
|
|
decoration: TextDecoration.none,
|
|
|
|
fontWeight: FontWeight.normal)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
// widget.need && table.signStr == '已预订'
|
|
|
|
// ? Positioned(
|
|
|
|
// bottom: 0,
|
|
...
|
...
|
@@ -574,52 +571,53 @@ class TableItemOrReserveState extends State<TableItemOrReserve> { |
|
|
|
// height: ScreenUtil().setWidth(40),
|
|
|
|
// )
|
|
|
|
// : Container()),
|
|
|
|
widget.need && table.signStr == '已预订' && !isSelf
|
|
|
|
? SizedBox()
|
|
|
|
: Positioned(
|
|
|
|
left: ScreenUtil().setWidth(18),
|
|
|
|
bottom: ScreenUtil().setWidth(12),
|
|
|
|
child: table.isPhoto != 1
|
|
|
|
? Image.asset(
|
|
|
|
widget.canSelected && table.selected
|
|
|
|
? 'assets/f_camera_white.png'
|
|
|
|
: "assets/f_camera.png",
|
|
|
|
width: ScreenUtil().setWidth(22),
|
|
|
|
height: ScreenUtil().setWidth(22),
|
|
|
|
)
|
|
|
|
: Container()),
|
|
|
|
Positioned(
|
|
|
|
bottom: 0,
|
|
|
|
right: 0,
|
|
|
|
left: 0,
|
|
|
|
child: table.signStr == '已预订' && !isSelf
|
|
|
|
? Container(
|
|
|
|
// width: ScreenUtil().setWidth(160),
|
|
|
|
height: ScreenUtil().setWidth(34),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(10)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: table.sign == '10'
|
|
|
|
? MyColours.color_F7C797
|
|
|
|
: MyColours.color_d9d9d9,
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
bottomLeft: Radius.circular(
|
|
|
|
ScreenUtil().setWidth(20)),
|
|
|
|
bottomRight: Radius.circular(
|
|
|
|
ScreenUtil().setWidth(20)))),
|
|
|
|
child: Text(
|
|
|
|
table.label!,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_28323B,
|
|
|
|
fontSize: ScreenUtil().setSp(22),
|
|
|
|
decoration: TextDecoration.none,
|
|
|
|
fontWeight: FontWeight.normal),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
: SizedBox())
|
|
|
|
if (!(widget.need && table.signStr == '已预订' && !isSelf))
|
|
|
|
Positioned(
|
|
|
|
left: ScreenUtil().setWidth(18),
|
|
|
|
bottom: ScreenUtil().setWidth(12),
|
|
|
|
child: table.isPhoto != 1
|
|
|
|
? Image.asset(
|
|
|
|
widget.canSelected && table.selected
|
|
|
|
? 'assets/f_camera_white.png'
|
|
|
|
: "assets/f_camera.png",
|
|
|
|
width: ScreenUtil().setWidth(22),
|
|
|
|
height: ScreenUtil().setWidth(22),
|
|
|
|
)
|
|
|
|
: Container()),
|
|
|
|
if (table.label != '' &&
|
|
|
|
table.label != null &&
|
|
|
|
table.signStr == '已预订' &&
|
|
|
|
!isSelf)
|
|
|
|
Positioned(
|
|
|
|
bottom: 0,
|
|
|
|
right: 0,
|
|
|
|
left: 0,
|
|
|
|
child: Container(
|
|
|
|
// width: ScreenUtil().setWidth(160),
|
|
|
|
height: ScreenUtil().setWidth(34),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(10)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: table.sign == '10'
|
|
|
|
? MyColours.color_F7C797
|
|
|
|
: MyColours.color_d9d9d9,
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
bottomLeft:
|
|
|
|
Radius.circular(ScreenUtil().setWidth(20)),
|
|
|
|
bottomRight: Radius.circular(
|
|
|
|
ScreenUtil().setWidth(20)))),
|
|
|
|
child: Text(
|
|
|
|
table.label!,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_28323B,
|
|
|
|
fontSize: ScreenUtil().setSp(22),
|
|
|
|
decoration: TextDecoration.none,
|
|
|
|
fontWeight: FontWeight.normal),
|
|
|
|
),
|
|
|
|
))
|
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
...
|
...
|
|