style: 优化列表布局 — 字号增大、列宽调整、居中对齐
装箱编号模块: - 数据行基础字号 12→15,数量列/编辑态统一为 15 - 工令号列宽 flex 24→30,数量列 flex 14→23,操作列 64px→54px - 多码凑箱总排号列宽 flex 22→26 - 表头和数据行全部居中对齐 上架登记模块: - 数据行基础字号 12→15 - 表头和数据行全部居中对齐(货位号从右对齐改为居中) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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: [
|
||||
|
||||
@@ -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,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user