feat(boxing): show work order numbers in boxing views

This commit is contained in:
Misaka_Company
2026-05-13 09:48:08 +08:00
parent 62583510b2
commit c2fc884b66
3 changed files with 81 additions and 26 deletions

View File

@@ -19,10 +19,15 @@ class BoxingDetailPage extends StatelessWidget {
children: [
const Text('装箱详情'),
const SizedBox(width: 12),
Text(
paichanNo,
style:
const TextStyle(fontSize: 14, fontWeight: FontWeight.normal),
Expanded(
child: Text(
paichanNo,
style: const TextStyle(
fontSize: 14,
fontWeight: FontWeight.normal,
),
overflow: TextOverflow.ellipsis,
),
),
],
),
@@ -77,11 +82,29 @@ class BoxingDetailPage extends StatelessWidget {
return Padding(
padding: const EdgeInsets.symmetric(vertical: 2),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(item.zongpaiNo, style: const TextStyle(fontSize: 14)),
Text('数量:${item.quantity}',
style: const TextStyle(fontSize: 14)),
Expanded(
flex: 3,
child: Text(
item.zongpaiNo,
style: const TextStyle(fontSize: 14),
overflow: TextOverflow.ellipsis,
),
),
const SizedBox(width: 8),
Expanded(
flex: 2,
child: Text(
item.workOrderNo ?? '--',
style: const TextStyle(fontSize: 14),
overflow: TextOverflow.ellipsis,
),
),
const SizedBox(width: 8),
Text(
'数量:${item.quantity}',
style: const TextStyle(fontSize: 14),
),
],
),
);