update package selection and cartion selection
This commit is contained in:
@@ -16,6 +16,7 @@ import '../../main/util.dart';
|
||||
import '../../widgets/local_text.dart';
|
||||
import '../../widgets/progress.dart';
|
||||
import '../../widgets/step_widget.dart';
|
||||
import '../model/carton_model.dart';
|
||||
import '../model/carton_selection_model.dart';
|
||||
import 'carton_selection_widget.dart';
|
||||
import 'mix_carton_submit.dart';
|
||||
@@ -56,16 +57,21 @@ class _MixCartonEditorState extends State<MixCartonEditor> {
|
||||
}
|
||||
|
||||
_init() async {
|
||||
var s = await context
|
||||
.read<FcsShipmentModel>()
|
||||
.getFcsShipment(widget.carton.fcsShipmentID ?? "");
|
||||
_shipment = s;
|
||||
context.read<CartonSelectionModel>().clearSelection();
|
||||
_cartonSizeType = customCarton;
|
||||
_length = widget.carton.length;
|
||||
_width = widget.carton.width;
|
||||
_height = widget.carton.height;
|
||||
|
||||
context.read<CartonSelectionModel>().clearSelection();
|
||||
var s = await context
|
||||
.read<FcsShipmentModel>()
|
||||
.getFcsShipment(widget.carton.fcsShipmentID ?? "");
|
||||
_shipment = s;
|
||||
|
||||
_cartons = await context
|
||||
.read<CartonModel>()
|
||||
.getCartonsByIds(widget.carton.mixCartonIDs);
|
||||
|
||||
if (mounted) {
|
||||
setState(() {});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user