add fcs shipment in processing,update cargo types for carton
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user