|
@@ -449,8 +449,7 @@ class _ItemInfoWidgetState extends State < ItemInfoWidget > {
|
|
|
barrierDismissible: false,
|
|
barrierDismissible: false,
|
|
|
builder: (BuildContext context) {
|
|
builder: (BuildContext context) {
|
|
|
//打印
|
|
//打印
|
|
|
- OrderDetailObj parentObj = OrderDetailObj.fromJson(resp.data);
|
|
|
|
|
- if (parentObj.success) {
|
|
|
|
|
|
|
+ OrderDetailObj parentObj = OrderDetailObj.fromJson(resp.data);
|
|
|
OrderDetailData data = parentObj.data;
|
|
OrderDetailData data = parentObj.data;
|
|
|
getKey('printType').then((printType) {
|
|
getKey('printType').then((printType) {
|
|
|
getKey('stationName').then((stationName) {
|
|
getKey('stationName').then((stationName) {
|
|
@@ -529,27 +528,25 @@ class _ItemInfoWidgetState extends State < ItemInfoWidget > {
|
|
|
//调用对话框
|
|
//调用对话框
|
|
|
text: '订单修改成功!',
|
|
text: '订单修改成功!',
|
|
|
childCallback: (val) {
|
|
childCallback: (val) {
|
|
|
- if (val) {
|
|
|
|
|
Navigator.pop(context, true);
|
|
Navigator.pop(context, true);
|
|
|
- }
|
|
|
|
|
},
|
|
},
|
|
|
);
|
|
);
|
|
|
- } else {
|
|
|
|
|
- showDialog < Null > (
|
|
|
|
|
- context: context,
|
|
|
|
|
- barrierDismissible: false,
|
|
|
|
|
- builder: (BuildContext context) {
|
|
|
|
|
- return MyAlertDialog(
|
|
|
|
|
- text: parentObj.msg, childCallback: (val) {
|
|
|
|
|
- Navigator.pop(context, true);
|
|
|
|
|
- });
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
});
|
|
});
|
|
|
} else {
|
|
} else {
|
|
|
setState(() {
|
|
setState(() {
|
|
|
submitStatus = true;
|
|
submitStatus = true;
|
|
|
});
|
|
});
|
|
|
|
|
+ OrderDetailObj parentObj = OrderDetailObj.fromJson(resp.data);
|
|
|
|
|
+ showDialog < Null > (
|
|
|
|
|
+ context: context, //BuildContext对象
|
|
|
|
|
+ barrierDismissible: false,
|
|
|
|
|
+ builder: (BuildContext context) {
|
|
|
|
|
+ return MyAlertDialog( //调用对话框
|
|
|
|
|
+ text: parentObj.msg, childCallback: (val) {
|
|
|
|
|
+ Navigator.pop(context, true);
|
|
|
|
|
+ },
|
|
|
|
|
+ );
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|