Showing
5 changed files
with
55 additions
and
29 deletions
| @@ -548,7 +548,7 @@ | @@ -548,7 +548,7 @@ | ||
| 548 | CODE_SIGN_ENTITLEMENTS = Runner/RunnerProfile.entitlements; | 548 | CODE_SIGN_ENTITLEMENTS = Runner/RunnerProfile.entitlements; |
| 549 | CODE_SIGN_IDENTITY = "Apple Development"; | 549 | CODE_SIGN_IDENTITY = "Apple Development"; |
| 550 | CODE_SIGN_STYLE = Automatic; | 550 | CODE_SIGN_STYLE = Automatic; |
| 551 | - CURRENT_PROJECT_VERSION = 5323; | 551 | + CURRENT_PROJECT_VERSION = 5324; |
| 552 | DEVELOPMENT_TEAM = 8J59HM8B82; | 552 | DEVELOPMENT_TEAM = 8J59HM8B82; |
| 553 | ENABLE_BITCODE = NO; | 553 | ENABLE_BITCODE = NO; |
| 554 | FLUTTER_BUILD_MODE = release; | 554 | FLUTTER_BUILD_MODE = release; |
| @@ -696,7 +696,7 @@ | @@ -696,7 +696,7 @@ | ||
| 696 | CODE_SIGN_ENTITLEMENTS = "Runner/一键订Debug.entitlements"; | 696 | CODE_SIGN_ENTITLEMENTS = "Runner/一键订Debug.entitlements"; |
| 697 | CODE_SIGN_IDENTITY = "Apple Development"; | 697 | CODE_SIGN_IDENTITY = "Apple Development"; |
| 698 | CODE_SIGN_STYLE = Automatic; | 698 | CODE_SIGN_STYLE = Automatic; |
| 699 | - CURRENT_PROJECT_VERSION = 5323; | 699 | + CURRENT_PROJECT_VERSION = 5324; |
| 700 | DEVELOPMENT_TEAM = 8J59HM8B82; | 700 | DEVELOPMENT_TEAM = 8J59HM8B82; |
| 701 | ENABLE_BITCODE = NO; | 701 | ENABLE_BITCODE = NO; |
| 702 | FLUTTER_BUILD_MODE = release; | 702 | FLUTTER_BUILD_MODE = release; |
| @@ -732,7 +732,7 @@ | @@ -732,7 +732,7 @@ | ||
| 732 | CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; | 732 | CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; |
| 733 | CODE_SIGN_IDENTITY = "Apple Development"; | 733 | CODE_SIGN_IDENTITY = "Apple Development"; |
| 734 | CODE_SIGN_STYLE = Automatic; | 734 | CODE_SIGN_STYLE = Automatic; |
| 735 | - CURRENT_PROJECT_VERSION = 5323; | 735 | + CURRENT_PROJECT_VERSION = 5324; |
| 736 | DEVELOPMENT_TEAM = 8J59HM8B82; | 736 | DEVELOPMENT_TEAM = 8J59HM8B82; |
| 737 | ENABLE_BITCODE = NO; | 737 | ENABLE_BITCODE = NO; |
| 738 | FLUTTER_BUILD_MODE = release; | 738 | FLUTTER_BUILD_MODE = release; |
| @@ -49,6 +49,7 @@ class _FeastDetailPageState extends State<FeastDetailPage> { | @@ -49,6 +49,7 @@ class _FeastDetailPageState extends State<FeastDetailPage> { | ||
| 49 | 49 | ||
| 50 | WidgetsBinding.instance.addPostFrameCallback((_) { | 50 | WidgetsBinding.instance.addPostFrameCallback((_) { |
| 51 | _getBanquetById(); | 51 | _getBanquetById(); |
| 52 | + _getStaff(); | ||
| 52 | }); | 53 | }); |
| 53 | bus.on("feast_detail_page", (arg) { | 54 | bus.on("feast_detail_page", (arg) { |
| 54 | _getBanquetById(); | 55 | _getBanquetById(); |
| @@ -106,6 +107,13 @@ class _FeastDetailPageState extends State<FeastDetailPage> { | @@ -106,6 +107,13 @@ class _FeastDetailPageState extends State<FeastDetailPage> { | ||
| 106 | } | 107 | } |
| 107 | } | 108 | } |
| 108 | 109 | ||
| 110 | + ///跟单人---宴会员工 | ||
| 111 | + _getStaff() async { | ||
| 112 | + bool success = await feastModel.getStaff(context); | ||
| 113 | + setState(() {}); | ||
| 114 | + if (success) {} | ||
| 115 | + } | ||
| 116 | + | ||
| 109 | Widget baseInfoItem(String title, String content) { | 117 | Widget baseInfoItem(String title, String content) { |
| 110 | return Padding( | 118 | return Padding( |
| 111 | padding: EdgeInsets.symmetric(vertical: h(6)), | 119 | padding: EdgeInsets.symmetric(vertical: h(6)), |
| @@ -118,7 +126,7 @@ class _FeastDetailPageState extends State<FeastDetailPage> { | @@ -118,7 +126,7 @@ class _FeastDetailPageState extends State<FeastDetailPage> { | ||
| 118 | color: MyColours.color_999999, fontSize: font(12))), | 126 | color: MyColours.color_999999, fontSize: font(12))), |
| 119 | ), | 127 | ), |
| 120 | Expanded( | 128 | Expanded( |
| 121 | - child: Text(content??'', | 129 | + child: Text(content ?? '', |
| 122 | style: TextStyle( | 130 | style: TextStyle( |
| 123 | color: MyColours.color_515151, fontSize: font(12)))) | 131 | color: MyColours.color_515151, fontSize: font(12)))) |
| 124 | ], | 132 | ], |
| @@ -1383,7 +1391,10 @@ class _FeastDetailPageState extends State<FeastDetailPage> { | @@ -1383,7 +1391,10 @@ class _FeastDetailPageState extends State<FeastDetailPage> { | ||
| 1383 | ), | 1391 | ), |
| 1384 | widget.canEdit && | 1392 | widget.canEdit && |
| 1385 | (feastModel.banquetDetail.basicInfo.lost == null || | 1393 | (feastModel.banquetDetail.basicInfo.lost == null || |
| 1386 | - feastModel.banquetDetail.basicInfo.lost == '') | 1394 | + feastModel.banquetDetail.basicInfo.lost == '') && |
| 1395 | + feastModel.personnalList.any((element) => | ||
| 1396 | + element.id == | ||
| 1397 | + Provider.of<UserModel>(context).user.openid) | ||
| 1387 | ? Row( | 1398 | ? Row( |
| 1388 | children: [ | 1399 | children: [ |
| 1389 | Expanded( | 1400 | Expanded( |
| @@ -47,10 +47,11 @@ class _FeastFollowUpPageState extends State<FeastFollowUpPage> { | @@ -47,10 +47,11 @@ class _FeastFollowUpPageState extends State<FeastFollowUpPage> { | ||
| 47 | 47 | ||
| 48 | WidgetsBinding.instance.addPostFrameCallback((_) { | 48 | WidgetsBinding.instance.addPostFrameCallback((_) { |
| 49 | _getBanquetBeFollow(); | 49 | _getBanquetBeFollow(); |
| 50 | + _getStaff(); | ||
| 50 | }); | 51 | }); |
| 51 | 52 | ||
| 52 | - bus.on('refresh_follow_feast', (arg) { | ||
| 53 | - _getBanquetBeFollow(); | 53 | + bus.on('refresh_follow_feast', (arg) { |
| 54 | + _getBanquetBeFollow(); | ||
| 54 | }); | 55 | }); |
| 55 | } | 56 | } |
| 56 | 57 | ||
| @@ -61,6 +62,13 @@ class _FeastFollowUpPageState extends State<FeastFollowUpPage> { | @@ -61,6 +62,13 @@ class _FeastFollowUpPageState extends State<FeastFollowUpPage> { | ||
| 61 | Utils.changeStatusColor(color: MyColours.color_ffffff); | 62 | Utils.changeStatusColor(color: MyColours.color_ffffff); |
| 62 | } | 63 | } |
| 63 | 64 | ||
| 65 | + ///跟单人---宴会员工 | ||
| 66 | + _getStaff() async { | ||
| 67 | + bool success = await feastModel.getStaff(context); | ||
| 68 | + setState(() {}); | ||
| 69 | + if (success) {} | ||
| 70 | + } | ||
| 71 | + | ||
| 64 | /// 根据时间范围查询待跟进订单 | 72 | /// 根据时间范围查询待跟进订单 |
| 65 | _getBanquetBeFollow() async { | 73 | _getBanquetBeFollow() async { |
| 66 | Map<String, String> pramas = { | 74 | Map<String, String> pramas = { |
| @@ -455,22 +463,25 @@ class _FeastFollowUpPageState extends State<FeastFollowUpPage> { | @@ -455,22 +463,25 @@ class _FeastFollowUpPageState extends State<FeastFollowUpPage> { | ||
| 455 | color: MyColours.color_000000, | 463 | color: MyColours.color_000000, |
| 456 | fontSize: ScreenUtil().setSp(28)), | 464 | fontSize: ScreenUtil().setSp(28)), |
| 457 | ), | 465 | ), |
| 458 | - RoundButton( | ||
| 459 | - onPressed: () async { | ||
| 460 | - _showCancelWidget(context, data); | ||
| 461 | - }, | ||
| 462 | - text: '丢单', | ||
| 463 | - fontSize: 28, | ||
| 464 | - isBold: false, | ||
| 465 | - height: h(28), | ||
| 466 | - width: w(44), | ||
| 467 | - // margin: EdgeInsets.only(top: w(18), bottom: w(4)), | ||
| 468 | - textColor: MyColours.color_F6F6F6, | ||
| 469 | - gradientStart: MyColours.color_E34D59, | ||
| 470 | - gradientEnd: MyColours.color_E34D59, | ||
| 471 | - borderColor: MyColours.color_E34D59, | ||
| 472 | - radius: r(4), | ||
| 473 | - ), | 466 | + if (feastModel.personnalList.any((element) => |
| 467 | + element.id == | ||
| 468 | + Provider.of<UserModel>(context).user.openid)) | ||
| 469 | + RoundButton( | ||
| 470 | + onPressed: () async { | ||
| 471 | + _showCancelWidget(context, data); | ||
| 472 | + }, | ||
| 473 | + text: '丢单', | ||
| 474 | + fontSize: 28, | ||
| 475 | + isBold: false, | ||
| 476 | + height: h(28), | ||
| 477 | + width: w(44), | ||
| 478 | + // margin: EdgeInsets.only(top: w(18), bottom: w(4)), | ||
| 479 | + textColor: MyColours.color_F6F6F6, | ||
| 480 | + gradientStart: MyColours.color_E34D59, | ||
| 481 | + gradientEnd: MyColours.color_E34D59, | ||
| 482 | + borderColor: MyColours.color_E34D59, | ||
| 483 | + radius: r(4), | ||
| 484 | + ), | ||
| 474 | ], | 485 | ], |
| 475 | ) | 486 | ) |
| 476 | ], | 487 | ], |
| @@ -129,7 +129,7 @@ class _FeastPersonalPageState extends State<FeastPersonalPage> { | @@ -129,7 +129,7 @@ class _FeastPersonalPageState extends State<FeastPersonalPage> { | ||
| 129 | child: Column( | 129 | child: Column( |
| 130 | children: [ | 130 | children: [ |
| 131 | Container( | 131 | Container( |
| 132 | - height: h(48), | 132 | + constraints: BoxConstraints(minHeight: h(48)), |
| 133 | margin: EdgeInsets.only(top: w(12)), | 133 | margin: EdgeInsets.only(top: w(12)), |
| 134 | // decoration: BoxDecoration( | 134 | // decoration: BoxDecoration( |
| 135 | // border: Border( | 135 | // border: Border( |
| @@ -143,12 +143,14 @@ class _FeastPersonalPageState extends State<FeastPersonalPage> { | @@ -143,12 +143,14 @@ class _FeastPersonalPageState extends State<FeastPersonalPage> { | ||
| 143 | height: w(24), | 143 | height: w(24), |
| 144 | ), | 144 | ), |
| 145 | HEmptyView(16), | 145 | HEmptyView(16), |
| 146 | - Text( | ||
| 147 | - '${model.title} ${model.phone ?? ''}', | ||
| 148 | - style: TextStyle( | ||
| 149 | - fontSize: font(16), color: MyColours.color_E6000000), | 146 | + Expanded( |
| 147 | + child: Text( | ||
| 148 | + '${model.title} ${model.phone ?? ''}', | ||
| 149 | + style: TextStyle( | ||
| 150 | + fontSize: font(16), color: MyColours.color_E6000000), | ||
| 151 | + ), | ||
| 150 | ), | 152 | ), |
| 151 | - Spacer(), | 153 | + // Spacer(), |
| 152 | Text( | 154 | Text( |
| 153 | '${model.roleName} ${model.account}', | 155 | '${model.roleName} ${model.account}', |
| 154 | style: TextStyle( | 156 | style: TextStyle( |
| @@ -1009,6 +1009,8 @@ class FeastModel extends ChangeNotifier { | @@ -1009,6 +1009,8 @@ class FeastModel extends ChangeNotifier { | ||
| 1009 | Utils.showToast(baseResp.msg ?? ""); | 1009 | Utils.showToast(baseResp.msg ?? ""); |
| 1010 | return false; | 1010 | return false; |
| 1011 | } | 1011 | } |
| 1012 | + | ||
| 1013 | + | ||
| 1012 | } | 1014 | } |
| 1013 | 1015 | ||
| 1014 | /** | 1016 | /** |
-
Please register or login to post a comment