|
|
|
import 'package:common_utils/common_utils.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
|
import 'package:one_key/constant/state.dart';
|
|
|
|
import 'package:one_key/models/guest_reserve_model.dart';
|
|
|
|
import 'package:one_key/provider/customer_provider.dart';
|
|
|
|
import 'package:one_key/res/colors.dart';
|
|
|
|
import 'package:one_key/utils/utils.dart';
|
|
|
|
import 'package:one_key/widgets/MyDivider.dart';
|
|
|
|
import 'package:one_key/widgets/h_empty_view.dart';
|
|
|
|
import 'package:one_key/widgets/page_exception.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 CustomerOrderPage extends StatefulWidget {
|
|
|
|
CustomerOrderPage({Key key}) : super(key: key);
|
|
|
|
final String id;
|
|
|
|
final String phone;
|
|
|
|
CustomerOrderPage({Key key, this.id, this.phone}) : super(key: key);
|
|
|
|
|
|
|
|
@override
|
|
|
|
_CustomerOrderPageState createState() => _CustomerOrderPageState();
|
|
...
|
...
|
@@ -16,8 +24,30 @@ class CustomerOrderPage extends StatefulWidget { |
|
|
|
|
|
|
|
class _CustomerOrderPageState extends State<CustomerOrderPage> {
|
|
|
|
int year = DateTime.now().year;
|
|
|
|
CustomerProvider customerProvider;
|
|
|
|
|
|
|
|
@override
|
|
|
|
void initState() {
|
|
|
|
super.initState();
|
|
|
|
WidgetsBinding.instance.addPostFrameCallback((_) async {
|
|
|
|
_getGuestReserve();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
_getGuestReserve({bool showLoading = false}) async {
|
|
|
|
Map<String, String> params = {
|
|
|
|
"id": widget.id,
|
|
|
|
"phone": widget.phone,
|
|
|
|
'year': year.toString()
|
|
|
|
};
|
|
|
|
await customerProvider.getGuestReserve(context, params,
|
|
|
|
showLoading: showLoading);
|
|
|
|
// await customerProvider.searchData(customerProvider.controller.text);
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
customerProvider = Provider.of<CustomerProvider>(context, listen: true);
|
|
|
|
return Scaffold(
|
|
|
|
backgroundColor: Color.fromRGBO(246, 248, 250, 1),
|
|
|
|
appBar: SystemAppBar(
|
|
...
|
...
|
@@ -26,253 +56,157 @@ class _CustomerOrderPageState extends State<CustomerOrderPage> { |
|
|
|
Navigator.pop(context);
|
|
|
|
},
|
|
|
|
),
|
|
|
|
body: Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(40),
|
|
|
|
vertical: ScreenUtil().setWidth(40)),
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
setState(() {
|
|
|
|
year--;
|
|
|
|
});
|
|
|
|
},
|
|
|
|
child: Image.asset(
|
|
|
|
Utils.getImgPath('c_arrow_left'),
|
|
|
|
width: ScreenUtil().setWidth(24),
|
|
|
|
)),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(20)),
|
|
|
|
child: Text(
|
|
|
|
'${year}年',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(34),
|
|
|
|
color: MyColours.color_333333),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (year >= DateTime.now().year) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
setState(() {
|
|
|
|
year++;
|
|
|
|
});
|
|
|
|
},
|
|
|
|
child: Image.asset(
|
|
|
|
Utils.getImgPath(year != DateTime.now().year
|
|
|
|
? 'c_arrow_right'
|
|
|
|
: 'c_arrow_right_gray'),
|
|
|
|
width: ScreenUtil().setWidth(24),
|
|
|
|
))
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(20),
|
|
|
|
Wrap(
|
|
|
|
body: Consumer<CustomerProvider>(builder: (context, model, _) {
|
|
|
|
if (model.pageStateGuestReserve != PageState.Success) {
|
|
|
|
return ExceptionPage(
|
|
|
|
pageState: model.pageStateGuestReserve,
|
|
|
|
callback: () {
|
|
|
|
model.pageStateGuestReserve = PageState.Loading;
|
|
|
|
model.notifyListeners();
|
|
|
|
_getGuestReserve();
|
|
|
|
},
|
|
|
|
emptyMsg: "暂时没有客户订单哦",
|
|
|
|
emptyImg: "empty_search",
|
|
|
|
showMsg: "加载中,请稍后...",
|
|
|
|
);
|
|
|
|
} else {
|
|
|
|
return Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
// horizontal: ScreenUtil().setWidth(40),
|
|
|
|
vertical: ScreenUtil().setWidth(40)),
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'全年累计',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
' 2000 ',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_199095),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'单',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
HEmptyView(20),
|
|
|
|
Text(
|
|
|
|
'全年取消',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
' 2000 ',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_199095),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'单',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(20),
|
|
|
|
Wrap(
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'记录全额订单:',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'2000 ',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'单',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
HEmptyView(20),
|
|
|
|
Text(
|
|
|
|
'记录人数订单:',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'2000 ',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'单',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(20),
|
|
|
|
Wrap(
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'总消费:',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'2000 ',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'元',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
HEmptyView(20),
|
|
|
|
Text(
|
|
|
|
'总人数:',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'2000 ',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'人',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
HEmptyView(20),
|
|
|
|
Text(
|
|
|
|
'人均:',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'2000 ',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'元/人',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(20),
|
|
|
|
MyDivider(
|
|
|
|
double.infinity,
|
|
|
|
ScreenUtil().setWidth(1),
|
|
|
|
color: MyColours.color_E0E0E0,
|
|
|
|
),
|
|
|
|
VEmptyView(20),
|
|
|
|
Expanded(
|
|
|
|
child: ListView.builder(
|
|
|
|
shrinkWrap: true,
|
|
|
|
itemCount: 10,
|
|
|
|
// controller: controller,
|
|
|
|
itemBuilder: (BuildContext context, int index) {
|
|
|
|
return Row(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
CircleAvatar(
|
|
|
|
radius: ScreenUtil().setWidth(10),
|
|
|
|
backgroundColor: MyColours.color_199095,
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
setState(() {
|
|
|
|
year--;
|
|
|
|
});
|
|
|
|
_getGuestReserve(showLoading: true);
|
|
|
|
},
|
|
|
|
child: Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
left: ScreenUtil().setWidth(40),
|
|
|
|
right: ScreenUtil().setWidth(20)),
|
|
|
|
child: Image.asset(
|
|
|
|
Utils.getImgPath('c_arrow_left'),
|
|
|
|
width: ScreenUtil().setWidth(24),
|
|
|
|
))),
|
|
|
|
Text(
|
|
|
|
'${year}年',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(34),
|
|
|
|
color: MyColours.color_333333),
|
|
|
|
),
|
|
|
|
HEmptyView(20),
|
|
|
|
Column(
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (year >= DateTime.now().year) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
setState(() {
|
|
|
|
year++;
|
|
|
|
});
|
|
|
|
_getGuestReserve(showLoading: true);
|
|
|
|
},
|
|
|
|
child: Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
left: ScreenUtil().setWidth(20),
|
|
|
|
right: ScreenUtil().setWidth(40)),
|
|
|
|
child: Image.asset(
|
|
|
|
Utils.getImgPath(year != DateTime.now().year
|
|
|
|
? 'c_arrow_right'
|
|
|
|
: 'c_arrow_right_gray'),
|
|
|
|
width: ScreenUtil().setWidth(24),
|
|
|
|
)))
|
|
|
|
],
|
|
|
|
),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(40),
|
|
|
|
),
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
VEmptyView(20),
|
|
|
|
Wrap(
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'全年累计',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
' ${customerProvider.guestReserveSunModel.count.cumulative} ',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_199095),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'单',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
HEmptyView(20),
|
|
|
|
Text(
|
|
|
|
'全年取消',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
' ${customerProvider.guestReserveSunModel.count.cancel} ',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_199095),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'单',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(20),
|
|
|
|
Wrap(
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'[已完成]',
|
|
|
|
'记录全额订单:',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
HEmptyView(10),
|
|
|
|
Text(
|
|
|
|
'42天前',
|
|
|
|
'${customerProvider.guestReserveSunModel.count.money} ',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
HEmptyView(10),
|
|
|
|
Text(
|
|
|
|
'2021-09-29',
|
|
|
|
'单',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
HEmptyView(20),
|
|
|
|
Text(
|
|
|
|
'记录人数订单:',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
HEmptyView(10),
|
|
|
|
Text(
|
|
|
|
'午餐',
|
|
|
|
'${customerProvider.guestReserveSunModel.count.pnum} ',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
HEmptyView(10),
|
|
|
|
Text(
|
|
|
|
'【201】',
|
|
|
|
'单',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
...
|
...
|
@@ -280,29 +214,60 @@ class _CustomerOrderPageState extends State<CustomerOrderPage> { |
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(20),
|
|
|
|
Row(
|
|
|
|
Wrap(
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'人数:',
|
|
|
|
'总消费:',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'${customerProvider.guestReserveSunModel.count.countMoney} ',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'元',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
HEmptyView(20),
|
|
|
|
Text(
|
|
|
|
'总人数:',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'未记录',
|
|
|
|
'${customerProvider.guestReserveSunModel.count.countPnum} ',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'人',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
HEmptyView(20),
|
|
|
|
Text(
|
|
|
|
'消费:',
|
|
|
|
'人均:',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'未记录',
|
|
|
|
'${customerProvider.guestReserveSunModel.count.capita} ',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'元/人',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
...
|
...
|
@@ -310,20 +275,112 @@ class _CustomerOrderPageState extends State<CustomerOrderPage> { |
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(20),
|
|
|
|
Text(
|
|
|
|
'客户经理:xxx 18739837273',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
MyDivider(
|
|
|
|
double.infinity,
|
|
|
|
ScreenUtil().setWidth(1),
|
|
|
|
color: MyColours.color_E0E0E0,
|
|
|
|
),
|
|
|
|
VEmptyView(40),
|
|
|
|
VEmptyView(20),
|
|
|
|
],
|
|
|
|
)
|
|
|
|
],
|
|
|
|
);
|
|
|
|
},
|
|
|
|
))
|
|
|
|
],
|
|
|
|
)));
|
|
|
|
)),
|
|
|
|
Expanded(
|
|
|
|
child: ListView.builder(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(40),
|
|
|
|
),
|
|
|
|
shrinkWrap: true,
|
|
|
|
itemCount:
|
|
|
|
customerProvider.guestReserveSunModel.list?.length,
|
|
|
|
// controller: controller,
|
|
|
|
itemBuilder: (BuildContext context, int index) {
|
|
|
|
ListData listData =
|
|
|
|
customerProvider.guestReserveSunModel.list[index];
|
|
|
|
String tableinfo = listData.tableinfoName != ''
|
|
|
|
? ' 【${listData.tableinfoName}】'
|
|
|
|
: '';
|
|
|
|
return Row(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
top: ScreenUtil().setWidth(6)),
|
|
|
|
child: CircleAvatar(
|
|
|
|
radius: ScreenUtil().setWidth(10),
|
|
|
|
backgroundColor: MyColours.color_199095,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
HEmptyView(20),
|
|
|
|
Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Container(
|
|
|
|
constraints: BoxConstraints(
|
|
|
|
maxWidth: ScreenUtil.screenWidthDp -
|
|
|
|
ScreenUtil().setWidth(140)),
|
|
|
|
child: Text(
|
|
|
|
'[${listData.statusStr}] ${listData.ddateStr} ${listData.ddateSoltStr}${tableinfo}',
|
|
|
|
maxLines: 10,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
)),
|
|
|
|
VEmptyView(20),
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'人数:',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
listData.actualPum == null
|
|
|
|
? '未记录'
|
|
|
|
: listData.actualPum,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
HEmptyView(20),
|
|
|
|
Text(
|
|
|
|
'消费:',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
listData.conAmount == null
|
|
|
|
? '未记录'
|
|
|
|
: listData.conAmount,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
listData.nickName == null &&
|
|
|
|
listData.phone == null
|
|
|
|
? SizedBox()
|
|
|
|
: Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
top: ScreenUtil().setWidth(20)),
|
|
|
|
child: Text(
|
|
|
|
'客户经理:${listData.nickName == null ? '' : listData.nickName} ${listData.phone == null ? '' : listData.phone}',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
)),
|
|
|
|
VEmptyView(40),
|
|
|
|
],
|
|
|
|
)
|
|
|
|
],
|
|
|
|
);
|
|
|
|
},
|
|
|
|
))
|
|
|
|
],
|
|
|
|
));
|
|
|
|
}
|
|
|
|
}));
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|