|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
|
import 'package:one_key/constant/state.dart';
|
|
|
|
import 'package:one_key/provider/customer_provider.dart';
|
|
|
|
import 'package:one_key/res/colors.dart';
|
|
|
|
import 'package:one_key/route/navigator_util.dart';
|
|
|
|
import 'package:one_key/utils/dialog_util.dart';
|
|
|
|
import 'package:one_key/utils/screen_util.dart';
|
|
|
|
import 'package:one_key/widgets/h_empty_view.dart';
|
|
|
|
import 'package:one_key/widgets/page_exception.dart';
|
|
|
|
import 'package:one_key/widgets/round_button.dart';
|
|
|
|
import 'package:one_key/widgets/system_app_bar.dart';
|
|
|
|
import 'package:one_key/widgets/v_empty_view.dart';
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
|
|
|
import '../../../provider/collect_store_provider.dart';
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* 客户汇总/全店页面
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
class CustomerStatisticsLeftPage extends StatefulWidget {
|
|
|
|
final CustomerProvider? customerProvider;
|
|
|
|
const CustomerStatisticsLeftPage({super.key, this.customerProvider});
|
|
|
|
|
|
|
|
@override
|
|
|
|
State<CustomerStatisticsLeftPage> createState() =>
|
|
|
|
_CustomerStatisticsLeftPageState();
|
|
|
|
}
|
|
|
|
|
|
|
|
class _CustomerStatisticsLeftPageState
|
|
|
|
extends State<CustomerStatisticsLeftPage> {
|
|
|
|
ScrollController _controller = ScrollController();
|
|
|
|
late CollectStoreProvider collectStoreProvider;
|
|
|
|
|
|
|
|
Widget _columnItem(
|
|
|
|
String btnTitle,
|
|
|
|
String sum,
|
|
|
|
String currunt,
|
|
|
|
) {
|
|
|
|
Color btnColor = btnTitle == '活跃'
|
|
|
|
? MyColours.color_00715F
|
|
|
|
: btnTitle == '沉睡'
|
|
|
|
? MyColours.color_E89243
|
|
|
|
: MyColours.color_C80010;
|
|
|
|
|
|
|
|
return Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
RoundButton(
|
|
|
|
text: btnTitle,
|
|
|
|
gradientStart: btnColor,
|
|
|
|
gradientEnd: btnColor,
|
|
|
|
width: w(30),
|
|
|
|
height: w(18),
|
|
|
|
radius: r(5),
|
|
|
|
fontSize: 20,
|
|
|
|
),
|
|
|
|
VEmptyView(20),
|
|
|
|
Text(
|
|
|
|
'${sum}位',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: font(14),
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
),
|
|
|
|
VEmptyView(20),
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'本月新增',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: font(14),
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'${currunt}',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_438E93,
|
|
|
|
fontSize: font(14),
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'位',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: font(14),
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
)
|
|
|
|
],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
Widget _item(String title, String titleSum) {
|
|
|
|
return Container(
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: w(16), vertical: w(13)),
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
Text(title,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: font(16),
|
|
|
|
fontWeight: FontWeight.bold)),
|
|
|
|
Spacer(),
|
|
|
|
Text(titleSum,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_438E93,
|
|
|
|
fontSize: font(24),
|
|
|
|
fontWeight: FontWeight.bold)),
|
|
|
|
Text('位',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: font(14),
|
|
|
|
)),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(26),
|
|
|
|
Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
children: [
|
|
|
|
_columnItem('活跃', '1600', '500'),
|
|
|
|
_columnItem('沉睡', '2000', '50'),
|
|
|
|
_columnItem('流失', '160', '30')
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(10),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
collectStoreProvider =
|
|
|
|
Provider.of<CollectStoreProvider>(context, listen: true);
|
|
|
|
return Scaffold(
|
|
|
|
body: Consumer<CustomerProvider>(builder: (context, model, _) {
|
|
|
|
if (model.pageStateStoreHome != PageState.Success) {
|
|
|
|
if (model.pageStateStoreHome == PageState.Loading) {
|
|
|
|
return SingleChildScrollView(
|
|
|
|
controller: _controller,
|
|
|
|
child: Stack(alignment: Alignment.center, children: [
|
|
|
|
Column(children: [
|
|
|
|
VEmptyView(10),
|
|
|
|
// Stack(
|
|
|
|
// children: [
|
|
|
|
Container(
|
|
|
|
height: w(80),
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'累计',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
// fontWeight: FontWeight.bold,
|
|
|
|
fontSize: ScreenUtil().setSp(32)),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_438E93,
|
|
|
|
fontSize: ScreenUtil().setSp(64),
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'位客户',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
// fontWeight: FontWeight.bold,
|
|
|
|
fontSize: ScreenUtil().setSp(32)),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
VEmptyView(10),
|
|
|
|
// Row(
|
|
|
|
// children: [
|
|
|
|
// _percentWidget('', '活跃', '', tap: false),
|
|
|
|
// HEmptyView(10),
|
|
|
|
// _percentWidget('', '60天未预订', '', tap: false),
|
|
|
|
// HEmptyView(10),
|
|
|
|
// _percentWidget('', '120天未预订', '', tap: false),
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
|
|
|
|
VEmptyView(10),
|
|
|
|
// GridView.builder(
|
|
|
|
// controller: _controller,
|
|
|
|
// shrinkWrap: true,
|
|
|
|
// cacheExtent: ScreenUtil().setWidth(0),
|
|
|
|
// itemCount: 6,
|
|
|
|
// gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
|
|
|
|
// crossAxisCount: 3,
|
|
|
|
// childAspectRatio: 1.05,
|
|
|
|
// mainAxisSpacing: ScreenUtil().setWidth(10),
|
|
|
|
// crossAxisSpacing: ScreenUtil().setWidth(10)),
|
|
|
|
// itemBuilder: (BuildContext context, int index) {
|
|
|
|
// return _managerWidget('', '', null, '',
|
|
|
|
// uid: '', onTap: () {});
|
|
|
|
// })
|
|
|
|
]),
|
|
|
|
Align(
|
|
|
|
alignment: Alignment.center,
|
|
|
|
child: Center(
|
|
|
|
child: Column(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
children: <Widget>[
|
|
|
|
ClipRRect(
|
|
|
|
borderRadius: BorderRadius.circular(10),
|
|
|
|
child: Container(
|
|
|
|
width: 200,
|
|
|
|
height: 200,
|
|
|
|
color: Colors.transparent,
|
|
|
|
child: CupertinoActivityIndicator(
|
|
|
|
color: MyColours.color_000000,
|
|
|
|
radius: 30,
|
|
|
|
),
|
|
|
|
))
|
|
|
|
// VEmptyView(30),
|
|
|
|
// Text(
|
|
|
|
// '加载中,请稍候...',
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_666666,
|
|
|
|
// fontSize: ScreenUtil().setSp(24)),
|
|
|
|
// )
|
|
|
|
],
|
|
|
|
),
|
|
|
|
))
|
|
|
|
]));
|
|
|
|
}
|
|
|
|
return ExceptionPage(
|
|
|
|
pageState: model.pageStateStoreHome,
|
|
|
|
callback: () {
|
|
|
|
// getTableList();
|
|
|
|
// _getSellerGuestManage();
|
|
|
|
// _getSellerCountsList();
|
|
|
|
},
|
|
|
|
emptyMsg: "暂时没有全店客情哦",
|
|
|
|
emptyImg: "empty_search",
|
|
|
|
showMsg: "加载中,请稍候...",
|
|
|
|
);
|
|
|
|
} else {
|
|
|
|
return Column(children: [
|
|
|
|
Expanded(
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
controller: _controller,
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
if (widget.customerProvider!.storeSunmodel != null)
|
|
|
|
Column(
|
|
|
|
children: [
|
|
|
|
// VEmptyView(10),
|
|
|
|
// Stack(
|
|
|
|
// children: [
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
NavigatorUtil.goCustomerListPage(
|
|
|
|
context,
|
|
|
|
FromPage.FromPageHome,
|
|
|
|
'',
|
|
|
|
{
|
|
|
|
'object': widget
|
|
|
|
.customerProvider!.storeSunmodel!.sellerUser
|
|
|
|
},
|
|
|
|
);
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
height: w(105),
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'${widget.customerProvider!.storeSunmodel!.myCustomer}',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_438E93,
|
|
|
|
fontSize: ScreenUtil().setSp(64),
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'位',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
// fontWeight: FontWeight.bold,
|
|
|
|
fontSize: ScreenUtil().setSp(32)),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
// Positioned(
|
|
|
|
// top: ScreenUtil().setWidth(30),
|
|
|
|
// right: ScreenUtil().setWidth(40),
|
|
|
|
// child: InkWell(
|
|
|
|
// onTap: () {
|
|
|
|
// NavigatorUtil.goCustomerSetPage(context);
|
|
|
|
// },
|
|
|
|
// child: Image.asset(Utils.getImgPath('c_set'),
|
|
|
|
// width: ScreenUtil().setWidth(40))))
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
VEmptyView(10),
|
|
|
|
|
|
|
|
_item('预订客户', '2000'),
|
|
|
|
VEmptyView(10),
|
|
|
|
_item('支付客户', '1800'),
|
|
|
|
VEmptyView(10),
|
|
|
|
_item('充值客户', '3000'),
|
|
|
|
VEmptyView(10),
|
|
|
|
_item('充值客户', '5000'),
|
|
|
|
// Row(
|
|
|
|
// children: [
|
|
|
|
// _percentWidget(
|
|
|
|
// '${widget.customerProvider!.storeSunmodel!.active!.count}',
|
|
|
|
// '活跃',
|
|
|
|
// '${widget.customerProvider!.storeSunmodel!.active!.scale}'),
|
|
|
|
// HEmptyView(10),
|
|
|
|
// _percentWidget(
|
|
|
|
// '${widget.customerProvider!.storeSunmodel!.sleep!.count}',
|
|
|
|
// '60天未预订',
|
|
|
|
// '${widget.customerProvider!.storeSunmodel!.sleep!.scale}'),
|
|
|
|
// HEmptyView(10),
|
|
|
|
// _percentWidget(
|
|
|
|
// '${widget.customerProvider!.storeSunmodel!.drain!.count}',
|
|
|
|
// '120天未预订',
|
|
|
|
// '${widget.customerProvider!.storeSunmodel!.drain!.scale}'),
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// GridView.builder(
|
|
|
|
// controller: _controller,
|
|
|
|
// shrinkWrap: true,
|
|
|
|
// cacheExtent: ScreenUtil().setWidth(0),
|
|
|
|
// itemCount: 3,
|
|
|
|
// gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
|
|
|
|
// crossAxisCount: 3,
|
|
|
|
// childAspectRatio: 1,
|
|
|
|
// mainAxisSpacing: ScreenUtil().setWidth(10),
|
|
|
|
// crossAxisSpacing: ScreenUtil().setWidth(10)),
|
|
|
|
// itemBuilder: (BuildContext context, int index) {
|
|
|
|
// // locationState = state;
|
|
|
|
// return _percentWidget('1999', '活跃客户', '39.20');
|
|
|
|
// }),
|
|
|
|
// Row(
|
|
|
|
// children: [
|
|
|
|
// _percentWidget('19992', '活跃客户', '90.90'),
|
|
|
|
// HEmptyView(10),
|
|
|
|
// _percentWidget('19992', '沉睡客户', '90.90'),
|
|
|
|
// HEmptyView(10),
|
|
|
|
// _percentWidget('19992', '流失客户', '5.90'),
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// Padding(
|
|
|
|
// padding: EdgeInsets.symmetric(
|
|
|
|
// vertical: ScreenUtil().setWidth(30)),
|
|
|
|
// child: Text(
|
|
|
|
// '客户经理',
|
|
|
|
// style: TextStyle(
|
|
|
|
// fontSize: ScreenUtil().setSp(28),
|
|
|
|
// color: MyColours.color_333333),
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
VEmptyView(10),
|
|
|
|
// GridView.builder(
|
|
|
|
// controller: _controller,
|
|
|
|
// shrinkWrap: true,
|
|
|
|
// cacheExtent: ScreenUtil().setWidth(0),
|
|
|
|
// itemCount: widget.customerProvider!.storeSunmodel!
|
|
|
|
// .sellerUser!.length +
|
|
|
|
// 1,
|
|
|
|
// gridDelegate:
|
|
|
|
// SliverGridDelegateWithFixedCrossAxisCount(
|
|
|
|
// crossAxisCount: 3,
|
|
|
|
// childAspectRatio: 1.05,
|
|
|
|
// mainAxisSpacing: ScreenUtil().setWidth(10),
|
|
|
|
// crossAxisSpacing: ScreenUtil().setWidth(10)),
|
|
|
|
// itemBuilder: (BuildContext context, int index) {
|
|
|
|
// // locationState = state;
|
|
|
|
// if (index == 0) {
|
|
|
|
// return _managerWidget(
|
|
|
|
// '${widget.customerProvider!.storeSunmodel!.distribution}',
|
|
|
|
// '未分配经理',
|
|
|
|
// null,
|
|
|
|
// '${widget.customerProvider!.storeSunmodel!.distributionStr}',
|
|
|
|
// onTap: () {
|
|
|
|
// NavigatorUtil.goCustomerListPage(
|
|
|
|
// context,
|
|
|
|
// FromPage.FromPageHome,
|
|
|
|
// '',
|
|
|
|
// {
|
|
|
|
// 'object': widget.customerProvider!
|
|
|
|
// .storeSunmodel!.sellerUser
|
|
|
|
// },
|
|
|
|
// index: '0',
|
|
|
|
// distribution: true);
|
|
|
|
// });
|
|
|
|
// }
|
|
|
|
|
|
|
|
// return _managerWidget(
|
|
|
|
// '${widget.customerProvider!.storeSunmodel!.sellerUser![index - 1]!.count}',
|
|
|
|
// widget.customerProvider!.storeSunmodel!
|
|
|
|
// .sellerUser![index - 1]!.account ==
|
|
|
|
// null
|
|
|
|
// ? ''
|
|
|
|
// : '${widget.customerProvider!.storeSunmodel!.sellerUser![index - 1]!.nickName ?? widget.customerProvider!.storeSunmodel!.sellerUser![index - 1]!.account}',
|
|
|
|
// null,
|
|
|
|
// '${widget.customerProvider!.storeSunmodel!.sellerUser![index - 1]!.detailStr}',
|
|
|
|
// uid: widget.customerProvider!.storeSunmodel!
|
|
|
|
// .sellerUser![index - 1]!.uid, onTap: () {
|
|
|
|
// NavigatorUtil.goCustomerListPage(
|
|
|
|
// context,
|
|
|
|
// FromPage.FromPageHome,
|
|
|
|
// widget.customerProvider!.storeSunmodel!
|
|
|
|
// .sellerUser![index - 1]!.uid,
|
|
|
|
// {
|
|
|
|
// 'object': widget.customerProvider!
|
|
|
|
// .storeSunmodel!.sellerUser
|
|
|
|
// },
|
|
|
|
// index: '0',
|
|
|
|
// );
|
|
|
|
// });
|
|
|
|
// }),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
|
|
|
|
VEmptyView(10),
|
|
|
|
// ListView.builder(
|
|
|
|
// shrinkWrap: true,
|
|
|
|
// controller: _controller,
|
|
|
|
// itemCount: 2,
|
|
|
|
// itemBuilder: (context, index) {
|
|
|
|
// return Container(
|
|
|
|
// padding: EdgeInsets.symmetric(
|
|
|
|
// vertical: w(12), horizontal: w(16)),
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
// color: MyColours.color_ffffff,
|
|
|
|
// border: Border(
|
|
|
|
// bottom: BorderSide(
|
|
|
|
// color: index == 2 - 1
|
|
|
|
// ? MyColours.color_ffffff
|
|
|
|
// : MyColours.color_E7E7E7,
|
|
|
|
// width: w(1)))),
|
|
|
|
// child: Row(
|
|
|
|
// children: [
|
|
|
|
// Expanded(
|
|
|
|
// child: Text(
|
|
|
|
// '7天内存酒超期:5位/7天内纪念日提醒:3位',
|
|
|
|
// style: TextStyle(
|
|
|
|
// fontSize: font(16),
|
|
|
|
// color: MyColours.color_515151),
|
|
|
|
// )),
|
|
|
|
// Text(
|
|
|
|
// '创建营销计划',
|
|
|
|
// style: TextStyle(
|
|
|
|
// fontSize: font(16),
|
|
|
|
// color: MyColours.color_999999),
|
|
|
|
// ),
|
|
|
|
// HEmptyView(20),
|
|
|
|
// Image.asset(
|
|
|
|
// Utils.getImgPath('arrow_right_new'),
|
|
|
|
// width: w(12),
|
|
|
|
// )
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// );
|
|
|
|
// }),
|
|
|
|
|
|
|
|
// if (widget.customerProvider!.homeStatisticsList != null &&
|
|
|
|
// widget.customerProvider!.homeStatisticsList!.length > 0)
|
|
|
|
// Column(
|
|
|
|
// children: [
|
|
|
|
// _chart(),
|
|
|
|
// // _monthWidget(),
|
|
|
|
|
|
|
|
// ListView.builder(
|
|
|
|
// itemCount: widget
|
|
|
|
// .customerProvider!.homeStatisticsList!.length,
|
|
|
|
// shrinkWrap: true,
|
|
|
|
// controller: _controller,
|
|
|
|
// padding: EdgeInsets.symmetric(horizontal: w(10)),
|
|
|
|
// itemBuilder: (context, index) {
|
|
|
|
// SellerCountsListSunModel countsListSunModel = widget
|
|
|
|
// .customerProvider!.homeStatisticsList![index];
|
|
|
|
// return InkWell(
|
|
|
|
// onTap: () {
|
|
|
|
// NavigatorUtil.goMonthOrderPage(
|
|
|
|
// context,
|
|
|
|
// year.toString(),
|
|
|
|
// countsListSunModel.monthss.toString());
|
|
|
|
// },
|
|
|
|
// child: MonthItem(
|
|
|
|
// countsListSunModel: countsListSunModel));
|
|
|
|
// }),
|
|
|
|
// ],
|
|
|
|
// )
|
|
|
|
|
|
|
|
/**
|
|
|
|
ListView.builder(
|
|
|
|
itemCount: 10,
|
|
|
|
controller: _controller,
|
|
|
|
shrinkWrap: true,
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: w(10)),
|
|
|
|
itemBuilder: (context, index) {
|
|
|
|
return Container(
|
|
|
|
margin: EdgeInsets.only(bottom: w(10)),
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: w(10)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
topRight: Radius.circular(r(8)),
|
|
|
|
bottomRight: Radius.circular(r(8))),
|
|
|
|
),
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
Container(
|
|
|
|
width: w(122),
|
|
|
|
padding: EdgeInsets.symmetric(vertical: w(5)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
border: Border(
|
|
|
|
right: BorderSide(
|
|
|
|
color: MyColours.color_f3f3f3,
|
|
|
|
width: w(1)))),
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
VEmptyView(24),
|
|
|
|
Align(
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
child: Container(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
vertical: w(4), horizontal: w(5)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius.circular(r(3)),
|
|
|
|
border: Border.all(
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
width: w(1))),
|
|
|
|
child: Text(
|
|
|
|
'张珊珊',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(12),
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
color: MyColours.color_999999),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
VEmptyView(10),
|
|
|
|
Row(
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'34',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(24),
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
color: MyColours.color_438E93),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'位',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(14),
|
|
|
|
color: MyColours.color_000000),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(10),
|
|
|
|
Row(
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'23',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(14),
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
color: MyColours.color_438E93),
|
|
|
|
),
|
|
|
|
MyDivider(
|
|
|
|
w(4),
|
|
|
|
w(1),
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'9',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(14),
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
color: MyColours.color_E89243),
|
|
|
|
),
|
|
|
|
MyDivider(
|
|
|
|
w(4),
|
|
|
|
w(1),
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'2',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(14),
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
color: MyColours.color_E34D59),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(24),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Expanded(
|
|
|
|
child: Container(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
top: w(5), bottom: w(5), left: w(10)),
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.spaceBetween,
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Column(
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.start,
|
|
|
|
crossAxisAlignment:
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Row(
|
|
|
|
crossAxisAlignment:
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'预订',
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: font(
|
|
|
|
(12),
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
HEmptyView(10),
|
|
|
|
Text(
|
|
|
|
'1089单',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: font(
|
|
|
|
(10),
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
HEmptyView(10),
|
|
|
|
MyDivider(
|
|
|
|
w(1),
|
|
|
|
w(15),
|
|
|
|
color: MyColours.color_DBDBDB,
|
|
|
|
),
|
|
|
|
HEmptyView(10),
|
|
|
|
Text(
|
|
|
|
'1190桌',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: font(
|
|
|
|
(10),
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(10),
|
|
|
|
Row(
|
|
|
|
crossAxisAlignment:
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'到店',
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: font(
|
|
|
|
(12),
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
HEmptyView(10),
|
|
|
|
Text(
|
|
|
|
'1089单',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: font(
|
|
|
|
(10),
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
HEmptyView(10),
|
|
|
|
MyDivider(
|
|
|
|
w(1),
|
|
|
|
w(15),
|
|
|
|
color: MyColours.color_DBDBDB,
|
|
|
|
),
|
|
|
|
HEmptyView(10),
|
|
|
|
Text(
|
|
|
|
'1190桌',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: font(
|
|
|
|
(10),
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(10),
|
|
|
|
Row(
|
|
|
|
crossAxisAlignment:
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'1089人',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: font(
|
|
|
|
(10),
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
HEmptyView(10),
|
|
|
|
MyDivider(
|
|
|
|
w(1),
|
|
|
|
w(15),
|
|
|
|
color: MyColours.color_DBDBDB,
|
|
|
|
),
|
|
|
|
HEmptyView(10),
|
|
|
|
Text(
|
|
|
|
'1190取消',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: font(
|
|
|
|
(10),
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
HEmptyView(10),
|
|
|
|
MyDivider(
|
|
|
|
w(1),
|
|
|
|
w(15),
|
|
|
|
color: MyColours.color_DBDBDB,
|
|
|
|
),
|
|
|
|
HEmptyView(10),
|
|
|
|
Text(
|
|
|
|
'到客90.1%',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: font(
|
|
|
|
(10),
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(10),
|
|
|
|
Row(
|
|
|
|
crossAxisAlignment:
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'有金额订单数 25',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
fontSize: font(
|
|
|
|
(10),
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
HEmptyView(10),
|
|
|
|
MyDivider(
|
|
|
|
w(1),
|
|
|
|
w(15),
|
|
|
|
color: MyColours.color_DBDBDB,
|
|
|
|
),
|
|
|
|
HEmptyView(10),
|
|
|
|
Text(
|
|
|
|
'总消费 25800元',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
fontSize: font(
|
|
|
|
(10),
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(10),
|
|
|
|
Row(
|
|
|
|
crossAxisAlignment:
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'人均 103.2元',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
fontSize: font(
|
|
|
|
(10),
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
HEmptyView(10),
|
|
|
|
MyDivider(
|
|
|
|
w(1),
|
|
|
|
w(15),
|
|
|
|
color: MyColours.color_DBDBDB,
|
|
|
|
),
|
|
|
|
HEmptyView(10),
|
|
|
|
Text(
|
|
|
|
'桌均 860元',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
fontSize: font(
|
|
|
|
(10),
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(10),
|
|
|
|
Row(
|
|
|
|
crossAxisAlignment:
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'存酒 1位',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
fontSize: font(
|
|
|
|
(10),
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
HEmptyView(10),
|
|
|
|
MyDivider(
|
|
|
|
w(1),
|
|
|
|
w(15),
|
|
|
|
color: MyColours.color_DBDBDB,
|
|
|
|
),
|
|
|
|
HEmptyView(10),
|
|
|
|
Text(
|
|
|
|
'提前点餐 9位',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
fontSize: font(
|
|
|
|
(10),
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
HEmptyView(10),
|
|
|
|
MyDivider(
|
|
|
|
w(1),
|
|
|
|
w(15),
|
|
|
|
color: MyColours.color_DBDBDB,
|
|
|
|
),
|
|
|
|
HEmptyView(10),
|
|
|
|
Text(
|
|
|
|
'安排菜 9位',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
fontSize: font(
|
|
|
|
(10),
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
Image.asset(
|
|
|
|
Utils.getImgPath('arrow_right_new'),
|
|
|
|
width: w(12),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
))
|
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
|
|
|
})
|
|
|
|
*/
|
|
|
|
],
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
if (widget.customerProvider!.storeSunmodel != null)
|
|
|
|
Container(
|
|
|
|
color: MyColours.color_FAFAFA,
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
top: w(13), bottom: w(26), left: w(19), right: (19)),
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
children: [
|
|
|
|
Expanded(
|
|
|
|
flex: 1,
|
|
|
|
child: RoundButton(
|
|
|
|
onPressed: () {
|
|
|
|
if (!collectStoreProvider.sellerPreserve) {
|
|
|
|
//没有购买客情维护模块
|
|
|
|
//提示购买
|
|
|
|
|
|
|
|
DialogUtil.showSellerVersionBuyDialog(
|
|
|
|
context, '客情维护', (v) {});
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
NavigatorUtil.goExportBookDataPage(
|
|
|
|
context,
|
|
|
|
);
|
|
|
|
},
|
|
|
|
text: '预订数据导出',
|
|
|
|
fontSize: 32,
|
|
|
|
isBold: true,
|
|
|
|
// margin: EdgeInsets.only(
|
|
|
|
// top: w(13),
|
|
|
|
// bottom: w(26),
|
|
|
|
// left: w(45),
|
|
|
|
// right: (45)),
|
|
|
|
textColor: MyColours.color_199095,
|
|
|
|
gradientStart: MyColours.color_ffffff,
|
|
|
|
gradientEnd: MyColours.color_ffffff,
|
|
|
|
borderColor: MyColours.color_199095,
|
|
|
|
height: ScreenUtil().setWidth(86),
|
|
|
|
width: ScreenUtil().setWidth(333),
|
|
|
|
radius: ScreenUtil().setWidth(10),
|
|
|
|
)),
|
|
|
|
],
|
|
|
|
))
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
}));
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|