|
|
|
@ -1,8 +1,8 @@
|
|
|
|
|
class FixedDetailModel {
|
|
|
|
|
AppReportRepairVo appReportRepairVo;
|
|
|
|
|
List<AppProcessRecordVo> appProcessRecordVo;
|
|
|
|
|
List<String> appMaintenanceResultVo; //暂无用 待修改
|
|
|
|
|
List<String> appDispatchListVo; //暂无用 待修改
|
|
|
|
|
Null appMaintenanceResultVo;
|
|
|
|
|
List<AppDispatchListVo> appDispatchListVo;
|
|
|
|
|
|
|
|
|
|
FixedDetailModel(
|
|
|
|
|
{this.appReportRepairVo,
|
|
|
|
@ -20,8 +20,13 @@ class FixedDetailModel {
|
|
|
|
|
appProcessRecordVo.add(new AppProcessRecordVo.fromJson(v));
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
appMaintenanceResultVo = json['appMaintenanceResultVo'].cast<String>();
|
|
|
|
|
appDispatchListVo = json['appDispatchListVo'].cast<String>();
|
|
|
|
|
appMaintenanceResultVo = json['appMaintenanceResultVo'];
|
|
|
|
|
if (json['appDispatchListVo'] != null) {
|
|
|
|
|
appDispatchListVo = new List<AppDispatchListVo>();
|
|
|
|
|
json['appDispatchListVo'].forEach((v) {
|
|
|
|
|
appDispatchListVo.add(new AppDispatchListVo.fromJson(v));
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
@ -34,7 +39,10 @@ class FixedDetailModel {
|
|
|
|
|
this.appProcessRecordVo.map((v) => v.toJson()).toList();
|
|
|
|
|
}
|
|
|
|
|
data['appMaintenanceResultVo'] = this.appMaintenanceResultVo;
|
|
|
|
|
data['appDispatchListVo'] = this.appDispatchListVo;
|
|
|
|
|
if (this.appDispatchListVo != null) {
|
|
|
|
|
data['appDispatchListVo'] =
|
|
|
|
|
this.appDispatchListVo.map((v) => v.toJson()).toList();
|
|
|
|
|
}
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -44,7 +52,7 @@ class AppReportRepairVo {
|
|
|
|
|
int type;
|
|
|
|
|
int status;
|
|
|
|
|
String reportDetail;
|
|
|
|
|
List<String> imgUrls;
|
|
|
|
|
List<ImgUrls> imgUrls;
|
|
|
|
|
|
|
|
|
|
AppReportRepairVo(
|
|
|
|
|
{this.id, this.type, this.status, this.reportDetail, this.imgUrls});
|
|
|
|
@ -54,7 +62,12 @@ class AppReportRepairVo {
|
|
|
|
|
type = json['type'];
|
|
|
|
|
status = json['status'];
|
|
|
|
|
reportDetail = json['reportDetail'];
|
|
|
|
|
imgUrls = json['imgUrls'].cast<String>();
|
|
|
|
|
if (json['imgUrls'] != null) {
|
|
|
|
|
imgUrls = new List<ImgUrls>();
|
|
|
|
|
json['imgUrls'].forEach((v) {
|
|
|
|
|
imgUrls.add(new ImgUrls.fromJson(v));
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
@ -63,7 +76,37 @@ class AppReportRepairVo {
|
|
|
|
|
data['type'] = this.type;
|
|
|
|
|
data['status'] = this.status;
|
|
|
|
|
data['reportDetail'] = this.reportDetail;
|
|
|
|
|
data['imgUrls'] = this.imgUrls;
|
|
|
|
|
if (this.imgUrls != null) {
|
|
|
|
|
data['imgUrls'] = this.imgUrls.map((v) => v.toJson()).toList();
|
|
|
|
|
}
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class ImgUrls {
|
|
|
|
|
String url;
|
|
|
|
|
String size;
|
|
|
|
|
int longs;
|
|
|
|
|
int paragraph;
|
|
|
|
|
int sort;
|
|
|
|
|
|
|
|
|
|
ImgUrls({this.url, this.size, this.longs, this.paragraph, this.sort});
|
|
|
|
|
|
|
|
|
|
ImgUrls.fromJson(Map<String, dynamic> json) {
|
|
|
|
|
url = json['url'];
|
|
|
|
|
size = json['size'];
|
|
|
|
|
longs = json['longs'];
|
|
|
|
|
paragraph = json['paragraph'];
|
|
|
|
|
sort = json['sort'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
|
|
|
data['url'] = this.url;
|
|
|
|
|
data['size'] = this.size;
|
|
|
|
|
data['longs'] = this.longs;
|
|
|
|
|
data['paragraph'] = this.paragraph;
|
|
|
|
|
data['sort'] = this.sort;
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -86,3 +129,36 @@ class AppProcessRecordVo {
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class AppDispatchListVo {
|
|
|
|
|
int code;
|
|
|
|
|
String orderDate;
|
|
|
|
|
int type;
|
|
|
|
|
String operatorName;
|
|
|
|
|
String distributorName;
|
|
|
|
|
|
|
|
|
|
AppDispatchListVo(
|
|
|
|
|
{this.code,
|
|
|
|
|
this.orderDate,
|
|
|
|
|
this.type,
|
|
|
|
|
this.operatorName,
|
|
|
|
|
this.distributorName});
|
|
|
|
|
|
|
|
|
|
AppDispatchListVo.fromJson(Map<String, dynamic> json) {
|
|
|
|
|
code = json['code'];
|
|
|
|
|
orderDate = json['orderDate'];
|
|
|
|
|
type = json['type'];
|
|
|
|
|
operatorName = json['operatorName'];
|
|
|
|
|
distributorName = json['distributorName'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
|
|
|
data['code'] = this.code;
|
|
|
|
|
data['orderDate'] = this.orderDate;
|
|
|
|
|
data['type'] = this.type;
|
|
|
|
|
data['operatorName'] = this.operatorName;
|
|
|
|
|
data['distributorName'] = this.distributorName;
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|