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

View File

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