parent
2016da3db7
commit
55e56c47bc
After Width: | Height: | Size: 667 KiB |
@ -0,0 +1,50 @@
|
||||
import 'package:aku_community/base/base_style.dart';
|
||||
import 'package:aku_community/ui/profile/house/upload_empty_list_page.dart';
|
||||
import 'package:aku_community/utils/headers.dart';
|
||||
import 'package:aku_community/widget/buttons/bottom_button.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'package:aku_community/widget/bee_scaffold.dart';
|
||||
import 'package:get/get.dart';
|
||||
|
||||
class ContractStopPage extends StatefulWidget {
|
||||
ContractStopPage({Key? key,}) : super(key: key);
|
||||
|
||||
@override
|
||||
_ContractStopPageState createState() => _ContractStopPageState();
|
||||
}
|
||||
|
||||
class _ContractStopPageState extends State<ContractStopPage> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return BeeScaffold(
|
||||
title: '联系物业',
|
||||
body: Center(
|
||||
child: Column(
|
||||
children: [
|
||||
192.w.heightBox,
|
||||
Image.asset(
|
||||
R.ASSETS_IMAGES_CONTACT_MANAGER_PNG,
|
||||
width: 400.w,
|
||||
height: 400.w,
|
||||
),
|
||||
40.w.heightBox,
|
||||
'物业中心电话'.text.size(44.sp).color(ktextPrimary).bold.make(),
|
||||
32.w.heightBox,
|
||||
'需沟通物业人员检查房屋\n并填写腾空单后拍照\n方可进行下一步'
|
||||
.text
|
||||
.size(30.w)
|
||||
.color(ktextSubColor)
|
||||
.align(TextAlign.center)
|
||||
.make(),
|
||||
],
|
||||
),
|
||||
),
|
||||
bottomNavi: BottomButton(
|
||||
onPressed: () {
|
||||
Get.off(() => UploadEmptyListPage());
|
||||
},
|
||||
child: '检查完成,上传腾空单'.text.size(32.sp).bold.color(ktextPrimary).make()),
|
||||
);
|
||||
}
|
||||
}
|
@ -0,0 +1,70 @@
|
||||
import 'package:aku_community/base/base_style.dart';
|
||||
import 'package:aku_community/models/house/lease_detail_model.dart';
|
||||
import 'package:aku_community/ui/profile/house/house_func.dart';
|
||||
import 'package:aku_community/widget/bee_scaffold.dart';
|
||||
import 'package:aku_community/widget/others/finish_result_image.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:velocity_x/velocity_x.dart';
|
||||
|
||||
class SubmitFinishPage extends StatefulWidget {
|
||||
final int status;
|
||||
final int leaseId;
|
||||
SubmitFinishPage({Key? key, required this.status, required this.leaseId})
|
||||
: super(key: key);
|
||||
|
||||
@override
|
||||
_SubmitFinishPageState createState() => _SubmitFinishPageState();
|
||||
}
|
||||
|
||||
class _SubmitFinishPageState extends State<SubmitFinishPage> {
|
||||
String get statusString {
|
||||
switch (widget.status) {
|
||||
case 11:
|
||||
return '审核中';
|
||||
case 12:
|
||||
return '审核失败';
|
||||
case 13:
|
||||
return '审核通过';
|
||||
default:
|
||||
return '未知';
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return BeeScaffold(
|
||||
body: Center(
|
||||
child: Column(
|
||||
children: [
|
||||
76.w.heightBox,
|
||||
FinishResultImage(
|
||||
status: widget.status == 12 ? false : true,
|
||||
haveInHandStatus: widget.status == 11 ? true : false,
|
||||
),
|
||||
48.w.heightBox,
|
||||
statusString.text.black.size(36.sp).make(),
|
||||
96.w.heightBox,
|
||||
widget.status != 13
|
||||
? SizedBox()
|
||||
: MaterialButton(
|
||||
elevation: 0,
|
||||
minWidth: 702.w,
|
||||
height: 98.w,
|
||||
color: kPrimaryColor,
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(8.w)),
|
||||
onPressed: () async {
|
||||
LeaseDetailModel? model =
|
||||
await HouseFunc().leaseDetail(widget.leaseId);
|
||||
Get.back();
|
||||
},
|
||||
child: '去支付'.text.color(ktextPrimary).size(36.sp).make(),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
@ -1,29 +0,0 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'package:aku_community/painters/contact_manager_painter.dart';
|
||||
import 'package:aku_community/widget/bee_scaffold.dart';
|
||||
|
||||
class UploadEmptyFormPage extends StatefulWidget {
|
||||
UploadEmptyFormPage({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
_UploadEmptyFormPageState createState() => _UploadEmptyFormPageState();
|
||||
}
|
||||
|
||||
class _UploadEmptyFormPageState extends State<UploadEmptyFormPage> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return BeeScaffold(
|
||||
title: '联系物业',
|
||||
body: Center(
|
||||
child: Column(
|
||||
children: [
|
||||
CustomPaint(
|
||||
painter: ContactManagerPainter(),
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
@ -0,0 +1,91 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:aku_community/base/base_style.dart';
|
||||
import 'package:aku_community/ui/profile/house/house_func.dart';
|
||||
import 'package:aku_community/widget/bee_scaffold.dart';
|
||||
import 'package:aku_community/widget/buttons/bottom_button.dart';
|
||||
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/upload_widget.dart';
|
||||
import 'package:aku_community/widget/others/user_tool.dart';
|
||||
import 'package:bot_toast/bot_toast.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:velocity_x/velocity_x.dart';
|
||||
|
||||
class UploadEmptyListPage extends StatefulWidget {
|
||||
UploadEmptyListPage({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
_UploadEmptyListPageState createState() => _UploadEmptyListPageState();
|
||||
}
|
||||
|
||||
class _UploadEmptyListPageState extends State<UploadEmptyListPage> {
|
||||
File? _file;
|
||||
List<String> _urls = [];
|
||||
int get sysLeaseId => UserTool.appProveider.selectedHouse!.sysLeaseId ?? 0;
|
||||
late TextEditingController _editingController;
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_editingController = TextEditingController();
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_editingController.dispose();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return BeeScaffold(
|
||||
title: '提交终止申请',
|
||||
body: ListView(
|
||||
children: [
|
||||
HouseHeadCard(context: context),
|
||||
40.w.heightBox,
|
||||
BeeInputRow(
|
||||
title: '收房时间',
|
||||
controller: _editingController,
|
||||
hintText: '请填写收房时间'),
|
||||
40.w.heightBox,
|
||||
'上传腾空单'.text.size(28.sp).color(ktextPrimary).make(),
|
||||
24.w.heightBox,
|
||||
_file != null
|
||||
? Image.file(
|
||||
_file!,
|
||||
width: 480.w,
|
||||
height: 480.w,
|
||||
fit: BoxFit.cover,
|
||||
)
|
||||
: UploadWidget(
|
||||
sheetTitle: '上传腾空单',
|
||||
onPicked: (file) {
|
||||
_file = file;
|
||||
setState(() {});
|
||||
}),
|
||||
],
|
||||
),
|
||||
bottomNavi: BottomButton(
|
||||
onPressed: () async {
|
||||
Function cancel = BotToast.showLoading();
|
||||
if (_file != null) {
|
||||
_urls.add(await HouseFunc().uploadClearingSingle(_file!));
|
||||
} else {
|
||||
BotToast.showText(text: '请先选择腾空单');
|
||||
}
|
||||
bool result = await HouseFunc().submitTerminationApplication(
|
||||
sysLeaseId, _editingController.text, _urls);
|
||||
if (result) {
|
||||
Get.back();
|
||||
} else {
|
||||
BotToast.showText(text: '提交失败');
|
||||
}
|
||||
cancel();
|
||||
},
|
||||
child: '提交审核'.text.size(32.sp).bold.color(ktextPrimary).make()),
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Reference in new issue