Showing
6 changed files
with
22 additions
and
16 deletions
| @@ -976,7 +976,7 @@ class NotebookDetailPageState extends State<NotebookDetailPage> | @@ -976,7 +976,7 @@ class NotebookDetailPageState extends State<NotebookDetailPage> | ||
| 976 | isShowTF = false; | 976 | isShowTF = false; |
| 977 | // paddingBottom = ScreenUtil().screenHeight.ceil() - 138 - 340; | 977 | // paddingBottom = ScreenUtil().screenHeight.ceil() - 138 - 340; |
| 978 | cancelReasonList = [ | 978 | cancelReasonList = [ |
| 979 | - {'title': '顾客取消', 'select': false}, | 979 | + {'title': '顾客取消', 'select': true}, |
| 980 | {'title': '顾客行程有变', 'select': false}, | 980 | {'title': '顾客行程有变', 'select': false}, |
| 981 | {'title': '操作失误', 'select': false}, | 981 | {'title': '操作失误', 'select': false}, |
| 982 | {'title': '信息填写有误', 'select': false}, | 982 | {'title': '信息填写有误', 'select': false}, |
| @@ -1312,6 +1312,7 @@ class NotebookDetailPageState extends State<NotebookDetailPage> | @@ -1312,6 +1312,7 @@ class NotebookDetailPageState extends State<NotebookDetailPage> | ||
| 1312 | 1312 | ||
| 1313 | ///取消预订弹框 | 1313 | ///取消预订弹框 |
| 1314 | _showCancelWidget(context, phone) { | 1314 | _showCancelWidget(context, phone) { |
| 1315 | + BuildContext pageContext = context; | ||
| 1315 | _scrollController = ScrollController(); | 1316 | _scrollController = ScrollController(); |
| 1316 | showGeneralDialog( | 1317 | showGeneralDialog( |
| 1317 | context: context, | 1318 | context: context, |
| @@ -1612,8 +1613,9 @@ class NotebookDetailPageState extends State<NotebookDetailPage> | @@ -1612,8 +1613,9 @@ class NotebookDetailPageState extends State<NotebookDetailPage> | ||
| 1612 | 1613 | ||
| 1613 | print(oldInfo); | 1614 | print(oldInfo); |
| 1614 | 1615 | ||
| 1616 | + Navigator.of(context).pop(); | ||
| 1615 | DialogUtil.cupertinoAlertDialogCancelReseve( | 1617 | DialogUtil.cupertinoAlertDialogCancelReseve( |
| 1616 | - context, | 1618 | + pageContext, |
| 1617 | title: '', | 1619 | title: '', |
| 1618 | // content1: | 1620 | // content1: |
| 1619 | // '确定要将${oldInfo}的预订 变更为 ${newInfo}?', | 1621 | // '确定要将${oldInfo}的预订 变更为 ${newInfo}?', |
| @@ -1621,8 +1623,7 @@ class NotebookDetailPageState extends State<NotebookDetailPage> | @@ -1621,8 +1623,7 @@ class NotebookDetailPageState extends State<NotebookDetailPage> | ||
| 1621 | lTitle: '取消', | 1623 | lTitle: '取消', |
| 1622 | lCallback: () {}, | 1624 | lCallback: () {}, |
| 1623 | rTitle: '确定', rCallback: () async { | 1625 | rTitle: '确定', rCallback: () async { |
| 1624 | - Navigator.of(context).pop(); | ||
| 1625 | - Loading.showLoading(context); | 1626 | + Loading.showLoading(pageContext); |
| 1626 | 1627 | ||
| 1627 | await setReserveStatus('4', | 1628 | await setReserveStatus('4', |
| 1628 | desc: desc, phone: phone); | 1629 | desc: desc, phone: phone); |
| @@ -1636,7 +1637,7 @@ class NotebookDetailPageState extends State<NotebookDetailPage> | @@ -1636,7 +1637,7 @@ class NotebookDetailPageState extends State<NotebookDetailPage> | ||
| 1636 | }; | 1637 | }; |
| 1637 | 1638 | ||
| 1638 | await detailModel!.setReserveDeposit( | 1639 | await detailModel!.setReserveDeposit( |
| 1639 | - context, pramas); | 1640 | + pageContext, pramas); |
| 1640 | } | 1641 | } |
| 1641 | }); | 1642 | }); |
| 1642 | }), | 1643 | }), |
| @@ -916,7 +916,7 @@ class NoteBookPageState extends State<NoteBookPage> { | @@ -916,7 +916,7 @@ class NoteBookPageState extends State<NoteBookPage> { | ||
| 916 | _showCancelWidget(context, NoteBookOnlySunModel notebook, | 916 | _showCancelWidget(context, NoteBookOnlySunModel notebook, |
| 917 | List<ReserveDepositSunModel> reserveDepositList) { | 917 | List<ReserveDepositSunModel> reserveDepositList) { |
| 918 | List<Map<String, dynamic>> cancelReasonList = [ | 918 | List<Map<String, dynamic>> cancelReasonList = [ |
| 919 | - {'title': '顾客取消', 'select': false}, | 919 | + {'title': '顾客取消', 'select': true}, |
| 920 | {'title': '顾客行程有变', 'select': false}, | 920 | {'title': '顾客行程有变', 'select': false}, |
| 921 | {'title': '操作失误', 'select': false}, | 921 | {'title': '操作失误', 'select': false}, |
| 922 | {'title': '信息填写有误', 'select': false}, | 922 | {'title': '信息填写有误', 'select': false}, |
| @@ -936,6 +936,7 @@ class NoteBookPageState extends State<NoteBookPage> { | @@ -936,6 +936,7 @@ class NoteBookPageState extends State<NoteBookPage> { | ||
| 936 | FocusNode _cancelNode = FocusNode(); | 936 | FocusNode _cancelNode = FocusNode(); |
| 937 | TextEditingController _cancelController = TextEditingController(); | 937 | TextEditingController _cancelController = TextEditingController(); |
| 938 | String? desc2 = ''; | 938 | String? desc2 = ''; |
| 939 | + BuildContext pageContext = context; | ||
| 939 | showGeneralDialog( | 940 | showGeneralDialog( |
| 940 | context: context, | 941 | context: context, |
| 941 | barrierDismissible: false, | 942 | barrierDismissible: false, |
| @@ -1241,8 +1242,9 @@ class NoteBookPageState extends State<NoteBookPage> { | @@ -1241,8 +1242,9 @@ class NoteBookPageState extends State<NoteBookPage> { | ||
| 1241 | 1242 | ||
| 1242 | print(oldInfo); | 1243 | print(oldInfo); |
| 1243 | 1244 | ||
| 1245 | + Navigator.of(context).pop(); | ||
| 1244 | DialogUtil.cupertinoAlertDialogCancelReseve( | 1246 | DialogUtil.cupertinoAlertDialogCancelReseve( |
| 1245 | - context, | 1247 | + pageContext, |
| 1246 | title: '', | 1248 | title: '', |
| 1247 | // content1: | 1249 | // content1: |
| 1248 | // '确定要将${oldInfo}的预订 变更为 ${newInfo}?', | 1250 | // '确定要将${oldInfo}的预订 变更为 ${newInfo}?', |
| @@ -1250,8 +1252,7 @@ class NoteBookPageState extends State<NoteBookPage> { | @@ -1250,8 +1252,7 @@ class NoteBookPageState extends State<NoteBookPage> { | ||
| 1250 | lTitle: '取消', | 1252 | lTitle: '取消', |
| 1251 | lCallback: () {}, | 1253 | lCallback: () {}, |
| 1252 | rTitle: '确定', rCallback: () async { | 1254 | rTitle: '确定', rCallback: () async { |
| 1253 | - Navigator.of(context).pop(); | ||
| 1254 | - Loading.showLoading(context); | 1255 | + Loading.showLoading(pageContext); |
| 1255 | 1256 | ||
| 1256 | await setReserveStatus( | 1257 | await setReserveStatus( |
| 1257 | '4', | 1258 | '4', |
| @@ -1268,7 +1269,7 @@ class NoteBookPageState extends State<NoteBookPage> { | @@ -1268,7 +1269,7 @@ class NoteBookPageState extends State<NoteBookPage> { | ||
| 1268 | }; | 1269 | }; |
| 1269 | 1270 | ||
| 1270 | await detailModel.setReserveDeposit( | 1271 | await detailModel.setReserveDeposit( |
| 1271 | - context, pramas); | 1272 | + pageContext, pramas); |
| 1272 | } | 1273 | } |
| 1273 | }); | 1274 | }); |
| 1274 | }), | 1275 | }), |
| @@ -4411,6 +4411,8 @@ class TableManagerPageState extends State<TableManagerPage> | @@ -4411,6 +4411,8 @@ class TableManagerPageState extends State<TableManagerPage> | ||
| 4411 | child: Container( | 4411 | child: Container( |
| 4412 | alignment: Alignment.center, | 4412 | alignment: Alignment.center, |
| 4413 | width: double.infinity, | 4413 | width: double.infinity, |
| 4414 | + height: (ScreenUtil().screenWidth - w(10) - w(18)) / 4 * 0.4 + | ||
| 4415 | + ScreenUtil().setWidth(20), | ||
| 4414 | // width: width, | 4416 | // width: width, |
| 4415 | // padding: padding, | 4417 | // padding: padding, |
| 4416 | // height: ScreenUtil().setWidth(height), | 4418 | // height: ScreenUtil().setWidth(height), |
| @@ -4424,6 +4426,7 @@ class TableManagerPageState extends State<TableManagerPage> | @@ -4424,6 +4426,7 @@ class TableManagerPageState extends State<TableManagerPage> | ||
| 4424 | width: w(1), | 4426 | width: w(1), |
| 4425 | ))), | 4427 | ))), |
| 4426 | child: Column( | 4428 | child: Column( |
| 4429 | + mainAxisAlignment: MainAxisAlignment.center, | ||
| 4427 | children: [ | 4430 | children: [ |
| 4428 | Text( | 4431 | Text( |
| 4429 | element.mname ?? '', | 4432 | element.mname ?? '', |
| @@ -4554,8 +4557,9 @@ class TableManagerPageState extends State<TableManagerPage> | @@ -4554,8 +4557,9 @@ class TableManagerPageState extends State<TableManagerPage> | ||
| 4554 | child: Container( | 4557 | child: Container( |
| 4555 | // height: w(35), | 4558 | // height: w(35), |
| 4556 | height: (ScreenUtil().screenWidth - w(10) - w(18)) / | 4559 | height: (ScreenUtil().screenWidth - w(10) - w(18)) / |
| 4557 | - 4 * | ||
| 4558 | - 0.6, | 4560 | + 4 * |
| 4561 | + 0.6 + | ||
| 4562 | + ScreenUtil().setWidth(10), | ||
| 4559 | padding: EdgeInsets.symmetric( | 4563 | padding: EdgeInsets.symmetric( |
| 4560 | horizontal: w(10), | 4564 | horizontal: w(10), |
| 4561 | // vertical: ScreenUtil().setWidth(20) | 4565 | // vertical: ScreenUtil().setWidth(20) |
| @@ -4593,7 +4597,7 @@ class TableManagerPageState extends State<TableManagerPage> | @@ -4593,7 +4597,7 @@ class TableManagerPageState extends State<TableManagerPage> | ||
| 4593 | ], | 4597 | ], |
| 4594 | )), | 4598 | )), |
| 4595 | )), | 4599 | )), |
| 4596 | - VEmptyView(2), | 4600 | + VEmptyView(5), |
| 4597 | if (storeBaseIndoProvider.dayDateData != null) | 4601 | if (storeBaseIndoProvider.dayDateData != null) |
| 4598 | Container( | 4602 | Container( |
| 4599 | padding: EdgeInsets.symmetric( | 4603 | padding: EdgeInsets.symmetric( |
| @@ -729,7 +729,7 @@ class NotebookDetailPageSimState extends State<NotebookDetailPageSim> | @@ -729,7 +729,7 @@ class NotebookDetailPageSimState extends State<NotebookDetailPageSim> | ||
| 729 | isShowTF = false; | 729 | isShowTF = false; |
| 730 | // paddingBottom = ScreenUtil().screenHeight.ceil() - 138 - 340; | 730 | // paddingBottom = ScreenUtil().screenHeight.ceil() - 138 - 340; |
| 731 | cancelReasonList = [ | 731 | cancelReasonList = [ |
| 732 | - {'title': '顾客取消', 'select': false}, | 732 | + {'title': '顾客取消', 'select': true}, |
| 733 | {'title': '顾客行程有变', 'select': false}, | 733 | {'title': '顾客行程有变', 'select': false}, |
| 734 | {'title': '操作失误', 'select': false}, | 734 | {'title': '操作失误', 'select': false}, |
| 735 | {'title': '信息填写有误', 'select': false}, | 735 | {'title': '信息填写有误', 'select': false}, |
| @@ -100,7 +100,7 @@ class NoteBookItemFSimState extends State<NoteBookItemFSim> | @@ -100,7 +100,7 @@ class NoteBookItemFSimState extends State<NoteBookItemFSim> | ||
| 100 | // isShowTF = false; | 100 | // isShowTF = false; |
| 101 | // paddingBottom = ScreenUtil().screenHeight.ceil() - 138 - 340; | 101 | // paddingBottom = ScreenUtil().screenHeight.ceil() - 138 - 340; |
| 102 | cancelReasonList = [ | 102 | cancelReasonList = [ |
| 103 | - {'title': '顾客取消', 'select': false}, | 103 | + {'title': '顾客取消', 'select': true}, |
| 104 | {'title': '顾客行程有变', 'select': false}, | 104 | {'title': '顾客行程有变', 'select': false}, |
| 105 | {'title': '信息填写有误', 'select': false}, | 105 | {'title': '信息填写有误', 'select': false}, |
| 106 | {'title': '操作失误', 'select': false}, | 106 | {'title': '操作失误', 'select': false}, |
| @@ -112,7 +112,7 @@ class NoteBookItemSimpleSimState extends State<NoteBookItemSimpleSim> | @@ -112,7 +112,7 @@ class NoteBookItemSimpleSimState extends State<NoteBookItemSimpleSim> | ||
| 112 | // isShowTF = false; | 112 | // isShowTF = false; |
| 113 | // paddingBottom = ScreenUtil().screenHeight.ceil() - 138 - 340; | 113 | // paddingBottom = ScreenUtil().screenHeight.ceil() - 138 - 340; |
| 114 | cancelReasonList = [ | 114 | cancelReasonList = [ |
| 115 | - {'title': '顾客取消', 'select': false}, | 115 | + {'title': '顾客取消', 'select': true}, |
| 116 | {'title': '顾客行程有变', 'select': false}, | 116 | {'title': '顾客行程有变', 'select': false}, |
| 117 | {'title': '信息填写有误', 'select': false}, | 117 | {'title': '信息填写有误', 'select': false}, |
| 118 | {'title': '操作失误', 'select': false}, | 118 | {'title': '操作失误', 'select': false}, |
-
Please register or login to post a comment