out_ticket_view.dart
3.8 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
import 'package:cp_offline_manage/common/colors.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'out_ticket_logic.dart';
class Out_ticketPage extends GetView<Out_ticketLogic> {
const Out_ticketPage({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('票务管理'),
centerTitle: true,
backgroundColor: ColorConfig.themeColor,
actions: [
Container(
alignment: Alignment.center,
margin: EdgeInsets.only(right: 20),
child: InkWell(child: Text('历史记录'), onTap: () { controller.jump_history(); },),
)
],
),
body: Column(
children: [
Container(
alignment: Alignment.center,
margin: const EdgeInsets.only(top: 15),
child: const Text('今日票务总览', style: TextStyle(fontSize: 20, color: ColorConfig.color33, fontWeight: FontWeight.bold),),
),
const SizedBox(height: 8,),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: const [
Text('今日派票: 200票'),
SizedBox(width: 100,),
Text('今日已出票: 186票'),
],
),
const SizedBox(height: 8,),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: const [
Text('今日未出票: 14票'),
SizedBox(width: 100,),
Text('今日错票: 5票'),
],
),
Container(
alignment: Alignment.centerLeft,
margin: const EdgeInsets.only(left: 12, top: 15),
child: const Text('各店情况', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 18),),
),
const SizedBox(height: 12,),
const Divider(height: 1, color: ColorConfig.colorCBCBCB,),
Expanded(
child: ListView.builder(
itemBuilder: (item, index) {
return InkWell(
onTap: controller.jump_shop_detail,
child: Container(
alignment: Alignment.centerLeft,
padding: EdgeInsets.symmetric(horizontal: 12),
height: 64,
color: index %2 == 0 ? ColorConfig.colorF2F2F2 : ColorConfig.white,
child: Row(
children: [
Expanded(
child: Row(
children: [
Text('体育路${index+1}门店'),
const SizedBox(width: 10,),
Text('总共(18票)', style: TextStyle(color: ColorConfig.themeColor),),
const SizedBox(width: 10,),
Text('已出(18票)', style: TextStyle(color: ColorConfig.color_999)),
const SizedBox(width: 10,),
Text('错票(0票)', style: TextStyle(color: ColorConfig.color548DEE)),
],
)
),
Icon(Icons.chevron_right, size: 24, color: ColorConfig.color99,)
],
),
),
);
},
itemCount: 20,
)
)
],
)
);
}
}