修改合同租赁详细信息接口

hmxc
张萌 3 years ago
parent cacbc52377
commit 9610a1c949

@ -20,6 +20,7 @@ class LeaseDetailModel extends Equatable {
final num indoorArea;
final num rentStandard;
final num margin;
final String? marginPayDate;
final String leaseDateStart;
final String leaseDateEnd;
final List<ImgModel>? imgUrls;
@ -52,6 +53,7 @@ class LeaseDetailModel extends Equatable {
required this.indoorArea,
required this.rentStandard,
required this.margin,
required this.marginPayDate,
required this.leaseDateStart,
required this.leaseDateEnd,
required this.imgUrls,
@ -85,8 +87,12 @@ class LeaseDetailModel extends Equatable {
roomName,
type,
estateType,
estateStructure,
constructionArea,
indoorArea,
rentStandard,
margin,
marginPayDate,
leaseDateStart,
leaseDateEnd,
imgUrls,
@ -101,6 +107,10 @@ class LeaseDetailModel extends Equatable {
payBank,
bankAccountName,
bankAccount,
takeDate,
notMeterRentDate,
requiredRent,
depositRefundReviewRemake,
];
}

@ -21,6 +21,7 @@ LeaseDetailModel _$LeaseDetailModelFromJson(Map<String, dynamic> json) {
indoorArea: json['indoorArea'] as num,
rentStandard: json['rentStandard'] as num,
margin: json['margin'] as num,
marginPayDate: json['marginPayDate'] as String?,
leaseDateStart: json['leaseDateStart'] as String,
leaseDateEnd: json['leaseDateEnd'] as String,
imgUrls: (json['imgUrls'] as List<dynamic>?)

@ -59,6 +59,20 @@ class LeaseListModel extends Equatable {
return '待支付';
case 6:
return '已完成';
case 11:
return '申请终止合同';
case 12:
return '申请终止失败';
case 13:
return '申请终止成功';
case 14:
return '已支付剩余租金';
case 15:
return '申请退还保证金';
case 16:
return '申请退还保证金驳回';
case 17:
return '申请退还保证金成功';
default:
return '未知';
}

@ -8,7 +8,6 @@ import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart';
class RefundBondResultPage extends StatefulWidget {
///```UserTool.appProveider.selectedHouse```
final int status;
final String name;
final double bond;

@ -3,6 +3,7 @@ import 'package:aku_community/ui/profile/house/contract_stop/contract_stop_page.
import 'package:aku_community/ui/profile/house/contract_stop/pay_result_page.dart';
import 'package:aku_community/ui/profile/house/contract_stop/refund_bond_result_page.dart';
import 'package:aku_community/ui/profile/house/contract_stop/submit_finish_page.dart';
import 'package:flustars/flustars.dart';
import 'package:flutter/material.dart';
import 'package:bot_toast/bot_toast.dart';
@ -239,7 +240,7 @@ class _HouseOwnersPageState extends State<HouseOwnersPage> {
Get.to(() => PayResultPage(
name: model.name,
bond: model.margin.toDouble(),
date: DateTime.now().toString(),
date: DateUtil.formatDateStr(model.marginPayDate!),
id: model.id,
));
break;
@ -250,7 +251,7 @@ class _HouseOwnersPageState extends State<HouseOwnersPage> {
status: model.status,
name: model.name,
bond: model.margin.toDouble(),
date: DateTime.now().toString(),
date: DateUtil.formatDateStr(model.marginPayDate!),
id: model.id,
));
break;

Loading…
Cancel
Save