|
...
|
...
|
@@ -1429,6 +1429,8 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
.selectNum);
|
|
|
|
|
|
|
|
if (sucess) {
|
|
|
|
EventBus().emit(
|
|
|
|
"refresh_tablemanager"); //刷新桌位
|
|
|
|
await _getReserveDetail(
|
|
|
|
showCicle:
|
|
|
|
false);
|
|
...
|
...
|
@@ -2192,6 +2194,7 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
sex: sex,
|
|
|
|
phone: detailModel.phoneController.text);
|
|
|
|
if (sucess) {
|
|
|
|
EventBus().emit("refresh_tablemanager"); //刷新桌位
|
|
|
|
await _getReserveDetail(showCicle: true);
|
|
|
|
setState(() {
|
|
|
|
setTop = false;
|
|
...
|
...
|
@@ -2273,10 +2276,11 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
detailModel.userHistorys[index].phone,
|
|
|
|
style: TextStyle(color: MyColours.color_333333, fontSize: ScreenUtil().setSp(32)),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
Expanded(
|
|
|
|
child: Text(
|
|
|
|
detailModel.userHistorys[index].rname,
|
|
|
|
style: TextStyle(color: MyColours.color_333333, fontSize: ScreenUtil().setSp(32)),
|
|
|
|
)
|
|
|
|
))
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
...
|
...
|
@@ -2486,7 +2490,7 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
detailEntity.status == "4" ||
|
|
|
|
detailEntity.status == "6"),
|
|
|
|
child: Container(
|
|
|
|
width: double.infinity,
|
|
|
|
// width: double.infinity,
|
|
|
|
height: ScreenUtil().setWidth(84),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: MyColours.color_ffffff,
|
|
...
|
...
|
@@ -2498,9 +2502,8 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
ScreenUtil().setHeight(20),
|
|
|
|
horizontal:
|
|
|
|
ScreenUtil().setHeight(40)),
|
|
|
|
child: Offstage(
|
|
|
|
offstage: ((detailEntity.orderInfo !=
|
|
|
|
null &&
|
|
|
|
child:
|
|
|
|
((detailEntity.orderInfo != null &&
|
|
|
|
detailEntity.orderInfo
|
|
|
|
.status ==
|
|
|
|
"3") ||
|
|
...
|
...
|
@@ -2509,413 +2512,410 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
detailEntity.status ==
|
|
|
|
"4" ||
|
|
|
|
detailEntity.status == "6")
|
|
|
|
? true
|
|
|
|
: false,
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
Expanded(
|
|
|
|
flex: 2,
|
|
|
|
child: InkWell(
|
|
|
|
onTap: () {
|
|
|
|
String _tid = '';
|
|
|
|
for (int i = 0;
|
|
|
|
i <
|
|
|
|
detailEntity
|
|
|
|
.tables
|
|
|
|
.length;
|
|
|
|
i++) {
|
|
|
|
_tid +=
|
|
|
|
'${detailEntity.tables[i].id},';
|
|
|
|
}
|
|
|
|
if (_tid
|
|
|
|
.endsWith(',')) {
|
|
|
|
_tid = _tid.substring(
|
|
|
|
0,
|
|
|
|
_tid.length - 1);
|
|
|
|
}
|
|
|
|
NavigatorUtil
|
|
|
|
.goInvicationPage(
|
|
|
|
context,
|
|
|
|
detailEntity.id,
|
|
|
|
detailEntity
|
|
|
|
.tableinfoStr,
|
|
|
|
detailEntity
|
|
|
|
.ddate,
|
|
|
|
detailEntity
|
|
|
|
.ddateStr,
|
|
|
|
detailEntity
|
|
|
|
.phone,
|
|
|
|
detailEntity
|
|
|
|
.ddate_solt,
|
|
|
|
tid: _tid);
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
decoration:
|
|
|
|
BoxDecoration(
|
|
|
|
color: MyColours
|
|
|
|
.color_199095,
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius.circular(
|
|
|
|
ScreenUtil()
|
|
|
|
.setWidth(
|
|
|
|
10)),
|
|
|
|
),
|
|
|
|
child: Align(
|
|
|
|
alignment:
|
|
|
|
Alignment.center,
|
|
|
|
child: Text('微信通知',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours
|
|
|
|
.color_ffffff,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil()
|
|
|
|
.setSp(
|
|
|
|
34))),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
|
|
|
|
Expanded(
|
|
|
|
flex: 1,
|
|
|
|
child: InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (detailEntity
|
|
|
|
.phone ==
|
|
|
|
null ||
|
|
|
|
detailEntity.phone
|
|
|
|
.isEmpty) {
|
|
|
|
Utils.showToast(
|
|
|
|
"短信通知需填写顾客手机号");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (!Utils.phoneRegExp(
|
|
|
|
detailEntity
|
|
|
|
.phone)) {
|
|
|
|
Utils.showToast(
|
|
|
|
'手机号错误,请修改正确');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
NavigatorUtil.goSmsPage(
|
|
|
|
context,
|
|
|
|
detailEntity.id,
|
|
|
|
);
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
left: ScreenUtil()
|
|
|
|
.setWidth(20)),
|
|
|
|
decoration:
|
|
|
|
BoxDecoration(
|
|
|
|
color: detailEntity
|
|
|
|
? SizedBox()
|
|
|
|
: Row(
|
|
|
|
children: [
|
|
|
|
Expanded(
|
|
|
|
flex: 2,
|
|
|
|
child: InkWell(
|
|
|
|
onTap: () {
|
|
|
|
String _tid = '';
|
|
|
|
for (int i = 0;
|
|
|
|
i <
|
|
|
|
detailEntity
|
|
|
|
.tables
|
|
|
|
.length;
|
|
|
|
i++) {
|
|
|
|
_tid +=
|
|
|
|
'${detailEntity.tables[i].id},';
|
|
|
|
}
|
|
|
|
if (_tid.endsWith(
|
|
|
|
',')) {
|
|
|
|
_tid = _tid
|
|
|
|
.substring(
|
|
|
|
0,
|
|
|
|
_tid.length -
|
|
|
|
1);
|
|
|
|
}
|
|
|
|
NavigatorUtil.goInvicationPage(
|
|
|
|
context,
|
|
|
|
detailEntity
|
|
|
|
.id,
|
|
|
|
detailEntity
|
|
|
|
.tableinfoStr,
|
|
|
|
detailEntity
|
|
|
|
.ddate,
|
|
|
|
detailEntity
|
|
|
|
.ddateStr,
|
|
|
|
detailEntity
|
|
|
|
.phone,
|
|
|
|
detailEntity
|
|
|
|
.ddate_solt,
|
|
|
|
tid: _tid);
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
decoration:
|
|
|
|
BoxDecoration(
|
|
|
|
color: MyColours
|
|
|
|
.color_199095,
|
|
|
|
borderRadius: BorderRadius.circular(
|
|
|
|
ScreenUtil()
|
|
|
|
.setWidth(
|
|
|
|
10)),
|
|
|
|
),
|
|
|
|
child: Align(
|
|
|
|
alignment:
|
|
|
|
Alignment
|
|
|
|
.center,
|
|
|
|
child: Text(
|
|
|
|
'微信通知',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours
|
|
|
|
.color_ffffff,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(34))),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
|
|
|
|
Expanded(
|
|
|
|
flex: 1,
|
|
|
|
child: InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (detailEntity
|
|
|
|
.phone ==
|
|
|
|
null ||
|
|
|
|
detailEntity
|
|
|
|
.phone
|
|
|
|
.isEmpty
|
|
|
|
? Color.fromRGBO(
|
|
|
|
154,
|
|
|
|
154,
|
|
|
|
154,
|
|
|
|
1)
|
|
|
|
: MyColours
|
|
|
|
.color_199095,
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius.circular(
|
|
|
|
ScreenUtil()
|
|
|
|
.setWidth(
|
|
|
|
10)),
|
|
|
|
),
|
|
|
|
child: Align(
|
|
|
|
alignment:
|
|
|
|
Alignment.center,
|
|
|
|
child: Text('短信通知',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours
|
|
|
|
.color_ffffff,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil()
|
|
|
|
.setSp(
|
|
|
|
34))),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
Offstage(
|
|
|
|
offstage: detailEntity
|
|
|
|
.order
|
|
|
|
.cookbooklist
|
|
|
|
.length ==
|
|
|
|
0
|
|
|
|
? true
|
|
|
|
: false,
|
|
|
|
child: Expanded(
|
|
|
|
flex: 1,
|
|
|
|
child: InkWell(
|
|
|
|
onTap: () {
|
|
|
|
NavigatorUtil
|
|
|
|
.goHasOrderFoodPage(
|
|
|
|
context,
|
|
|
|
rid: detailEntity
|
|
|
|
.id);
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
left: ScreenUtil()
|
|
|
|
.setWidth(
|
|
|
|
20)),
|
|
|
|
decoration:
|
|
|
|
BoxDecoration(
|
|
|
|
color: MyColours
|
|
|
|
.color_199095,
|
|
|
|
borderRadius: BorderRadius
|
|
|
|
.circular(ScreenUtil()
|
|
|
|
.isEmpty) {
|
|
|
|
Utils.showToast(
|
|
|
|
"短信通知需填写顾客手机号");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (!Utils.phoneRegExp(
|
|
|
|
detailEntity
|
|
|
|
.phone)) {
|
|
|
|
Utils.showToast(
|
|
|
|
'手机号错误,请修改正确');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
NavigatorUtil
|
|
|
|
.goSmsPage(
|
|
|
|
context,
|
|
|
|
detailEntity.id,
|
|
|
|
);
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
left: ScreenUtil()
|
|
|
|
.setWidth(
|
|
|
|
10)),
|
|
|
|
),
|
|
|
|
child: Align(
|
|
|
|
alignment:
|
|
|
|
Alignment
|
|
|
|
.center,
|
|
|
|
child: Text(
|
|
|
|
'查看菜品',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours
|
|
|
|
.color_ffffff,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil()
|
|
|
|
.setSp(34))),
|
|
|
|
20)),
|
|
|
|
decoration:
|
|
|
|
BoxDecoration(
|
|
|
|
color: detailEntity.phone ==
|
|
|
|
null ||
|
|
|
|
detailEntity
|
|
|
|
.phone
|
|
|
|
.isEmpty
|
|
|
|
? Color
|
|
|
|
.fromRGBO(
|
|
|
|
154,
|
|
|
|
154,
|
|
|
|
154,
|
|
|
|
1)
|
|
|
|
: MyColours
|
|
|
|
.color_199095,
|
|
|
|
borderRadius: BorderRadius.circular(
|
|
|
|
ScreenUtil()
|
|
|
|
.setWidth(
|
|
|
|
10)),
|
|
|
|
),
|
|
|
|
child: Align(
|
|
|
|
alignment:
|
|
|
|
Alignment
|
|
|
|
.center,
|
|
|
|
child: Text(
|
|
|
|
'短信通知',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours
|
|
|
|
.color_ffffff,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(34))),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
))),
|
|
|
|
// _cancelAndChangeBtn(() {
|
|
|
|
// DialogUtil
|
|
|
|
// .showShareDialog(
|
|
|
|
// context)
|
|
|
|
// ?.then((value) {
|
|
|
|
// switch (value) {
|
|
|
|
// case 1: //微信
|
|
|
|
// String _tid = '';
|
|
|
|
// for (int i = 0;
|
|
|
|
// i <
|
|
|
|
// detailEntity
|
|
|
|
// .tables
|
|
|
|
// .length;
|
|
|
|
// i++) {
|
|
|
|
// _tid +=
|
|
|
|
// '${detailEntity.tables[i].id},';
|
|
|
|
// }
|
|
|
|
// if (_tid.endsWith(
|
|
|
|
// ',')) {
|
|
|
|
// _tid = _tid
|
|
|
|
// .substring(
|
|
|
|
// 0,
|
|
|
|
// _tid.length -
|
|
|
|
// 1);
|
|
|
|
// }
|
|
|
|
// NavigatorUtil.goInvicationPage(
|
|
|
|
// context,
|
|
|
|
// detailEntity
|
|
|
|
// .id,
|
|
|
|
// detailEntity
|
|
|
|
// .tableinfoStr,
|
|
|
|
// detailEntity
|
|
|
|
// .ddate,
|
|
|
|
// detailEntity
|
|
|
|
// .ddateStr,
|
|
|
|
// detailEntity
|
|
|
|
// .phone,
|
|
|
|
// detailEntity
|
|
|
|
// .ddate_solt,
|
|
|
|
// tid: _tid);
|
|
|
|
// break;
|
|
|
|
// case 2: //短信
|
|
|
|
// if (detailEntity
|
|
|
|
// .phone ==
|
|
|
|
// null ||
|
|
|
|
// detailEntity
|
|
|
|
// .phone
|
|
|
|
// .isEmpty) {
|
|
|
|
// Utils.showToast(
|
|
|
|
// "没有预订人电话信息");
|
|
|
|
// return;
|
|
|
|
// }
|
|
|
|
// NavigatorUtil
|
|
|
|
// .goSmsPage(
|
|
|
|
// context,
|
|
|
|
// detailEntity.id,
|
|
|
|
// );
|
|
|
|
// break;
|
|
|
|
// case 3: //电话
|
|
|
|
// if (detailEntity
|
|
|
|
// .phone !=
|
|
|
|
// null &&
|
|
|
|
// detailEntity
|
|
|
|
// .phone
|
|
|
|
// .isNotEmpty) {
|
|
|
|
// if (userModel
|
|
|
|
// .user
|
|
|
|
// .role_name !=
|
|
|
|
// '管理员' &&
|
|
|
|
// userModel
|
|
|
|
// .user
|
|
|
|
// .role_name !=
|
|
|
|
// '店长' &&
|
|
|
|
// widget.uid !=
|
|
|
|
// "null" &&
|
|
|
|
// widget.uid !=
|
|
|
|
// userModel
|
|
|
|
// .user
|
|
|
|
// .openid) {
|
|
|
|
// Utils.showToast(
|
|
|
|
// "您无权拨打该电话");
|
|
|
|
// } else {
|
|
|
|
// Utils.goPhone(
|
|
|
|
// detailEntity
|
|
|
|
// .phone);
|
|
|
|
// }
|
|
|
|
// } else {
|
|
|
|
// Utils.showToast(
|
|
|
|
// "没有预订人电话信息");
|
|
|
|
// }
|
|
|
|
// break;
|
|
|
|
// }
|
|
|
|
// });
|
|
|
|
// }, "通知客户",
|
|
|
|
// bgColor: MyColours
|
|
|
|
// .color_199095,
|
|
|
|
// width: detailEntity
|
|
|
|
// .order
|
|
|
|
// .cookbooklist
|
|
|
|
// .length ==
|
|
|
|
// 0
|
|
|
|
// ? ScreenUtil
|
|
|
|
// .screenWidthDp -
|
|
|
|
// ScreenUtil()
|
|
|
|
// .setWidth(
|
|
|
|
// 100)
|
|
|
|
// : (ScreenUtil
|
|
|
|
// .screenWidthDp -
|
|
|
|
// ScreenUtil()
|
|
|
|
// .setWidth(
|
|
|
|
// 91)) /
|
|
|
|
// 2,
|
|
|
|
// fontColor: MyColours
|
|
|
|
// .color_ffffff),
|
|
|
|
// _cancelAndChangeBtn(() {
|
|
|
|
// DialogUtil
|
|
|
|
// .showShareDialog(
|
|
|
|
// context)
|
|
|
|
// ?.then((value) {
|
|
|
|
// switch (value) {
|
|
|
|
// case 1: //微信
|
|
|
|
// String _tid = '';
|
|
|
|
// for (int i = 0;
|
|
|
|
// i <
|
|
|
|
// detailEntity
|
|
|
|
// .tables
|
|
|
|
// .length;
|
|
|
|
// i++) {
|
|
|
|
// _tid +=
|
|
|
|
// '${detailEntity.tables[i].id},';
|
|
|
|
// }
|
|
|
|
// if (_tid.endsWith(
|
|
|
|
// ',')) {
|
|
|
|
// _tid = _tid
|
|
|
|
// .substring(
|
|
|
|
// 0,
|
|
|
|
// _tid.length -
|
|
|
|
// 1);
|
|
|
|
// }
|
|
|
|
// NavigatorUtil.goInvicationPage(
|
|
|
|
// context,
|
|
|
|
// detailEntity
|
|
|
|
// .id,
|
|
|
|
// detailEntity
|
|
|
|
// .tableinfoStr,
|
|
|
|
// detailEntity
|
|
|
|
// .ddate,
|
|
|
|
// detailEntity
|
|
|
|
// .ddateStr,
|
|
|
|
// detailEntity
|
|
|
|
// .phone,
|
|
|
|
// detailEntity
|
|
|
|
// .ddate_solt,
|
|
|
|
// tid: _tid);
|
|
|
|
// break;
|
|
|
|
// case 2: //短信
|
|
|
|
// if (detailEntity
|
|
|
|
// .phone ==
|
|
|
|
// null ||
|
|
|
|
// detailEntity
|
|
|
|
// .phone
|
|
|
|
// .isEmpty) {
|
|
|
|
// Utils.showToast(
|
|
|
|
// "没有预订人电话信息");
|
|
|
|
// return;
|
|
|
|
// }
|
|
|
|
// NavigatorUtil
|
|
|
|
// .goSmsPage(
|
|
|
|
// context,
|
|
|
|
// detailEntity.id,
|
|
|
|
// );
|
|
|
|
// break;
|
|
|
|
// case 3: //电话
|
|
|
|
// if (detailEntity
|
|
|
|
// .phone !=
|
|
|
|
// null &&
|
|
|
|
// detailEntity
|
|
|
|
// .phone
|
|
|
|
// .isNotEmpty) {
|
|
|
|
// if (userModel
|
|
|
|
// .user
|
|
|
|
// .role_name !=
|
|
|
|
// '管理员' &&
|
|
|
|
// userModel
|
|
|
|
// .user
|
|
|
|
// .role_name !=
|
|
|
|
// '店长' &&
|
|
|
|
// widget.uid !=
|
|
|
|
// "null" &&
|
|
|
|
// widget.uid !=
|
|
|
|
// userModel
|
|
|
|
// .user
|
|
|
|
// .openid) {
|
|
|
|
// Utils.showToast(
|
|
|
|
// "您无权拨打该电话");
|
|
|
|
// } else {
|
|
|
|
// Utils.goPhone(
|
|
|
|
// detailEntity
|
|
|
|
// .phone);
|
|
|
|
// }
|
|
|
|
// } else {
|
|
|
|
// Utils.showToast(
|
|
|
|
// "没有预订人电话信息");
|
|
|
|
// }
|
|
|
|
// break;
|
|
|
|
// }
|
|
|
|
// });
|
|
|
|
// }, "通知客户",
|
|
|
|
// bgColor: MyColours
|
|
|
|
// .color_199095,
|
|
|
|
// width: detailEntity
|
|
|
|
// .order
|
|
|
|
// .cookbooklist
|
|
|
|
// .length ==
|
|
|
|
// 0
|
|
|
|
// ? ScreenUtil
|
|
|
|
// .screenWidthDp -
|
|
|
|
// ScreenUtil()
|
|
|
|
// .setWidth(
|
|
|
|
// 100)
|
|
|
|
// : (ScreenUtil
|
|
|
|
// .screenWidthDp -
|
|
|
|
// ScreenUtil()
|
|
|
|
// .setWidth(
|
|
|
|
// 91)) /
|
|
|
|
// 2,
|
|
|
|
// fontColor: MyColours
|
|
|
|
// .color_ffffff)
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
)),
|
|
|
|
detailEntity
|
|
|
|
.order
|
|
|
|
.cookbooklist
|
|
|
|
.length ==
|
|
|
|
0
|
|
|
|
? SizedBox()
|
|
|
|
: Expanded(
|
|
|
|
flex: 1,
|
|
|
|
child: InkWell(
|
|
|
|
onTap: () {
|
|
|
|
NavigatorUtil.goHasOrderFoodPage(
|
|
|
|
context,
|
|
|
|
rid: detailEntity
|
|
|
|
.id);
|
|
|
|
},
|
|
|
|
child:
|
|
|
|
Container(
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
left: ScreenUtil()
|
|
|
|
.setWidth(
|
|
|
|
20)),
|
|
|
|
decoration:
|
|
|
|
BoxDecoration(
|
|
|
|
color: MyColours
|
|
|
|
.color_199095,
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius.circular(
|
|
|
|
ScreenUtil().setWidth(10)),
|
|
|
|
),
|
|
|
|
child: Align(
|
|
|
|
alignment:
|
|
|
|
Alignment
|
|
|
|
.center,
|
|
|
|
child: Text(
|
|
|
|
'查看菜品',
|
|
|
|
style: TextStyle(
|
|
|
|
color:
|
|
|
|
MyColours.color_ffffff,
|
|
|
|
fontSize: ScreenUtil().setSp(34))),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
// _cancelAndChangeBtn(() {
|
|
|
|
// DialogUtil
|
|
|
|
// .showShareDialog(
|
|
|
|
// context)
|
|
|
|
// ?.then((value) {
|
|
|
|
// switch (value) {
|
|
|
|
// case 1: //微信
|
|
|
|
// String _tid = '';
|
|
|
|
// for (int i = 0;
|
|
|
|
// i <
|
|
|
|
// detailEntity
|
|
|
|
// .tables
|
|
|
|
// .length;
|
|
|
|
// i++) {
|
|
|
|
// _tid +=
|
|
|
|
// '${detailEntity.tables[i].id},';
|
|
|
|
// }
|
|
|
|
// if (_tid.endsWith(
|
|
|
|
// ',')) {
|
|
|
|
// _tid = _tid
|
|
|
|
// .substring(
|
|
|
|
// 0,
|
|
|
|
// _tid.length -
|
|
|
|
// 1);
|
|
|
|
// }
|
|
|
|
// NavigatorUtil.goInvicationPage(
|
|
|
|
// context,
|
|
|
|
// detailEntity
|
|
|
|
// .id,
|
|
|
|
// detailEntity
|
|
|
|
// .tableinfoStr,
|
|
|
|
// detailEntity
|
|
|
|
// .ddate,
|
|
|
|
// detailEntity
|
|
|
|
// .ddateStr,
|
|
|
|
// detailEntity
|
|
|
|
// .phone,
|
|
|
|
// detailEntity
|
|
|
|
// .ddate_solt,
|
|
|
|
// tid: _tid);
|
|
|
|
// break;
|
|
|
|
// case 2: //短信
|
|
|
|
// if (detailEntity
|
|
|
|
// .phone ==
|
|
|
|
// null ||
|
|
|
|
// detailEntity
|
|
|
|
// .phone
|
|
|
|
// .isEmpty) {
|
|
|
|
// Utils.showToast(
|
|
|
|
// "没有预订人电话信息");
|
|
|
|
// return;
|
|
|
|
// }
|
|
|
|
// NavigatorUtil
|
|
|
|
// .goSmsPage(
|
|
|
|
// context,
|
|
|
|
// detailEntity.id,
|
|
|
|
// );
|
|
|
|
// break;
|
|
|
|
// case 3: //电话
|
|
|
|
// if (detailEntity
|
|
|
|
// .phone !=
|
|
|
|
// null &&
|
|
|
|
// detailEntity
|
|
|
|
// .phone
|
|
|
|
// .isNotEmpty) {
|
|
|
|
// if (userModel
|
|
|
|
// .user
|
|
|
|
// .role_name !=
|
|
|
|
// '管理员' &&
|
|
|
|
// userModel
|
|
|
|
// .user
|
|
|
|
// .role_name !=
|
|
|
|
// '店长' &&
|
|
|
|
// widget.uid !=
|
|
|
|
// "null" &&
|
|
|
|
// widget.uid !=
|
|
|
|
// userModel
|
|
|
|
// .user
|
|
|
|
// .openid) {
|
|
|
|
// Utils.showToast(
|
|
|
|
// "您无权拨打该电话");
|
|
|
|
// } else {
|
|
|
|
// Utils.goPhone(
|
|
|
|
// detailEntity
|
|
|
|
// .phone);
|
|
|
|
// }
|
|
|
|
// } else {
|
|
|
|
// Utils.showToast(
|
|
|
|
// "没有预订人电话信息");
|
|
|
|
// }
|
|
|
|
// break;
|
|
|
|
// }
|
|
|
|
// });
|
|
|
|
// }, "通知客户",
|
|
|
|
// bgColor: MyColours
|
|
|
|
// .color_199095,
|
|
|
|
// width: detailEntity
|
|
|
|
// .order
|
|
|
|
// .cookbooklist
|
|
|
|
// .length ==
|
|
|
|
// 0
|
|
|
|
// ? ScreenUtil
|
|
|
|
// .screenWidthDp -
|
|
|
|
// ScreenUtil()
|
|
|
|
// .setWidth(
|
|
|
|
// 100)
|
|
|
|
// : (ScreenUtil
|
|
|
|
// .screenWidthDp -
|
|
|
|
// ScreenUtil()
|
|
|
|
// .setWidth(
|
|
|
|
// 91)) /
|
|
|
|
// 2,
|
|
|
|
// fontColor: MyColours
|
|
|
|
// .color_ffffff),
|
|
|
|
// _cancelAndChangeBtn(() {
|
|
|
|
// DialogUtil
|
|
|
|
// .showShareDialog(
|
|
|
|
// context)
|
|
|
|
// ?.then((value) {
|
|
|
|
// switch (value) {
|
|
|
|
// case 1: //微信
|
|
|
|
// String _tid = '';
|
|
|
|
// for (int i = 0;
|
|
|
|
// i <
|
|
|
|
// detailEntity
|
|
|
|
// .tables
|
|
|
|
// .length;
|
|
|
|
// i++) {
|
|
|
|
// _tid +=
|
|
|
|
// '${detailEntity.tables[i].id},';
|
|
|
|
// }
|
|
|
|
// if (_tid.endsWith(
|
|
|
|
// ',')) {
|
|
|
|
// _tid = _tid
|
|
|
|
// .substring(
|
|
|
|
// 0,
|
|
|
|
// _tid.length -
|
|
|
|
// 1);
|
|
|
|
// }
|
|
|
|
// NavigatorUtil.goInvicationPage(
|
|
|
|
// context,
|
|
|
|
// detailEntity
|
|
|
|
// .id,
|
|
|
|
// detailEntity
|
|
|
|
// .tableinfoStr,
|
|
|
|
// detailEntity
|
|
|
|
// .ddate,
|
|
|
|
// detailEntity
|
|
|
|
// .ddateStr,
|
|
|
|
// detailEntity
|
|
|
|
// .phone,
|
|
|
|
// detailEntity
|
|
|
|
// .ddate_solt,
|
|
|
|
// tid: _tid);
|
|
|
|
// break;
|
|
|
|
// case 2: //短信
|
|
|
|
// if (detailEntity
|
|
|
|
// .phone ==
|
|
|
|
// null ||
|
|
|
|
// detailEntity
|
|
|
|
// .phone
|
|
|
|
// .isEmpty) {
|
|
|
|
// Utils.showToast(
|
|
|
|
// "没有预订人电话信息");
|
|
|
|
// return;
|
|
|
|
// }
|
|
|
|
// NavigatorUtil
|
|
|
|
// .goSmsPage(
|
|
|
|
// context,
|
|
|
|
// detailEntity.id,
|
|
|
|
// );
|
|
|
|
// break;
|
|
|
|
// case 3: //电话
|
|
|
|
// if (detailEntity
|
|
|
|
// .phone !=
|
|
|
|
// null &&
|
|
|
|
// detailEntity
|
|
|
|
// .phone
|
|
|
|
// .isNotEmpty) {
|
|
|
|
// if (userModel
|
|
|
|
// .user
|
|
|
|
// .role_name !=
|
|
|
|
// '管理员' &&
|
|
|
|
// userModel
|
|
|
|
// .user
|
|
|
|
// .role_name !=
|
|
|
|
// '店长' &&
|
|
|
|
// widget.uid !=
|
|
|
|
// "null" &&
|
|
|
|
// widget.uid !=
|
|
|
|
// userModel
|
|
|
|
// .user
|
|
|
|
// .openid) {
|
|
|
|
// Utils.showToast(
|
|
|
|
// "您无权拨打该电话");
|
|
|
|
// } else {
|
|
|
|
// Utils.goPhone(
|
|
|
|
// detailEntity
|
|
|
|
// .phone);
|
|
|
|
// }
|
|
|
|
// } else {
|
|
|
|
// Utils.showToast(
|
|
|
|
// "没有预订人电话信息");
|
|
|
|
// }
|
|
|
|
// break;
|
|
|
|
// }
|
|
|
|
// });
|
|
|
|
// }, "通知客户",
|
|
|
|
// bgColor: MyColours
|
|
|
|
// .color_199095,
|
|
|
|
// width: detailEntity
|
|
|
|
// .order
|
|
|
|
// .cookbooklist
|
|
|
|
// .length ==
|
|
|
|
// 0
|
|
|
|
// ? ScreenUtil
|
|
|
|
// .screenWidthDp -
|
|
|
|
// ScreenUtil()
|
|
|
|
// .setWidth(
|
|
|
|
// 100)
|
|
|
|
// : (ScreenUtil
|
|
|
|
// .screenWidthDp -
|
|
|
|
// ScreenUtil()
|
|
|
|
// .setWidth(
|
|
|
|
// 91)) /
|
|
|
|
// 2,
|
|
|
|
// fontColor: MyColours
|
|
|
|
// .color_ffffff)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
// Offstage(
|
|
|
|
// offstage: !(detailEntity
|
|
|
|
// .order
|
...
|
...
|
|