Commit bb9bb759716b485e9030caba76b22feb6bdea4eb

Authored by wdn127929
1 parent ee80f022

桌位页面去掉新增区域、新增桌位按钮

@@ -359,8 +359,7 @@ class TableManagerPageState extends State<TableManagerPage> { @@ -359,8 +359,7 @@ class TableManagerPageState extends State<TableManagerPage> {
359 : tableManagerModel.currentArea == '全部' 359 : tableManagerModel.currentArea == '全部'
360 ? tableManagerModel.tablesShow.length 360 ? tableManagerModel.tablesShow.length
361 : tableManagerModel 361 : tableManagerModel
362 - .areaTableMapShow[tableManagerModel.currentArea].length +  
363 - 1, 362 + .areaTableMapShow[tableManagerModel.currentArea].length,
364 gridDelegate: SliverGridDelegateWithFixedCrossAxisCount( 363 gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
365 crossAxisCount: 4, 364 crossAxisCount: 4,
366 childAspectRatio: 1, 365 childAspectRatio: 1,
@@ -375,203 +374,202 @@ class TableManagerPageState extends State<TableManagerPage> { @@ -375,203 +374,202 @@ class TableManagerPageState extends State<TableManagerPage> {
375 ? tableManagerModel.tablesShow 374 ? tableManagerModel.tablesShow
376 : tableManagerModel 375 : tableManagerModel
377 .areaTableMapShow[tableManagerModel.areas[i].name]; 376 .areaTableMapShow[tableManagerModel.areas[i].name];
378 - if (index == data.length || data.length == 0) {  
379 - return InkWell(  
380 - onTap: () async {  
381 - List<String> areas = [];  
382 - for (int i = 0; i < tableManagerModel.areas.length; i++) {  
383 - areas.add(tableManagerModel.areas[i].name); 377 + // if (index == data.length || data.length == 0) {
  378 + // return InkWell(
  379 + // onTap: () async {
  380 + // List<String> areas = [];
  381 + // for (int i = 0; i < tableManagerModel.areas.length; i++) {
  382 + // areas.add(tableManagerModel.areas[i].name);
  383 + // }
  384 +
  385 + // //添加桌位弹框
  386 + // await DialogUtil.openCreateTableDialog(
  387 + // context, areas, i, personNumList,
  388 + // onTap: (Map<String, String> value) async {
  389 + // print(value);
  390 + // // 'areaname':
  391 + // // areas[currentAreaIndex],
  392 + // // 'name': controller.text,
  393 + // // 'pnumMin': pnumMin,
  394 + // // 'pnumMax': pnumMax
  395 + // //添加桌位 接口参数带整合???
  396 + // // 以下是旧的不去,明天添加桌位接口
  397 + // String rid;
  398 + // for (Area item in tableManagerModel.areas) {
  399 + // if (item.name == value['areaname']) {
  400 + // rid = item.rid;
  401 + // }
  402 + // }
  403 + // Map<String, String> params = {
  404 + // 'rid': rid,
  405 + // 'name': value['name'],
  406 + // };
  407 + // if (value['pnumMin'] != '') {
  408 + // params['pnum'] = value['pnumMin'];
  409 + // }
  410 + // if (value['pnumMax'] != '') {
  411 + // params['most_pnum'] = value['pnumMax'];
  412 + // }
  413 + // bool success =
  414 + // await tableManagerModel.addTable(context, params);
  415 + // print(success);
  416 + // if (success) {
  417 + // Utils.showToast('添加成功!');
  418 + // // TableOuter tableOuter = TableOuter();
  419 + // // tableOuter.name = value;
  420 + // // tableOuter.list = [];
  421 + // // tableManagerModel.tableOuterList.add(tableOuter);
  422 + // // tableManagerModel.initData();
  423 + // // Timer(
  424 + // // Duration(milliseconds: 500),
  425 + // // () => _areaController.jumpTo(
  426 + // // _areaController.position.maxScrollExtent));
  427 +
  428 + // // await tableManagerModel
  429 + // // .getTableList(context);
  430 + // // await tableManagerModel
  431 + // // .initData();
  432 + // await tableManagerModel.refreshTable(context);
  433 + // }
  434 + // });
  435 + // },
  436 + // child: Container(
  437 + // child: DottedBorder(
  438 + // dashPattern: [5, 5, 5, 5],
  439 + // borderType: BorderType.RRect,
  440 + // radius: Radius.circular(ScreenUtil().setWidth(20)),
  441 + // // padding: EdgeInsets.all(ScreenUtil().setWidth(70)),
  442 + // color: MyColours.color_E0E0E0,
  443 + // strokeWidth: ScreenUtil().setWidth(2),
  444 + // child: ClipRRect(
  445 + // borderRadius: BorderRadius.all(
  446 + // Radius.circular(ScreenUtil().setWidth(20))),
  447 + // child: Container(
  448 + // height: ScreenUtil().screenWidth -
  449 + // ScreenUtil().setWidth(12 * 3 - 10 * 2),
  450 + // width: ScreenUtil().screenWidth -
  451 + // ScreenUtil().setWidth(12 * 3 - 10 * 2),
  452 + // child: Column(
  453 + // mainAxisAlignment: MainAxisAlignment.center,
  454 + // children: [
  455 + // Image.asset(Utils.getImgPath('add_store'),
  456 + // width: ScreenUtil().setWidth(32)),
  457 + // ],
  458 + // ),
  459 + // ),
  460 + // ),
  461 + // )));
  462 + // } else {
  463 + return Selector<TableManagerModel, t.Table>(
  464 + shouldRebuild: (pre, next) => true,
  465 + selector: (context, model) => data[index],
  466 + builder: (context, table, _) {
  467 + return FTableItem(table,
  468 + canSelected: true, selectTables: tableManagerModel.selectTables,
  469 + onSelected: (table) {
  470 + if (table.signStr == '已预订') {
  471 + if (table.sign == '10') {
  472 + //宴会订单
  473 + NavigatorUtil.goFeastDetailPage(context, table.notebookId,
  474 + canEdit: false);
  475 + } else {
  476 + //进入订座详情页面
  477 + NavigatorUtil.goNotebookDetailPage(
  478 + context,
  479 + tableManagerModel.tableMap[table.id].id,
  480 + tableManagerModel.tableMap[table.id].uid);
384 } 481 }
385 -  
386 - //添加桌位弹框  
387 - await DialogUtil.openCreateTableDialog(  
388 - context, areas, i, personNumList,  
389 - onTap: (Map<String, String> value) async {  
390 - print(value);  
391 - // 'areaname':  
392 - // areas[currentAreaIndex],  
393 - // 'name': controller.text,  
394 - // 'pnumMin': pnumMin,  
395 - // 'pnumMax': pnumMax  
396 - //添加桌位 接口参数带整合???  
397 - // 以下是旧的不去,明天添加桌位接口  
398 - String rid;  
399 - for (Area item in tableManagerModel.areas) {  
400 - if (item.name == value['areaname']) {  
401 - rid = item.rid;  
402 - }  
403 - }  
404 - Map<String, String> params = {  
405 - 'rid': rid,  
406 - 'name': value['name'],  
407 - };  
408 - if (value['pnumMin'] != '') {  
409 - params['pnum'] = value['pnumMin'];  
410 - }  
411 - if (value['pnumMax'] != '') {  
412 - params['most_pnum'] = value['pnumMax']; 482 + } else {
  483 + setState(() {
  484 + if ((table as t.Table).selected) {
  485 + tableManagerModel.selectTables.add(table);
  486 + } else {
  487 + tableManagerModel.selectTables
  488 + .removeWhere((t) => t.id == table.id);
413 } 489 }
414 - bool success =  
415 - await tableManagerModel.addTable(context, params);  
416 - print(success);  
417 - if (success) {  
418 - Utils.showToast('添加成功!');  
419 - // TableOuter tableOuter = TableOuter();  
420 - // tableOuter.name = value;  
421 - // tableOuter.list = [];  
422 - // tableManagerModel.tableOuterList.add(tableOuter);  
423 - // tableManagerModel.initData();  
424 - // Timer(  
425 - // Duration(milliseconds: 500),  
426 - // () => _areaController.jumpTo(  
427 - // _areaController.position.maxScrollExtent));  
428 -  
429 - // await tableManagerModel  
430 - // .getTableList(context);  
431 - // await tableManagerModel  
432 - // .initData();  
433 - await tableManagerModel.refreshTable(context); 490 + if (tableManagerModel.selectTables.length == 0) {
  491 + // wechatNotification = true;
  492 + _clearData();
434 } 493 }
  494 + // if (tableManagerModel.selectTables.length > 1) {
  495 + // _scrollCrl.position
  496 + // .didUpdateScrollPositionBy(0); //这里触发更新滚动条
  497 + // }
435 }); 498 });
436 - },  
437 - child: Container(  
438 - child: DottedBorder(  
439 - dashPattern: [5, 5, 5, 5],  
440 - borderType: BorderType.RRect,  
441 - radius: Radius.circular(ScreenUtil().setWidth(20)),  
442 - // padding: EdgeInsets.all(ScreenUtil().setWidth(70)),  
443 - color: MyColours.color_E0E0E0,  
444 - strokeWidth: ScreenUtil().setWidth(2),  
445 - child: ClipRRect(  
446 - borderRadius: BorderRadius.all(  
447 - Radius.circular(ScreenUtil().setWidth(20))),  
448 - child: Container(  
449 - height: ScreenUtil().screenWidth -  
450 - ScreenUtil().setWidth(12 * 3 - 10 * 2),  
451 - width: ScreenUtil().screenWidth -  
452 - ScreenUtil().setWidth(12 * 3 - 10 * 2),  
453 - child: Column(  
454 - mainAxisAlignment: MainAxisAlignment.center,  
455 - children: [  
456 - Image.asset(Utils.getImgPath('add_store'),  
457 - width: ScreenUtil().setWidth(32)),  
458 - ],  
459 - ),  
460 - ),  
461 - ),  
462 - )));  
463 - } else {  
464 - return Selector<TableManagerModel, t.Table>(  
465 - shouldRebuild: (pre, next) => true,  
466 - selector: (context, model) => data[index],  
467 - builder: (context, table, _) {  
468 - return FTableItem(table,  
469 - canSelected: true,  
470 - selectTables: tableManagerModel.selectTables,  
471 - onSelected: (table) {  
472 - if (table.signStr == '已预订') {  
473 - if (table.sign == '10') {  
474 - //宴会订单  
475 - NavigatorUtil.goFeastDetailPage(context, table.notebookId,  
476 - canEdit: false);  
477 - } else {  
478 - //进入订座详情页面  
479 - NavigatorUtil.goNotebookDetailPage(  
480 - context,  
481 - tableManagerModel.tableMap[table.id].id,  
482 - tableManagerModel.tableMap[table.id].uid);  
483 - }  
484 - } else {  
485 - setState(() {  
486 - if ((table as t.Table).selected) {  
487 - tableManagerModel.selectTables.add(table);  
488 - } else {  
489 - tableManagerModel.selectTables  
490 - .removeWhere((t) => t.id == table.id);  
491 - }  
492 - if (tableManagerModel.selectTables.length == 0) {  
493 - // wechatNotification = true;  
494 - _clearData();  
495 - }  
496 - // if (tableManagerModel.selectTables.length > 1) {  
497 - // _scrollCrl.position  
498 - // .didUpdateScrollPositionBy(0); //这里触发更新滚动条  
499 - // }  
500 - });  
501 - }  
502 - // DialogUtil.showTableManagerDialog(context, table).then((value) {  
503 - // if (value != null) {  
504 - // switch (value) {  
505 - // case 1: //查看详情  
506 - // NavigatorUtil.goNotebookDetailPage(  
507 - // context,  
508 - // tableManagerModel.tableMap[table.id].id,  
509 - // tableManagerModel.tableMap[table.id].uid);  
510 - // break;  
511 - // case 2: //订座  
512 - // NavigatorUtil.goNoteBookChangePage(  
513 - // context,  
514 - // NotebookDetail.fromTableManager(  
515 - // tableManagerModel.getCurrDdateStr(),  
516 - // tableManagerModel.currTimeIndex.toString(),  
517 - // table),  
518 - // "");  
519 - // break;  
520 -  
521 - // case 3: //停用,启用桌位  
522 - // Map<String, String> params = {  
523 - // "id": (table as t.Table).id,  
524 - // "status": (table as t.Table).enable == "1" ? "0" : "1"  
525 - // };  
526 - // tableManagerModel  
527 - // .setSwitchStatus(context, params)  
528 - // .then((value) {  
529 - // if (value != null) {  
530 - // (table as t.Table).enable =  
531 - // ((int.parse((table as t.Table).enable) + 1) % 2)  
532 - // .toString();  
533 - // if ((table as t.Table).enable == "1") {  
534 - // for (Area area in tableManagerModel.areas) {  
535 - // if (area.name ==  
536 - // tableManagerModel.currentArea) {  
537 - // if (table.sign != '5' && table.sign != '1') {  
538 - // //已预订  
539 - // area.count++;  
540 - // }  
541 - // break;  
542 - // }  
543 - // }  
544 - // } else {  
545 - // for (Area area in tableManagerModel.areas) {  
546 - // if (area.name ==  
547 - // tableManagerModel.currentArea) {  
548 - // if (table.sign != '5' && table.sign != '1') {  
549 - // //已预订  
550 - // area.count--;  
551 - // }  
552 - // break;  
553 - // }  
554 - // }  
555 - // }  
556 - // tableManagerModel.notifyListeners();  
557 - // }  
558 - // });  
559 - // break;  
560 - // case 4: //照片管理  
561 - // NavigatorUtil.goTablePhotoManagerPage(context,  
562 - // tid: (table as t.Table).id,  
563 - // tname: (table as t.Table).name);  
564 - // break;  
565 - // }  
566 - // }  
567 - // });  
568 - },  
569 - fromPage: 'table_manage',  
570 - tableMap: tableManagerModel.tableMap,  
571 - rid: ""); 499 + }
  500 + // DialogUtil.showTableManagerDialog(context, table).then((value) {
  501 + // if (value != null) {
  502 + // switch (value) {
  503 + // case 1: //查看详情
  504 + // NavigatorUtil.goNotebookDetailPage(
  505 + // context,
  506 + // tableManagerModel.tableMap[table.id].id,
  507 + // tableManagerModel.tableMap[table.id].uid);
  508 + // break;
  509 + // case 2: //订座
  510 + // NavigatorUtil.goNoteBookChangePage(
  511 + // context,
  512 + // NotebookDetail.fromTableManager(
  513 + // tableManagerModel.getCurrDdateStr(),
  514 + // tableManagerModel.currTimeIndex.toString(),
  515 + // table),
  516 + // "");
  517 + // break;
  518 +
  519 + // case 3: //停用,启用桌位
  520 + // Map<String, String> params = {
  521 + // "id": (table as t.Table).id,
  522 + // "status": (table as t.Table).enable == "1" ? "0" : "1"
  523 + // };
  524 + // tableManagerModel
  525 + // .setSwitchStatus(context, params)
  526 + // .then((value) {
  527 + // if (value != null) {
  528 + // (table as t.Table).enable =
  529 + // ((int.parse((table as t.Table).enable) + 1) % 2)
  530 + // .toString();
  531 + // if ((table as t.Table).enable == "1") {
  532 + // for (Area area in tableManagerModel.areas) {
  533 + // if (area.name ==
  534 + // tableManagerModel.currentArea) {
  535 + // if (table.sign != '5' && table.sign != '1') {
  536 + // //已预订
  537 + // area.count++;
  538 + // }
  539 + // break;
  540 + // }
  541 + // }
  542 + // } else {
  543 + // for (Area area in tableManagerModel.areas) {
  544 + // if (area.name ==
  545 + // tableManagerModel.currentArea) {
  546 + // if (table.sign != '5' && table.sign != '1') {
  547 + // //已预订
  548 + // area.count--;
  549 + // }
  550 + // break;
  551 + // }
  552 + // }
  553 + // }
  554 + // tableManagerModel.notifyListeners();
  555 + // }
  556 + // });
  557 + // break;
  558 + // case 4: //照片管理
  559 + // NavigatorUtil.goTablePhotoManagerPage(context,
  560 + // tid: (table as t.Table).id,
  561 + // tname: (table as t.Table).name);
  562 + // break;
  563 + // }
  564 + // }
  565 + // });
572 }, 566 },
573 - );  
574 - } 567 + fromPage: 'table_manage',
  568 + tableMap: tableManagerModel.tableMap,
  569 + rid: "");
  570 + },
  571 + );
  572 + // }
575 }, 573 },
576 ); 574 );
577 } 575 }
@@ -3318,168 +3316,166 @@ class TableManagerPageState extends State<TableManagerPage> { @@ -3318,168 +3316,166 @@ class TableManagerPageState extends State<TableManagerPage> {
3318 child: ListView.builder( 3316 child: ListView.builder(
3319 itemCount: tableManagerModel.areas.length == 3317 itemCount: tableManagerModel.areas.length ==
3320 0 3318 0
3321 - ? 1  
3322 - : tableManagerModel.areas.length + 2, 3319 + ? 0
  3320 + : tableManagerModel.areas.length + 1,
3323 shrinkWrap: true, 3321 shrinkWrap: true,
3324 scrollDirection: Axis.horizontal, 3322 scrollDirection: Axis.horizontal,
3325 itemBuilder: 3323 itemBuilder:
3326 (BuildContext contxt, int index) { 3324 (BuildContext contxt, int index) {
3327 - if (index ==  
3328 - tableManagerModel.areas.length +  
3329 - 1 ||  
3330 - tableManagerModel.areas.length == 0) { 3325 + // if (index ==
  3326 + // tableManagerModel.areas.length +
  3327 + // 1 ||
  3328 + // tableManagerModel.areas.length == 0) {
  3329 + // return InkWell(
  3330 + // onTap: () async {
  3331 + // //添加区域弹框
  3332 + // await DialogUtil
  3333 + // .openCreateAreaDialog(context,
  3334 + // onTap: (value) async {
  3335 + // print(value);
  3336 + // //添加区域
  3337 + // bool success =
  3338 + // await tableManagerModel
  3339 + // .addTableAreas(
  3340 + // context, value);
  3341 + // print(success);
  3342 + // if (success) {
  3343 + // Utils.showToast('添加成功!');
  3344 + // tableManagerModel.currentArea =
  3345 + // value;
  3346 +
  3347 + // await tableManagerModel
  3348 + // .refreshTable(context);
  3349 + // // await tableManagerModel
  3350 + // // .getTableList(context,
  3351 + // // needLoading: false);
  3352 + // // tableManagerModel.initData();
  3353 +
  3354 + // // setState(() {
  3355 + // // updateMenu();
  3356 + // // });
  3357 + // // _scrollToIndex(widget
  3358 + // // .tableManagerModel
  3359 + // // .areas
  3360 + // // .length);
  3361 +
  3362 + // }
  3363 + // });
  3364 + // },
  3365 + // child: Column(
  3366 + // children: [
  3367 + // VEmptyView(20),
  3368 + // DottedBorder(
  3369 + // dashPattern: [5, 5, 5, 5],
  3370 + // borderType: BorderType.RRect,
  3371 + // // radius: Radius.circular(
  3372 + // // ScreenUtil().setWidth(10)),
  3373 + // // padding: EdgeInsets.all(ScreenUtil().setWidth(70)),
  3374 + // color: MyColours.color_199095,
  3375 + // strokeWidth:
  3376 + // ScreenUtil().setWidth(2),
  3377 + // child: ClipRRect(
  3378 + // borderRadius: BorderRadius
  3379 + // .all(Radius.circular(
  3380 + // ScreenUtil()
  3381 + // .setWidth(10))),
  3382 + // child: Container(
  3383 + // height: ScreenUtil()
  3384 + // .setWidth(25 * 2),
  3385 + // width: ScreenUtil()
  3386 + // .setWidth(70 * 2),
  3387 + // child: Column(
  3388 + // mainAxisAlignment:
  3389 + // MainAxisAlignment
  3390 + // .center,
  3391 + // children: [
  3392 + // Image.asset(
  3393 + // Utils.getImgPath(
  3394 + // 'add_area'),
  3395 + // width: ScreenUtil()
  3396 + // .setWidth(24)),
  3397 + // ],
  3398 + // ),
  3399 + // ),
  3400 + // ),
  3401 + // )
  3402 + // ],
  3403 + // ),
  3404 + // );
  3405 + // } else {
  3406 + if (index == 0) {
3331 return InkWell( 3407 return InkWell(
3332 - onTap: () async {  
3333 - //添加区域弹框  
3334 - await DialogUtil  
3335 - .openCreateAreaDialog(context,  
3336 - onTap: (value) async {  
3337 - print(value);  
3338 - //添加区域  
3339 - bool success =  
3340 - await tableManagerModel  
3341 - .addTableAreas(  
3342 - context, value);  
3343 - print(success);  
3344 - if (success) {  
3345 - Utils.showToast('添加成功!');  
3346 - tableManagerModel.currentArea =  
3347 - value;  
3348 -  
3349 - await tableManagerModel  
3350 - .refreshTable(context);  
3351 - // await tableManagerModel  
3352 - // .getTableList(context,  
3353 - // needLoading: false);  
3354 - // tableManagerModel.initData();  
3355 -  
3356 - // setState(() {  
3357 - // updateMenu();  
3358 - // });  
3359 - // _scrollToIndex(widget  
3360 - // .tableManagerModel  
3361 - // .areas  
3362 - // .length);  
3363 -  
3364 - } 3408 + onTap: () {
  3409 + setState(() {
  3410 + isSelected = true;
  3411 + tableManagerModel.currentArea =
  3412 + '全部';
  3413 + // tableManagerModel.tablesShow =
  3414 + // tableManagerModel
  3415 + // .tabl;
3365 }); 3416 });
3366 }, 3417 },
3367 - child: Column(  
3368 - children: [  
3369 - VEmptyView(20),  
3370 - DottedBorder(  
3371 - dashPattern: [5, 5, 5, 5],  
3372 - borderType: BorderType.RRect,  
3373 - // radius: Radius.circular(  
3374 - // ScreenUtil().setWidth(10)),  
3375 - // padding: EdgeInsets.all(ScreenUtil().setWidth(70)),  
3376 - color: MyColours.color_199095,  
3377 - strokeWidth:  
3378 - ScreenUtil().setWidth(2),  
3379 - child: ClipRRect(  
3380 - borderRadius: BorderRadius  
3381 - .all(Radius.circular(  
3382 - ScreenUtil()  
3383 - .setWidth(10))),  
3384 - child: Container(  
3385 - height: ScreenUtil()  
3386 - .setWidth(25 * 2), 3418 + child: Container(
  3419 + // width: ScreenUtil().setWidth(104 * 2),
  3420 + height: ScreenUtil().setWidth(80),
  3421 + margin: EdgeInsets.only(
  3422 + right: ScreenUtil().setWidth(15),
  3423 + top: ScreenUtil().setWidth(20),
  3424 + ),
  3425 + padding: EdgeInsets.symmetric(
  3426 + horizontal:
  3427 + ScreenUtil().setWidth(14),
  3428 + vertical:
  3429 + ScreenUtil().setWidth(10)),
  3430 + alignment: Alignment.center,
  3431 + decoration: BoxDecoration(
  3432 + // borderRadius: BorderRadius.circular(ScreenUtil().setWidth(10)),
  3433 + color: isSelected
  3434 + ? MyColours.color_199095
  3435 + : MyColours.color_ffffff,
  3436 + border: Border.all(
  3437 + color:
  3438 + MyColours.color_E0E0E0,
3387 width: ScreenUtil() 3439 width: ScreenUtil()
3388 - .setWidth(70 * 2),  
3389 - child: Column(  
3390 - mainAxisAlignment:  
3391 - MainAxisAlignment  
3392 - .center,  
3393 - children: [  
3394 - Image.asset(  
3395 - Utils.getImgPath(  
3396 - 'add_area'),  
3397 - width: ScreenUtil()  
3398 - .setWidth(24)),  
3399 - ],  
3400 - ),  
3401 - ),  
3402 - ),  
3403 - )  
3404 - ], 3440 + .setWidth(2))),
  3441 + child: Text(
  3442 + '全部',
  3443 + overflow: TextOverflow.ellipsis,
  3444 + style: TextStyle(
  3445 + color: isSelected
  3446 + ? MyColours.color_ffffff
  3447 + : MyColours.color_333333,
  3448 + fontSize:
  3449 + ScreenUtil().setSp(24),
  3450 + decoration:
  3451 + TextDecoration.none,
  3452 + fontWeight:
  3453 + FontWeight.normal),
  3454 + ),
3405 ), 3455 ),
3406 ); 3456 );
3407 } else { 3457 } else {
3408 - if (index == 0) {  
3409 - return InkWell(  
3410 - onTap: () {  
3411 - setState(() {  
3412 - isSelected = true;  
3413 - tableManagerModel.currentArea =  
3414 - '全部';  
3415 - // tableManagerModel.tablesShow =  
3416 - // tableManagerModel  
3417 - // .tabl;  
3418 - });  
3419 - },  
3420 - child: Container(  
3421 - // width: ScreenUtil().setWidth(104 * 2),  
3422 - height: ScreenUtil().setWidth(80),  
3423 - margin: EdgeInsets.only(  
3424 - right:  
3425 - ScreenUtil().setWidth(15),  
3426 - top: ScreenUtil().setWidth(20),  
3427 - ),  
3428 - padding: EdgeInsets.symmetric(  
3429 - horizontal:  
3430 - ScreenUtil().setWidth(14),  
3431 - vertical: ScreenUtil()  
3432 - .setWidth(10)),  
3433 - alignment: Alignment.center,  
3434 - decoration: BoxDecoration(  
3435 - // borderRadius: BorderRadius.circular(ScreenUtil().setWidth(10)),  
3436 - color: isSelected  
3437 - ? MyColours.color_199095  
3438 - : MyColours.color_ffffff,  
3439 - border: Border.all(  
3440 - color: MyColours  
3441 - .color_E0E0E0,  
3442 - width: ScreenUtil()  
3443 - .setWidth(2))),  
3444 - child: Text(  
3445 - '全部',  
3446 - overflow: TextOverflow.ellipsis,  
3447 - style: TextStyle(  
3448 - color: isSelected  
3449 - ? MyColours.color_ffffff  
3450 - : MyColours  
3451 - .color_333333,  
3452 - fontSize:  
3453 - ScreenUtil().setSp(24),  
3454 - decoration:  
3455 - TextDecoration.none,  
3456 - fontWeight:  
3457 - FontWeight.normal),  
3458 - ),  
3459 - ),  
3460 - );  
3461 - } else {  
3462 - return AreaItemTable(  
3463 - model.areas[index - 1],  
3464 - tableManagerModel.currentArea,  
3465 - (area) {  
3466 - setState(() {  
3467 - isSelected = false;  
3468 - tableManagerModel.selectNumber =  
3469 - index - 1;  
3470 - tableManagerModel.currentArea =  
3471 - tableManagerModel  
3472 - .areas[index - 1].name;  
3473 - // tableManagerModel.currentTables =  
3474 - // tableManagerModel  
3475 - // .areaTableMapShow[  
3476 - // tableManagerModel  
3477 - // .currentArea];  
3478 - // _anmationMenu();  
3479 - }); 3458 + return AreaItemTable(
  3459 + model.areas[index - 1],
  3460 + tableManagerModel.currentArea,
  3461 + (area) {
  3462 + setState(() {
  3463 + isSelected = false;
  3464 + tableManagerModel.selectNumber =
  3465 + index - 1;
  3466 + tableManagerModel.currentArea =
  3467 + tableManagerModel
  3468 + .areas[index - 1].name;
  3469 + // tableManagerModel.currentTables =
  3470 + // tableManagerModel
  3471 + // .areaTableMapShow[
  3472 + // tableManagerModel
  3473 + // .currentArea];
  3474 + // _anmationMenu();
3480 }); 3475 });
3481 - } 3476 + });
3482 } 3477 }
  3478 + // }
3483 }, 3479 },
3484 )), 3480 )),
3485 InkWell( 3481 InkWell(
@@ -3505,6 +3501,23 @@ class TableManagerPageState extends State<TableManagerPage> { @@ -3505,6 +3501,23 @@ class TableManagerPageState extends State<TableManagerPage> {
3505 ), 3501 ),
3506 child: Row( 3502 child: Row(
3507 children: [ 3503 children: [
  3504 + // Container(
  3505 + // width:
  3506 + // ScreenUtil().setWidth(2),
  3507 + // height:
  3508 + // ScreenUtil().setWidth(80),
  3509 + // decoration: BoxDecoration(
  3510 + // gradient: LinearGradient(
  3511 + // stops: [0, 1, 0],
  3512 + // begin: Alignment.centerLeft,
  3513 + // end: Alignment.centerRight,
  3514 + // colors: [
  3515 + // MyColours.color_F8F9FD,
  3516 + // MyColours.color_F1F0F4,
  3517 + // MyColours.color_F8F9FD,
  3518 + // ],
  3519 + // ),
  3520 + // )),
3508 MyDivider(ScreenUtil().setWidth(15), 3521 MyDivider(ScreenUtil().setWidth(15),
3509 ScreenUtil().setWidth(80), 3522 ScreenUtil().setWidth(80),
3510 color: MyColours.color_F1F0F4), 3523 color: MyColours.color_F1F0F4),
@@ -285,6 +285,7 @@ class UserModel with ChangeNotifier { @@ -285,6 +285,7 @@ class UserModel with ChangeNotifier {
285 Navigator.of(context).pop(); 285 Navigator.of(context).pop();
286 }, 286 },
287 child: Container( 287 child: Container(
  288 + color: MyColours.color_ffffff,
288 height: ScreenUtil().setWidth(94), 289 height: ScreenUtil().setWidth(94),
289 alignment: Alignment.center, 290 alignment: Alignment.center,
290 child: Text( 291 child: Text(
@@ -308,6 +309,7 @@ class UserModel with ChangeNotifier { @@ -308,6 +309,7 @@ class UserModel with ChangeNotifier {
308 }); 309 });
309 }, 310 },
310 child: Container( 311 child: Container(
  312 + color: MyColours.color_ffffff,
311 height: ScreenUtil().setWidth(94), 313 height: ScreenUtil().setWidth(94),
312 alignment: Alignment.center, 314 alignment: Alignment.center,
313 child: Text( 315 child: Text(