|
...
|
...
|
@@ -47,10 +47,11 @@ class _FeastFollowUpPageState extends State<FeastFollowUpPage> { |
|
|
|
|
|
|
|
WidgetsBinding.instance.addPostFrameCallback((_) {
|
|
|
|
_getBanquetBeFollow();
|
|
|
|
_getStaff();
|
|
|
|
});
|
|
|
|
|
|
|
|
bus.on('refresh_follow_feast', (arg) {
|
|
|
|
_getBanquetBeFollow();
|
|
|
|
bus.on('refresh_follow_feast', (arg) {
|
|
|
|
_getBanquetBeFollow();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -61,6 +62,13 @@ class _FeastFollowUpPageState extends State<FeastFollowUpPage> { |
|
|
|
Utils.changeStatusColor(color: MyColours.color_ffffff);
|
|
|
|
}
|
|
|
|
|
|
|
|
///跟单人---宴会员工
|
|
|
|
_getStaff() async {
|
|
|
|
bool success = await feastModel.getStaff(context);
|
|
|
|
setState(() {});
|
|
|
|
if (success) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
/// 根据时间范围查询待跟进订单
|
|
|
|
_getBanquetBeFollow() async {
|
|
|
|
Map<String, String> pramas = {
|
|
...
|
...
|
@@ -455,22 +463,25 @@ class _FeastFollowUpPageState extends State<FeastFollowUpPage> { |
|
|
|
color: MyColours.color_000000,
|
|
|
|
fontSize: ScreenUtil().setSp(28)),
|
|
|
|
),
|
|
|
|
RoundButton(
|
|
|
|
onPressed: () async {
|
|
|
|
_showCancelWidget(context, data);
|
|
|
|
},
|
|
|
|
text: '丢单',
|
|
|
|
fontSize: 28,
|
|
|
|
isBold: false,
|
|
|
|
height: h(28),
|
|
|
|
width: w(44),
|
|
|
|
// margin: EdgeInsets.only(top: w(18), bottom: w(4)),
|
|
|
|
textColor: MyColours.color_F6F6F6,
|
|
|
|
gradientStart: MyColours.color_E34D59,
|
|
|
|
gradientEnd: MyColours.color_E34D59,
|
|
|
|
borderColor: MyColours.color_E34D59,
|
|
|
|
radius: r(4),
|
|
|
|
),
|
|
|
|
if (feastModel.personnalList.any((element) =>
|
|
|
|
element.id ==
|
|
|
|
Provider.of<UserModel>(context).user.openid))
|
|
|
|
RoundButton(
|
|
|
|
onPressed: () async {
|
|
|
|
_showCancelWidget(context, data);
|
|
|
|
},
|
|
|
|
text: '丢单',
|
|
|
|
fontSize: 28,
|
|
|
|
isBold: false,
|
|
|
|
height: h(28),
|
|
|
|
width: w(44),
|
|
|
|
// margin: EdgeInsets.only(top: w(18), bottom: w(4)),
|
|
|
|
textColor: MyColours.color_F6F6F6,
|
|
|
|
gradientStart: MyColours.color_E34D59,
|
|
|
|
gradientEnd: MyColours.color_E34D59,
|
|
|
|
borderColor: MyColours.color_E34D59,
|
|
|
|
radius: r(4),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
)
|
|
|
|
],
|
...
|
...
|
|