daxu0403 7 роки тому
батько
коміт
246c50d81f
2 змінених файлів з 9 додано та 3 видалено
  1. 1 1
      lib/pages/order_management_page.dart
  2. 8 2
      lib/util/models.dart

+ 1 - 1
lib/pages/order_management_page.dart

@@ -696,7 +696,7 @@ class _QueryWidgetState extends State < QueryWidget > {
                                     "[dealerTel]": "${data.sendCompanyPhone ?? ''}",
                                     "[repairName]": "${data.receiptCompanyName ?? ''}",
                                     "[repairTel]": "${data.receiptCompanyPhone ?? ''}",
-                                    "[endStationName]": "收件站点",
+                                    "[endStationName]": "${data.receiptStationName}",
                                     "[goodsLineCode]": "${data.lineCode ?? ''}",
                                     "[goodsLine]": "${data.lineName ?? ''}",
                                     "[repairAddress]": "${receiptAddress?? ''}",

+ 8 - 2
lib/util/models.dart

@@ -474,6 +474,8 @@ class OrderDetailData {
   String senderPhone; //发件人电话
   int stationId;
   String stationName;
+  String receiptStationName;
+  String receiptStationCode;
   OrderDetailData(
       {
       this.createTime,
@@ -525,7 +527,9 @@ class OrderDetailData {
       this.sendCompanyPhone,
       this.senderPhone,
       this.stationId,
-      this.stationName
+      this.stationName,
+      this.receiptStationName,
+      this.receiptStationCode,
       });
 
   factory OrderDetailData.fromJson(Map<String, dynamic> json) {
@@ -579,7 +583,9 @@ class OrderDetailData {
         senderPhone: json['senderPhone'],
         sendCompanyPhone:json['sendCompanyPhone'],
         stationId:json['stationId'],
-        stationName:json['stationName']
+        stationName:json['stationName'],
+        receiptStationName:json['receiptStationName'],
+        receiptStationCode:json['receiptStationCode'],
         );
         
   }