合同终止模块对接

hmxc
张萌 3 years ago
parent 0a0fbb6cee
commit 93219dd166

@ -20,7 +20,7 @@ class _PayResultPageState extends State<PayResultPage> {
body: Center( body: Center(
child: Column( child: Column(
children: [ children: [
76.w.heightBox, 276.w.heightBox,
FinishResultImage( FinishResultImage(
status: true, status: true,
), ),

@ -15,6 +15,7 @@ import 'package:get/get.dart';
import 'package:power_logger/power_logger.dart'; import 'package:power_logger/power_logger.dart';
import 'package:velocity_x/velocity_x.dart'; import 'package:velocity_x/velocity_x.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:aku_community/extensions/widget_list_ext.dart';
class PaySuerplusRentPage extends StatefulWidget { class PaySuerplusRentPage extends StatefulWidget {
/// ///
@ -38,9 +39,12 @@ class _PaySuerplusRentPageState extends State<PaySuerplusRentPage> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return BeeScaffold( return BeeScaffold(
title: '核对信息', title: '核对信息',
bodyColor: Colors.white,
body: ListView( body: ListView(
children: [ children: [
HouseHeadCard(context: context), HouseHeadCard(context: context),
Column(
children: [
BeeInputRow.button( BeeInputRow.button(
title: '不再计租时间', title: '不再计租时间',
hintText: hintText:
@ -60,6 +64,8 @@ class _PaySuerplusRentPageState extends State<PaySuerplusRentPage> {
setState(() {}); setState(() {});
})); }));
}) })
].sepWidget(separate: 24.w.heightBox),
).paddingSymmetric(horizontal: 32.w)
], ],
), ),
bottomNavi: BottomButton( bottomNavi: BottomButton(

@ -34,6 +34,8 @@ class _RefundBondPageState extends State<RefundBondPage> {
body: ListView( body: ListView(
children: [ children: [
HouseHeadCard(context: context), HouseHeadCard(context: context),
Column(
children: [
BeeInputRow.button( BeeInputRow.button(
title: '承租人姓名', hintText: widget.name, onPressed: () {}), title: '承租人姓名', hintText: widget.name, onPressed: () {}),
BeeInputRow.button( BeeInputRow.button(
@ -43,6 +45,8 @@ class _RefundBondPageState extends State<RefundBondPage> {
BeeInputRow.button( BeeInputRow.button(
title: '保证金缴纳时间', hintText: widget.date, onPressed: () {}), title: '保证金缴纳时间', hintText: widget.date, onPressed: () {}),
], ],
).paddingSymmetric(horizontal: 32.w)
],
), ),
bottomNavi: BottomButton( bottomNavi: BottomButton(
onPressed: () async { onPressed: () async {

@ -34,7 +34,7 @@ class _RefundBondResultPageState extends State<RefundBondResultPage> {
body: Center( body: Center(
child: Column( child: Column(
children: [ children: [
76.w.heightBox, 276.w.heightBox,
FinishResultImage( FinishResultImage(
status: widget.status == 16 ? false : true, status: widget.status == 16 ? false : true,
haveInHandStatus: widget.status == 15 ? true : false, haveInHandStatus: widget.status == 15 ? true : false,

@ -32,6 +32,18 @@ class _SubmitFinishPageState extends State<SubmitFinishPage> {
return '未知'; return '未知';
} }
} }
String get contentString {
switch (widget.status) {
case 11:
return '您提交的申请正在人工审核中,请耐心等待';
case 12:
return '您提交的申请审核未通过,详情情况请联系物业';
case 13:
return '您的提交的申请审核成功!';
default:
return '未知';
}
}
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
@ -39,13 +51,15 @@ class _SubmitFinishPageState extends State<SubmitFinishPage> {
body: Center( body: Center(
child: Column( child: Column(
children: [ children: [
76.w.heightBox, 276.w.heightBox,
FinishResultImage( FinishResultImage(
status: widget.status == 12 ? false : true, status: widget.status == 12 ? false : true,
haveInHandStatus: widget.status == 11 ? true : false, haveInHandStatus: widget.status == 11 ? true : false,
), ),
48.w.heightBox, 48.w.heightBox,
statusString.text.black.size(36.sp).make(), statusString.text.black.size(36.sp).make(),
48.w.heightBox,
contentString.text.black.size(28.sp).make(),
96.w.heightBox, 96.w.heightBox,
widget.status != 13 widget.status != 13
? SizedBox() ? SizedBox()

@ -8,7 +8,9 @@ import 'package:aku_community/widget/others/bee_input_row.dart';
import 'package:aku_community/widget/others/house_head_card.dart'; import 'package:aku_community/widget/others/house_head_card.dart';
import 'package:aku_community/widget/others/upload_widget.dart'; import 'package:aku_community/widget/others/upload_widget.dart';
import 'package:aku_community/widget/others/user_tool.dart'; import 'package:aku_community/widget/others/user_tool.dart';
import 'package:aku_community/widget/picker/bee_date_picker.dart';
import 'package:bot_toast/bot_toast.dart'; import 'package:bot_toast/bot_toast.dart';
import 'package:flustars/flustars.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
@ -25,16 +27,14 @@ class _UploadEmptyListPageState extends State<UploadEmptyListPage> {
File? _file; File? _file;
List<String> _urls = []; List<String> _urls = [];
int get sysLeaseId => UserTool.appProveider.selectedHouse!.sysLeaseId ?? 0; int get sysLeaseId => UserTool.appProveider.selectedHouse!.sysLeaseId ?? 0;
late TextEditingController _editingController; DateTime? _date = DateTime.now();
@override @override
void initState() { void initState() {
super.initState(); super.initState();
_editingController = TextEditingController();
} }
@override @override
void dispose() { void dispose() {
_editingController.dispose();
super.dispose(); super.dispose();
} }
@ -42,14 +42,23 @@ class _UploadEmptyListPageState extends State<UploadEmptyListPage> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return BeeScaffold( return BeeScaffold(
title: '提交终止申请', title: '提交终止申请',
bodyColor: Colors.white,
body: ListView( body: ListView(
children: [ children: [
HouseHeadCard(context: context), HouseHeadCard(context: context),
40.w.heightBox, 40.w.heightBox,
BeeInputRow( Padding(
padding: EdgeInsets.symmetric(horizontal: 32.w),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
BeeInputRow.button(
title: '收房时间', title: '收房时间',
controller: _editingController, onPressed: () async {
hintText: '请填写收房时间'), _date = await BeeDatePicker.pick(_date!);
setState(() {});
},
hintText: DateUtil.formatDate(_date, format: 'yyyy-MM-dd')),
40.w.heightBox, 40.w.heightBox,
'上传腾空单'.text.size(28.sp).color(ktextPrimary).make(), '上传腾空单'.text.size(28.sp).color(ktextPrimary).make(),
24.w.heightBox, 24.w.heightBox,
@ -68,6 +77,9 @@ class _UploadEmptyListPageState extends State<UploadEmptyListPage> {
}), }),
], ],
), ),
)
],
),
bottomNavi: BottomButton( bottomNavi: BottomButton(
onPressed: () async { onPressed: () async {
Function cancel = BotToast.showLoading(); Function cancel = BotToast.showLoading();
@ -77,7 +89,9 @@ class _UploadEmptyListPageState extends State<UploadEmptyListPage> {
BotToast.showText(text: '请先选择腾空单'); BotToast.showText(text: '请先选择腾空单');
} }
bool result = await HouseFunc().submitTerminationApplication( bool result = await HouseFunc().submitTerminationApplication(
sysLeaseId, _editingController.text, _urls); sysLeaseId,
DateUtil.formatDate(_date, format: 'yyyy-MM-dd HH:mm:ss'),
_urls);
if (result) { if (result) {
Get.back(); Get.back();
} else { } else {

@ -1,6 +1,7 @@
import 'package:aku_community/models/house/lease_detail_model.dart'; import 'package:aku_community/models/house/lease_detail_model.dart';
import 'package:aku_community/ui/profile/house/contract_stop/contract_stop_page.dart'; import 'package:aku_community/ui/profile/house/contract_stop/contract_stop_page.dart';
import 'package:aku_community/ui/profile/house/contract_stop/pay_result_page.dart'; 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:aku_community/ui/profile/house/contract_stop/submit_finish_page.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
@ -207,7 +208,9 @@ class _HouseOwnersPageState extends State<HouseOwnersPage> {
_cardBuild(R.ASSETS_ICONS_PAY_PNG, '缴费查询', '查看租金及保证金情况', () {}), _cardBuild(R.ASSETS_ICONS_PAY_PNG, '缴费查询', '查看租金及保证金情况', () {}),
_cardBuild(R.ASSETS_ICONS_CHANGE_PNG, '合同变更', '变更合同信息、重新签约', () {}), _cardBuild(R.ASSETS_ICONS_CHANGE_PNG, '合同变更', '变更合同信息、重新签约', () {}),
_cardBuild(R.ASSETS_ICONS_CONTRACT_PNG, '合同续签', '到期前线上办理续签手续', () {}), _cardBuild(R.ASSETS_ICONS_CONTRACT_PNG, '合同续签', '到期前线上办理续签手续', () {}),
_cardBuild(R.ASSETS_ICONS_FINISH_PNG, '合同终止', '线上申请终止合同', () async {}) _cardBuild(R.ASSETS_ICONS_FINISH_PNG, '合同终止', '线上申请终止合同', () async {
await stopContract();
})
], ],
), ),
); );
@ -235,6 +238,11 @@ class _HouseOwnersPageState extends State<HouseOwnersPage> {
case 14: case 14:
Get.to(() => PayResultPage()); Get.to(() => PayResultPage());
break; break;
case 15:
case 16:
case 17:
Get.to(() => RefundBondResultPage(status: model.status));
break;
default: default:
} }
} }
@ -252,7 +260,7 @@ class _HouseOwnersPageState extends State<HouseOwnersPage> {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Image.asset( Image.asset(
R.ASSETS_IMAGES_PLACEHOLDER_WEBP, assetPath,
fit: BoxFit.fill, fit: BoxFit.fill,
width: 88.w, width: 88.w,
height: 88.w, height: 88.w,

Loading…
Cancel
Save