合同终止模块对接

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,
), ),
@ -35,7 +35,7 @@ class _PayResultPageState extends State<PayResultPage> {
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8.w)), borderRadius: BorderRadius.circular(8.w)),
onPressed: () async { onPressed: () async {
}, },
child: '申请保证金退还'.text.color(ktextPrimary).size(36.sp).make(), child: '申请保证金退还'.text.color(ktextPrimary).size(36.sp).make(),
), ),

@ -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,28 +39,33 @@ 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),
BeeInputRow.button( Column(
title: '不再计租时间', children: [
hintText: BeeInputRow.button(
DateUtil.formatDateStr(widget.time, format: 'yyyy-MM-dd'), title: '不再计租时间',
onPressed: () {}), hintText:
BeeInputRow.button( DateUtil.formatDateStr(widget.time, format: 'yyyy-MM-dd'),
title: '剩余需结清房租(元)', onPressed: () {}),
hintText: widget.amount.toStringAsFixed(2), BeeInputRow.button(
onPressed: () {}), title: '剩余需结清房租(元)',
BeeInputRow.button( hintText: widget.amount.toStringAsFixed(2),
title: '支付方式', onPressed: () {}),
hintText: _payMethod, BeeInputRow.button(
onPressed: () { title: '支付方式',
Get.bottomSheet(PayMethodBottomSheet(onChoose: (value) { hintText: _payMethod,
_payMethod = value; onPressed: () {
Get.back(); Get.bottomSheet(PayMethodBottomSheet(onChoose: (value) {
setState(() {}); _payMethod = value;
})); Get.back();
}) setState(() {});
}));
})
].sepWidget(separate: 24.w.heightBox),
).paddingSymmetric(horizontal: 32.w)
], ],
), ),
bottomNavi: BottomButton( bottomNavi: BottomButton(

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

@ -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,30 +42,42 @@ 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(
title: '收房时间', padding: EdgeInsets.symmetric(horizontal: 32.w),
controller: _editingController, child: Column(
hintText: '请填写收房时间'), crossAxisAlignment: CrossAxisAlignment.start,
40.w.heightBox, children: [
'上传腾空单'.text.size(28.sp).color(ktextPrimary).make(), BeeInputRow.button(
24.w.heightBox, title: '收房时间',
_file != null onPressed: () async {
? Image.file( _date = await BeeDatePicker.pick(_date!);
_file!, setState(() {});
width: 480.w, },
height: 480.w, hintText: DateUtil.formatDate(_date, format: 'yyyy-MM-dd')),
fit: BoxFit.cover, 40.w.heightBox,
) '上传腾空单'.text.size(28.sp).color(ktextPrimary).make(),
: UploadWidget( 24.w.heightBox,
sheetTitle: '上传腾空单', _file != null
onPicked: (file) { ? Image.file(
_file = file; _file!,
setState(() {}); width: 480.w,
}), height: 480.w,
fit: BoxFit.cover,
)
: UploadWidget(
sheetTitle: '上传腾空单',
onPicked: (file) {
_file = file;
setState(() {});
}),
],
),
)
], ],
), ),
bottomNavi: BottomButton( bottomNavi: BottomButton(
@ -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