|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter_screenutil/screenutil.dart';
|
|
|
|
import 'package:one_key/pages/online_check/photo_view_wiget.dart';
|
|
|
|
import 'package:one_key/provider/online_check_edit_provider.dart';
|
|
|
|
import 'package:one_key/provider/order_food_provider.dart';
|
|
|
|
import 'package:one_key/provider/user_model.dart';
|
|
|
|
import 'package:one_key/res/colors.dart';
|
|
|
|
import 'package:one_key/utils/navigator_util.dart';
|
|
|
|
import 'package:one_key/utils/utils.dart';
|
|
|
|
import 'package:one_key/widgets/h_empty_view.dart';
|
|
|
|
import 'package:one_key/widgets/system_app_bar.dart';
|
|
|
|
import 'package:one_key/widgets/v_empty_view.dart';
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
|
|
|
class OnlineCheckDetailPage extends StatefulWidget {
|
|
|
|
final String rid;
|
|
|
|
final bool fromNotify;
|
|
|
|
OnlineCheckDetailPage({Key key, this.rid, this.fromNotify}) : super(key: key);
|
|
|
|
|
|
|
|
@override
|
|
|
|
_OnlineCheckDetailPageState createState() => _OnlineCheckDetailPageState();
|
|
|
|
}
|
|
|
|
|
|
|
|
class _OnlineCheckDetailPageState extends State<OnlineCheckDetailPage> {
|
|
|
|
OnlineCheckEditProvider _onlineCheckEditProvider;
|
|
|
|
OrderFoodProvider _orderFoodProvider;
|
|
|
|
bool arrowStatus = true; // true合住 false展开
|
|
|
|
|
|
|
|
@override
|
|
|
|
void initState() {
|
|
|
|
super.initState();
|
|
|
|
WidgetsBinding.instance.addPostFrameCallback((_) {
|
|
|
|
_getQiniuInfo();
|
|
|
|
_getTableInfoData();
|
|
|
|
_getOrderInfo();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
void dispose() {
|
|
|
|
_onlineCheckEditProvider.orderInfoSunModel = null;
|
|
|
|
_orderFoodProvider.reserveDetailSunModel = null;
|
|
|
|
super.dispose();
|
|
|
|
}
|
|
|
|
|
|
|
|
///获取七牛云token
|
|
|
|
///
|
|
|
|
_getQiniuInfo() async {
|
|
|
|
await _onlineCheckEditProvider.getQiniuInfo(context, {});
|
|
|
|
}
|
|
|
|
|
|
|
|
///接口获取桌位信息
|
|
|
|
_getTableInfoData() async {
|
|
|
|
UserModel userModel = Provider.of<UserModel>(context, listen: false);
|
|
|
|
Map<String, String> params = {
|
|
|
|
"openid": userModel.user.openid,
|
|
|
|
"rid": widget.rid
|
|
|
|
};
|
|
|
|
//明天完成 桌位名称信息
|
|
|
|
await _orderFoodProvider.getTableInfoData(context, params);
|
|
|
|
}
|
|
|
|
|
|
|
|
///获取订单详情
|
|
|
|
_getOrderInfo() async {
|
|
|
|
UserModel userModel = Provider.of<UserModel>(context, listen: false);
|
|
|
|
Map<String, String> params = {"rid": widget.rid};
|
|
|
|
//remark信息获取
|
|
|
|
await _onlineCheckEditProvider.getOrderInfo(context, params);
|
|
|
|
}
|
|
|
|
|
|
|
|
///顾客信息
|
|
|
|
Widget _customInfoItemWidget(String title, String subTitle,
|
|
|
|
{Color textColor = MyColours.color_707070, bool isBold = false}) {
|
|
|
|
return Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
title,
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: isBold ? FontWeight.bold : FontWeight.normal,
|
|
|
|
fontSize: ScreenUtil().setSp(28),
|
|
|
|
color: textColor),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
subTitle,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(28),
|
|
|
|
color: textColor,
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
//查看大图
|
|
|
|
_showPhotoView(BuildContext context, int index, List imgs,
|
|
|
|
{isShow = false, List<String> dashName}) async {
|
|
|
|
Utils.setBarStatus(false, color: Colors.black);
|
|
|
|
dynamic result = await showGeneralDialog(
|
|
|
|
context: context,
|
|
|
|
barrierDismissible: false,
|
|
|
|
// barrierColor: Colors.red,
|
|
|
|
barrierLabel:
|
|
|
|
MaterialLocalizations.of(context).modalBarrierDismissLabel,
|
|
|
|
transitionDuration: const Duration(milliseconds: 150),
|
|
|
|
pageBuilder: (BuildContext context, Animation animation,
|
|
|
|
Animation secondaryAnimation) {
|
|
|
|
Widget child = Stack(
|
|
|
|
children: <Widget>[
|
|
|
|
PhotoPreview(
|
|
|
|
initialIndex: index,
|
|
|
|
photoList: imgs,
|
|
|
|
isShow: isShow,
|
|
|
|
dashName: dashName)
|
|
|
|
],
|
|
|
|
);
|
|
|
|
return child;
|
|
|
|
});
|
|
|
|
Utils.setBarStatus(true, color: Colors.white);
|
|
|
|
}
|
|
|
|
|
|
|
|
///消费信息
|
|
|
|
Widget _consumptionInfoWidget() {
|
|
|
|
return Container(
|
|
|
|
width: double.infinity,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: Colors.white, borderRadius: BorderRadius.circular(10)),
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: <Widget>[
|
|
|
|
Container(
|
|
|
|
height: ScreenUtil().setWidth(58 * 2),
|
|
|
|
width: double.infinity,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: MyColours.color_FAFAFA,
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
topLeft: Radius.circular(10),
|
|
|
|
topRight: Radius.circular(10)),
|
|
|
|
),
|
|
|
|
child: Padding(
|
|
|
|
padding: EdgeInsets.fromLTRB(
|
|
|
|
ScreenUtil().setWidth(20),
|
|
|
|
ScreenUtil().setWidth(36),
|
|
|
|
ScreenUtil().setWidth(20),
|
|
|
|
ScreenUtil().setWidth(26)),
|
|
|
|
child: Text(
|
|
|
|
'消费信息',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(32),
|
|
|
|
color: MyColours.color_353535,
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
Stack(
|
|
|
|
alignment: Alignment.center,
|
|
|
|
children: [
|
|
|
|
Container(
|
|
|
|
color: Colors.white,
|
|
|
|
padding: EdgeInsets.fromLTRB(
|
|
|
|
ScreenUtil().setWidth(40),
|
|
|
|
ScreenUtil().setWidth(24),
|
|
|
|
ScreenUtil().setWidth(40),
|
|
|
|
ScreenUtil().setWidth(36)),
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
_customInfoItemWidget(
|
|
|
|
'应收金额',
|
|
|
|
_onlineCheckEditProvider.orderInfoSunModel != null
|
|
|
|
? '¥ ${_onlineCheckEditProvider.orderInfoSunModel.shouldPrice}'
|
|
|
|
: ''),
|
|
|
|
Offstage(
|
|
|
|
offstage:
|
|
|
|
_onlineCheckEditProvider.orderInfoSunModel != null
|
|
|
|
? _onlineCheckEditProvider
|
|
|
|
.orderInfoSunModel.billList.length ==
|
|
|
|
0
|
|
|
|
: true,
|
|
|
|
child: Padding(
|
|
|
|
padding:
|
|
|
|
EdgeInsets.only(top: ScreenUtil().setWidth(24)),
|
|
|
|
child: InkWell(
|
|
|
|
onTap: () {
|
|
|
|
List<String> temp = [];
|
|
|
|
for (int i = 0;
|
|
|
|
i <
|
|
|
|
_onlineCheckEditProvider
|
|
|
|
.orderInfoSunModel.billList.length;
|
|
|
|
i++) {
|
|
|
|
temp.add(_onlineCheckEditProvider
|
|
|
|
.orderInfoSunModel.billList[i]);
|
|
|
|
}
|
|
|
|
|
|
|
|
_showPhotoView(
|
|
|
|
context,
|
|
|
|
0,
|
|
|
|
temp,
|
|
|
|
);
|
|
|
|
},
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.spaceBetween,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'消费清单',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(28),
|
|
|
|
color: MyColours.color_707070),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'查看消费清单',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_24A4A8,
|
|
|
|
decoration: TextDecoration.underline,
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
)))
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
//2待支付 wait_pay 3已买单 has_pay
|
|
|
|
_onlineCheckEditProvider.orderInfoSunModel != null
|
|
|
|
? Align(
|
|
|
|
child: Image.asset(
|
|
|
|
Utils.getImgPath(
|
|
|
|
_onlineCheckEditProvider.orderInfoSunModel.status ==
|
|
|
|
'2'
|
|
|
|
? 'wait_pay'
|
|
|
|
: 'has_pay'),
|
|
|
|
width: ScreenUtil().setWidth(56 * 2),
|
|
|
|
height: ScreenUtil().setWidth(28 * 2),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
: Container(),
|
|
|
|
],
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
///顾客信息
|
|
|
|
Widget _customerInfoWidget() {
|
|
|
|
bool showArrow = false;
|
|
|
|
//1散座 2包间 3卡座
|
|
|
|
List<String> tableNameSunList1 = []; //单个类型包含的所有桌子名称
|
|
|
|
List<String> tableNameSunList2 = []; //单个类型包含的所有桌子名称
|
|
|
|
List<String> tableNameSunList3 = []; //单个类型包含的所有桌子名称
|
|
|
|
if (_orderFoodProvider.reserveDetailSunModel != null) {
|
|
|
|
tableNameSunList1 =
|
|
|
|
_orderFoodProvider.reserveDetailSunModel.tableNameList[0]['散座'];
|
|
|
|
tableNameSunList2 =
|
|
|
|
_orderFoodProvider.reserveDetailSunModel.tableNameList[1]['包间'];
|
|
|
|
tableNameSunList3 =
|
|
|
|
_orderFoodProvider.reserveDetailSunModel.tableNameList[2]['卡座'];
|
|
|
|
if (tableNameSunList2.length > 0) {
|
|
|
|
if (arrowStatus) {
|
|
|
|
_orderFoodProvider.showTable = '【包间】${tableNameSunList2[0]}';
|
|
|
|
} else {
|
|
|
|
_orderFoodProvider.showTable = '';
|
|
|
|
}
|
|
|
|
} else if (tableNameSunList3.length > 0) {
|
|
|
|
if (arrowStatus) {
|
|
|
|
_orderFoodProvider.showTable = '【卡座】${tableNameSunList3[0]}';
|
|
|
|
} else {
|
|
|
|
_orderFoodProvider.showTable = '';
|
|
|
|
}
|
|
|
|
} else if (tableNameSunList1.length > 0) {
|
|
|
|
if (arrowStatus) {
|
|
|
|
_orderFoodProvider.showTable = '【散座】${tableNameSunList1[0]}';
|
|
|
|
} else {
|
|
|
|
_orderFoodProvider.showTable = '';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (tableNameSunList1.length > 1 ||
|
|
|
|
tableNameSunList2.length > 1 ||
|
|
|
|
tableNameSunList3.length > 1) {
|
|
|
|
showArrow = true;
|
|
|
|
} else {
|
|
|
|
showArrow = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return Container(
|
|
|
|
width: double.infinity,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: Colors.white, borderRadius: BorderRadius.circular(10)),
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: <Widget>[
|
|
|
|
Container(
|
|
|
|
height: ScreenUtil().setWidth(58 * 2),
|
|
|
|
width: double.infinity,
|
|
|
|
padding: EdgeInsets.fromLTRB(
|
|
|
|
ScreenUtil().setWidth(20),
|
|
|
|
ScreenUtil().setWidth(36),
|
|
|
|
ScreenUtil().setWidth(20),
|
|
|
|
ScreenUtil().setWidth(26)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: MyColours.color_FAFAFA,
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
topLeft: Radius.circular(10),
|
|
|
|
topRight: Radius.circular(10)),
|
|
|
|
),
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'顾客信息',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(32),
|
|
|
|
color: MyColours.color_353535,
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
),
|
|
|
|
// 备注信息
|
|
|
|
Offstage(
|
|
|
|
offstage: _onlineCheckEditProvider.orderInfoSunModel != null
|
|
|
|
? _onlineCheckEditProvider
|
|
|
|
.orderInfoSunModel.orderRemark ==
|
|
|
|
''
|
|
|
|
: true,
|
|
|
|
child: Container(
|
|
|
|
child: Text(
|
|
|
|
_onlineCheckEditProvider.orderInfoSunModel != null
|
|
|
|
? _onlineCheckEditProvider
|
|
|
|
.orderInfoSunModel.orderRemark
|
|
|
|
: '',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(28),
|
|
|
|
color: MyColours.color_FD5656),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.fromLTRB(
|
|
|
|
ScreenUtil().setWidth(40),
|
|
|
|
ScreenUtil().setWidth(24),
|
|
|
|
ScreenUtil().setWidth(40),
|
|
|
|
ScreenUtil().setWidth(36)),
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (showArrow) {
|
|
|
|
//有arrow
|
|
|
|
arrowStatus = !arrowStatus;
|
|
|
|
_orderFoodProvider.notifyListeners();
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'桌位信息',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(28),
|
|
|
|
color: MyColours.color_707070),
|
|
|
|
),
|
|
|
|
Spacer(),
|
|
|
|
Text(
|
|
|
|
_orderFoodProvider.showTable,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(28),
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
color: MyColours.color_707070),
|
|
|
|
),
|
|
|
|
Offstage(
|
|
|
|
offstage: !showArrow,
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
HEmptyView(20),
|
|
|
|
Image.asset(
|
|
|
|
arrowStatus
|
|
|
|
? Utils.getImgPath('down')
|
|
|
|
: Utils.getImgPath('up'),
|
|
|
|
width: ScreenUtil().setWidth(24),
|
|
|
|
height: ScreenUtil().setWidth(12))
|
|
|
|
],
|
|
|
|
),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Offstage(
|
|
|
|
offstage: arrowStatus,
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
VEmptyView(14),
|
|
|
|
tableNameSunList2.length > 0
|
|
|
|
? Padding(
|
|
|
|
padding: EdgeInsets.fromLTRB(
|
|
|
|
ScreenUtil().setWidth(0),
|
|
|
|
ScreenUtil().setWidth(10),
|
|
|
|
ScreenUtil().setWidth(60),
|
|
|
|
ScreenUtil().setWidth(10)),
|
|
|
|
child: Text(
|
|
|
|
'【包间】${Utils.listToString(tableNameSunList2)}',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(30),
|
|
|
|
color: MyColours.color_353535,
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
: Container(),
|
|
|
|
tableNameSunList3.length > 0
|
|
|
|
? Padding(
|
|
|
|
padding: EdgeInsets.fromLTRB(
|
|
|
|
ScreenUtil().setWidth(0),
|
|
|
|
ScreenUtil().setWidth(10),
|
|
|
|
ScreenUtil().setWidth(60),
|
|
|
|
ScreenUtil().setWidth(10)),
|
|
|
|
child: Text(
|
|
|
|
'【卡座】${Utils.listToString(tableNameSunList3)}',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(30),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
: Container(),
|
|
|
|
tableNameSunList1.length > 0
|
|
|
|
? Padding(
|
|
|
|
padding: EdgeInsets.fromLTRB(
|
|
|
|
ScreenUtil().setWidth(0),
|
|
|
|
ScreenUtil().setWidth(10),
|
|
|
|
ScreenUtil().setWidth(60),
|
|
|
|
ScreenUtil().setWidth(10)),
|
|
|
|
child: Text(
|
|
|
|
'【散座】${Utils.listToString(tableNameSunList1)}',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(30),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
: Container(),
|
|
|
|
VEmptyView(36),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
VEmptyView(24),
|
|
|
|
_customInfoItemWidget(
|
|
|
|
'买单顾客',
|
|
|
|
_orderFoodProvider.reserveDetailSunModel != null
|
|
|
|
? _orderFoodProvider.reserveDetailSunModel.rnameStr
|
|
|
|
: ''),
|
|
|
|
VEmptyView(24),
|
|
|
|
_customInfoItemWidget(
|
|
|
|
'顾客电话',
|
|
|
|
_orderFoodProvider.reserveDetailSunModel != null
|
|
|
|
? _orderFoodProvider.reserveDetailSunModel.phone
|
|
|
|
: ''),
|
|
|
|
VEmptyView(24),
|
|
|
|
_customInfoItemWidget(
|
|
|
|
'到店时间',
|
|
|
|
_orderFoodProvider.reserveDetailSunModel != null
|
|
|
|
? _orderFoodProvider.reserveDetailSunModel.ddateStr
|
|
|
|
: ''),
|
|
|
|
VEmptyView(24),
|
|
|
|
_customInfoItemWidget(
|
|
|
|
'申请时间',
|
|
|
|
_orderFoodProvider.reserveDetailSunModel != null
|
|
|
|
? _orderFoodProvider.reserveDetailSunModel.cdateStr
|
|
|
|
: '')
|
|
|
|
],
|
|
|
|
),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
///买单信息
|
|
|
|
Widget _orderInfoWidget() {
|
|
|
|
return Container(
|
|
|
|
width: double.infinity,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: Colors.white, borderRadius: BorderRadius.circular(10)),
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: <Widget>[
|
|
|
|
Container(
|
|
|
|
height: ScreenUtil().setWidth(58 * 2),
|
|
|
|
width: double.infinity,
|
|
|
|
padding: EdgeInsets.fromLTRB(
|
|
|
|
ScreenUtil().setWidth(20),
|
|
|
|
ScreenUtil().setWidth(36),
|
|
|
|
ScreenUtil().setWidth(20),
|
|
|
|
ScreenUtil().setWidth(26)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: MyColours.color_FAFAFA,
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
topLeft: Radius.circular(10),
|
|
|
|
topRight: Radius.circular(10)),
|
|
|
|
),
|
|
|
|
child: Text(
|
|
|
|
'买单信息',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(32),
|
|
|
|
color: MyColours.color_353535,
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
)),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.fromLTRB(
|
|
|
|
ScreenUtil().setWidth(40),
|
|
|
|
ScreenUtil().setWidth(24),
|
|
|
|
ScreenUtil().setWidth(40),
|
|
|
|
ScreenUtil().setWidth(36)),
|
|
|
|
child: Column(children: [
|
|
|
|
_customInfoItemWidget(
|
|
|
|
'应收金额',
|
|
|
|
_onlineCheckEditProvider.orderInfoSunModel != null
|
|
|
|
? '¥ ${_onlineCheckEditProvider.orderInfoSunModel.shouldPrice}'
|
|
|
|
: ''),
|
|
|
|
VEmptyView(24),
|
|
|
|
_customInfoItemWidget(
|
|
|
|
'实收金额',
|
|
|
|
_onlineCheckEditProvider.orderInfoSunModel != null
|
|
|
|
? '¥ ${_onlineCheckEditProvider.orderInfoSunModel.price}'
|
|
|
|
: '',
|
|
|
|
textColor: MyColours.color_353535,
|
|
|
|
isBold: true),
|
|
|
|
VEmptyView(24),
|
|
|
|
_customInfoItemWidget('支付方式', '微信支付'),
|
|
|
|
VEmptyView(24),
|
|
|
|
_customInfoItemWidget(
|
|
|
|
'买单时间',
|
|
|
|
_onlineCheckEditProvider.orderInfoSunModel != null
|
|
|
|
? _onlineCheckEditProvider
|
|
|
|
.orderInfoSunModel?.payTimeStr
|
|
|
|
: ''),
|
|
|
|
VEmptyView(24),
|
|
|
|
]))
|
|
|
|
]));
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
_onlineCheckEditProvider =
|
|
|
|
Provider.of<OnlineCheckEditProvider>(context, listen: true);
|
|
|
|
_orderFoodProvider = Provider.of<OrderFoodProvider>(context, listen: true);
|
|
|
|
return Scaffold(
|
|
|
|
backgroundColor: MyColours.color_f5f5f5,
|
|
|
|
appBar: SystemAppBar(
|
|
|
|
'买单申请详情',
|
|
|
|
onTap: () {
|
|
|
|
if (widget.fromNotify) {
|
|
|
|
NavigatorUtil.goHomePage(context, initialIndex: 0);
|
|
|
|
} else {
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
}
|
|
|
|
},
|
|
|
|
),
|
|
|
|
body: SingleChildScrollView(
|
|
|
|
child: Padding(
|
|
|
|
padding: EdgeInsets.all(ScreenUtil().setWidth(20)),
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
_consumptionInfoWidget(),
|
|
|
|
VEmptyView(20),
|
|
|
|
_customerInfoWidget(),
|
|
|
|
VEmptyView(20),
|
|
|
|
Offstage(
|
|
|
|
offstage: _onlineCheckEditProvider.orderInfoSunModel != null
|
|
|
|
? _onlineCheckEditProvider.orderInfoSunModel.status == '2'
|
|
|
|
: true,
|
|
|
|
child: _orderInfoWidget(),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|