|
|
@ -2,9 +2,11 @@ import 'dart:io';
|
|
|
|
|
|
|
|
|
|
|
|
import 'package:aku_new_community/constants/saas_api.dart';
|
|
|
|
import 'package:aku_new_community/constants/saas_api.dart';
|
|
|
|
import 'package:aku_new_community/extensions/num_ext.dart';
|
|
|
|
import 'package:aku_new_community/extensions/num_ext.dart';
|
|
|
|
|
|
|
|
import 'package:aku_new_community/provider/user_provider.dart';
|
|
|
|
import 'package:aku_new_community/saas_model/work_order/work_order_type_model.dart';
|
|
|
|
import 'package:aku_new_community/saas_model/work_order/work_order_type_model.dart';
|
|
|
|
import 'package:aku_new_community/ui/function_and_service/work_order/work_order_func.dart';
|
|
|
|
import 'package:aku_new_community/ui/function_and_service/work_order/work_order_func.dart';
|
|
|
|
import 'package:aku_new_community/ui/function_and_service/work_order/work_order_remark_page.dart';
|
|
|
|
import 'package:aku_new_community/ui/function_and_service/work_order/work_order_remark_page.dart';
|
|
|
|
|
|
|
|
import 'package:aku_new_community/ui/profile/new_house/my_house_page.dart';
|
|
|
|
import 'package:aku_new_community/utils/network/net_util.dart';
|
|
|
|
import 'package:aku_new_community/utils/network/net_util.dart';
|
|
|
|
import 'package:aku_new_community/widget/beeImageNetwork.dart';
|
|
|
|
import 'package:aku_new_community/widget/beeImageNetwork.dart';
|
|
|
|
import 'package:aku_new_community/widget/bee_divider.dart';
|
|
|
|
import 'package:aku_new_community/widget/bee_divider.dart';
|
|
|
@ -20,6 +22,7 @@ import 'package:flutter/cupertino.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';
|
|
|
|
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
import 'package:velocity_x/src/extensions/string_ext.dart';
|
|
|
|
import 'package:velocity_x/src/extensions/string_ext.dart';
|
|
|
|
|
|
|
|
|
|
|
|
class PublishWorkOrderPage extends StatefulWidget {
|
|
|
|
class PublishWorkOrderPage extends StatefulWidget {
|
|
|
@ -54,53 +57,61 @@ class _PublishWorkOrderPageState extends State<PublishWorkOrderPage> {
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
|
|
|
UserProvider userProvider = Provider.of<UserProvider>(context);
|
|
|
|
return BeeScaffold(
|
|
|
|
return BeeScaffold(
|
|
|
|
title: '发布工单',
|
|
|
|
title: '发布工单',
|
|
|
|
body: SafeArea(
|
|
|
|
body: SafeArea(
|
|
|
|
child: ListView(
|
|
|
|
child: ListView(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
2.hb,
|
|
|
|
2.hb,
|
|
|
|
Container(
|
|
|
|
GestureDetector(
|
|
|
|
width: double.infinity,
|
|
|
|
onTap: () {
|
|
|
|
color: Colors.white,
|
|
|
|
Get.to(MyHousePage());
|
|
|
|
height: 164.w,
|
|
|
|
},
|
|
|
|
padding: EdgeInsets.all(32.w),
|
|
|
|
child: Material(
|
|
|
|
child: Row(
|
|
|
|
color: Colors.transparent,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
child: Container(
|
|
|
|
children: [
|
|
|
|
width: double.infinity,
|
|
|
|
ClipOval(
|
|
|
|
color: Colors.white,
|
|
|
|
child: BeeImageNetwork(
|
|
|
|
height: 164.w,
|
|
|
|
width: 100.w,
|
|
|
|
padding: EdgeInsets.all(32.w),
|
|
|
|
height: 100.w,
|
|
|
|
child: Row(
|
|
|
|
imgs: UserTool.userProvider.userInfoModel?.imgList ?? [],
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
16.wb,
|
|
|
|
|
|
|
|
Column(
|
|
|
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
'${UserTool.userProvider.userInfoModel!.nickName}'
|
|
|
|
ClipOval(
|
|
|
|
.text
|
|
|
|
child: BeeImageNetwork(
|
|
|
|
.size(28.sp)
|
|
|
|
width: 100.w,
|
|
|
|
.color(Colors.black.withOpacity(0.85))
|
|
|
|
height: 100.w,
|
|
|
|
.make(),
|
|
|
|
imgs: UserTool.userProvider.userInfoModel?.imgList ??
|
|
|
|
|
|
|
|
[],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
16.wb,
|
|
|
|
|
|
|
|
Column(
|
|
|
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
'${UserTool.userProvider.userInfoModel!.nickName}'
|
|
|
|
|
|
|
|
.text
|
|
|
|
|
|
|
|
.size(28.sp)
|
|
|
|
|
|
|
|
.color(Colors.black.withOpacity(0.85))
|
|
|
|
|
|
|
|
.make(),
|
|
|
|
|
|
|
|
Spacer(),
|
|
|
|
|
|
|
|
'${userProvider.defaultHouseString}'
|
|
|
|
|
|
|
|
.text
|
|
|
|
|
|
|
|
.size(24.sp)
|
|
|
|
|
|
|
|
.color(Colors.black.withOpacity(0.45))
|
|
|
|
|
|
|
|
.make(),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
Spacer(),
|
|
|
|
Spacer(),
|
|
|
|
'租户 | 绿城·碧桂园3栋14单元104室'
|
|
|
|
Icon(
|
|
|
|
.text
|
|
|
|
|
|
|
|
.size(24.sp)
|
|
|
|
|
|
|
|
.color(Colors.black.withOpacity(0.45))
|
|
|
|
|
|
|
|
.make(),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Spacer(),
|
|
|
|
|
|
|
|
GestureDetector(
|
|
|
|
|
|
|
|
onTap: () {},
|
|
|
|
|
|
|
|
child: Icon(
|
|
|
|
|
|
|
|
CupertinoIcons.chevron_right,
|
|
|
|
CupertinoIcons.chevron_right,
|
|
|
|
color: Colors.black.withOpacity(0.25),
|
|
|
|
color: Colors.black.withOpacity(0.25),
|
|
|
|
size: 32.w,
|
|
|
|
size: 32.w,
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
20.hb,
|
|
|
|
20.hb,
|
|
|
|