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