|
...
|
...
|
@@ -18,6 +18,8 @@ import 'package:one_key/widgets/system_app_bar.dart'; |
|
|
|
import 'package:one_key/widgets/v_empty_view.dart';
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
|
|
|
import '../../../../utils/screen_util.dart';
|
|
|
|
|
|
|
|
class CustomerDetailPage extends StatefulWidget {
|
|
|
|
final CustomerBySellerSunModel userHistoryEntity;
|
|
|
|
final FromPage fromPage;
|
|
...
|
...
|
@@ -293,6 +295,332 @@ class _CustomerDetailPageState extends State<CustomerDetailPage> { |
|
|
|
));
|
|
|
|
}
|
|
|
|
|
|
|
|
///修改后widget
|
|
|
|
Widget _headNewItem() {
|
|
|
|
return Stack(
|
|
|
|
alignment: Alignment.centerRight,
|
|
|
|
children: [
|
|
|
|
Container(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
left: w(20), right: w(20 + 72), bottom: w(12), top: w(12)),
|
|
|
|
child: Wrap(
|
|
|
|
children: [
|
|
|
|
Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
Container(
|
|
|
|
constraints: BoxConstraints(
|
|
|
|
maxWidth: ScreenUtil().setWidth(260)),
|
|
|
|
child: Text(
|
|
|
|
customerProvider.guestInfoSunModel.guest.rnameStr,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize: ScreenUtil().setSp(36)),
|
|
|
|
)),
|
|
|
|
HEmptyView(10),
|
|
|
|
Container(
|
|
|
|
child: Text(
|
|
|
|
customerProvider.guestInfoSunModel.guest.sexStr != ''
|
|
|
|
? '${customerProvider.guestInfoSunModel.guest.sexStr}'
|
|
|
|
: '',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize: ScreenUtil().setSp(20),
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
HEmptyView(6),
|
|
|
|
Text(
|
|
|
|
customerProvider.guestInfoSunModel.guest.phone,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize: ScreenUtil().setSp(20),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(20),
|
|
|
|
Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
if (customerProvider.guestInfoSunModel.guest.attr != null &&
|
|
|
|
customerProvider.guestInfoSunModel.guest.attr != '')
|
|
|
|
Container(
|
|
|
|
width: w(30),
|
|
|
|
height: w(16),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
// padding: EdgeInsets.symmetric(
|
|
|
|
// horizontal: ScreenUtil().setWidth(10),
|
|
|
|
// vertical: ScreenUtil().setWidth(2),
|
|
|
|
// ),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: customerProvider
|
|
|
|
.guestInfoSunModel.guest.attr !=
|
|
|
|
null &&
|
|
|
|
customerProvider
|
|
|
|
.guestInfoSunModel.guest.attr !=
|
|
|
|
''
|
|
|
|
? customerProvider
|
|
|
|
.guestInfoSunModel.guest.attr ==
|
|
|
|
'沉睡'
|
|
|
|
? MyColours.color_999999
|
|
|
|
: customerProvider
|
|
|
|
.guestInfoSunModel.guest.attr ==
|
|
|
|
'活跃'
|
|
|
|
? MyColours.color_00715F
|
|
|
|
: customerProvider.guestInfoSunModel
|
|
|
|
.guest.attr ==
|
|
|
|
'流失'
|
|
|
|
? MyColours.color_E34D59
|
|
|
|
: Color.fromRGBO(239, 143, 49, 1)
|
|
|
|
: Colors.transparent,
|
|
|
|
borderRadius: BorderRadius.circular(
|
|
|
|
ScreenUtil().setWidth(10),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: Text(
|
|
|
|
customerProvider.guestInfoSunModel.guest.attr,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
fontSize: ScreenUtil().setSp(20)))),
|
|
|
|
if (customerProvider.guestInfoSunModel.guest.label != null)
|
|
|
|
flatBtn(customerProvider.guestInfoSunModel.guest.label,
|
|
|
|
MyColours.color_B39437),
|
|
|
|
if (customerProvider.guestInfoSunModel.guest.isMember ==
|
|
|
|
'1')
|
|
|
|
flatBtn('会员', MyColours.color_438E93),
|
|
|
|
if (true) flatBtn('存酒14天', MyColours.color_438E93)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(20),
|
|
|
|
Text(
|
|
|
|
customerProvider.guestInfoSunModel.guest.nickName == null
|
|
|
|
? '经理:未指派'
|
|
|
|
: '经理:${customerProvider.guestInfoSunModel.guest.nickName}',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: ScreenUtil().setSp(24)),
|
|
|
|
),
|
|
|
|
VEmptyView(20),
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'已创建 ',
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: ScreenUtil().setSp(24)),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'${customerProvider.guestInfoSunModel.count.createTime}',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_438E93,
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
),
|
|
|
|
strutStyle: StrutStyle(
|
|
|
|
forceStrutHeight: true, height: 1, leading: 0.3),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
' 天 | 累计 ',
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: ScreenUtil().setSp(24)),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'${customerProvider.guestInfoSunModel.count.leiji}',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_438E93,
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
),
|
|
|
|
strutStyle: StrutStyle(
|
|
|
|
forceStrutHeight: true, height: 1, leading: 0.3),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
' 单 | 取消 ',
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: ScreenUtil().setSp(24)),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'${customerProvider.guestInfoSunModel.count.quxiao}',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_438E93,
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
),
|
|
|
|
strutStyle: StrutStyle(
|
|
|
|
forceStrutHeight: true, height: 1, leading: 0.3),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
' 单',
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: ScreenUtil().setSp(24)),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(20),
|
|
|
|
Wrap(
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
Utils.formatFromMill(
|
|
|
|
customerProvider.guestInfoSunModel.last.ddate),
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(20),
|
|
|
|
color: MyColours.color_E34D59),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
customerProvider.guestInfoSunModel.last.ddateSoltStr,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(20),
|
|
|
|
color: MyColours.color_438E93),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
' 桌位',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(20),
|
|
|
|
color: MyColours.color_515151),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
customerProvider.guestInfoSunModel.last.tableinfoName,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(20),
|
|
|
|
color: MyColours.color_438E93),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
' 人数',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(20),
|
|
|
|
color: MyColours.color_515151),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
customerProvider.guestInfoSunModel.last.actualPum == null
|
|
|
|
? '未记录'
|
|
|
|
: customerProvider.guestInfoSunModel.last.actualPum,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(20),
|
|
|
|
color: MyColours.color_438E93),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
' 消费',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(20),
|
|
|
|
color: MyColours.color_515151),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
customerProvider.guestInfoSunModel.last.conAmount == null
|
|
|
|
? '未记录'
|
|
|
|
: customerProvider.guestInfoSunModel.last.conAmount,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(20),
|
|
|
|
color: MyColours.color_438E93),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
' 预订',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(20),
|
|
|
|
color: MyColours.color_515151),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'${customerProvider.guestInfoSunModel.last.sellerUserNickName ?? ''} ${customerProvider.guestInfoSunModel.last.sellerUserPhone ?? ''}',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(20),
|
|
|
|
color: MyColours.color_438E93),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
]),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Positioned(
|
|
|
|
right: w(20),
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
RoundButton(
|
|
|
|
text: '编辑',
|
|
|
|
gradientStart: MyColours.color_ffffff,
|
|
|
|
gradientEnd: MyColours.color_ffffff,
|
|
|
|
textColor: MyColours.color_438E93,
|
|
|
|
borderColor: MyColours.color_438E93,
|
|
|
|
width: w(72),
|
|
|
|
radius: r(11),
|
|
|
|
fontSize: 24,
|
|
|
|
isBold: true,
|
|
|
|
height: w(22),
|
|
|
|
onPressed: () {
|
|
|
|
NavigatorUtil.goCustomerDetailEditPage(
|
|
|
|
context,
|
|
|
|
customerProvider.guestInfoSunModel.guest,
|
|
|
|
widget.fromPage);
|
|
|
|
},
|
|
|
|
),
|
|
|
|
VEmptyView(20),
|
|
|
|
RoundButton(
|
|
|
|
text: '拨打电话',
|
|
|
|
gradientStart: MyColours.color_ffffff,
|
|
|
|
gradientEnd: MyColours.color_ffffff,
|
|
|
|
textColor: MyColours.color_438E93,
|
|
|
|
borderColor: MyColours.color_438E93,
|
|
|
|
width: w(72),
|
|
|
|
radius: r(11),
|
|
|
|
fontSize: 24,
|
|
|
|
isBold: true,
|
|
|
|
height: w(22),
|
|
|
|
onPressed: () {
|
|
|
|
DialogUtil.goPhone(
|
|
|
|
customerProvider.guestInfoSunModel.guest.phone);
|
|
|
|
},
|
|
|
|
),
|
|
|
|
VEmptyView(20),
|
|
|
|
RoundButton(
|
|
|
|
text: '预订历史',
|
|
|
|
gradientStart: MyColours.color_ffffff,
|
|
|
|
gradientEnd: MyColours.color_ffffff,
|
|
|
|
textColor: MyColours.color_438E93,
|
|
|
|
borderColor: MyColours.color_438E93,
|
|
|
|
width: w(72),
|
|
|
|
radius: r(11),
|
|
|
|
fontSize: 24,
|
|
|
|
isBold: true,
|
|
|
|
height: w(22),
|
|
|
|
onPressed: () {
|
|
|
|
NavigatorUtil.goCustomerOrderPage(
|
|
|
|
context,
|
|
|
|
customerProvider.guestInfoSunModel.guest.id,
|
|
|
|
customerProvider.guestInfoSunModel.guest.phone);
|
|
|
|
},
|
|
|
|
)
|
|
|
|
],
|
|
|
|
))
|
|
|
|
],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
Widget flatBtn(String tilte, Color color) {
|
|
|
|
return Container(
|
|
|
|
height: w(18),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: w(4)),
|
|
|
|
margin: EdgeInsets.only(left: w(10)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
border: Border.all(color: color, width: w(1)),
|
|
|
|
borderRadius: BorderRadius.circular(r(5))),
|
|
|
|
child: Text(
|
|
|
|
tilte,
|
|
|
|
style: TextStyle(fontSize: font(10), color: color),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
customerProvider = Provider.of<CustomerProvider>(context, listen: true);
|
|
...
|
...
|
@@ -330,145 +658,146 @@ class _CustomerDetailPageState extends State<CustomerDetailPage> { |
|
|
|
height: ScreenUtil().setWidth(20),
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
),
|
|
|
|
_headerWidget(),
|
|
|
|
VEmptyView(20),
|
|
|
|
Container(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(40),
|
|
|
|
vertical: ScreenUtil().setWidth(20)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: MyColours.color_199095,
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
topRight:
|
|
|
|
Radius.circular(ScreenUtil().setWidth(20)),
|
|
|
|
topLeft:
|
|
|
|
Radius.circular(ScreenUtil().setWidth(20)))),
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
Expanded(
|
|
|
|
child: Text(
|
|
|
|
'已创建 ${customerProvider.guestInfoSunModel.count.createTime} 天 | 累计 ${customerProvider.guestInfoSunModel.count.leiji} 单 | 取消 ${customerProvider.guestInfoSunModel.count.quxiao} 单',
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
fontSize: ScreenUtil().setSp(30)),
|
|
|
|
)),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
NavigatorUtil.goCustomerOrderPage(
|
|
|
|
context,
|
|
|
|
customerProvider.guestInfoSunModel.guest.id,
|
|
|
|
customerProvider
|
|
|
|
.guestInfoSunModel.guest.phone);
|
|
|
|
},
|
|
|
|
child: Text('更多',
|
|
|
|
style: TextStyle(
|
|
|
|
decoration: TextDecoration.underline,
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
fontSize: ScreenUtil().setSp(26)))),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(20),
|
|
|
|
vertical: ScreenUtil().setWidth(20)),
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
Wrap(
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'最近一次:',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_333333),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
Utils.formatFromMill(customerProvider
|
|
|
|
.guestInfoSunModel.last.ddate),
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: Color.fromRGBO(208, 31, 37, 1)),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
customerProvider
|
|
|
|
.guestInfoSunModel.last.ddateSoltStr,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_199095),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
' 桌位:',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_333333),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
customerProvider
|
|
|
|
.guestInfoSunModel.last.tableinfoName,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_199095),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
' 人数:',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_333333),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
customerProvider
|
|
|
|
.guestInfoSunModel.last.actualPum ==
|
|
|
|
null
|
|
|
|
? '未记录'
|
|
|
|
: customerProvider
|
|
|
|
.guestInfoSunModel.last.actualPum,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_199095),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
' 消费:',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_333333),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
customerProvider
|
|
|
|
.guestInfoSunModel.last.conAmount ==
|
|
|
|
null
|
|
|
|
? '未记录'
|
|
|
|
: customerProvider
|
|
|
|
.guestInfoSunModel.last.conAmount,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_199095),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(6),
|
|
|
|
Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'客户经理:',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_333333),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'${customerProvider.guestInfoSunModel.last.sellerUserNickName ?? ''} ${customerProvider.guestInfoSunModel.last.sellerUserPhone ?? ''}',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_199095),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
// _headerWidget(),
|
|
|
|
// VEmptyView(20),
|
|
|
|
// Container(
|
|
|
|
// padding: EdgeInsets.symmetric(
|
|
|
|
// horizontal: ScreenUtil().setWidth(40),
|
|
|
|
// vertical: ScreenUtil().setWidth(20)),
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
// color: MyColours.color_199095,
|
|
|
|
// borderRadius: BorderRadius.only(
|
|
|
|
// topRight:
|
|
|
|
// Radius.circular(ScreenUtil().setWidth(20)),
|
|
|
|
// topLeft:
|
|
|
|
// Radius.circular(ScreenUtil().setWidth(20)))),
|
|
|
|
// child: Row(
|
|
|
|
// children: [
|
|
|
|
// Expanded(
|
|
|
|
// child: Text(
|
|
|
|
// '已创建 ${customerProvider.guestInfoSunModel.count.createTime} 天 | 累计 ${customerProvider.guestInfoSunModel.count.leiji} 单 | 取消 ${customerProvider.guestInfoSunModel.count.quxiao} 单',
|
|
|
|
// overflow: TextOverflow.ellipsis,
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_ffffff,
|
|
|
|
// fontSize: ScreenUtil().setSp(30)),
|
|
|
|
// )),
|
|
|
|
// InkWell(
|
|
|
|
// onTap: () {
|
|
|
|
// NavigatorUtil.goCustomerOrderPage(
|
|
|
|
// context,
|
|
|
|
// customerProvider.guestInfoSunModel.guest.id,
|
|
|
|
// customerProvider
|
|
|
|
// .guestInfoSunModel.guest.phone);
|
|
|
|
// },
|
|
|
|
// child: Text('更多',
|
|
|
|
// style: TextStyle(
|
|
|
|
// decoration: TextDecoration.underline,
|
|
|
|
// color: MyColours.color_ffffff,
|
|
|
|
// fontSize: ScreenUtil().setSp(26)))),
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// Container(
|
|
|
|
// color: MyColours.color_ffffff,
|
|
|
|
// padding: EdgeInsets.symmetric(
|
|
|
|
// horizontal: ScreenUtil().setWidth(20),
|
|
|
|
// vertical: ScreenUtil().setWidth(20)),
|
|
|
|
// child: Column(
|
|
|
|
// children: [
|
|
|
|
// Wrap(
|
|
|
|
// children: [
|
|
|
|
// Text(
|
|
|
|
// '最近一次:',
|
|
|
|
// style: TextStyle(
|
|
|
|
// fontSize: ScreenUtil().setSp(24),
|
|
|
|
// color: MyColours.color_333333),
|
|
|
|
// ),
|
|
|
|
// Text(
|
|
|
|
// Utils.formatFromMill(customerProvider
|
|
|
|
// .guestInfoSunModel.last.ddate),
|
|
|
|
// overflow: TextOverflow.ellipsis,
|
|
|
|
// style: TextStyle(
|
|
|
|
// fontSize: ScreenUtil().setSp(24),
|
|
|
|
// color: Color.fromRGBO(208, 31, 37, 1)),
|
|
|
|
// ),
|
|
|
|
// Text(
|
|
|
|
// customerProvider
|
|
|
|
// .guestInfoSunModel.last.ddateSoltStr,
|
|
|
|
// style: TextStyle(
|
|
|
|
// fontSize: ScreenUtil().setSp(24),
|
|
|
|
// color: MyColours.color_199095),
|
|
|
|
// ),
|
|
|
|
// Text(
|
|
|
|
// ' 桌位:',
|
|
|
|
// style: TextStyle(
|
|
|
|
// fontSize: ScreenUtil().setSp(24),
|
|
|
|
// color: MyColours.color_333333),
|
|
|
|
// ),
|
|
|
|
// Text(
|
|
|
|
// customerProvider
|
|
|
|
// .guestInfoSunModel.last.tableinfoName,
|
|
|
|
// style: TextStyle(
|
|
|
|
// fontSize: ScreenUtil().setSp(24),
|
|
|
|
// color: MyColours.color_199095),
|
|
|
|
// ),
|
|
|
|
// Text(
|
|
|
|
// ' 人数:',
|
|
|
|
// style: TextStyle(
|
|
|
|
// fontSize: ScreenUtil().setSp(24),
|
|
|
|
// color: MyColours.color_333333),
|
|
|
|
// ),
|
|
|
|
// Text(
|
|
|
|
// customerProvider
|
|
|
|
// .guestInfoSunModel.last.actualPum ==
|
|
|
|
// null
|
|
|
|
// ? '未记录'
|
|
|
|
// : customerProvider
|
|
|
|
// .guestInfoSunModel.last.actualPum,
|
|
|
|
// style: TextStyle(
|
|
|
|
// fontSize: ScreenUtil().setSp(24),
|
|
|
|
// color: MyColours.color_199095),
|
|
|
|
// ),
|
|
|
|
// Text(
|
|
|
|
// ' 消费:',
|
|
|
|
// style: TextStyle(
|
|
|
|
// fontSize: ScreenUtil().setSp(24),
|
|
|
|
// color: MyColours.color_333333),
|
|
|
|
// ),
|
|
|
|
// Text(
|
|
|
|
// customerProvider
|
|
|
|
// .guestInfoSunModel.last.conAmount ==
|
|
|
|
// null
|
|
|
|
// ? '未记录'
|
|
|
|
// : customerProvider
|
|
|
|
// .guestInfoSunModel.last.conAmount,
|
|
|
|
// style: TextStyle(
|
|
|
|
// fontSize: ScreenUtil().setSp(24),
|
|
|
|
// color: MyColours.color_199095),
|
|
|
|
// )
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// VEmptyView(6),
|
|
|
|
// Row(
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
// children: [
|
|
|
|
// Text(
|
|
|
|
// '客户经理:',
|
|
|
|
// style: TextStyle(
|
|
|
|
// fontSize: ScreenUtil().setSp(24),
|
|
|
|
// color: MyColours.color_333333),
|
|
|
|
// ),
|
|
|
|
// Text(
|
|
|
|
// '${customerProvider.guestInfoSunModel.last.sellerUserNickName ?? ''} ${customerProvider.guestInfoSunModel.last.sellerUserPhone ?? ''}',
|
|
|
|
// style: TextStyle(
|
|
|
|
// fontSize: ScreenUtil().setSp(24),
|
|
|
|
// color: MyColours.color_199095),
|
|
|
|
// )
|
|
|
|
// ],
|
|
|
|
// )
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
_headNewItem(),
|
|
|
|
VEmptyView(20),
|
|
|
|
_lineItemWidget('工作单位',
|
|
|
|
'${customerProvider.guestInfoSunModel.guest.company == null ? '' : customerProvider.guestInfoSunModel.guest.company} ${customerProvider.guestInfoSunModel.guest.section == null ? '' : customerProvider.guestInfoSunModel.guest.section} ${customerProvider.guestInfoSunModel.guest.position == null ? '' : customerProvider.guestInfoSunModel.guest.position}'),
|
...
|
...
|
|