|
|
@ -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 {
|
|
|
|