|
@@ -20,15 +20,15 @@ class TextCell extends StatelessWidget {
|
20
|
20
|
text: TextSpan(children: <InlineSpan>[
|
21
|
21
|
TextSpan(
|
22
|
22
|
text: title,
|
23
|
|
- style: const TextStyle(
|
24
|
|
- color: Color(0xff666666),
|
25
|
|
- fontSize: 16,
|
|
23
|
+ style: TextStyle(
|
|
24
|
+ color: const Color(0xff666666),
|
|
25
|
+ fontSize: 16.sp,
|
26
|
26
|
fontWeight: FontWeight.bold)),
|
27
|
27
|
TextSpan(
|
28
|
28
|
text: value,
|
29
|
|
- style: const TextStyle(
|
30
|
|
- color: Color(0xff222222),
|
31
|
|
- fontSize: 16,
|
|
29
|
+ style: TextStyle(
|
|
30
|
+ color: const Color(0xff222222),
|
|
31
|
+ fontSize: 16.sp,
|
32
|
32
|
fontWeight: FontWeight.bold)),
|
33
|
33
|
]),
|
34
|
34
|
);
|
|
@@ -47,8 +47,8 @@ class OrderListCard extends StatelessWidget {
|
47
|
47
|
Widget build(BuildContext context) {
|
48
|
48
|
return Container(
|
49
|
49
|
width: 375.w,
|
50
|
|
- height: 345.h,
|
51
|
|
- margin: const EdgeInsets.fromLTRB(0, 0, 0, 20),
|
|
50
|
+ margin: EdgeInsets.only(bottom: 20.h),
|
|
51
|
+ padding: EdgeInsets.symmetric(vertical: 30.h, horizontal: 15.w),
|
52
|
52
|
decoration: const BoxDecoration(color: Colors.white, boxShadow: [
|
53
|
53
|
BoxShadow(
|
54
|
54
|
color: Colors.black12,
|
|
@@ -58,145 +58,147 @@ class OrderListCard extends StatelessWidget {
|
58
|
58
|
)
|
59
|
59
|
]),
|
60
|
60
|
child: Row(
|
61
|
|
- crossAxisAlignment: CrossAxisAlignment.start,
|
62
|
|
- mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
63
|
61
|
children: [
|
64
|
62
|
Container(
|
65
|
|
- margin: const EdgeInsets.fromLTRB(15, 20, 15, 0),
|
66
|
|
- width: 18.0,
|
67
|
|
- height: 275.h,
|
|
63
|
+ margin: EdgeInsets.only(right: 15.w),
|
|
64
|
+ width: 17.w,
|
|
65
|
+ height: 320.h,
|
68
|
66
|
child: const Image(
|
69
|
67
|
image: AssetImage('images/ordersLeft.png'),
|
70
|
68
|
),
|
71
|
69
|
),
|
72
|
|
- Expanded(
|
73
|
|
- child: Column(
|
74
|
|
- crossAxisAlignment: CrossAxisAlignment.start,
|
75
|
|
- children: [
|
76
|
|
- Container(
|
77
|
|
- width: 320.w,
|
78
|
|
- margin: const EdgeInsets.fromLTRB(0, 10, 0, 15),
|
79
|
|
- padding: const EdgeInsets.fromLTRB(0, 0, 0, 20),
|
80
|
|
- decoration: const BoxDecoration(
|
81
|
|
- border: Border(
|
82
|
|
- bottom:
|
83
|
|
- BorderSide(width: 0.5, color: Color(0x20000000)
|
84
|
|
- // 0x17000000
|
85
|
|
- ))),
|
86
|
|
- child: GestureDetector(
|
87
|
|
- child: Row(
|
88
|
|
- mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
89
|
|
- children: [
|
90
|
|
- TextCell(title: '订单编号:', value: item.orderNo),
|
91
|
|
- Bold(
|
92
|
|
- text: "详情 >>",
|
93
|
|
- fontSize: 16.sp,
|
94
|
|
- color: const Color(0xff222222)),
|
95
|
|
- ],
|
|
70
|
+ Column(
|
|
71
|
+ crossAxisAlignment: CrossAxisAlignment.start,
|
|
72
|
+ children: [
|
|
73
|
+ Container(
|
|
74
|
+ width: 313.w,
|
|
75
|
+ margin: EdgeInsets.only(bottom: 20.h),
|
|
76
|
+ padding: EdgeInsets.only(bottom: 20.h),
|
|
77
|
+ decoration: const BoxDecoration(
|
|
78
|
+ border: Border(
|
|
79
|
+ bottom: BorderSide(
|
|
80
|
+ width: 0.5,
|
|
81
|
+ color: Color(0x20000000),
|
96
|
82
|
),
|
97
|
|
- onTap: () {
|
98
|
|
- Get.toNamed('/orderPageInfo', arguments: {
|
99
|
|
- 'orderId': item.orderId,
|
100
|
|
- 'title': processSign.label,
|
101
|
|
- 'styleColor': processSign.color
|
102
|
|
- });
|
103
|
|
- },
|
104
|
83
|
),
|
105
|
84
|
),
|
106
|
|
- Expanded(
|
107
|
|
- child: Column(
|
108
|
|
- crossAxisAlignment: CrossAxisAlignment.start,
|
109
|
|
- children: [
|
110
|
|
- Padding(
|
111
|
|
- padding: const EdgeInsets.fromLTRB(0, 0, 0, 15),
|
112
|
|
- child:
|
113
|
|
- TextCell(title: '农机名称:', value: item.machineryName),
|
114
|
|
- ),
|
115
|
|
- Padding(
|
116
|
|
- padding: const EdgeInsets.fromLTRB(0, 0, 0, 15),
|
117
|
|
- child: TextCell(
|
118
|
|
- title: '作业面积:', value: item.amount.toString()),
|
119
|
|
- ),
|
120
|
|
- Padding(
|
121
|
|
- padding: const EdgeInsets.fromLTRB(0, 0, 0, 15),
|
122
|
|
- child: TextCell(
|
123
|
|
- title: '需求时间:',
|
124
|
|
- value: DateFormat("yyyy-MM-dd").format(
|
125
|
|
- DateTime.parse(item.appointmentDate.toString()))),
|
126
|
|
- ),
|
127
|
|
- Padding(
|
128
|
|
- padding: const EdgeInsets.fromLTRB(0, 0, 0, 15),
|
129
|
|
- child: TextCell(
|
130
|
|
- title: '需求时间:',
|
131
|
|
- value: DateFormat("yyyy-MM-dd").format(
|
132
|
|
- DateTime.parse(item.createDate.toString()))),
|
133
|
|
- ),
|
134
|
|
- ],
|
135
|
|
- )),
|
136
|
|
- Container(
|
137
|
|
- margin: const EdgeInsets.fromLTRB(0, 0, 0, 30),
|
138
|
|
- padding: const EdgeInsets.fromLTRB(0, 20, 0, 0),
|
139
|
|
- decoration: const BoxDecoration(
|
140
|
|
- border: Border(
|
141
|
|
- top: BorderSide(
|
142
|
|
- width: 0.5, color: Color(0x20000000)))),
|
143
|
|
- width: 320.w,
|
|
85
|
+ child: GestureDetector(
|
144
|
86
|
child: Row(
|
145
|
87
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
146
|
88
|
children: [
|
147
|
|
- RichText(
|
148
|
|
- text: TextSpan(children: <InlineSpan>[
|
149
|
|
- const TextSpan(
|
150
|
|
- text: '订单状态:',
|
151
|
|
- style: TextStyle(
|
152
|
|
- color: Color(0xff666666),
|
153
|
|
- fontSize: 16,
|
154
|
|
- fontWeight: FontWeight.bold)),
|
|
89
|
+ TextCell(title: '订单编号:', value: item.orderNo),
|
|
90
|
+ Bold(
|
|
91
|
+ text: "详情 >>",
|
|
92
|
+ fontSize: 16.sp,
|
|
93
|
+ color: const Color(0xff222222),
|
|
94
|
+ ),
|
|
95
|
+ ],
|
|
96
|
+ ),
|
|
97
|
+ onTap: () {
|
|
98
|
+ Get.toNamed('/orderPageInfo', arguments: {
|
|
99
|
+ 'orderId': item.orderId,
|
|
100
|
+ 'title': processSign.label,
|
|
101
|
+ 'styleColor': processSign.color
|
|
102
|
+ });
|
|
103
|
+ },
|
|
104
|
+ ),
|
|
105
|
+ ),
|
|
106
|
+ Padding(
|
|
107
|
+ padding: EdgeInsets.only(bottom: 30.h),
|
|
108
|
+ child: TextCell(title: '农机名称:', value: item.machineryName),
|
|
109
|
+ ),
|
|
110
|
+ Padding(
|
|
111
|
+ padding: EdgeInsets.only(bottom: 30.h),
|
|
112
|
+ child: TextCell(title: '作业面积:', value: item.amount.toString()),
|
|
113
|
+ ),
|
|
114
|
+ Padding(
|
|
115
|
+ padding: EdgeInsets.only(bottom: 30.h),
|
|
116
|
+ child: TextCell(
|
|
117
|
+ title: '需求时间:',
|
|
118
|
+ value: DateFormat("yyyy-MM-dd").format(
|
|
119
|
+ DateTime.parse(item.appointmentDate.toString()))),
|
|
120
|
+ ),
|
|
121
|
+ TextCell(
|
|
122
|
+ title: '下单时间:',
|
|
123
|
+ value: DateFormat("yyyy-MM-dd")
|
|
124
|
+ .format(DateTime.parse(item.createDate.toString())),
|
|
125
|
+ ),
|
|
126
|
+ Container(
|
|
127
|
+ margin: EdgeInsets.only(top: 22.h),
|
|
128
|
+ padding: EdgeInsets.only(top: 30.h),
|
|
129
|
+ decoration: const BoxDecoration(
|
|
130
|
+ border: Border(
|
|
131
|
+ top: BorderSide(
|
|
132
|
+ width: 0.5,
|
|
133
|
+ color: Color(0x20000000),
|
|
134
|
+ ),
|
|
135
|
+ ),
|
|
136
|
+ ),
|
|
137
|
+ width: 313.w,
|
|
138
|
+ child: Row(
|
|
139
|
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
140
|
+ children: [
|
|
141
|
+ RichText(
|
|
142
|
+ text: TextSpan(
|
|
143
|
+ children: <InlineSpan>[
|
155
|
144
|
TextSpan(
|
156
|
|
- text: processSign.label,
|
157
|
|
- style: TextStyle(
|
158
|
|
- color: processSign.color,
|
159
|
|
- fontSize: 16,
|
160
|
|
- fontWeight: FontWeight.bold)),
|
161
|
|
- ]),
|
|
145
|
+ text: '订单状态:',
|
|
146
|
+ style: TextStyle(
|
|
147
|
+ color: const Color(0xff666666),
|
|
148
|
+ fontSize: 16.sp,
|
|
149
|
+ fontWeight: FontWeight.bold),
|
|
150
|
+ ),
|
|
151
|
+ TextSpan(
|
|
152
|
+ text: processSign.label,
|
|
153
|
+ style: TextStyle(
|
|
154
|
+ color: processSign.color,
|
|
155
|
+ fontSize: 16.sp,
|
|
156
|
+ fontWeight: FontWeight.bold),
|
|
157
|
+ ),
|
|
158
|
+ ],
|
162
|
159
|
),
|
163
|
|
- Row(
|
164
|
|
- children: [
|
165
|
|
- const Text('费用:',
|
166
|
|
- style: TextStyle(
|
167
|
|
- color: Color(0xff666666),
|
168
|
|
- fontSize: 16,
|
169
|
|
- fontWeight: FontWeight.bold)),
|
170
|
|
- LinearGradientText(
|
171
|
|
- colors: const <Color>[
|
172
|
|
- Color(0xFFFA7878),
|
173
|
|
- Color(0xFFB61515),
|
174
|
|
- ],
|
175
|
|
- child: RichText(
|
176
|
|
- text: TextSpan(children: <InlineSpan>[
|
|
160
|
+ ),
|
|
161
|
+ Row(
|
|
162
|
+ children: [
|
|
163
|
+ Text(
|
|
164
|
+ '费用:',
|
|
165
|
+ style: TextStyle(
|
|
166
|
+ color: const Color(0xff666666),
|
|
167
|
+ fontSize: 16.sp,
|
|
168
|
+ fontWeight: FontWeight.bold),
|
|
169
|
+ ),
|
|
170
|
+ LinearGradientText(
|
|
171
|
+ colors: const <Color>[
|
|
172
|
+ Color(0xFFFA7878),
|
|
173
|
+ Color(0xFFB61515),
|
|
174
|
+ ],
|
|
175
|
+ child: RichText(
|
|
176
|
+ text: TextSpan(
|
|
177
|
+ children: <InlineSpan>[
|
177
|
178
|
TextSpan(
|
178
|
|
- text:
|
179
|
|
- ((item.charges ?? 0) / 100).toString(),
|
180
|
|
- style: const TextStyle(
|
181
|
|
- fontSize: 16,
|
182
|
|
- fontWeight: FontWeight.bold,
|
183
|
|
- )),
|
184
|
|
- const TextSpan(
|
185
|
|
- text: "元",
|
186
|
|
- style: TextStyle(
|
187
|
|
- fontSize: 16,
|
188
|
|
- fontWeight: FontWeight.bold,
|
189
|
|
- )),
|
190
|
|
- ]),
|
|
179
|
+ text: ((item.charges ?? 0) / 100).toString(),
|
|
180
|
+ style: TextStyle(
|
|
181
|
+ fontSize: 16.sp,
|
|
182
|
+ fontWeight: FontWeight.bold,
|
|
183
|
+ ),
|
|
184
|
+ ),
|
|
185
|
+ TextSpan(
|
|
186
|
+ text: "元",
|
|
187
|
+ style: TextStyle(
|
|
188
|
+ fontSize: 16.sp,
|
|
189
|
+ fontWeight: FontWeight.bold,
|
|
190
|
+ ),
|
|
191
|
+ ),
|
|
192
|
+ ],
|
191
|
193
|
),
|
192
|
194
|
),
|
193
|
|
- ],
|
194
|
|
- ),
|
195
|
|
- ],
|
196
|
|
- ),
|
|
195
|
+ ),
|
|
196
|
+ ],
|
|
197
|
+ ),
|
|
198
|
+ ],
|
197
|
199
|
),
|
198
|
|
- ],
|
199
|
|
- ),
|
|
200
|
+ ),
|
|
201
|
+ ],
|
200
|
202
|
),
|
201
|
203
|
],
|
202
|
204
|
),
|