style: improve list layout — larger fonts, adjusted column widths, center alignment

Boxing number module:
- Data row base font size 12→15, quantity column / edit mode unified to 15
- Work order column width flex 24→30, quantity column flex 14→23, action column 64px→54px
- Multi-code boxing total row column width flex 22→26
- Center-align all table headers and data rows

Shelf registration module:
- Data row base font size 12→15
- Center-align all table headers and data rows (location number changed from right-align to center)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Misaka_Company
2026-05-20 16:26:41 +08:00
parent eb833c830d
commit 3fd47f4d7b
2 changed files with 32 additions and 26 deletions

View File

@@ -1717,14 +1717,14 @@ class _BoxingPageState extends State<BoxingPage> with WidgetsBindingObserver {
),
child: Row(
children: [
const Expanded(flex: 22, child: Text('箱号', style: _headerStyle)),
const Expanded(flex: 24, child: Text('工令号', style: _headerStyle)),
const Expanded(flex: 22, child: Text('箱号', textAlign: TextAlign.center, style: _headerStyle)),
const Expanded(flex: 30, child: Text('工令号', textAlign: TextAlign.center, style: _headerStyle)),
const Expanded(
flex: 14,
flex: 23,
child: Text('数量', textAlign: TextAlign.center, style: _headerStyle),
),
const SizedBox(
width: 64,
width: 54,
child: Text('操作', textAlign: TextAlign.center, style: _headerStyle),
),
],
@@ -1749,7 +1749,7 @@ class _BoxingPageState extends State<BoxingPage> with WidgetsBindingObserver {
}
final rowStyle = TextStyle(
fontSize: 12,
fontSize: 15,
fontWeight: FontWeight.w500,
color: Colors.black87,
);
@@ -1772,20 +1772,22 @@ class _BoxingPageState extends State<BoxingPage> with WidgetsBindingObserver {
flex: 22,
child: Text(
'${item.boxNo} 号箱',
textAlign: TextAlign.center,
overflow: TextOverflow.ellipsis,
style: rowStyle.copyWith(fontWeight: FontWeight.w700),
),
),
Expanded(
flex: 24,
flex: 30,
child: Text(
_workOrderNo ?? '--',
textAlign: TextAlign.center,
overflow: TextOverflow.ellipsis,
style: rowStyle,
),
),
Expanded(
flex: 14,
flex: 23,
child: editing
? SizedBox(
width: 52,
@@ -1816,7 +1818,7 @@ class _BoxingPageState extends State<BoxingPage> with WidgetsBindingObserver {
),
),
style: const TextStyle(
fontSize: 14,
fontSize: 15,
fontWeight: FontWeight.w700,
),
),
@@ -1825,14 +1827,14 @@ class _BoxingPageState extends State<BoxingPage> with WidgetsBindingObserver {
'${item.quantity}',
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 12,
fontSize: 15,
fontWeight: FontWeight.w600,
color: deleting ? Colors.red : Colors.black54,
),
),
),
SizedBox(
width: 64,
width: 54,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
@@ -2268,14 +2270,14 @@ class _BoxingPageState extends State<BoxingPage> with WidgetsBindingObserver {
),
child: Row(
children: [
const Expanded(flex: 22, child: Text('总排号', style: _headerStyle)),
const Expanded(flex: 24, child: Text('工令号', style: _headerStyle)),
const Expanded(flex: 26, child: Text('总排号', textAlign: TextAlign.center, style: _headerStyle)),
const Expanded(flex: 30, child: Text('工令号', textAlign: TextAlign.center, style: _headerStyle)),
const Expanded(
flex: 14,
flex: 23,
child: Text('数量', textAlign: TextAlign.center, style: _headerStyle),
),
const SizedBox(
width: 64,
width: 54,
child: Text('操作', textAlign: TextAlign.center, style: _headerStyle),
),
],
@@ -2304,7 +2306,7 @@ class _BoxingPageState extends State<BoxingPage> with WidgetsBindingObserver {
}
final rowStyle = TextStyle(
fontSize: 12,
fontSize: 15,
fontWeight: FontWeight.w500,
color: Colors.black87,
);
@@ -2324,23 +2326,25 @@ class _BoxingPageState extends State<BoxingPage> with WidgetsBindingObserver {
child: Row(
children: [
Expanded(
flex: 22,
flex: 26,
child: Text(
item.zongpaiNo,
textAlign: TextAlign.center,
overflow: TextOverflow.ellipsis,
style: rowStyle.copyWith(fontWeight: FontWeight.w700),
),
),
Expanded(
flex: 24,
flex: 30,
child: Text(
item.workOrderNo ?? '--',
textAlign: TextAlign.center,
overflow: TextOverflow.ellipsis,
style: rowStyle,
),
),
Expanded(
flex: 14,
flex: 23,
child: editing
? SizedBox(
width: 52,
@@ -2370,7 +2374,7 @@ class _BoxingPageState extends State<BoxingPage> with WidgetsBindingObserver {
),
),
style: const TextStyle(
fontSize: 13,
fontSize: 15,
fontWeight: FontWeight.w600,
),
),
@@ -2379,14 +2383,14 @@ class _BoxingPageState extends State<BoxingPage> with WidgetsBindingObserver {
'${item.quantity} / $totalText',
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 12,
fontSize: 15,
fontWeight: FontWeight.w600,
color: deleting ? Colors.red : Colors.green.shade700,
),
),
),
SizedBox(
width: 64,
width: 54,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [

View File

@@ -1018,8 +1018,8 @@ class _RegistrationPageState extends State<RegistrationPage> {
),
child: const Row(
children: [
Expanded(flex: 22, child: Text('总排号', style: _headerStyle)),
Expanded(flex: 18, child: Text('工令号', style: _headerStyle)),
Expanded(flex: 22, child: Text('总排号', textAlign: TextAlign.center, style: _headerStyle)),
Expanded(flex: 18, child: Text('工令号', textAlign: TextAlign.center, style: _headerStyle)),
Expanded(
flex: 12,
child: Text(
@@ -1032,7 +1032,7 @@ class _RegistrationPageState extends State<RegistrationPage> {
flex: 28,
child: Text(
'货位号',
textAlign: TextAlign.right,
textAlign: TextAlign.center,
style: _headerStyle,
),
),
@@ -1148,7 +1148,7 @@ class _RegistrationPageState extends State<RegistrationPage> {
Widget _buildListRow(PaichaOverviewItem item, {required bool isScanned}) {
final rowStyle = TextStyle(
fontSize: 12,
fontSize: 15,
fontWeight: isScanned ? FontWeight.w700 : FontWeight.w500,
color: Colors.black87,
);
@@ -1185,6 +1185,7 @@ class _RegistrationPageState extends State<RegistrationPage> {
flex: 22,
child: Text(
item.zongpaiNo,
textAlign: TextAlign.center,
overflow: TextOverflow.ellipsis,
style: rowStyle,
),
@@ -1193,6 +1194,7 @@ class _RegistrationPageState extends State<RegistrationPage> {
flex: 18,
child: Text(
item.workOrderNo ?? '--',
textAlign: TextAlign.center,
overflow: TextOverflow.ellipsis,
style: rowStyle,
),
@@ -1210,7 +1212,7 @@ class _RegistrationPageState extends State<RegistrationPage> {
flex: 28,
child: Text(
item.locationCode ?? '\u2014',
textAlign: TextAlign.right,
textAlign: TextAlign.center,
overflow: TextOverflow.ellipsis,
style: rowStyle,
),