|
...
|
...
|
@@ -51,7 +51,7 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
Manager manager = Manager();
|
|
|
|
List cancelReasonList = [];
|
|
|
|
bool isShowTF = false;
|
|
|
|
int paddingBottom;
|
|
|
|
// int paddingBottom;
|
|
|
|
int paddingTop = 138;
|
|
|
|
FocusNode _cancelNode = FocusNode();
|
|
|
|
TextEditingController _cancelController = TextEditingController();
|
|
...
|
...
|
@@ -102,7 +102,7 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
/// 初始化取消原因数据
|
|
|
|
_initCancel() {
|
|
|
|
isShowTF = false;
|
|
|
|
paddingBottom = ScreenUtil.screenHeightDp.ceil() - 138 - 340;
|
|
|
|
// paddingBottom = ScreenUtil.screenHeightDp.ceil() - 138 - 340;
|
|
|
|
cancelReasonList = [
|
|
|
|
{'title': '顾客取消', 'select': false},
|
|
|
|
{'title': '顾客行程有变', 'select': false},
|
|
...
|
...
|
@@ -164,7 +164,7 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
|
|
|
|
///取消预订弹框
|
|
|
|
_showCancelWidget(context) {
|
|
|
|
_scrollController=ScrollController();
|
|
|
|
_scrollController = ScrollController();
|
|
|
|
showGeneralDialog(
|
|
|
|
context: context,
|
|
|
|
barrierDismissible: false,
|
|
...
|
...
|
@@ -181,22 +181,22 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
// Navigator.of(context).pop();
|
|
|
|
// },
|
|
|
|
child: Container(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: Color.fromRGBO(00, 00, 00, 0.5),
|
|
|
|
),
|
|
|
|
padding: EdgeInsets.fromLTRB(
|
|
|
|
ScreenUtil().setWidth(50),
|
|
|
|
ScreenUtil().setWidth(paddingTop * 2),
|
|
|
|
ScreenUtil().setWidth(50),
|
|
|
|
ScreenUtil().setWidth(0)),
|
|
|
|
child: Align(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: Color.fromRGBO(00, 00, 00, 0.5),
|
|
|
|
),
|
|
|
|
padding: EdgeInsets.fromLTRB(
|
|
|
|
ScreenUtil().setWidth(50),
|
|
|
|
ScreenUtil().setWidth(paddingTop * 2),
|
|
|
|
ScreenUtil().setWidth(50),
|
|
|
|
ScreenUtil().setWidth(0)),
|
|
|
|
child: Align(
|
|
|
|
alignment: Alignment.topCenter,
|
|
|
|
child: Container(
|
|
|
|
padding: EdgeInsets.all(ScreenUtil().setWidth(40)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: Colors.white,
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius.circular(ScreenUtil().setWidth(10)),
|
|
|
|
BorderRadius.circular(ScreenUtil().setWidth(10)),
|
|
|
|
),
|
|
|
|
child: Column(
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
...
|
...
|
@@ -245,20 +245,20 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
for (var item in cancelReasonList) {
|
|
|
|
item['select'] = false;
|
|
|
|
isShowTF = false;
|
|
|
|
paddingBottom =
|
|
|
|
ScreenUtil.screenHeightDp.ceil() -
|
|
|
|
138 -
|
|
|
|
340;
|
|
|
|
// paddingBottom =
|
|
|
|
// ScreenUtil.screenHeightDp.ceil() -
|
|
|
|
// 138 -
|
|
|
|
// 340;
|
|
|
|
if (item['title'] == value['title']) {
|
|
|
|
item['select'] = true;
|
|
|
|
if (item['title'] == '其他原因') {
|
|
|
|
isShowTF = true;
|
|
|
|
// paddingBottom = 130;
|
|
|
|
paddingBottom =
|
|
|
|
ScreenUtil.screenHeightDp.ceil() -
|
|
|
|
138 -
|
|
|
|
340 -
|
|
|
|
46;
|
|
|
|
// paddingBottom =
|
|
|
|
// ScreenUtil.screenHeightDp.ceil() -
|
|
|
|
// 138 -
|
|
|
|
// 340 -
|
|
|
|
// 46;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
...
|
...
|
@@ -275,7 +275,8 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
HEmptyView(30),
|
|
|
|
Text(value['title'],
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(32),
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(32),
|
|
|
|
fontWeight: FontWeight.normal,
|
|
|
|
decoration: TextDecoration.none,
|
|
|
|
color: MyColours.color_333333))
|
|
...
|
...
|
@@ -283,39 +284,42 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
),
|
|
|
|
value['title'] == '其他原因' && isShowTF
|
|
|
|
? Material(
|
|
|
|
child: Container(
|
|
|
|
color: Colors.white,
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
left: ScreenUtil().setWidth(76)),
|
|
|
|
child: TextField(
|
|
|
|
maxLines: 1,
|
|
|
|
controller: _cancelController,
|
|
|
|
focusNode: _cancelNode,
|
|
|
|
textAlignVertical:
|
|
|
|
TextAlignVertical.bottom,
|
|
|
|
decoration: InputDecoration(
|
|
|
|
hintText: "请填写原因",
|
|
|
|
hintStyle: TextStyle(
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
fontSize: ScreenUtil().setSp(30),
|
|
|
|
),
|
|
|
|
enabledBorder: UnderlineInputBorder(
|
|
|
|
borderSide: BorderSide(
|
|
|
|
color:
|
|
|
|
MyColours.color_d8d8d8),
|
|
|
|
child: Container(
|
|
|
|
color: Colors.white,
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
left:
|
|
|
|
ScreenUtil().setWidth(76)),
|
|
|
|
child: TextField(
|
|
|
|
maxLines: 1,
|
|
|
|
controller: _cancelController,
|
|
|
|
focusNode: _cancelNode,
|
|
|
|
textAlignVertical:
|
|
|
|
TextAlignVertical.bottom,
|
|
|
|
decoration: InputDecoration(
|
|
|
|
hintText: "请填写原因",
|
|
|
|
hintStyle: TextStyle(
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(30),
|
|
|
|
),
|
|
|
|
enabledBorder:
|
|
|
|
UnderlineInputBorder(
|
|
|
|
borderSide: BorderSide(
|
|
|
|
color: MyColours
|
|
|
|
.color_d8d8d8),
|
|
|
|
),
|
|
|
|
// border: InputBorder.none,
|
|
|
|
),
|
|
|
|
// border: InputBorder.none,
|
|
|
|
onChanged: (_) {
|
|
|
|
setState(() {});
|
|
|
|
},
|
|
|
|
onEditingComplete: () {
|
|
|
|
print('fff');
|
|
|
|
_cancelNode.unfocus();
|
|
|
|
},
|
|
|
|
// keyboardType: TextInputType.number,
|
|
|
|
),
|
|
|
|
onChanged: (_) {
|
|
|
|
setState(() {});
|
|
|
|
},
|
|
|
|
onEditingComplete: () {
|
|
|
|
print('fff');
|
|
|
|
_cancelNode.unfocus();
|
|
|
|
},
|
|
|
|
// keyboardType: TextInputType.number,
|
|
|
|
),
|
|
|
|
))
|
|
|
|
))
|
|
|
|
: Container(),
|
|
|
|
VEmptyView(40)
|
|
|
|
]),
|
|
...
|
...
|
@@ -349,6 +353,7 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
Navigator.of(context).pop();
|
|
|
|
Loading.showLoading(context);
|
|
|
|
setReserveStatus('4', desc: desc);
|
|
|
|
bus.emit("refresh_book_list");
|
|
|
|
},
|
|
|
|
text: '确认',
|
|
|
|
height: ScreenUtil().setWidth(80),
|
|
...
|
...
|
@@ -359,7 +364,7 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
],
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
});
|
|
|
|
});
|
|
...
|
...
|
@@ -490,8 +495,6 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
RowMultiText("客户姓名", detailEntity.rnameStr),
|
|
|
|
RowMultiText(
|
|
|
|
"客户电话", detailEntity.phone ?? ""),
|
|
|
|
RowMultiText(
|
|
|
|
"备注信息", detailEntity.cusdem ?? ""),
|
|
|
|
MyDivider(double.infinity,
|
|
|
|
ScreenUtil().setHeight(1)),
|
|
|
|
Container(
|
|
...
|
...
|
@@ -522,7 +525,7 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
list.add(manager.roleUserName);
|
|
|
|
}
|
|
|
|
DialogUtil.showSelectCusmanDialog(
|
|
|
|
context, list,(value){
|
|
|
|
context, list, (value) {
|
|
|
|
if (value != null) {
|
|
|
|
setState(() {
|
|
|
|
cusmanText =
|
|
...
|
...
|
@@ -531,9 +534,7 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
});
|
|
|
|
_setCurrManager();
|
|
|
|
}
|
|
|
|
})
|
|
|
|
.then((value) {
|
|
|
|
});
|
|
|
|
}).then((value) {});
|
|
|
|
},
|
|
|
|
child: Text(
|
|
|
|
cusmanText,
|
|
...
|
...
|
@@ -550,8 +551,11 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
RowMultiText(
|
|
|
|
"记录人", detailEntity.note_name ?? ""),
|
|
|
|
Offstage(
|
|
|
|
offstage: detailEntity.note_name == '',
|
|
|
|
child: RowMultiText(
|
|
|
|
"记录人", detailEntity.note_name ?? ""),
|
|
|
|
),
|
|
|
|
Offstage(
|
|
|
|
offstage: (detailEntity.status == "4" &&
|
|
|
|
detailEntity.cancel != null)
|
|
...
|
...
|
@@ -568,8 +572,12 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
"取消时间",
|
|
|
|
detailEntity.cancel?.cdateStr ??
|
|
|
|
""),
|
|
|
|
RowMultiText("操作人",
|
|
|
|
detailEntity.cancel?.uname ?? ""),
|
|
|
|
RowMultiText(
|
|
|
|
"操作人",
|
|
|
|
detailEntity.abolition == '2'
|
|
|
|
? '顾客在线取消'
|
|
|
|
: detailEntity.cancel?.uname ??
|
|
|
|
""),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
...
|
...
|
|