add fcs shipment in processing,update cargo types for carton

This commit is contained in:
tzw
2025-03-21 18:19:52 +06:30
parent e208734dfa
commit 3bfbca35fc
34 changed files with 1227 additions and 665 deletions

View File

@@ -70,10 +70,10 @@ class _PackageInfoState extends State<PackageInfo> {
}
_loadShipment() async {
if (widget.package.shipmentId == null) return;
if (widget.package.fcsShipmentId == null) return;
var s = await context
.read<FcsShipmentModel>()
.getFcsShipment(widget.package.shipmentId!);
.getFcsShipment(widget.package.fcsShipmentId!);
_shipment = s;
if (mounted) {
setState(() {});
@@ -178,17 +178,17 @@ class _PackageInfoState extends State<PackageInfo> {
iconData: Ionicons.ios_airplane,
),
),
Flexible(
child: DisplayText(
text: _shipment != null
? _shipment!.processingDate != null
? dateFormatter.format(_shipment!.processingDate!)
: ""
: "",
labelTextKey: "package.processing.date",
iconData: Icons.date_range,
),
),
// Flexible(
// child: DisplayText(
// text: _shipment != null
// ? _shipment!.processingDate != null
// ? dateFormatter.format(_shipment!.processingDate!)
// : ""
// : "",
// labelTextKey: "package.processing.date",
// iconData: Icons.date_range,
// ),
// ),
],
),
Row(