Commit b9da4fe3f1be5fd33c58ba3d0e555be433cced5c

Authored by wdn127929
1 parent ff818c08

宴会类型and宴会员工

1.31 KB | W: | H:

1.39 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

1.43 KB | W: | H:

3.44 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

1.41 KB | W: | H:

3.45 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

1002 Bytes | W: | H:

1.8 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

1002 Bytes | W: | H:

1.74 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

727 Bytes | W: | H:

1.31 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

1.77 KB | W: | H:

1.81 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

1.75 KB | W: | H:

1.79 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

2.3 KB | W: | H:

2.7 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

1.34 KB | W: | H:

1.4 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

1.32 KB | W: | H:

1.35 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

915 Bytes | W: | H:

1.16 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

2.41 KB | W: | H:

4.51 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

2.46 KB | W: | H:

4.24 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

1.24 KB | W: | H:

2.34 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

925 Bytes | W: | H:

2.32 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

914 Bytes | W: | H:

2.24 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

1.29 KB | W: | H:

2.73 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

1.29 KB | W: | H:

2.48 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:one_key/route/navigator_util.dart';
import '../../../res/colors.dart';
import '../../../utils/screen_util.dart';
import '../../../utils/utils.dart';
import '../../../widgets/h_empty_view.dart';
import '../../../widgets/system_app_bar.dart';
/**
* 宴会管理
*/
class FeastManageHomePage extends StatefulWidget {
FeastManageHomePage({Key key}) : super(key: key);
@override
_FeastManageHomePageState createState() => _FeastManageHomePageState();
}
class _FeastManageHomePageState extends State<FeastManageHomePage> {
@override
void initState() {
super.initState();
Utils.changeStatusColor(color: MyColours.color_438E93);
}
Widget feastManegeItem(String title, {GestureTapCallback onTap}) {
return InkWell(
onTap: onTap,
child: Container(
height: h(48),
margin: EdgeInsets.only(top: w(12)),
decoration: BoxDecoration(
border: Border(
bottom:
BorderSide(width: w(1), color: MyColours.color_E7E7E7))),
child: Row(
children: [
Text(
title,
style: TextStyle(
fontSize: font(16), color: MyColours.color_E5000000),
),
Spacer(),
Text(
'修改/添加',
style: TextStyle(
fontSize: font(16), color: MyColours.color_66000000),
),
HEmptyView(22),
Image.asset(
"assets/arrow_right_new.png",
width: ScreenUtil().setWidth(9 * 2),
height: ScreenUtil().setWidth(16 * 2),
),
HEmptyView(48),
],
),
));
}
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: MyColours.color_ffffff,
appBar: SystemAppBar(
'宴会管理',
needWhite: true,
bgColor: MyColours.color_438E93,
titleColor: MyColours.color_F6F6F6,
onTap: () {
Navigator.pop(context);
},
),
body: SingleChildScrollView(
child: Padding(
padding: EdgeInsets.only(left: w(16)),
child: Column(
children: [
feastManegeItem('宴会类型', onTap: () {
NavigatorUtil.goFeasTypePage(context);
}),
feastManegeItem('宴会员工', onTap: () {
NavigatorUtil.goFeastPersonalPage(context);
}),
feastManegeItem('套餐管理'),
feastManegeItem('酒水管理'),
feastManegeItem('其他配置管理'),
feastManegeItem('定金设置'),
],
),
),
));
}
}
... ...
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:one_key/widgets/MyDivider.dart';
import '../../../res/colors.dart';
import '../../../utils/dialog_util.dart';
import '../../../utils/screen_util.dart';
import '../../../utils/utils.dart';
import '../../../widgets/h_empty_view.dart';
import '../../../widgets/round_button.dart';
import '../../../widgets/system_app_bar.dart';
/**
* 宴会员工
*/
class FeastPersonalPage extends StatefulWidget {
FeastPersonalPage({Key key}) : super(key: key);
@override
_FeastPersonalPageState createState() => _FeastPersonalPageState();
}
class _FeastPersonalPageState extends State<FeastPersonalPage> {
@override
void initState() {
super.initState();
Utils.changeStatusColor(color: MyColours.color_438E93);
}
Widget buildFeastTypeHeader(bool select) {
return RoundButton(
onPressed: () async {},
text: '全选',
fontSize: 32,
isBold: false,
height: h(32),
width: w(48),
margin: EdgeInsets.only(top: w(18), bottom: w(4)),
textColor: select ? MyColours.color_ffffff : MyColours.color_438E93,
gradientStart: select ? MyColours.color_438E93 : MyColours.color_ffffff,
gradientEnd: select ? MyColours.color_438E93 : MyColours.color_ffffff,
borderColor: select ? MyColours.color_438E93 : MyColours.color_ffffff,
radius: r(6),
);
}
Widget buildFeastTypeItem() {
return Column(
children: [
Container(
height: h(48),
margin: EdgeInsets.only(top: w(12)),
// decoration: BoxDecoration(
// border: Border(
// bottom:
// BorderSide(width: w(1), color: MyColours.color_E7E7E7))),
child: Row(
children: [
InkWell(
onTap: () {},
child: Image.asset(
Utils.getImgPath(true ? 'select' : 'unselect'),
width: w(24),
height: w(24),
)),
HEmptyView(16),
Text(
'刘经理 15833517582',
style: TextStyle(
fontSize: font(16), color: MyColours.color_E6000000),
),
Spacer(),
Text(
'管理员 0001',
style: TextStyle(
fontSize: font(14), color: MyColours.color_999999),
),
HEmptyView(32),
],
),
),
Padding(
padding: EdgeInsets.only(left: w(32)),
child: MyDivider(
double.infinity,
w(1),
color: MyColours.color_E7E7E7,
))
],
);
}
Widget _callButton(
{GestureTapCallback onPress,
content,
hasLeftBorder = true,
isSelect = false}) {
return InkWell(
onTap: onPress,
child: Container(
height: h(48),
decoration: BoxDecoration(
color: isSelect ? MyColours.color_438E93 : MyColours.color_ffffff,
border: Border(
bottom: BorderSide(
color: MyColours.color_438E93,
width: ScreenUtil().setWidth(2)),
top: BorderSide(
color: MyColours.color_438E93,
width: ScreenUtil().setWidth(2)),
left: hasLeftBorder
? BorderSide(
color: MyColours.color_438E93,
width: ScreenUtil().setWidth(2))
: BorderSide.none,
right: BorderSide(
color: MyColours.color_438E93,
width: ScreenUtil().setWidth(2)))),
child: Align(
alignment: Alignment.center,
child: Text(
content,
style: TextStyle(
color:
isSelect ? MyColours.color_F6F6F6 : MyColours.color_438E93,
fontSize: ScreenUtil().setSp(36)),
),
),
),
);
}
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: MyColours.color_ffffff,
appBar: SystemAppBar(
'宴会员工',
needWhite: true,
bgColor: MyColours.color_438E93,
titleColor: MyColours.color_F6F6F6,
onTap: () {
Navigator.pop(context);
},
),
body: Column(
children: [
Expanded(
child: NestedScrollView(
// controller: _scrollViewController,
headerSliverBuilder:
(BuildContext context, bool innerBoxIsScrolled) {
return <Widget>[
SliverAppBar(
pinned: true,
floating: false,
leading: null,
backgroundColor: MyColours.color_ffffff,
expandedHeight: ScreenUtil().setWidth(56 * 2),
automaticallyImplyLeading: false,
title: buildFeastTypeHeader(true),
// flexibleSpace: FlexibleSpaceBar(
// collapseMode: CollapseMode.pin,
// title: buildFeastTypeHeader())
)
];
},
body: ListView.builder(
itemCount: 100,
padding: EdgeInsets.only(left: w(16)),
itemBuilder: (BuildContext context, int index) {
return buildFeastTypeItem();
}),
)),
Row(
children: [
Expanded(
child: _callButton(
onPress: () {
Navigator.pop(context);
},
content: '返回',
hasLeftBorder: true,
isSelect: false)),
Expanded(
child: _callButton(
onPress: () {},
content: '保存',
hasLeftBorder: true,
isSelect: true))
],
)
],
),
);
}
}
... ...
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import '../../../res/colors.dart';
import '../../../utils/dialog_util.dart';
import '../../../utils/screen_util.dart';
import '../../../utils/utils.dart';
import '../../../widgets/h_empty_view.dart';
import '../../../widgets/round_button.dart';
import '../../../widgets/system_app_bar.dart';
/**
* 宴会类型
*/
class FeastTypePage extends StatefulWidget {
FeastTypePage({Key key}) : super(key: key);
@override
_FeastTypePageState createState() => _FeastTypePageState();
}
class _FeastTypePageState extends State<FeastTypePage> {
@override
void initState() {
super.initState();
Utils.changeStatusColor(color: MyColours.color_438E93);
}
Widget buildFeastTypeHeader() {
return RoundButton(
onPressed: () async {
DialogUtil.textfeildAlertDialog(context,
title: '输入类型名称',
hintText: '请输入',
text: '',
lenghtLimit: false,
toast: '请输入类型名称', rCallback: (name) {
// _addCookbookClass(name, showLoading: true);
});
},
text: '添加一项',
fontSize: 32,
isBold: false,
height: h(32),
width: w(80),
margin: EdgeInsets.only(top: w(18), bottom: w(4)),
textColor: MyColours.color_438E93,
gradientStart: MyColours.color_ffffff,
gradientEnd: MyColours.color_ffffff,
borderColor: MyColours.color_438E93,
radius: r(6),
);
}
Widget buildFeastTypeItem(String title) {
return Container(
height: h(48),
margin: EdgeInsets.only(top: w(12)),
decoration: BoxDecoration(
border: Border(
bottom: BorderSide(width: w(1), color: MyColours.color_E7E7E7))),
child: Row(
children: [
Text(
title,
style:
TextStyle(fontSize: font(16), color: MyColours.color_E6000000),
),
Spacer(),
InkWell(
onTap: () {
DialogUtil.textfeildAlertDialog(context,
title: '输入类型名称',
hintText: '请输入',
text: '原来的内容',
lenghtLimit: true,
toast: '请输入类型名称', rCallback: (name) {
// _addCookbookClass(name, showLoading: true);
});
},
child: Text(
'修改',
style: TextStyle(
decoration: TextDecoration.underline,
fontSize: font(16),
color: MyColours.color_438E93),
)),
HEmptyView(32),
InkWell(
onTap: () {
//已经传到服务器,弹提醒窗口,是否删除
//修改之前有内容,则弹框
DialogUtil.cupertinoAlertDialogFeast(context,
rTitle: '删除',
title: "是否确认删除",
content: "满月宴", lCallback: () {
print("取消");
}, rCallback: () {
print("确定");
// widget.deleteCallback(index);
});
},
child: Image.asset(
Utils.getImgPath(true ? 'f_delete_red_un' : 'f_delete_red'),
width: w(32),
height: w(32),
)),
HEmptyView(32),
],
),
);
}
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: MyColours.color_ffffff,
appBar: SystemAppBar(
'宴会类型',
needWhite: true,
bgColor: MyColours.color_438E93,
titleColor: MyColours.color_F6F6F6,
onTap: () {
Navigator.pop(context);
},
),
body: NestedScrollView(
// controller: _scrollViewController,
headerSliverBuilder: (BuildContext context, bool innerBoxIsScrolled) {
return <Widget>[
SliverAppBar(
pinned: true,
floating: false,
leading: null,
backgroundColor: MyColours.color_ffffff,
expandedHeight: ScreenUtil().setWidth(56 * 2),
automaticallyImplyLeading: false,
title: buildFeastTypeHeader(),
// flexibleSpace: FlexibleSpaceBar(
// collapseMode: CollapseMode.pin,
// title: buildFeastTypeHeader())
)
];
},
body: ListView.builder(
itemCount: 100,
padding: EdgeInsets.only(left: w(16)),
itemBuilder: (BuildContext context, int index) {
return buildFeastTypeItem('公司年会');
}),
),
);
}
}
... ...
... ... @@ -425,53 +425,54 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver {
color: MyColours.color_f3f3f3,
),
InkWell(
onTap:(){
NavigatorUtil.goSmsManagePage(context,
smsInfoData: smsInfoData);
},
onTap: () {
NavigatorUtil.goSmsManagePage(context,
smsInfoData: smsInfoData);
},
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
myModel.smsInfo.isNotEmpty
? '${myModel.smsInfo}'
: '0',
style: TextStyle(
fontWeight: FontWeight.bold,
color: MyColours.color_515151,
fontSize: ScreenUtil().setSp(40)),
Row(
children: [
Text(
myModel.smsInfo.isNotEmpty
? '${myModel.smsInfo}'
: '0',
style: TextStyle(
fontWeight: FontWeight.bold,
color: MyColours.color_515151,
fontSize:
ScreenUtil().setSp(40)),
),
Text(
'条',
style: TextStyle(
fontWeight: FontWeight.bold,
color: MyColours.color_515151,
fontSize:
ScreenUtil().setSp(22)),
)
],
),
Text(
'条',
style: TextStyle(
fontWeight: FontWeight.bold,
color: MyColours.color_515151,
fontSize: ScreenUtil().setSp(22)),
)
VEmptyView(8),
RoundButton(
text: '充值短信',
gradientStart: MyColours.color_438E93,
gradientEnd: MyColours.color_438E93,
borderColor: MyColours.color_438E93,
width: ScreenUtil().setWidth(48 * 2),
height: ScreenUtil().setWidth(18 * 2),
fontSize: 20,
isBold: true,
textColor: MyColours.color_ffffff,
radius: ScreenUtil().setWidth(8),
onPressed: () {
NavigatorUtil.goSmsManagePage(
context,
smsInfoData: smsInfoData);
})
],
),
VEmptyView(8),
RoundButton(
text: '充值短信',
gradientStart: MyColours.color_438E93,
gradientEnd: MyColours.color_438E93,
borderColor: MyColours.color_438E93,
width: ScreenUtil().setWidth(48 * 2),
height: ScreenUtil().setWidth(18 * 2),
fontSize: 20,
isBold: true,
textColor: MyColours.color_ffffff,
radius: ScreenUtil().setWidth(8),
onPressed: () {
NavigatorUtil.goSmsManagePage(context,
smsInfoData: smsInfoData);
})
],
)),
)),
MyDivider(
ScreenUtil().setWidth(2),
ScreenUtil().setWidth(32 * 2),
... ... @@ -656,6 +657,7 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver {
vertical: ScreenUtil().setWidth(20)),
child: Container(
padding: EdgeInsets.symmetric(
horizontal: ScreenUtil().setWidth(24 * 2),
vertical: ScreenUtil().setWidth(19 * 2)),
decoration: BoxDecoration(
color: MyColours.color_ffffff,
... ... @@ -665,7 +667,7 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver {
children: [
Row(
mainAxisAlignment:
MainAxisAlignment.spaceEvenly,
MainAxisAlignment.spaceBetween,
children: [
InkWell(
onTap: () async {
... ... @@ -752,7 +754,7 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver {
VEmptyView(68),
Row(
mainAxisAlignment:
MainAxisAlignment.spaceEvenly,
MainAxisAlignment.spaceBetween,
children: [
InkWell(
onTap: () {
... ... @@ -808,6 +810,26 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver {
'包间置满',
isRowLow: isRoleLowNoManage))
],
),
VEmptyView(68),
Row(
mainAxisAlignment:
MainAxisAlignment.spaceBetween,
children: [
InkWell(
onTap: () {
if (!isRoleLowNoManage) {
NavigatorUtil.goFeastManageHomePage(
context);
}
},
child: _item(
isRoleLowNoManage
? Utils.getImgPath('yhgl_un')
: Utils.getImgPath('yhgl'),
'宴会管理',
isRowLow: isRoleLowNoManage)),
],
)
],
))),
... ...
... ... @@ -528,14 +528,15 @@ class _OnlineCheckEditPageState extends State<OnlineCheckEditPage> {
'发票抬头',
_onlineCheckEditProvider.orderInfoSunModel != null
? _onlineCheckEditProvider
.orderInfoSunModel.invoice.title
.orderInfoSunModel.invoice?.title ??
''
: '',
fontsize: 20),
Offstage(
offstage: _onlineCheckEditProvider.orderInfoSunModel != null
? _onlineCheckEditProvider
.orderInfoSunModel.invoice.taxnumber ==
''
.orderInfoSunModel.invoice?.taxnumber ??
'' == ''
: true,
child: Padding(
padding: EdgeInsets.only(top: ScreenUtil().setWidth(24)),
... ... @@ -543,7 +544,7 @@ class _OnlineCheckEditPageState extends State<OnlineCheckEditPage> {
'税号',
_onlineCheckEditProvider.orderInfoSunModel != null
? _onlineCheckEditProvider
.orderInfoSunModel.invoice.taxnumber
.orderInfoSunModel.invoice?.taxnumber ??''
: '',
fontsize: 20),
),
... ... @@ -551,7 +552,7 @@ class _OnlineCheckEditPageState extends State<OnlineCheckEditPage> {
Offstage(
offstage: _onlineCheckEditProvider.orderInfoSunModel != null
? _onlineCheckEditProvider
.orderInfoSunModel.invoice.companyaddress ==
.orderInfoSunModel.invoice?.companyaddress ??'' ==
''
: true,
child: Padding(
... ... @@ -560,7 +561,7 @@ class _OnlineCheckEditPageState extends State<OnlineCheckEditPage> {
'地址',
_onlineCheckEditProvider.orderInfoSunModel != null
? _onlineCheckEditProvider
.orderInfoSunModel.invoice.companyaddress
.orderInfoSunModel.invoice?.companyaddress ??''
: '',
fontsize: 20),
),
... ... @@ -568,7 +569,7 @@ class _OnlineCheckEditPageState extends State<OnlineCheckEditPage> {
Offstage(
offstage: _onlineCheckEditProvider.orderInfoSunModel != null
? _onlineCheckEditProvider
.orderInfoSunModel.invoice.telephone ==
.orderInfoSunModel.invoice?.telephone ??'' ==
''
: true,
child: Padding(
... ... @@ -577,7 +578,7 @@ class _OnlineCheckEditPageState extends State<OnlineCheckEditPage> {
'电话',
_onlineCheckEditProvider.orderInfoSunModel != null
? _onlineCheckEditProvider
.orderInfoSunModel.invoice.telephone
.orderInfoSunModel.invoice?.telephone ??''
: '',
fontsize: 20),
),
... ... @@ -585,7 +586,7 @@ class _OnlineCheckEditPageState extends State<OnlineCheckEditPage> {
Offstage(
offstage: _onlineCheckEditProvider.orderInfoSunModel != null
? _onlineCheckEditProvider
.orderInfoSunModel.invoice.bankname ==
.orderInfoSunModel.invoice?.bankname ??'' ==
''
: true,
child: Padding(
... ... @@ -594,7 +595,7 @@ class _OnlineCheckEditPageState extends State<OnlineCheckEditPage> {
'开户行',
_onlineCheckEditProvider.orderInfoSunModel != null
? _onlineCheckEditProvider
.orderInfoSunModel.invoice.bankname
.orderInfoSunModel.invoice?.bankname ??''
: '',
fontsize: 20),
),
... ... @@ -602,7 +603,7 @@ class _OnlineCheckEditPageState extends State<OnlineCheckEditPage> {
Offstage(
offstage: _onlineCheckEditProvider.orderInfoSunModel != null
? _onlineCheckEditProvider
.orderInfoSunModel.invoice.bankaccount ==
.orderInfoSunModel.invoice?.bankaccount ??'' ==
''
: true,
child: Padding(
... ... @@ -611,7 +612,7 @@ class _OnlineCheckEditPageState extends State<OnlineCheckEditPage> {
'账号',
_onlineCheckEditProvider.orderInfoSunModel != null
? _onlineCheckEditProvider
.orderInfoSunModel.invoice.bankaccount
.orderInfoSunModel.invoice?.bankaccount ??''
: '',
fontsize: 20),
),
... ...
import 'package:flutter/material.dart';
class MyColours {
static const Color color_66000000 = Color(0x66000000);
static const Color color_00A870 = Color(0xff00A870);
static const Color color_F6F6F6 = Color(0xffF6F6F6);
static const Color color_E6000000 = Color(0xE6000000);
... ...
... ... @@ -893,4 +893,24 @@ class NavigatorUtil {
return _navigateTo(context, "${Routes.feast_invoice_page}",
replace: replace);
}
///宴会----宴会管理
static Future<dynamic> goFeastManageHomePage(BuildContext context,
{replace = false, bool onlyShow = false}) {
return _navigateTo(context, "${Routes.feast_manage_home_page}",
replace: replace);
}
///宴会----宴会管理 --- 宴会类型
static Future<dynamic> goFeasTypePage(BuildContext context,
{replace = false, bool onlyShow = false}) {
return _navigateTo(context, "${Routes.feast_type_page}", replace: replace);
}
///宴会----宴会管理 --- 宴会员工
static Future<dynamic> goFeastPersonalPage(BuildContext context,
{replace = false, bool onlyShow = false}) {
return _navigateTo(context, "${Routes.feast_personal_page}",
replace: replace);
}
}
... ...
... ... @@ -77,6 +77,7 @@ import 'package:one_key/pages/my/customer_type/store_customer/make_marking_page.
import 'package:one_key/pages/my/customer_type/store_customer/marketing_records_detail_page.dart';
import 'package:one_key/pages/my/customer_type/store_customer/marketing_records_page.dart';
import 'package:one_key/pages/my/customer_type/store_customer/store_customer_page.dart';
import 'package:one_key/pages/my/feast_manage/feast_personal_page.dart';
import 'package:one_key/pages/my/personnel_type/base_info_personnal_page.dart';
import 'package:one_key/pages/my/personnel_type/personnel_detail_page.dart';
import 'package:one_key/pages/my/personnel_type/personnel_manage_page.dart';
... ... @@ -149,6 +150,8 @@ import '../pages/feast/feast_menu_page.dart';
import '../pages/feast/feast_set_page.dart';
import '../pages/feast/feast_setmeal_page.dart';
import '../pages/feast/feast_wine_page.dart';
import '../pages/my/feast_manage/feast_manage_home_page.dart';
import '../pages/my/feast_manage/feast_type_page.dart';
import '../provider/feast_model.dart';
// 登录页
... ... @@ -1406,3 +1409,33 @@ var feastInvoicePageHandle = new Handler(
return ChangeNotifierProvider<FeastModel>(
create: (_) => FeastModel(), child: FeastInvoicePage());
});
///宴会---宴会管理
var feastManageHomePageHandle = new Handler(
handlerFunc: (BuildContext context, Map<dynamic, List<Object>> params) {
// String uids = params["uids"].first;
// bool onlyShow = FluroConvertUtils.string2bool(params["onlyShow"].first);
return ChangeNotifierProvider<FeastModel>(
create: (_) => FeastModel(), child: FeastManageHomePage());
});
///宴会---宴会类型
var feastTypePageHandle = new Handler(
handlerFunc: (BuildContext context, Map<dynamic, List<Object>> params) {
// String uids = params["uids"].first;
// bool onlyShow = FluroConvertUtils.string2bool(params["onlyShow"].first);
return ChangeNotifierProvider<FeastModel>(
create: (_) => FeastModel(), child: FeastTypePage());
});
///宴会---宴会员工
var feastPersonalPageHandle = new Handler(
handlerFunc: (BuildContext context, Map<dynamic, List<Object>> params) {
// String uids = params["uids"].first;
// bool onlyShow = FluroConvertUtils.string2bool(params["onlyShow"].first);
return ChangeNotifierProvider<FeastModel>(
create: (_) => FeastModel(), child: FeastPersonalPage());
});
... ...
... ... @@ -123,6 +123,12 @@ class Routes {
static String feast_wine_page = "/feast_wine_page"; //宴会----添加酒水
static String feast_set_page = "/feast_set_page"; //宴会----添加配置
static String feast_invoice_page = "/feast_invoice_page"; //宴会----添加发票
static String feast_manage_home_page = "/feast_manage_home_page"; //宴会----宴会管理
static String feast_type_page = "/feast_type_page"; //宴会----宴会类型
static String feast_personal_page = "/feast_personal_page"; //宴会----宴会员工
static void configureRoutes(FluroRouter router) {
router.notFoundHandler = new Handler(
... ... @@ -249,5 +255,13 @@ class Routes {
router.define(feast_wine_page, handler: feastWinePageHandle);
router.define(feast_set_page, handler: feastSetPageHandle);
router.define(feast_invoice_page, handler: feastInvoicePageHandle);
router.define(feast_manage_home_page, handler: feastManageHomePageHandle);
router.define(feast_type_page, handler: feastTypePageHandle);
router.define(feast_personal_page, handler: feastPersonalPageHandle);
}
}
... ...
... ... @@ -4698,6 +4698,78 @@ class DialogUtil {
}
}
static Future cupertinoAlertDialogFeast(BuildContext context,
{String title = "",
String content = "内容",
String lTitle = "取消",
String rTitle = "确定",
Color rColor = MyColours.color_438E93,
bool isBold = false,
bool isBoldContent = false,
Color contentColor = MyColours.color_99000000,
VoidCallback lCallback,
VoidCallback rCallback}) {
showCupertinoDialog(
context: context,
builder: (context) {
return CupertinoAlertDialog(
title: title != ''
? Text(title,
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: ScreenUtil().setSp(32),
color: MyColours.color_E6000000))
: SizedBox(),
content: RichText(
textScaleFactor: 1,
overflow: TextOverflow.ellipsis,
// textDirection: TextDirection.ltr,
textAlign: TextAlign.center,
text: TextSpan(
children: [
TextSpan(
text: content,
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: ScreenUtil().setSp(32),
color: MyColours.color_438E93)),
TextSpan(
text: ' ?',
style: TextStyle(
fontWeight: FontWeight.bold,
color: MyColours.color_E6000000,
fontSize: ScreenUtil().setSp(32)),
),
],
)),
actions: [
CupertinoDialogAction(
child: Text(lTitle,
style: TextStyle(
fontSize: ScreenUtil().setSp(32),
color: MyColours.color_E6000000)),
onPressed: () {
Navigator.of(context).pop();
lCallback();
},
),
CupertinoDialogAction(
child: Text(rTitle,
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: ScreenUtil().setSp(32),
color: rColor)),
onPressed: () {
Navigator.of(context).pop();
rCallback();
},
),
],
);
},
);
}
static Future cupertinoAlertDialog(BuildContext context,
{String title = "",
String content = "内容",
... ... @@ -4725,8 +4797,7 @@ class DialogUtil {
fontWeight:
isBoldContent ? FontWeight.bold : FontWeight.normal,
fontSize: ScreenUtil().setSp(32),
color: contentColor
)),
color: contentColor)),
actions: [
CupertinoDialogAction(
child: Text(lTitle,
... ... @@ -5427,8 +5498,8 @@ class DialogUtil {
CupertinoDialogAction(
child: Text(lTitle,
style: TextStyle(
fontSize: ScreenUtil().setSp(34),
color: MyColours.color_666666)),
fontSize: ScreenUtil().setSp(32),
color: MyColours.color_E6000000)),
onPressed: () {
Navigator.of(context).pop();
lCallback();
... ... @@ -5437,8 +5508,9 @@ class DialogUtil {
CupertinoDialogAction(
child: Text(rTitle,
style: TextStyle(
fontSize: ScreenUtil().setSp(34),
color: MyColours.color_199095)),
fontWeight: FontWeight.bold,
fontSize: ScreenUtil().setSp(32),
color: MyColours.color_438E93)),
onPressed: () {
if (name == '' || name.trim().length == 0) {
Utils.showToast(toast);
... ...