update 家政详情

hmxc
张萌 3 years ago
parent cf4a65f706
commit c932bf8cba

@ -6,12 +6,13 @@
import 'package:device_info_plus_web/device_info_plus_web.dart'; import 'package:device_info_plus_web/device_info_plus_web.dart';
import 'package:firebase_core_web/firebase_core_web.dart'; import 'package:firebase_core_web/firebase_core_web.dart';
import 'package:flutter_web_plugins/flutter_web_plugins.dart';
import 'package:image_picker_for_web/image_picker_for_web.dart'; import 'package:image_picker_for_web/image_picker_for_web.dart';
import 'package:package_info_plus_web/package_info_plus_web.dart'; import 'package:package_info_plus_web/package_info_plus_web.dart';
import 'package:shared_preferences_web/shared_preferences_web.dart'; import 'package:shared_preferences_web/shared_preferences_web.dart';
import 'package:url_launcher_web/url_launcher_web.dart'; import 'package:url_launcher_web/url_launcher_web.dart';
import 'package:flutter_web_plugins/flutter_web_plugins.dart';
// ignore: public_member_api_docs // ignore: public_member_api_docs
void registerPlugins(Registrar registrar) { void registerPlugins(Registrar registrar) {
DeviceInfoPlusPlugin.registerWith(registrar); DeviceInfoPlusPlugin.registerWith(registrar);

@ -1,139 +0,0 @@
// class LifePayModel {
// int? years;
// int? paymentNum;
// List<DailyPaymentTypeVos>? dailyPaymentTypeVos;
// LifePayModel({this.years, this.paymentNum, this.dailyPaymentTypeVos});
// LifePayModel.fromJson(Map<String, dynamic> json) {
// years = json['years'];
// paymentNum = json['paymentNum'];
// if (json['dailyPaymentTypeVos'] != null) {
// dailyPaymentTypeVos = [];
// json['dailyPaymentTypeVos'].forEach((v) {
// dailyPaymentTypeVos!.add(new DailyPaymentTypeVos.fromJson(v));
// });
// }
// }
// Map<String, dynamic> toJson() {
// final Map<String, dynamic> data = new Map<String, dynamic>();
// data['years'] = this.years;
// data['paymentNum'] = this.paymentNum;
// if (this.dailyPaymentTypeVos != null) {
// data['dailyPaymentTypeVos'] =
// this.dailyPaymentTypeVos!.map((v) => v.toJson()).toList();
// }
// return data;
// }
// }
// class DailyPaymentTypeVos {
// int? id;
// String? name;
// List<DetailedVoList>? detailedVoList;
// DailyPaymentTypeVos({this.id, this.name, this.detailedVoList});
// DailyPaymentTypeVos.fromJson(Map<String, dynamic> json) {
// id = json['id'];
// name = json['name'];
// if (json['detailedVoList'] != null) {
// detailedVoList = [];
// json['detailedVoList'].forEach((v) {
// detailedVoList!.add(new DetailedVoList.fromJson(v));
// });
// }
// }
// Map<String, dynamic> toJson() {
// final Map<String, dynamic> data = new Map<String, dynamic>();
// data['id'] = this.id;
// data['name'] = this.name;
// if (this.detailedVoList != null) {
// data['detailedVoList'] =
// this.detailedVoList!.map((v) => v.toJson()).toList();
// }
// return data;
// }
// }
// class DetailedVoList {
// int? groupId;
// double? paymentPrice;
// List<DetailsVoList>? detailsVoList;
// DetailedVoList({this.groupId, this.paymentPrice, this.detailsVoList});
// DetailedVoList.fromJson(Map<String, dynamic> json) {
// groupId = json['groupId'];
// paymentPrice = json['paymentPrice'];
// if (json['detailsVoList'] != null) {
// detailsVoList = [];
// json['detailsVoList'].forEach((v) {
// detailsVoList!.add(new DetailsVoList.fromJson(v));
// });
// }
// }
// Map<String, dynamic> toJson() {
// final Map<String, dynamic> data = new Map<String, dynamic>();
// data['groupId'] = this.groupId;
// data['paymentPrice'] = this.paymentPrice;
// if (this.detailsVoList != null) {
// data['detailsVoList'] =
// this.detailsVoList!.map((v) => v.toJson()).toList();
// }
// return data;
// }
// }
// class DetailsVoList {
// int? id;
// String? month;
// double? costPrice;
// double? paidPrice;
// double? totalPrice;
// String? beginDate;
// String? endDate;
// String? unitPriceType;
// int? num;
// DetailsVoList(
// {this.id,
// this.month,
// this.costPrice,
// this.paidPrice,
// this.totalPrice,
// this.beginDate,
// this.endDate,
// this.unitPriceType,
// this.num});
// DetailsVoList.fromJson(Map<String, dynamic> json) {
// id = json['id'];
// month = json['month'];
// costPrice = json['costPrice'];
// paidPrice = json['paidPrice'];
// totalPrice = json['totalPrice'];
// beginDate = json['beginDate'];
// endDate = json['endDate'];
// unitPriceType = json['unitPriceType'];
// num = json['num'];
// }
// Map<String, dynamic> toJson() {
// final Map<String, dynamic> data = new Map<String, dynamic>();
// data['id'] = this.id;
// data['month'] = this.month;
// data['costPrice'] = this.costPrice;
// data['paidPrice'] = this.paidPrice;
// data['totalPrice'] = this.totalPrice;
// data['beginDate'] = this.beginDate;
// data['endDate'] = this.endDate;
// data['unitPriceType'] = this.unitPriceType;
// data['num'] = this.num;
// return data;
// }
// }

@ -1,44 +0,0 @@
// class LifePayRecordModel {
// int? id;
// String? chargesTemplateDetailName;
// String? roomName;
// String? years;
// num? paidPrice;
// String? createDate;
// int? payType;
// String? code;
// LifePayRecordModel(
// {this.id,
// this.chargesTemplateDetailName,
// this.roomName,
// this.years,
// this.paidPrice,
// this.createDate,
// this.payType,
// this.code});
// LifePayRecordModel.fromJson(Map<String, dynamic> json) {
// id = json['id'];
// chargesTemplateDetailName = json['chargesTemplateDetailName'];
// roomName = json['roomName'];
// years = json['years'];
// paidPrice = json['paidPrice'];
// createDate = json['createDate'];
// payType = json['payType'];
// code = json['code'];
// }
// Map<String, dynamic> toJson() {
// final Map<String, dynamic> data = new Map<String, dynamic>();
// data['id'] = this.id;
// data['chargesTemplateDetailName'] = this.chargesTemplateDetailName;
// data['roomName'] = this.roomName;
// data['years'] = this.years;
// data['paidPrice'] = this.paidPrice;
// data['createDate'] = this.createDate;
// data['payType'] = this.payType;
// data['code'] = this.code;
// return data;
// }
// }

@ -1,6 +1,5 @@
import 'package:flutter/material.dart';
import 'package:equatable/equatable.dart'; import 'package:equatable/equatable.dart';
import 'package:flutter/material.dart';
import 'package:json_annotation/json_annotation.dart'; import 'package:json_annotation/json_annotation.dart';
import 'package:aku_community/model/common/img_model.dart'; import 'package:aku_community/model/common/img_model.dart';
@ -18,11 +17,15 @@ class HouseKeepingListModel extends Equatable {
final int status; final int status;
final int? completion; final int? completion;
final String? processDescription; final String? processDescription;
final String handlerName;
final String handlerTel;
final String? handlingTime; final String? handlingTime;
final List<ImgModel> handlerImgList;
final double? payFee; final double? payFee;
final int? evaluation; final int? evaluation;
final String? evaluationContent; final String? evaluationContent;
final String? evaluationTime; final String? evaluationTime;
final List<ImgModel> evaluationImgList;
final String createDate; final String createDate;
final List<ImgModel> submitImgList; final List<ImgModel> submitImgList;
HouseKeepingListModel({ HouseKeepingListModel({
@ -35,11 +38,15 @@ class HouseKeepingListModel extends Equatable {
required this.status, required this.status,
this.completion, this.completion,
this.processDescription, this.processDescription,
required this.handlerName,
required this.handlerTel,
this.handlingTime, this.handlingTime,
required this.handlerImgList,
this.payFee, this.payFee,
this.evaluation, this.evaluation,
this.evaluationContent, this.evaluationContent,
this.evaluationTime, this.evaluationTime,
required this.evaluationImgList,
required this.createDate, required this.createDate,
required this.submitImgList, required this.submitImgList,
}); });
@ -121,11 +128,15 @@ class HouseKeepingListModel extends Equatable {
status, status,
completion, completion,
processDescription, processDescription,
handlerName,
handlerTel,
handlingTime, handlingTime,
handlerImgList,
payFee, payFee,
evaluation, evaluation,
evaluationContent, evaluationContent,
evaluationTime, evaluationTime,
evaluationImgList,
createDate, createDate,
submitImgList, submitImgList,
]; ];

@ -18,11 +18,19 @@ HouseKeepingListModel _$HouseKeepingListModelFromJson(
status: json['status'] as int, status: json['status'] as int,
completion: json['completion'] as int?, completion: json['completion'] as int?,
processDescription: json['processDescription'] as String?, processDescription: json['processDescription'] as String?,
handlerName: json['handlerName'] as String,
handlerTel: json['handlerTel'] as String,
handlingTime: json['handlingTime'] as String?, handlingTime: json['handlingTime'] as String?,
handlerImgList: (json['handlerImgList'] as List<dynamic>)
.map((e) => ImgModel.fromJson(e as Map<String, dynamic>))
.toList(),
payFee: (json['payFee'] as num?)?.toDouble(), payFee: (json['payFee'] as num?)?.toDouble(),
evaluation: json['evaluation'] as int?, evaluation: json['evaluation'] as int?,
evaluationContent: json['evaluationContent'] as String?, evaluationContent: json['evaluationContent'] as String?,
evaluationTime: json['evaluationTime'] as String?, evaluationTime: json['evaluationTime'] as String?,
evaluationImgList: (json['evaluationImgList'] as List<dynamic>)
.map((e) => ImgModel.fromJson(e as Map<String, dynamic>))
.toList(),
createDate: json['createDate'] as String, createDate: json['createDate'] as String,
submitImgList: (json['submitImgList'] as List<dynamic>) submitImgList: (json['submitImgList'] as List<dynamic>)
.map((e) => ImgModel.fromJson(e as Map<String, dynamic>)) .map((e) => ImgModel.fromJson(e as Map<String, dynamic>))

@ -1,3 +1,4 @@
import 'package:aku_community/constants/api.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
@ -228,7 +229,10 @@ class _HouseKeepingDetailPageState extends State<HouseKeepingDetailPage> {
.black .black
.softWrap(true) .softWrap(true)
.make(), .make(),
BeeGridImageView(urls: []) BeeGridImageView(
urls: widget.model.evaluationImgList
.map((e) => API.image(e.url))
.toList())
], ],
), ),
); );
@ -261,7 +265,7 @@ class _HouseKeepingDetailPageState extends State<HouseKeepingDetailPage> {
8.w.widthBox, 8.w.widthBox,
'维修人'.text.size(28.sp).color(ktextSubColor).make(), '维修人'.text.size(28.sp).color(ktextSubColor).make(),
Spacer(), Spacer(),
widget.model.proposerName.text.size(28.sp).black.make(), widget.model.handlerName.text.size(28.sp).black.make(),
], ],
), ),
16.w.heightBox, 16.w.heightBox,
@ -275,7 +279,7 @@ class _HouseKeepingDetailPageState extends State<HouseKeepingDetailPage> {
8.w.widthBox, 8.w.widthBox,
'联系电话'.text.size(28.sp).color(ktextSubColor).make(), '联系电话'.text.size(28.sp).color(ktextSubColor).make(),
Spacer(), Spacer(),
widget.model.proposerTel.text.size(28.sp).black.make(), widget.model.handlerTel.text.size(28.sp).black.make(),
], ],
), ),
16.w.heightBox, 16.w.heightBox,
@ -288,7 +292,10 @@ class _HouseKeepingDetailPageState extends State<HouseKeepingDetailPage> {
.black .black
.softWrap(true) .softWrap(true)
.make(), .make(),
BeeGridImageView(urls: []) BeeGridImageView(
urls: widget.model.handlerImgList
.map((e) => API.image(e.url))
.toList())
], ],
), ),
); );

@ -70,7 +70,7 @@ packages:
name: args name: args
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "2.1.0" version: "2.1.1"
async: async:
dependency: transitive dependency: transitive
description: description:
@ -252,7 +252,7 @@ packages:
name: dart_style name: dart_style
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "2.0.1" version: "2.0.2"
decimal: decimal:
dependency: transitive dependency: transitive
description: description:
@ -631,7 +631,7 @@ packages:
name: io name: io
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "1.0.0" version: "1.0.3"
jpush_flutter: jpush_flutter:
dependency: "direct main" dependency: "direct main"
description: description:

Loading…
Cancel
Save