|
...
|
...
|
@@ -51,7 +51,7 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
Manager manager = Manager();
|
|
|
|
List cancelReasonList = [];
|
|
|
|
bool isShowTF = false;
|
|
|
|
int paddingBottom = 174;
|
|
|
|
int paddingBottom;
|
|
|
|
int paddingTop = 138;
|
|
|
|
FocusNode _cancelNode = FocusNode();
|
|
|
|
TextEditingController _cancelController = TextEditingController();
|
|
...
|
...
|
@@ -100,7 +100,7 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
/// 初始化取消原因数据
|
|
|
|
_initCancel() {
|
|
|
|
isShowTF = false;
|
|
|
|
paddingBottom = 174;
|
|
|
|
paddingBottom = ScreenUtil.screenHeightDp.ceil() - 138 - 340;
|
|
|
|
cancelReasonList = [
|
|
|
|
{'title': '顾客取消', 'select': false},
|
|
|
|
{'title': '顾客行程有变', 'select': false},
|
|
...
|
...
|
@@ -197,27 +197,35 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
children: [
|
|
|
|
Stack(
|
|
|
|
children: [
|
|
|
|
Center(
|
|
|
|
child: Text(
|
|
|
|
'请选择取消原因',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(34),
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
decoration: TextDecoration.none,
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
Container(
|
|
|
|
height: ScreenUtil().setWidth(48),
|
|
|
|
child: Center(
|
|
|
|
child: Text(
|
|
|
|
'请选择取消原因',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(34),
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
decoration: TextDecoration.none,
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Positioned(
|
|
|
|
top: ScreenUtil().setWidth(8),
|
|
|
|
right: ScreenUtil().setWidth(0),
|
|
|
|
child: GestureDetector(
|
|
|
|
onTap: () {
|
|
|
|
_initCancel();
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
},
|
|
|
|
child: Image.asset('assets/close.png',
|
|
|
|
width: ScreenUtil().setWidth(32)),
|
|
|
|
))
|
|
|
|
onTap: () {
|
|
|
|
_initCancel();
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
padding: EdgeInsets.only(left: 20),
|
|
|
|
child: Image.asset(
|
|
|
|
'assets/close.png',
|
|
|
|
width: ScreenUtil().setWidth(32),
|
|
|
|
height: ScreenUtil().setWidth(32),
|
|
|
|
),
|
|
|
|
)))
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(60),
|
|
...
|
...
|
@@ -228,12 +236,20 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
for (var item in cancelReasonList) {
|
|
|
|
item['select'] = false;
|
|
|
|
isShowTF = false;
|
|
|
|
paddingBottom = 174;
|
|
|
|
paddingBottom =
|
|
|
|
ScreenUtil.screenHeightDp.ceil() -
|
|
|
|
138 -
|
|
|
|
340;
|
|
|
|
if (item['title'] == value['title']) {
|
|
|
|
item['select'] = true;
|
|
|
|
if (item['title'] == '其他原因') {
|
|
|
|
isShowTF = true;
|
|
|
|
paddingBottom = 130;
|
|
|
|
// paddingBottom = 130;
|
|
|
|
paddingBottom =
|
|
|
|
ScreenUtil.screenHeightDp.ceil() -
|
|
|
|
138 -
|
|
|
|
340 -
|
|
|
|
46;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
...
|
...
|
@@ -321,6 +337,7 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
}
|
|
|
|
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
Loading.showLoading(context);
|
|
|
|
setReserveStatus('4', desc: desc);
|
|
|
|
},
|
|
|
|
text: '确认',
|
...
|
...
|
|