Commit 5dce5e74 authored by xuexirong's avatar xuexirong

订单列表添加下单时间

parent d7799985
...@@ -20,9 +20,9 @@ class DioUtil { ...@@ -20,9 +20,9 @@ class DioUtil {
static final int tokenError = 77777; static final int tokenError = 77777;
static final DioUtil _singleton = DioUtil._init(); static final DioUtil _singleton = DioUtil._init();
static final String baseUrl = "http://59.110.141.131:4042/"; //static final String baseUrl = "http://59.110.141.131:4042/";
//static final String baseUrl = "http://192.168.1.116:4042/"; //static final String baseUrl = "http://192.168.1.116:4042/";
//static final String baseUrl = "http://192.168.0.106:4042/"; static final String baseUrl = "http://192.168.1.121:4042/";
bool _isDebug = !bool.fromEnvironment("dart.vm.product"); bool _isDebug = !bool.fromEnvironment("dart.vm.product");
Dio _dio; Dio _dio;
......
...@@ -105,6 +105,7 @@ class MainCardItem { ...@@ -105,6 +105,7 @@ class MainCardItem {
String endTime; String endTime;
String serviceTime; String serviceTime;
String productName; String productName;
String createdTime;
num status; num status;
num addressType; num addressType;
...@@ -154,6 +155,7 @@ class MainCardItem { ...@@ -154,6 +155,7 @@ class MainCardItem {
MainCardItem( MainCardItem(
{this.patientName, {this.patientName,
this.nurseName, this.nurseName,
this.createdTime,
this.orderAddress, this.orderAddress,
this.nurseId, this.nurseId,
this.childOrderId, this.childOrderId,
...@@ -178,6 +180,7 @@ class MainCardItem { ...@@ -178,6 +180,7 @@ class MainCardItem {
productName = json['productName']; productName = json['productName'];
addressType = json['addressType']; addressType = json['addressType'];
status = json['status']; status = json['status'];
createdTime = json['createdTime'];
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
...@@ -194,6 +197,7 @@ class MainCardItem { ...@@ -194,6 +197,7 @@ class MainCardItem {
data['productName'] = this.productName; data['productName'] = this.productName;
data['addressType'] = this.addressType; data['addressType'] = this.addressType;
data['status'] = this.status; data['status'] = this.status;
data['createdTime'] = this.createdTime;
return data; return data;
} }
} }
...@@ -110,6 +110,7 @@ class OrderEntity { ...@@ -110,6 +110,7 @@ class OrderEntity {
String endTime; String endTime;
String serviceTime; String serviceTime;
String productName; String productName;
String createdTime;
num status; num status;
num addressType; num addressType;
...@@ -151,6 +152,7 @@ class OrderEntity { ...@@ -151,6 +152,7 @@ class OrderEntity {
OrderEntity( OrderEntity(
{this.patientName, {this.patientName,
this.nurseName, this.nurseName,
this.createdTime,
this.orderAddress, this.orderAddress,
this.price, this.price,
this.nurseId, this.nurseId,
...@@ -177,6 +179,7 @@ class OrderEntity { ...@@ -177,6 +179,7 @@ class OrderEntity {
productName = json['productName']; productName = json['productName'];
status = json['status']; status = json['status'];
addressType = json['addressType']; addressType = json['addressType'];
createdTime = json['createdTime'];
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
...@@ -194,6 +197,7 @@ class OrderEntity { ...@@ -194,6 +197,7 @@ class OrderEntity {
data['productName'] = this.productName; data['productName'] = this.productName;
data['status'] = this.status; data['status'] = this.status;
data['addressType'] = this.addressType; data['addressType'] = this.addressType;
data['createdTime'] = this.createdTime;
return data; return data;
} }
} }
...@@ -398,8 +398,8 @@ class _MainItemPageState extends State<MainItemPage> ...@@ -398,8 +398,8 @@ class _MainItemPageState extends State<MainItemPage>
], ],
child: Column( child: Column(
children: <Widget>[ children: <Widget>[
getDateItem('服务时间', entity.serviceTime, entity.childOrderId, getNormalItem('下单时间', entity.createdTime, marginTop: false),
marginTop: false), getDateItem('服务时间', entity.serviceTime, entity.childOrderId),
getNormalItem('康复项目', entity.productName, marginTop: true), getNormalItem('康复项目', entity.productName, marginTop: true),
getNormalItem('被护理人', entity.patientName, marginTop: true), getNormalItem('被护理人', entity.patientName, marginTop: true),
Offstage( Offstage(
......
...@@ -391,6 +391,7 @@ class _OrderCenterItemPageState extends State<OrderCenterItemPage> ...@@ -391,6 +391,7 @@ class _OrderCenterItemPageState extends State<OrderCenterItemPage>
margin: EdgeInsets.only(top: getSize(14.5)), margin: EdgeInsets.only(top: getSize(14.5)),
color: Color.fromRGBO(0, 0, 0, 0.05), color: Color.fromRGBO(0, 0, 0, 0.05),
), ),
getNormalItem('下单时间', entity.createdTime, marginTop: true),
getDateItem('服务时间', entity, marginTop: true), getDateItem('服务时间', entity, marginTop: true),
getNormalItem('康复项目', entity.productName, marginTop: true), getNormalItem('康复项目', entity.productName, marginTop: true),
getNormalItem('项目价格', entity.price.toString(), marginTop: true), getNormalItem('项目价格', entity.price.toString(), marginTop: true),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment