|
...
|
...
|
@@ -31,7 +31,7 @@ class NotebookDetailPage extends StatefulWidget { |
|
|
|
final String rid;
|
|
|
|
final bool fromNotify;
|
|
|
|
|
|
|
|
NotebookDetailPage(this.rid,{this.fromNotify=false});
|
|
|
|
NotebookDetailPage(this.rid, {this.fromNotify=false});
|
|
|
|
|
|
|
|
@override
|
|
|
|
State<StatefulWidget> createState() {
|
|
...
|
...
|
@@ -52,7 +52,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();
|
|
...
|
...
|
@@ -103,7 +103,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},
|
|
...
|
...
|
@@ -143,7 +143,7 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
"cause": json.encode(causeMap)
|
|
|
|
};
|
|
|
|
bool success =
|
|
|
|
await detailModel.setReserveStatus(context, params, ifPush: false);
|
|
|
|
await detailModel.setReserveStatus(context, params, ifPush: false);
|
|
|
|
if (success) {
|
|
|
|
_getReserveDetail();
|
|
|
|
}
|
|
...
|
...
|
@@ -165,12 +165,12 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
|
|
|
|
///取消预订弹框
|
|
|
|
_showCancelWidget(context) {
|
|
|
|
_scrollController=ScrollController();
|
|
|
|
_scrollController = ScrollController();
|
|
|
|
showGeneralDialog(
|
|
|
|
context: context,
|
|
|
|
barrierDismissible: false,
|
|
|
|
barrierLabel:
|
|
|
|
MaterialLocalizations.of(context).modalBarrierDismissLabel,
|
|
|
|
MaterialLocalizations.of(context).modalBarrierDismissLabel,
|
|
|
|
transitionDuration: const Duration(milliseconds: 150),
|
|
|
|
pageBuilder: (BuildContext context, Animation animation,
|
|
|
|
Animation secondaryAnimation) {
|
|
...
|
...
|
@@ -182,15 +182,15 @@ 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)),
|
|
...
|
...
|
@@ -246,20 +246,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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
...
|
...
|
@@ -276,7 +276,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))
|
|
...
|
...
|
@@ -287,7 +288,8 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
child: Container(
|
|
|
|
color: Colors.white,
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
left: ScreenUtil().setWidth(76)),
|
|
|
|
left:
|
|
|
|
ScreenUtil().setWidth(76)),
|
|
|
|
child: TextField(
|
|
|
|
maxLines: 1,
|
|
|
|
controller: _cancelController,
|
|
...
|
...
|
@@ -298,12 +300,14 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
hintText: "请填写原因",
|
|
|
|
hintStyle: TextStyle(
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
fontSize: ScreenUtil().setSp(30),
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(30),
|
|
|
|
),
|
|
|
|
enabledBorder: UnderlineInputBorder(
|
|
|
|
enabledBorder:
|
|
|
|
UnderlineInputBorder(
|
|
|
|
borderSide: BorderSide(
|
|
|
|
color:
|
|
|
|
MyColours.color_d8d8d8),
|
|
|
|
color: MyColours
|
|
|
|
.color_d8d8d8),
|
|
|
|
),
|
|
|
|
// border: InputBorder.none,
|
|
|
|
),
|
|
...
|
...
|
@@ -341,13 +345,16 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (desc == '') {
|
|
|
|
Utils.showToast('请选择原因');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
Loading.showLoading(context);
|
|
|
|
setReserveStatus('4', desc: desc);
|
|
|
|
bus.emit("refresh_book_list");
|
|
|
|
},
|
|
|
|
text: '确认',
|
|
|
|
height: ScreenUtil().setWidth(80),
|
|
...
|
...
|
@@ -358,7 +365,7 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
],
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
});
|
|
|
|
});
|
|
...
|
...
|
@@ -490,8 +497,6 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
RowMultiText("客户姓名", detailEntity.rnameStr),
|
|
|
|
RowMultiText(
|
|
|
|
"客户电话", detailEntity.phone ?? ""),
|
|
|
|
RowMultiText(
|
|
|
|
"备注信息", detailEntity.cusdem ?? ""),
|
|
|
|
MyDivider(double.infinity,
|
|
|
|
ScreenUtil().setHeight(1)),
|
|
|
|
Container(
|
|
...
|
...
|
@@ -522,7 +527,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 +536,7 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
});
|
|
|
|
_setCurrManager();
|
|
|
|
}
|
|
|
|
})
|
|
|
|
.then((value) {
|
|
|
|
});
|
|
|
|
}).then((value) {});
|
|
|
|
},
|
|
|
|
child: Text(
|
|
|
|
cusmanText,
|
|
...
|
...
|
@@ -550,8 +553,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 +574,12 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
"取消时间",
|
|
|
|
detailEntity.cancel?.cdateStr ??
|
|
|
|
""),
|
|
|
|
RowMultiText("操作人",
|
|
|
|
detailEntity.cancel?.uname ?? ""),
|
|
|
|
RowMultiText(
|
|
|
|
"操作人",
|
|
|
|
detailEntity.abolition == '2'
|
|
|
|
? '顾客在线取消'
|
|
|
|
: detailEntity.cancel?.uname ??
|
|
|
|
""),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
...
|
...
|
|