|
|
@ -1,11 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
class FixedDetailModel {
|
|
|
|
class FixedDetailModel {
|
|
|
|
HandlingSituation handlingSituation;
|
|
|
|
HandlingSituation? handlingSituation;
|
|
|
|
DispatchType dispatchType;
|
|
|
|
DispatchType? dispatchType;
|
|
|
|
CostDetail costDetail;
|
|
|
|
CostDetail? costDetail;
|
|
|
|
RepairDetail repairDetail;
|
|
|
|
RepairDetail? repairDetail;
|
|
|
|
String evaluateInfo;
|
|
|
|
String? evaluateInfo;
|
|
|
|
int type;
|
|
|
|
int? type;
|
|
|
|
List<ProcessRecord> processRecord;
|
|
|
|
List<ProcessRecord>? processRecord;
|
|
|
|
|
|
|
|
|
|
|
|
FixedDetailModel(
|
|
|
|
FixedDetailModel(
|
|
|
|
{this.handlingSituation,
|
|
|
|
{this.handlingSituation,
|
|
|
@ -32,9 +33,9 @@ class FixedDetailModel {
|
|
|
|
evaluateInfo = json['evaluateInfo'];
|
|
|
|
evaluateInfo = json['evaluateInfo'];
|
|
|
|
type = json['type'];
|
|
|
|
type = json['type'];
|
|
|
|
if (json['processRecord'] != null) {
|
|
|
|
if (json['processRecord'] != null) {
|
|
|
|
processRecord = new List<ProcessRecord>();
|
|
|
|
processRecord = <ProcessRecord>[];
|
|
|
|
json['processRecord'].forEach((v) {
|
|
|
|
json['processRecord'].forEach((v) {
|
|
|
|
processRecord.add(new ProcessRecord.fromJson(v));
|
|
|
|
processRecord!.add(new ProcessRecord.fromJson(v));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -42,32 +43,32 @@ class FixedDetailModel {
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
|
|
if (this.handlingSituation != null) {
|
|
|
|
if (this.handlingSituation != null) {
|
|
|
|
data['handlingSituation'] = this.handlingSituation.toJson();
|
|
|
|
data['handlingSituation'] = this.handlingSituation!.toJson();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (this.dispatchType != null) {
|
|
|
|
if (this.dispatchType != null) {
|
|
|
|
data['dispatchType'] = this.dispatchType.toJson();
|
|
|
|
data['dispatchType'] = this.dispatchType!.toJson();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (this.costDetail != null) {
|
|
|
|
if (this.costDetail != null) {
|
|
|
|
data['costDetail'] = this.costDetail.toJson();
|
|
|
|
data['costDetail'] = this.costDetail!.toJson();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (this.repairDetail != null) {
|
|
|
|
if (this.repairDetail != null) {
|
|
|
|
data['repairDetail'] = this.repairDetail.toJson();
|
|
|
|
data['repairDetail'] = this.repairDetail!.toJson();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
data['evaluateInfo'] = this.evaluateInfo;
|
|
|
|
data['evaluateInfo'] = this.evaluateInfo;
|
|
|
|
data['type'] = this.type;
|
|
|
|
data['type'] = this.type;
|
|
|
|
if (this.processRecord != null) {
|
|
|
|
if (this.processRecord != null) {
|
|
|
|
data['processRecord'] =
|
|
|
|
data['processRecord'] =
|
|
|
|
this.processRecord.map((v) => v.toJson()).toList();
|
|
|
|
this.processRecord!.map((v) => v.toJson()).toList();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return data;
|
|
|
|
return data;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class HandlingSituation {
|
|
|
|
class HandlingSituation {
|
|
|
|
int id;
|
|
|
|
int? id;
|
|
|
|
String detail;
|
|
|
|
String? detail;
|
|
|
|
String materialList;
|
|
|
|
String? materialList;
|
|
|
|
List<ImgUrls> imgUrls;
|
|
|
|
List<ImgUrls>? imgUrls;
|
|
|
|
|
|
|
|
|
|
|
|
HandlingSituation({this.id, this.detail, this.materialList, this.imgUrls});
|
|
|
|
HandlingSituation({this.id, this.detail, this.materialList, this.imgUrls});
|
|
|
|
|
|
|
|
|
|
|
@ -76,9 +77,9 @@ class HandlingSituation {
|
|
|
|
detail = json['detail'];
|
|
|
|
detail = json['detail'];
|
|
|
|
materialList = json['materialList'];
|
|
|
|
materialList = json['materialList'];
|
|
|
|
if (json['imgUrls'] != null) {
|
|
|
|
if (json['imgUrls'] != null) {
|
|
|
|
imgUrls = new List<ImgUrls>();
|
|
|
|
imgUrls = <ImgUrls>[];
|
|
|
|
json['imgUrls'].forEach((v) {
|
|
|
|
json['imgUrls'].forEach((v) {
|
|
|
|
imgUrls.add(new ImgUrls.fromJson(v));
|
|
|
|
imgUrls!.add(new ImgUrls.fromJson(v));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -89,18 +90,18 @@ class HandlingSituation {
|
|
|
|
data['detail'] = this.detail;
|
|
|
|
data['detail'] = this.detail;
|
|
|
|
data['materialList'] = this.materialList;
|
|
|
|
data['materialList'] = this.materialList;
|
|
|
|
if (this.imgUrls != null) {
|
|
|
|
if (this.imgUrls != null) {
|
|
|
|
data['imgUrls'] = this.imgUrls.map((v) => v.toJson()).toList();
|
|
|
|
data['imgUrls'] = this.imgUrls!.map((v) => v.toJson()).toList();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return data;
|
|
|
|
return data;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class ImgUrls {
|
|
|
|
class ImgUrls {
|
|
|
|
String url;
|
|
|
|
String? url;
|
|
|
|
String size;
|
|
|
|
String? size;
|
|
|
|
int longs;
|
|
|
|
int? longs;
|
|
|
|
int paragraph;
|
|
|
|
int? paragraph;
|
|
|
|
int sort;
|
|
|
|
int? sort;
|
|
|
|
|
|
|
|
|
|
|
|
ImgUrls({this.url, this.size, this.longs, this.paragraph, this.sort});
|
|
|
|
ImgUrls({this.url, this.size, this.longs, this.paragraph, this.sort});
|
|
|
|
|
|
|
|
|
|
|
@ -124,9 +125,9 @@ class ImgUrls {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class DispatchType {
|
|
|
|
class DispatchType {
|
|
|
|
int dispatchType;
|
|
|
|
int? dispatchType;
|
|
|
|
String workOrderLimitName;
|
|
|
|
String? workOrderLimitName;
|
|
|
|
String workOrderSubclassName;
|
|
|
|
String? workOrderSubclassName;
|
|
|
|
|
|
|
|
|
|
|
|
DispatchType(
|
|
|
|
DispatchType(
|
|
|
|
{this.dispatchType, this.workOrderLimitName, this.workOrderSubclassName});
|
|
|
|
{this.dispatchType, this.workOrderLimitName, this.workOrderSubclassName});
|
|
|
@ -147,9 +148,9 @@ class DispatchType {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class CostDetail {
|
|
|
|
class CostDetail {
|
|
|
|
int laborCost;
|
|
|
|
int? laborCost;
|
|
|
|
int materialCost;
|
|
|
|
int? materialCost;
|
|
|
|
int totalCost;
|
|
|
|
int? totalCost;
|
|
|
|
|
|
|
|
|
|
|
|
CostDetail({this.laborCost, this.materialCost, this.totalCost});
|
|
|
|
CostDetail({this.laborCost, this.materialCost, this.totalCost});
|
|
|
|
|
|
|
|
|
|
|
@ -169,13 +170,13 @@ class CostDetail {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class RepairDetail {
|
|
|
|
class RepairDetail {
|
|
|
|
int id;
|
|
|
|
int? id;
|
|
|
|
int dispatchId;
|
|
|
|
int? dispatchId;
|
|
|
|
String name;
|
|
|
|
String? name;
|
|
|
|
String tel;
|
|
|
|
String? tel;
|
|
|
|
int type;
|
|
|
|
int? type;
|
|
|
|
int status;
|
|
|
|
int? status;
|
|
|
|
List<ImgUrls> imgUrls;
|
|
|
|
List<ImgUrls>? imgUrls;
|
|
|
|
|
|
|
|
|
|
|
|
RepairDetail(
|
|
|
|
RepairDetail(
|
|
|
|
{this.id,
|
|
|
|
{this.id,
|
|
|
@ -194,9 +195,9 @@ class RepairDetail {
|
|
|
|
type = json['type'];
|
|
|
|
type = json['type'];
|
|
|
|
status = json['status'];
|
|
|
|
status = json['status'];
|
|
|
|
if (json['imgUrls'] != null) {
|
|
|
|
if (json['imgUrls'] != null) {
|
|
|
|
imgUrls = new List<ImgUrls>();
|
|
|
|
imgUrls = <ImgUrls>[];
|
|
|
|
json['imgUrls'].forEach((v) {
|
|
|
|
json['imgUrls'].forEach((v) {
|
|
|
|
imgUrls.add(new ImgUrls.fromJson(v));
|
|
|
|
imgUrls!.add(new ImgUrls.fromJson(v));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -210,16 +211,16 @@ class RepairDetail {
|
|
|
|
data['type'] = this.type;
|
|
|
|
data['type'] = this.type;
|
|
|
|
data['status'] = this.status;
|
|
|
|
data['status'] = this.status;
|
|
|
|
if (this.imgUrls != null) {
|
|
|
|
if (this.imgUrls != null) {
|
|
|
|
data['imgUrls'] = this.imgUrls.map((v) => v.toJson()).toList();
|
|
|
|
data['imgUrls'] = this.imgUrls!.map((v) => v.toJson()).toList();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return data;
|
|
|
|
return data;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class ProcessRecord {
|
|
|
|
class ProcessRecord {
|
|
|
|
int id;
|
|
|
|
int? id;
|
|
|
|
int operationType;
|
|
|
|
int? operationType;
|
|
|
|
String operationDate;
|
|
|
|
String? operationDate;
|
|
|
|
|
|
|
|
|
|
|
|
ProcessRecord({this.id, this.operationType, this.operationDate});
|
|
|
|
ProcessRecord({this.id, this.operationType, this.operationDate});
|
|
|
|
|
|
|
|
|
|
|
|