finance_manage_home_page.dart
2.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:one_key/route/navigator_util.dart';
import 'package:one_key/widgets/system_app_bar.dart';
import '../../../res/colors.dart';
import '../../../utils/screen_util.dart';
import '../../../utils/utils.dart';
import '../../../widgets/h_empty_view.dart';
/**
* 收银管理主页
*/
class FinanceManageHomePage extends StatefulWidget {
const FinanceManageHomePage({super.key});
@override
State<FinanceManageHomePage> createState() => _FinanceManageHomePageState();
}
class _FinanceManageHomePageState extends State<FinanceManageHomePage> {
///时间选择
Widget _item(String title, GestureTapCallback onTap) {
return InkWell(
onTap: onTap,
child: Container(
padding: EdgeInsets.only(
left: w(16),
bottom: w(12),
top: w(12),
),
margin: EdgeInsets.only(bottom: w(12)),
decoration: BoxDecoration(
border: Border(
bottom:
BorderSide(color: MyColours.color_E7E7E7, width: w(0.5)))),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Container(
child: Text(
title,
style: TextStyle(
color: MyColours.color_515151,
fontSize: ScreenUtil().setSp(32)),
),
),
Spacer(),
Image.asset(
Utils.getImgPath('arrow_right_new'),
width: ScreenUtil().setWidth(20),
),
HEmptyView(24),
],
),
),
);
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: SystemAppBar('收银管理'),
backgroundColor: MyColours.color_ffffff,
body: SingleChildScrollView(
child: Column(
children: [
// _item('收银资料上传', () {
// NavigatorUtil.goEnterpriseInformationUploadPage(context);
// }),
// _item('微信商户账户开通结果查询', () {}),
_item('门店收款码', () {
NavigatorUtil.goPaymentCodePage(context);
}),
_item('支付返券', () {
NavigatorUtil.goPaymentGiftPage(context);
}),
_item('支付返消费金', () {
NavigatorUtil.goReturnMoneyPage(context);
}),
_item('买单前送消费金', () {
NavigatorUtil.goGiveMoneyBeforePayPage(context);
}),
_item('交易记录', () {
NavigatorUtil.goTransactionRecordHomePage(context);
}),
// _item('提现设置', () {})
],
),
),
);
}
}