|
...
|
...
|
@@ -614,7 +614,7 @@ class _NoteBookChangePageState extends State<NoteBookChangePage> { |
|
|
|
setState(() {
|
|
|
|
showPhoneHistory = true;
|
|
|
|
});
|
|
|
|
Future.delayed(Duration(milliseconds: 300),(){
|
|
|
|
Future.delayed(Duration(milliseconds: 300), () {
|
|
|
|
_controller.jumpTo(_controller.position.maxScrollExtent);
|
|
|
|
});
|
|
|
|
},
|
|
...
|
...
|
@@ -702,7 +702,8 @@ class _NoteBookChangePageState extends State<NoteBookChangePage> { |
|
|
|
context, remarkManagerModel.ofenRemarks, (item) {
|
|
|
|
int index =
|
|
|
|
remarkManagerModel.ofenRemarks.indexOf(item);
|
|
|
|
_refreshRemark(remarkManagerModel.ofenRemarks, index);
|
|
|
|
_refreshRemark(
|
|
|
|
remarkManagerModel.ofenRemarks, index);
|
|
|
|
});
|
|
|
|
},
|
|
|
|
child: Container(
|
|
...
|
...
|
@@ -742,72 +743,80 @@ class _NoteBookChangePageState extends State<NoteBookChangePage> { |
|
|
|
blurRadius: ScreenUtil().setWidth(20))
|
|
|
|
]),
|
|
|
|
width: ScreenUtil().setWidth(440),
|
|
|
|
height: _notebookDetailChangeModel.userHistorys.length>1?ScreenUtil().setWidth(208):ScreenUtil().setWidth(104),
|
|
|
|
height: _notebookDetailChangeModel.userHistorys.length > 1
|
|
|
|
? ScreenUtil().setWidth(208)
|
|
|
|
: ScreenUtil().setWidth(104),
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(30)),
|
|
|
|
child: Align(
|
|
|
|
alignment: Alignment.topCenter,
|
|
|
|
child: MediaQuery.removePadding(context: context, removeTop:true,child: ListView.builder(
|
|
|
|
itemBuilder: (context, index) {
|
|
|
|
return GestureDetector(
|
|
|
|
onTap: () {
|
|
|
|
setState(() {
|
|
|
|
showPhoneHistory = false;
|
|
|
|
_notebookDetailChangeModel
|
|
|
|
.phoneController.text =
|
|
|
|
_notebookDetailChangeModel
|
|
|
|
.userHistorys[index].phone;
|
|
|
|
_notebookDetailChangeModel.nameController.text =
|
|
|
|
_notebookDetailChangeModel
|
|
|
|
.userHistorys[index].rname;
|
|
|
|
_phoneNode.unfocus();
|
|
|
|
_notebookDetailChangeModel.userHistorys.clear();
|
|
|
|
});
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
width: double.infinity,
|
|
|
|
height: ScreenUtil().setWidth(102),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
border: Border(
|
|
|
|
bottom: (index !=
|
|
|
|
(_notebookDetailChangeModel
|
|
|
|
.userHistorys.length -
|
|
|
|
1) &&
|
|
|
|
alignment: Alignment.topCenter,
|
|
|
|
child: MediaQuery.removePadding(
|
|
|
|
context: context,
|
|
|
|
removeTop: true,
|
|
|
|
child: ListView.builder(
|
|
|
|
itemBuilder: (context, index) {
|
|
|
|
return GestureDetector(
|
|
|
|
onTap: () {
|
|
|
|
setState(() {
|
|
|
|
showPhoneHistory = false;
|
|
|
|
_notebookDetailChangeModel
|
|
|
|
.phoneController.text =
|
|
|
|
_notebookDetailChangeModel
|
|
|
|
.userHistorys.length >
|
|
|
|
1)
|
|
|
|
? BorderSide(
|
|
|
|
color: MyColours.color_e5e5e5,
|
|
|
|
width: ScreenUtil().setWidth(2))
|
|
|
|
: BorderSide.none)),
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.spaceBetween,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
_notebookDetailChangeModel
|
|
|
|
.userHistorys[index].phone,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_333333,
|
|
|
|
fontSize: ScreenUtil().setSp(32)),
|
|
|
|
.userHistorys[index].phone;
|
|
|
|
_notebookDetailChangeModel
|
|
|
|
.nameController.text =
|
|
|
|
_notebookDetailChangeModel
|
|
|
|
.userHistorys[index].rname;
|
|
|
|
_phoneNode.unfocus();
|
|
|
|
_notebookDetailChangeModel.userHistorys
|
|
|
|
.clear();
|
|
|
|
});
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
width: double.infinity,
|
|
|
|
height: ScreenUtil().setWidth(102),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
border: Border(
|
|
|
|
bottom: (index !=
|
|
|
|
(_notebookDetailChangeModel
|
|
|
|
.userHistorys
|
|
|
|
.length -
|
|
|
|
1) &&
|
|
|
|
_notebookDetailChangeModel
|
|
|
|
.userHistorys.length >
|
|
|
|
1)
|
|
|
|
? BorderSide(
|
|
|
|
color: MyColours.color_e5e5e5,
|
|
|
|
width:
|
|
|
|
ScreenUtil().setWidth(2))
|
|
|
|
: BorderSide.none)),
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.spaceBetween,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
_notebookDetailChangeModel
|
|
|
|
.userHistorys[index].phone,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_333333,
|
|
|
|
fontSize: ScreenUtil().setSp(32)),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
_notebookDetailChangeModel
|
|
|
|
.userHistorys[index].rname,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_333333,
|
|
|
|
fontSize: ScreenUtil().setSp(32)),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
_notebookDetailChangeModel
|
|
|
|
.userHistorys[index].rname,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_333333,
|
|
|
|
fontSize: ScreenUtil().setSp(32)),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
},
|
|
|
|
itemExtent: ScreenUtil().setWidth(104),
|
|
|
|
itemCount:
|
|
|
|
_notebookDetailChangeModel.userHistorys.length,
|
|
|
|
))
|
|
|
|
),
|
|
|
|
);
|
|
|
|
},
|
|
|
|
itemExtent: ScreenUtil().setWidth(104),
|
|
|
|
itemCount:
|
|
|
|
_notebookDetailChangeModel.userHistorys.length,
|
|
|
|
))),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
],
|
|
...
|
...
|
@@ -1165,10 +1174,18 @@ class _NoteBookChangePageState extends State<NoteBookChangePage> { |
|
|
|
convert.jsonDecode(_model.row.tableinfo);
|
|
|
|
print(tableinfo);
|
|
|
|
String _nameStr = t.TableList.fromJson(tableinfo[0]).name;
|
|
|
|
|
|
|
|
if (tableinfo.length > 1) {
|
|
|
|
_nameStr = t.TableList.fromJson(tableinfo[0]).name +
|
|
|
|
'等${tableinfo.length}桌';
|
|
|
|
}
|
|
|
|
String _tid = '';
|
|
|
|
for (int i = 0; i < tableinfo.length; i++) {
|
|
|
|
_tid += '${t.TableList.fromJson(tableinfo[i]).id},';
|
|
|
|
}
|
|
|
|
if (_tid.endsWith(',')) {
|
|
|
|
_tid = _tid.substring(0, _tid.length - 1);
|
|
|
|
}
|
|
|
|
LogUtil.v(_nameStr);
|
|
|
|
NavigatorUtil.goInvicationPage(
|
|
|
|
context,
|
|
...
|
...
|
@@ -1178,7 +1195,7 @@ class _NoteBookChangePageState extends State<NoteBookChangePage> { |
|
|
|
ddate_solt,
|
|
|
|
_model.row.phone,
|
|
|
|
_model.row.ddateSolt,
|
|
|
|
tid:t.TableList.fromJson(tableinfo[0]).id,
|
|
|
|
tid: _tid,
|
|
|
|
replace: true);
|
|
|
|
EventBus().emit("refresh_tablemanager"); //刷新桌位
|
|
|
|
} else {
|
...
|
...
|
|