|
@@ -555,29 +555,29 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> { |
|
@@ -555,29 +555,29 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> { |
|
555
|
),
|
555
|
),
|
|
556
|
);
|
556
|
);
|
|
557
|
},
|
557
|
},
|
|
558
|
- todayDayBuilder: (context, date, _) {
|
|
|
|
559
|
- return Container(
|
|
|
|
560
|
- decoration: BoxDecoration(
|
|
|
|
561
|
- shape: BoxShape.circle,
|
|
|
|
562
|
- border: Border.all(
|
|
|
|
563
|
- color: MyColours.color_199095,
|
|
|
|
564
|
- width: 1)),
|
|
|
|
565
|
- alignment: Alignment.center,
|
|
|
|
566
|
- margin: const EdgeInsets.all(6.0),
|
|
|
|
567
|
- padding: const EdgeInsets.only(
|
|
|
|
568
|
- bottom: 4.0,
|
|
|
|
569
|
- left: 8.0,
|
|
|
|
570
|
- right: 8.0,
|
|
|
|
571
|
- top: 4.0),
|
|
|
|
572
|
- child: Text(
|
|
|
|
573
|
- '今',
|
|
|
|
574
|
- style: TextStyle().copyWith(
|
|
|
|
575
|
- fontSize: ScreenUtil().setSp(32),
|
|
|
|
576
|
- color: MyColours.color_199095,
|
|
|
|
577
|
- fontWeight: FontWeight.bold),
|
|
|
|
578
|
- ),
|
|
|
|
579
|
- );
|
|
|
|
580
|
- },
|
558
|
+ // todayDayBuilder: (context, date, _) {
|
|
|
|
559
|
+ // return Container(
|
|
|
|
560
|
+ // decoration: BoxDecoration(
|
|
|
|
561
|
+ // shape: BoxShape.circle,
|
|
|
|
562
|
+ // border: Border.all(
|
|
|
|
563
|
+ // color: MyColours.color_199095,
|
|
|
|
564
|
+ // width: 1)),
|
|
|
|
565
|
+ // alignment: Alignment.center,
|
|
|
|
566
|
+ // margin: const EdgeInsets.all(6.0),
|
|
|
|
567
|
+ // padding: const EdgeInsets.only(
|
|
|
|
568
|
+ // bottom: 4.0,
|
|
|
|
569
|
+ // left: 8.0,
|
|
|
|
570
|
+ // right: 8.0,
|
|
|
|
571
|
+ // top: 4.0),
|
|
|
|
572
|
+ // child: Text(
|
|
|
|
573
|
+ // '今',
|
|
|
|
574
|
+ // style: TextStyle().copyWith(
|
|
|
|
575
|
+ // fontSize: ScreenUtil().setSp(32),
|
|
|
|
576
|
+ // color: MyColours.color_199095,
|
|
|
|
577
|
+ // fontWeight: FontWeight.bold),
|
|
|
|
578
|
+ // ),
|
|
|
|
579
|
+ // );
|
|
|
|
580
|
+ // },
|
|
581
|
singleMarkerBuilder:
|
581
|
singleMarkerBuilder:
|
|
582
|
(context, dateTime, event) {
|
582
|
(context, dateTime, event) {
|
|
583
|
return Container(
|
583
|
return Container(
|
|
@@ -621,7 +621,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> { |
|
@@ -621,7 +621,7 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> { |
|
621
|
childAspectRatio: 2.4),
|
621
|
childAspectRatio: 2.4),
|
|
622
|
itemBuilder: (context, index) {
|
622
|
itemBuilder: (context, index) {
|
|
623
|
return GestureDetector(
|
623
|
return GestureDetector(
|
|
624
|
- onTap: () {
|
624
|
+ onTap: () async {
|
|
625
|
// if (tables[index]
|
625
|
// if (tables[index]
|
|
626
|
// .status
|
626
|
// .status
|
|
627
|
// .toString() ==
|
627
|
// .toString() ==
|
|
@@ -671,8 +671,26 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> { |
|
@@ -671,8 +671,26 @@ class StoreTypeFillManagePageState extends State<StoreTypeFillManagePage> { |
|
671
|
params['id'] =
|
671
|
params['id'] =
|
|
672
|
tables[index].fid;
|
672
|
tables[index].fid;
|
|
673
|
}
|
673
|
}
|
|
674
|
- model.setTableClassFull(
|
|
|
|
675
|
- context, params, index);
|
674
|
+ bool success =
|
|
|
|
675
|
+ await model.setTableClassFull(
|
|
|
|
676
|
+ context, params, index);
|
|
|
|
677
|
+ if (success) {
|
|
|
|
678
|
+ if (tables[index].isFull == 1 &&
|
|
|
|
679
|
+ tables[index].fid != null) {
|
|
|
|
680
|
+ //置满成功
|
|
|
|
681
|
+ // fillTimes.add(
|
|
|
|
682
|
+ // "${_selectDateTime.year}-${Utils.addZeroNumber(_selectDateTime.month)}-${Utils.addZeroNumber(_selectDateTime.day)}");
|
|
|
|
683
|
+
|
|
|
|
684
|
+ // setState(() {});
|
|
|
|
685
|
+ _getTableFillUpDate();
|
|
|
|
686
|
+ } else {
|
|
|
|
687
|
+ //取消置满成功
|
|
|
|
688
|
+ // fillTimes.remove(
|
|
|
|
689
|
+ // "${_selectDateTime.year}-${Utils.addZeroNumber(_selectDateTime.month)}-${Utils.addZeroNumber(_selectDateTime.day)}");
|
|
|
|
690
|
+ // setState(() {});
|
|
|
|
691
|
+ _getTableFillUpDate();
|
|
|
|
692
|
+ }
|
|
|
|
693
|
+ }
|
|
676
|
},
|
694
|
},
|
|
677
|
child: Stack(
|
695
|
child: Stack(
|
|
678
|
children: <Widget>[
|
696
|
children: <Widget>[
|