preparing carton info
This commit is contained in:
@@ -266,7 +266,7 @@
|
|||||||
"box.delivery_type":"Delivery type",
|
"box.delivery_type":"Delivery type",
|
||||||
"box.fcs_shipment_num":"Shipment",
|
"box.fcs_shipment_num":"Shipment",
|
||||||
"box.fcs.id":"FCS ID",
|
"box.fcs.id":"FCS ID",
|
||||||
"box.name":"Customer name",
|
"box.name":"Sender",
|
||||||
"box.phone":"Phone number",
|
"box.phone":"Phone number",
|
||||||
"box.actual_weight":"Actual weight",
|
"box.actual_weight":"Actual weight",
|
||||||
"box.add_cargo":"Add cargo",
|
"box.add_cargo":"Add cargo",
|
||||||
@@ -592,7 +592,7 @@
|
|||||||
"processing.new":"New Processing",
|
"processing.new":"New Processing",
|
||||||
"processing.create":"New Processing",
|
"processing.create":"New Processing",
|
||||||
"processing.update":"Update Processing",
|
"processing.update":"Update Processing",
|
||||||
"processing.consignee.name":"Consignee name",
|
"processing.consignee.name":"Consignee",
|
||||||
"processing.shipper.name":"Sender name",
|
"processing.shipper.name":"Sender name",
|
||||||
"processing.package.select.btn":"Select",
|
"processing.package.select.btn":"Select",
|
||||||
"processing.package.create":"New Package",
|
"processing.package.create":"New Package",
|
||||||
|
|||||||
@@ -266,7 +266,7 @@
|
|||||||
"box.delivery_type":"ပို့ဆောင်ရမည့်အမျိုးအစား",
|
"box.delivery_type":"ပို့ဆောင်ရမည့်အမျိုးအစား",
|
||||||
"box.fcs_shipment_num":"တင်ပို့နံပါတ်",
|
"box.fcs_shipment_num":"တင်ပို့နံပါတ်",
|
||||||
"box.fcs.id":"FCS ID",
|
"box.fcs.id":"FCS ID",
|
||||||
"box.name":"နာမည်",
|
"box.name":"ပေးပို့သူ",
|
||||||
"box.package":"အထုပ်များ",
|
"box.package":"အထုပ်များ",
|
||||||
"box.phone":"ဖုန်းနံပါတ်",
|
"box.phone":"ဖုန်းနံပါတ်",
|
||||||
"box.actual_weight":"အမှန်အလေးချိန်",
|
"box.actual_weight":"အမှန်အလေးချိန်",
|
||||||
@@ -595,7 +595,7 @@
|
|||||||
"processing.new":"လုပ်ဆောင်ခြင်း အသစ်",
|
"processing.new":"လုပ်ဆောင်ခြင်း အသစ်",
|
||||||
"processing.create":"လုပ်ဆောင်ခြင်း အသစ်",
|
"processing.create":"လုပ်ဆောင်ခြင်း အသစ်",
|
||||||
"processing.update":"လုပ်ဆောင်ခြင်း ပြင်ဆင်ခြင်း",
|
"processing.update":"လုပ်ဆောင်ခြင်း ပြင်ဆင်ခြင်း",
|
||||||
"processing.consignee.name":"လက်ခံသူ အမည်",
|
"processing.consignee.name":"လက်ခံသူ",
|
||||||
"processing.shipper.name":"တင်ပို့သူ အမည်",
|
"processing.shipper.name":"တင်ပို့သူ အမည်",
|
||||||
"processing.package.select.btn":"ရွေးချယ်မည်",
|
"processing.package.select.btn":"ရွေးချယ်မည်",
|
||||||
"processing.package.create":"အထုပ် အသစ်",
|
"processing.package.create":"အထုပ် အသစ်",
|
||||||
|
|||||||
@@ -33,8 +33,8 @@ class CargoType {
|
|||||||
calWeight: map['cal_weight']?.toDouble() ?? 0,
|
calWeight: map['cal_weight']?.toDouble() ?? 0,
|
||||||
calRate: map['cal_rate']?.toDouble() ?? 0,
|
calRate: map['cal_rate']?.toDouble() ?? 0,
|
||||||
isCutomDuty: map['custom_duty'] ?? false,
|
isCutomDuty: map['custom_duty'] ?? false,
|
||||||
customDutyFee: (map['custom_duty_fee'] ?? 0).toDouble(),
|
customDutyFee: (map['custom_duty_fee'] ?? 0).toDouble());
|
||||||
qty: (map['qty'] ?? 0).toInt());
|
//qty: (map['qty'] ?? 0).toInt());
|
||||||
}
|
}
|
||||||
|
|
||||||
Map<String, dynamic> toMap() {
|
Map<String, dynamic> toMap() {
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ class _CargoTableState extends State<CargoTable> {
|
|||||||
padding: const EdgeInsets.only(right: 48.0),
|
padding: const EdgeInsets.only(right: 48.0),
|
||||||
child: Align(
|
child: Align(
|
||||||
alignment: Alignment.centerRight,
|
alignment: Alignment.centerRight,
|
||||||
child: Text(total.toStringAsFixed(2),
|
child: Text(total.toStringAsFixed(2)+" lb",
|
||||||
style: TextStyle(fontWeight: FontWeight.bold))),
|
style: TextStyle(fontWeight: FontWeight.bold))),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -175,11 +175,11 @@ class _CartonInfoState extends State<CartonInfo> {
|
|||||||
labelTextKey: "box.number",
|
labelTextKey: "box.number",
|
||||||
//iconData: Ionicons.ios_airplane,
|
//iconData: Ionicons.ios_airplane,
|
||||||
);
|
);
|
||||||
final cartonQrBox = DisplayText(
|
// final cartonQrBox = DisplayText(
|
||||||
// text: _box!.,
|
// // text: _box!.,
|
||||||
//labelTextKey: "box.number",
|
// //labelTextKey: "box.number",
|
||||||
iconData: AntDesign.qrcode,
|
// iconData: AntDesign.qrcode,
|
||||||
);
|
// );
|
||||||
final shipmentBox = DisplayText(
|
final shipmentBox = DisplayText(
|
||||||
text: _box!.fcsShipmentNumber,
|
text: _box!.fcsShipmentNumber,
|
||||||
labelTextKey: "box.fcs_shipment_num",
|
labelTextKey: "box.fcs_shipment_num",
|
||||||
@@ -215,14 +215,17 @@ class _CartonInfoState extends State<CartonInfo> {
|
|||||||
text1: _box!.fcsID != null ? _box!.fcsID : "",
|
text1: _box!.fcsID != null ? _box!.fcsID : "",
|
||||||
labelTextKey: "processing.consignee.name",
|
labelTextKey: "processing.consignee.name",
|
||||||
//maxLines: 2,
|
//maxLines: 2,
|
||||||
//iconData: Ionicons.document_text_outline,
|
// iconData: Ionicons.document_text_outline,
|
||||||
);
|
);
|
||||||
|
|
||||||
final consigneeBox = Container(
|
final consigneeBox = Container(
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
consigneefcsIDBox,
|
|
||||||
consigneeNameBox,
|
consigneeNameBox,
|
||||||
|
IconButton(icon:Icon(Ionicons.document_text_outline),
|
||||||
|
onPressed:() {},),
|
||||||
|
Text("Bill to",style:TextStyle(color:Color.fromARGB(255, 57, 80, 233)))
|
||||||
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
@@ -285,6 +288,7 @@ class _CartonInfoState extends State<CartonInfo> {
|
|||||||
final packageBox = DisplayText(
|
final packageBox = DisplayText(
|
||||||
text: "203FVH",
|
text: "203FVH",
|
||||||
labelTextKey: "box.package",
|
labelTextKey: "box.package",
|
||||||
|
maxLines:20,
|
||||||
//iconData: AntDesign.CodeSandbox,
|
//iconData: AntDesign.CodeSandbox,
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -368,12 +372,19 @@ class _CartonInfoState extends State<CartonInfo> {
|
|||||||
Padding(padding: EdgeInsets.only(left: 30),
|
Padding(padding: EdgeInsets.only(left: 30),
|
||||||
child:
|
child:
|
||||||
Row(
|
Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.end,
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
children: [Expanded(child: cartonTypeBox,
|
children: [Flexible(child: cartonTypeBox,
|
||||||
flex: 1,
|
//flex: 1,
|
||||||
),
|
),
|
||||||
Flexible(
|
Expanded(
|
||||||
child: cartonQrBox,
|
child: IconButton(
|
||||||
|
alignment: Alignment.centerLeft,
|
||||||
|
iconSize: 30,
|
||||||
|
icon: const Icon( AntDesign.qrcode),
|
||||||
|
onPressed: () {
|
||||||
|
// ...
|
||||||
|
},
|
||||||
|
),
|
||||||
),
|
),
|
||||||
],)),
|
],)),
|
||||||
|
|
||||||
@@ -381,9 +392,9 @@ class _CartonInfoState extends State<CartonInfo> {
|
|||||||
Padding(padding: EdgeInsets.only(left: 30),
|
Padding(padding: EdgeInsets.only(left: 30),
|
||||||
child:
|
child:
|
||||||
Row(
|
Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.end,
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
children: [Expanded(child: shipmentBox,
|
children: [Flexible(child: shipmentBox,
|
||||||
flex: 1,
|
//flex: 1,
|
||||||
),
|
),
|
||||||
Flexible(
|
Flexible(
|
||||||
child: deliveryBox,
|
child: deliveryBox,
|
||||||
@@ -396,14 +407,22 @@ class _CartonInfoState extends State<CartonInfo> {
|
|||||||
Flexible(child: customerNameBox,
|
Flexible(child: customerNameBox,
|
||||||
),
|
),
|
||||||
|
|
||||||
Flexible(
|
// Flexible(
|
||||||
child: consigneeNameBox,
|
// child: consigneeNameBox,
|
||||||
),
|
// ),
|
||||||
Flexible(child:
|
new Flexible(child:
|
||||||
Column(
|
Column(
|
||||||
children: [
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
Icon(Ionicons.document_text_outline),
|
children:<Widget> [
|
||||||
Text("Bill to",style:TextStyle(color:Colors.blue))
|
consigneeNameBox,
|
||||||
|
new Padding(
|
||||||
|
padding: const EdgeInsets.fromLTRB(0, 30.0, 0.0, 0.0),
|
||||||
|
child:
|
||||||
|
IconButton(icon:Icon(Ionicons.document_text_outline),
|
||||||
|
onPressed:() {},)
|
||||||
|
),
|
||||||
|
// Text("Bill to",style:TextStyle(color:Color.fromARGB(255, 57, 80, 233)))
|
||||||
|
|
||||||
]
|
]
|
||||||
)),
|
)),
|
||||||
],)),
|
],)),
|
||||||
@@ -432,16 +451,16 @@ class _CartonInfoState extends State<CartonInfo> {
|
|||||||
Padding(padding: EdgeInsets.only(left: 30),
|
Padding(padding: EdgeInsets.only(left: 30),
|
||||||
child:
|
child:
|
||||||
packageBox),
|
packageBox),
|
||||||
isMixBox ? mixTypeBox : Container(),
|
// isMixBox ? mixTypeBox : Container(),
|
||||||
isMixBox ? LocalTitle(textKey: "box.mix_caton_title") : Container(),
|
// isMixBox ? LocalTitle(textKey: "box.mix_caton_title") : Container(),
|
||||||
isMixBox
|
// isMixBox
|
||||||
? Column(children: _getCartons(context, _box!.mixCartons))
|
// ? Column(children: _getCartons(context, _box!.mixCartons))
|
||||||
: Container(),
|
// : Container(),
|
||||||
isFromPackages || isSmallBag
|
// isFromPackages || isSmallBag
|
||||||
? CartonPackageTable(
|
// ? CartonPackageTable(
|
||||||
packages: _box!.packages,
|
// packages: _box!.packages,
|
||||||
)
|
// )
|
||||||
: Container(),
|
// : Container(),
|
||||||
// isMixBox ? Container() : LocalTitle(textKey: "box.cargo.type"),
|
// isMixBox ? Container() : LocalTitle(textKey: "box.cargo.type"),
|
||||||
isMixBox ? Container() : cargoTableBox,
|
isMixBox ? Container() : cargoTableBox,
|
||||||
...(isFromPackages || isFromCartons
|
...(isFromPackages || isFromCartons
|
||||||
|
|||||||
Reference in New Issue
Block a user