完成住户审核

master
张萌 3 years ago
parent a9d4bcd739
commit 16db086de5

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

@ -25,11 +25,20 @@ class SAASAPI {
static _User user = _User(); static _User user = _User();
static _Message message = _Message(); static _Message message = _Message();
static _WorkOrder workOrder = _WorkOrder(); static _WorkOrder workOrder = _WorkOrder();
static _HouseHoldAudit householdAudit = _HouseHoldAudit();
/// ///
static _OtherApi other = _OtherApi(); static _OtherApi other = _OtherApi();
} }
class _HouseHoldAudit {
///
String get list => '/butlerApp/user/review/list';
////
String get review => '/butlerApp/user/review/review';
}
class _Login { class _Login {
///app ///app
String get setNickName => '/butlerApp/user/setNickName'; String get setNickName => '/butlerApp/user/setNickName';

@ -3,257 +3,128 @@
/// FlutterGen /// FlutterGen
/// ***************************************************** /// *****************************************************
// ignore_for_file: directives_ordering,unnecessary_import
import 'package:flutter/widgets.dart'; import 'package:flutter/widgets.dart';
class $AssetsHomeGen { class $AssetsHomeGen {
const $AssetsHomeGen(); const $AssetsHomeGen();
/// File path: assets/home/app_alarm.png
AssetGenImage get appAlarm => AssetGenImage get appAlarm =>
const AssetGenImage('assets/home/app_alarm.png'); const AssetGenImage('assets/home/app_alarm.png');
/// File path: assets/home/bee_task.png
AssetGenImage get beeTask => const AssetGenImage('assets/home/bee_task.png'); AssetGenImage get beeTask => const AssetGenImage('assets/home/bee_task.png');
/// File path: assets/home/clock_in_out.png
AssetGenImage get clockInOut => AssetGenImage get clockInOut =>
const AssetGenImage('assets/home/clock_in_out.png'); const AssetGenImage('assets/home/clock_in_out.png');
/// File path: assets/home/device_alarm.png
AssetGenImage get deviceAlarm => AssetGenImage get deviceAlarm =>
const AssetGenImage('assets/home/device_alarm.png'); const AssetGenImage('assets/home/device_alarm.png');
/// File path: assets/home/facilities.png
AssetGenImage get facilities => AssetGenImage get facilities =>
const AssetGenImage('assets/home/facilities.png'); const AssetGenImage('assets/home/facilities.png');
/// File path: assets/home/fire_alarm.png
AssetGenImage get fireAlarm => AssetGenImage get fireAlarm =>
const AssetGenImage('assets/home/fire_alarm.png'); const AssetGenImage('assets/home/fire_alarm.png');
/// File path: assets/home/home_back.png
AssetGenImage get homeBack => AssetGenImage get homeBack =>
const AssetGenImage('assets/home/home_back.png'); const AssetGenImage('assets/home/home_back.png');
/// File path: assets/home/home_head.png
AssetGenImage get homeHead => AssetGenImage get homeHead =>
const AssetGenImage('assets/home/home_head.png'); const AssetGenImage('assets/home/home_head.png');
/// File path: assets/home/house_keeping.png
AssetGenImage get houseKeeping => AssetGenImage get houseKeeping =>
const AssetGenImage('assets/home/house_keeping.png'); const AssetGenImage('assets/home/house_keeping.png');
/// File path: assets/home/hygienice.png
AssetGenImage get hygienice => AssetGenImage get hygienice =>
const AssetGenImage('assets/home/hygienice.png'); const AssetGenImage('assets/home/hygienice.png');
/// File path: assets/home/ic_Patrol.png
AssetGenImage get icPatrol => AssetGenImage get icPatrol =>
const AssetGenImage('assets/home/ic_Patrol.png'); const AssetGenImage('assets/home/ic_Patrol.png');
/// File path: assets/home/ic_activity.png
AssetGenImage get icActivity => AssetGenImage get icActivity =>
const AssetGenImage('assets/home/ic_activity.png'); const AssetGenImage('assets/home/ic_activity.png');
/// File path: assets/home/ic_all.png
AssetGenImage get icAll => const AssetGenImage('assets/home/ic_all.png'); AssetGenImage get icAll => const AssetGenImage('assets/home/ic_all.png');
/// File path: assets/home/ic_article.png
AssetGenImage get icArticle => AssetGenImage get icArticle =>
const AssetGenImage('assets/home/ic_article.png'); const AssetGenImage('assets/home/ic_article.png');
/// File path: assets/home/ic_borrow.png
AssetGenImage get icBorrow => AssetGenImage get icBorrow =>
const AssetGenImage('assets/home/ic_borrow.png'); const AssetGenImage('assets/home/ic_borrow.png');
/// File path: assets/home/ic_decoration.png
AssetGenImage get icDecoration => AssetGenImage get icDecoration =>
const AssetGenImage('assets/home/ic_decoration.png'); const AssetGenImage('assets/home/ic_decoration.png');
/// File path: assets/home/ic_facilities.png
AssetGenImage get icFacilities => AssetGenImage get icFacilities =>
const AssetGenImage('assets/home/ic_facilities.png'); const AssetGenImage('assets/home/ic_facilities.png');
/// File path: assets/home/ic_greening.png
AssetGenImage get icGreening => AssetGenImage get icGreening =>
const AssetGenImage('assets/home/ic_greening.png'); const AssetGenImage('assets/home/ic_greening.png');
/// File path: assets/home/ic_news.png
AssetGenImage get icNews => const AssetGenImage('assets/home/ic_news.png'); AssetGenImage get icNews => const AssetGenImage('assets/home/ic_news.png');
/// File path: assets/home/ic_police.png
AssetGenImage get icPolice => AssetGenImage get icPolice =>
const AssetGenImage('assets/home/ic_police.png'); const AssetGenImage('assets/home/ic_police.png');
/// File path: assets/home/ic_scan.png
AssetGenImage get icScan => const AssetGenImage('assets/home/ic_scan.png'); AssetGenImage get icScan => const AssetGenImage('assets/home/ic_scan.png');
/// File path: assets/home/ic_search.png
AssetGenImage get icSearch => AssetGenImage get icSearch =>
const AssetGenImage('assets/home/ic_search.png'); const AssetGenImage('assets/home/ic_search.png');
/// File path: assets/home/ic_service.png
AssetGenImage get icService => AssetGenImage get icService =>
const AssetGenImage('assets/home/ic_service.png'); const AssetGenImage('assets/home/ic_service.png');
/// File path: assets/home/ic_visitors.png
AssetGenImage get icVisitors => AssetGenImage get icVisitors =>
const AssetGenImage('assets/home/ic_visitors.png'); const AssetGenImage('assets/home/ic_visitors.png');
/// File path: assets/home/interview.png
AssetGenImage get interview => AssetGenImage get interview =>
const AssetGenImage('assets/home/interview.png'); const AssetGenImage('assets/home/interview.png');
/// File path: assets/home/key.png
AssetGenImage get key => const AssetGenImage('assets/home/key.png'); AssetGenImage get key => const AssetGenImage('assets/home/key.png');
/// File path: assets/home/message.png
AssetGenImage get message => const AssetGenImage('assets/home/message.png'); AssetGenImage get message => const AssetGenImage('assets/home/message.png');
/// File path: assets/home/nearby_pet.png
AssetGenImage get nearbyPet => AssetGenImage get nearbyPet =>
const AssetGenImage('assets/home/nearby_pet.png'); const AssetGenImage('assets/home/nearby_pet.png');
/// File path: assets/home/nearby_service.png
AssetGenImage get nearbyService => AssetGenImage get nearbyService =>
const AssetGenImage('assets/home/nearby_service.png'); const AssetGenImage('assets/home/nearby_service.png');
/// File path: assets/home/package.png
AssetGenImage get package => const AssetGenImage('assets/home/package.png'); AssetGenImage get package => const AssetGenImage('assets/home/package.png');
/// File path: assets/home/provide_aged.png
AssetGenImage get provideAged => AssetGenImage get provideAged =>
const AssetGenImage('assets/home/provide_aged.png'); const AssetGenImage('assets/home/provide_aged.png');
/// File path: assets/home/rules.png
AssetGenImage get rules => const AssetGenImage('assets/home/rules.png'); AssetGenImage get rules => const AssetGenImage('assets/home/rules.png');
/// File path: assets/home/second_hand_market.png
AssetGenImage get secondHandMarket => AssetGenImage get secondHandMarket =>
const AssetGenImage('assets/home/second_hand_market.png'); const AssetGenImage('assets/home/second_hand_market.png');
/// File path: assets/home/share_park.png
AssetGenImage get sharePark => AssetGenImage get sharePark =>
const AssetGenImage('assets/home/share_park.png'); const AssetGenImage('assets/home/share_park.png');
/// File path: assets/home/shopping_mall.png
AssetGenImage get shoppingMall => AssetGenImage get shoppingMall =>
const AssetGenImage('assets/home/shopping_mall.png'); const AssetGenImage('assets/home/shopping_mall.png');
/// File path: assets/home/sos.png
AssetGenImage get sos => const AssetGenImage('assets/home/sos.png'); AssetGenImage get sos => const AssetGenImage('assets/home/sos.png');
} }
class $AssetsIconsGen { class $AssetsIconsGen {
const $AssetsIconsGen(); const $AssetsIconsGen();
/// File path: assets/icons/alarm_clock.png
AssetGenImage get alarmClock => AssetGenImage get alarmClock =>
const AssetGenImage('assets/icons/alarm_clock.png'); const AssetGenImage('assets/icons/alarm_clock.png');
/// File path: assets/icons/camera.png
AssetGenImage get camera => const AssetGenImage('assets/icons/camera.png'); AssetGenImage get camera => const AssetGenImage('assets/icons/camera.png');
/// File path: assets/icons/cancel_task.png
AssetGenImage get cancelTask => AssetGenImage get cancelTask =>
const AssetGenImage('assets/icons/cancel_task.png'); const AssetGenImage('assets/icons/cancel_task.png');
/// File path: assets/icons/clock_circle.png
AssetGenImage get clockCircle => AssetGenImage get clockCircle =>
const AssetGenImage('assets/icons/clock_circle.png'); const AssetGenImage('assets/icons/clock_circle.png');
/// File path: assets/icons/connect.png
AssetGenImage get connect => const AssetGenImage('assets/icons/connect.png'); AssetGenImage get connect => const AssetGenImage('assets/icons/connect.png');
/// File path: assets/icons/copy.png
AssetGenImage get copy => const AssetGenImage('assets/icons/copy.png'); AssetGenImage get copy => const AssetGenImage('assets/icons/copy.png');
/// File path: assets/icons/dissatisfied.png
AssetGenImage get dissatisfied => AssetGenImage get dissatisfied =>
const AssetGenImage('assets/icons/dissatisfied.png'); const AssetGenImage('assets/icons/dissatisfied.png');
/// File path: assets/icons/edit.png
AssetGenImage get edit => const AssetGenImage('assets/icons/edit.png'); AssetGenImage get edit => const AssetGenImage('assets/icons/edit.png');
/// File path: assets/icons/environment.png
AssetGenImage get environment => AssetGenImage get environment =>
const AssetGenImage('assets/icons/environment.png'); const AssetGenImage('assets/icons/environment.png');
/// File path: assets/icons/examining.png
AssetGenImage get examining => AssetGenImage get examining =>
const AssetGenImage('assets/icons/examining.png'); const AssetGenImage('assets/icons/examining.png');
/// File path: assets/icons/finish_order.png
AssetGenImage get finishOrder => AssetGenImage get finishOrder =>
const AssetGenImage('assets/icons/finish_order.png'); const AssetGenImage('assets/icons/finish_order.png');
/// File path: assets/icons/normal.png
AssetGenImage get normal => const AssetGenImage('assets/icons/normal.png'); AssetGenImage get normal => const AssetGenImage('assets/icons/normal.png');
/// File path: assets/icons/pass.png
AssetGenImage get pass => const AssetGenImage('assets/icons/pass.png'); AssetGenImage get pass => const AssetGenImage('assets/icons/pass.png');
/// File path: assets/icons/phone.png
AssetGenImage get phone => const AssetGenImage('assets/icons/phone.png'); AssetGenImage get phone => const AssetGenImage('assets/icons/phone.png');
/// File path: assets/icons/phone_circle.png
AssetGenImage get phoneCircle => AssetGenImage get phoneCircle =>
const AssetGenImage('assets/icons/phone_circle.png'); const AssetGenImage('assets/icons/phone_circle.png');
/// File path: assets/icons/record.png
AssetGenImage get record => const AssetGenImage('assets/icons/record.png'); AssetGenImage get record => const AssetGenImage('assets/icons/record.png');
/// File path: assets/icons/reject.png
AssetGenImage get reject => const AssetGenImage('assets/icons/reject.png'); AssetGenImage get reject => const AssetGenImage('assets/icons/reject.png');
/// File path: assets/icons/reward.png
AssetGenImage get reward => const AssetGenImage('assets/icons/reward.png'); AssetGenImage get reward => const AssetGenImage('assets/icons/reward.png');
/// File path: assets/icons/satisfied.png
AssetGenImage get satisfied => AssetGenImage get satisfied =>
const AssetGenImage('assets/icons/satisfied.png'); const AssetGenImage('assets/icons/satisfied.png');
/// File path: assets/icons/tag.png
AssetGenImage get tag => const AssetGenImage('assets/icons/tag.png'); AssetGenImage get tag => const AssetGenImage('assets/icons/tag.png');
/// File path: assets/icons/task_location.png
AssetGenImage get taskLocation => AssetGenImage get taskLocation =>
const AssetGenImage('assets/icons/task_location.png'); const AssetGenImage('assets/icons/task_location.png');
/// File path: assets/icons/watch.png
AssetGenImage get watch => const AssetGenImage('assets/icons/watch.png'); AssetGenImage get watch => const AssetGenImage('assets/icons/watch.png');
} }
class $AssetsInspectionGen { class $AssetsInspectionGen {
const $AssetsInspectionGen(); const $AssetsInspectionGen();
/// File path: assets/inspection/ic_date.png
AssetGenImage get icDate => AssetGenImage get icDate =>
const AssetGenImage('assets/inspection/ic_date.png'); const AssetGenImage('assets/inspection/ic_date.png');
/// File path: assets/inspection/ic_inspection_name.png
AssetGenImage get icInspectionName => AssetGenImage get icInspectionName =>
const AssetGenImage('assets/inspection/ic_inspection_name.png'); const AssetGenImage('assets/inspection/ic_inspection_name.png');
/// File path: assets/inspection/ic_pattern.png
AssetGenImage get icPattern => AssetGenImage get icPattern =>
const AssetGenImage('assets/inspection/ic_pattern.png'); const AssetGenImage('assets/inspection/ic_pattern.png');
/// File path: assets/inspection/ic_station.png
AssetGenImage get icStation => AssetGenImage get icStation =>
const AssetGenImage('assets/inspection/ic_station.png'); const AssetGenImage('assets/inspection/ic_station.png');
/// File path: assets/inspection/ic_way.png
AssetGenImage get icWay => AssetGenImage get icWay =>
const AssetGenImage('assets/inspection/ic_way.png'); const AssetGenImage('assets/inspection/ic_way.png');
/// File path: assets/inspection/ic_xunjian.png
AssetGenImage get icXunjian => AssetGenImage get icXunjian =>
const AssetGenImage('assets/inspection/ic_xunjian.png'); const AssetGenImage('assets/inspection/ic_xunjian.png');
/// File path: assets/inspection/inspection_station.png
AssetGenImage get inspectionStation => AssetGenImage get inspectionStation =>
const AssetGenImage('assets/inspection/inspection_station.png'); const AssetGenImage('assets/inspection/inspection_station.png');
} }
@ -261,149 +132,72 @@ class $AssetsInspectionGen {
class $AssetsManageGen { class $AssetsManageGen {
const $AssetsManageGen(); const $AssetsManageGen();
/// File path: assets/manage/add.png
AssetGenImage get add => const AssetGenImage('assets/manage/add.png'); AssetGenImage get add => const AssetGenImage('assets/manage/add.png');
/// File path: assets/manage/address.png
AssetGenImage get address => const AssetGenImage('assets/manage/address.png'); AssetGenImage get address => const AssetGenImage('assets/manage/address.png');
/// File path: assets/manage/article.png
AssetGenImage get article => const AssetGenImage('assets/manage/article.png'); AssetGenImage get article => const AssetGenImage('assets/manage/article.png');
/// File path: assets/manage/borrow.png
AssetGenImage get borrow => const AssetGenImage('assets/manage/borrow.png'); AssetGenImage get borrow => const AssetGenImage('assets/manage/borrow.png');
/// File path: assets/manage/check.png
AssetGenImage get check => const AssetGenImage('assets/manage/check.png'); AssetGenImage get check => const AssetGenImage('assets/manage/check.png');
/// File path: assets/manage/circuit.png
AssetGenImage get circuit => const AssetGenImage('assets/manage/circuit.png'); AssetGenImage get circuit => const AssetGenImage('assets/manage/circuit.png');
/// File path: assets/manage/clock.png
AssetGenImage get clock => const AssetGenImage('assets/manage/clock.png'); AssetGenImage get clock => const AssetGenImage('assets/manage/clock.png');
/// File path: assets/manage/decoration.png
AssetGenImage get decoration => AssetGenImage get decoration =>
const AssetGenImage('assets/manage/decoration.png'); const AssetGenImage('assets/manage/decoration.png');
/// File path: assets/manage/dingwei.png
AssetGenImage get dingwei => const AssetGenImage('assets/manage/dingwei.png'); AssetGenImage get dingwei => const AssetGenImage('assets/manage/dingwei.png');
/// File path: assets/manage/estate.png
AssetGenImage get estate => const AssetGenImage('assets/manage/estate.png'); AssetGenImage get estate => const AssetGenImage('assets/manage/estate.png');
/// File path: assets/manage/home.png
AssetGenImage get home => const AssetGenImage('assets/manage/home.png'); AssetGenImage get home => const AssetGenImage('assets/manage/home.png');
/// File path: assets/manage/ic_announce.png
AssetGenImage get icAnnounce => AssetGenImage get icAnnounce =>
const AssetGenImage('assets/manage/ic_announce.png'); const AssetGenImage('assets/manage/ic_announce.png');
/// File path: assets/manage/ic_car.png
AssetGenImage get icCar => const AssetGenImage('assets/manage/ic_car.png'); AssetGenImage get icCar => const AssetGenImage('assets/manage/ic_car.png');
/// File path: assets/manage/ic_daofang.png
AssetGenImage get icDaofang => AssetGenImage get icDaofang =>
const AssetGenImage('assets/manage/ic_daofang.png'); const AssetGenImage('assets/manage/ic_daofang.png');
/// File path: assets/manage/ic_guoqi.png
AssetGenImage get icGuoqi => AssetGenImage get icGuoqi =>
const AssetGenImage('assets/manage/ic_guoqi.png'); const AssetGenImage('assets/manage/ic_guoqi.png');
/// File path: assets/manage/ic_image.png
AssetGenImage get icImage => AssetGenImage get icImage =>
const AssetGenImage('assets/manage/ic_image.png'); const AssetGenImage('assets/manage/ic_image.png');
/// File path: assets/manage/ic_renwu.png
AssetGenImage get icRenwu => AssetGenImage get icRenwu =>
const AssetGenImage('assets/manage/ic_renwu.png'); const AssetGenImage('assets/manage/ic_renwu.png');
/// File path: assets/manage/ic_time.png
AssetGenImage get icTime => const AssetGenImage('assets/manage/ic_time.png'); AssetGenImage get icTime => const AssetGenImage('assets/manage/ic_time.png');
/// File path: assets/manage/ic_wancheng.png
AssetGenImage get icWancheng => AssetGenImage get icWancheng =>
const AssetGenImage('assets/manage/ic_wancheng.png'); const AssetGenImage('assets/manage/ic_wancheng.png');
/// File path: assets/manage/ic_weidao.png
AssetGenImage get icWeidao => AssetGenImage get icWeidao =>
const AssetGenImage('assets/manage/ic_weidao.png'); const AssetGenImage('assets/manage/ic_weidao.png');
/// File path: assets/manage/ic_zhuangxiu.png
AssetGenImage get icZhuangxiu => AssetGenImage get icZhuangxiu =>
const AssetGenImage('assets/manage/ic_zhuangxiu.png'); const AssetGenImage('assets/manage/ic_zhuangxiu.png');
/// File path: assets/manage/ic_zuofei.png
AssetGenImage get icZuofei => AssetGenImage get icZuofei =>
const AssetGenImage('assets/manage/ic_zuofei.png'); const AssetGenImage('assets/manage/ic_zuofei.png');
/// File path: assets/manage/info.png
AssetGenImage get info => const AssetGenImage('assets/manage/info.png'); AssetGenImage get info => const AssetGenImage('assets/manage/info.png');
/// File path: assets/manage/key.png
AssetGenImage get key => const AssetGenImage('assets/manage/key.png'); AssetGenImage get key => const AssetGenImage('assets/manage/key.png');
/// File path: assets/manage/location.png
AssetGenImage get location => AssetGenImage get location =>
const AssetGenImage('assets/manage/location.png'); const AssetGenImage('assets/manage/location.png');
/// File path: assets/manage/lock.png
AssetGenImage get lock => const AssetGenImage('assets/manage/lock.png'); AssetGenImage get lock => const AssetGenImage('assets/manage/lock.png');
AssetGenImage get passed => const AssetGenImage('assets/manage/passed.png');
/// File path: assets/manage/police.png
AssetGenImage get police => const AssetGenImage('assets/manage/police.png'); AssetGenImage get police => const AssetGenImage('assets/manage/police.png');
AssetGenImage get rejected =>
/// File path: assets/manage/remaining.png const AssetGenImage('assets/manage/rejected.png');
AssetGenImage get remaining => AssetGenImage get remaining =>
const AssetGenImage('assets/manage/remaining.png'); const AssetGenImage('assets/manage/remaining.png');
/// File path: assets/manage/security.png
AssetGenImage get security => AssetGenImage get security =>
const AssetGenImage('assets/manage/security.png'); const AssetGenImage('assets/manage/security.png');
/// File path: assets/manage/status.png
AssetGenImage get status => const AssetGenImage('assets/manage/status.png'); AssetGenImage get status => const AssetGenImage('assets/manage/status.png');
/// File path: assets/manage/submit_success.png
AssetGenImage get submitSuccess => AssetGenImage get submitSuccess =>
const AssetGenImage('assets/manage/submit_success.png'); const AssetGenImage('assets/manage/submit_success.png');
/// File path: assets/manage/wall.png
AssetGenImage get wall => const AssetGenImage('assets/manage/wall.png'); AssetGenImage get wall => const AssetGenImage('assets/manage/wall.png');
/// File path: assets/manage/warning.png
AssetGenImage get warning => const AssetGenImage('assets/manage/warning.png'); AssetGenImage get warning => const AssetGenImage('assets/manage/warning.png');
/// File path: assets/manage/waterway.png
AssetGenImage get waterway => AssetGenImage get waterway =>
const AssetGenImage('assets/manage/waterway.png'); const AssetGenImage('assets/manage/waterway.png');
/// File path: assets/manage/window.png
AssetGenImage get window => const AssetGenImage('assets/manage/window.png'); AssetGenImage get window => const AssetGenImage('assets/manage/window.png');
} }
class $AssetsMessageGen { class $AssetsMessageGen {
const $AssetsMessageGen(); const $AssetsMessageGen();
/// File path: assets/message/ic_area.png
AssetGenImage get icArea => const AssetGenImage('assets/message/ic_area.png'); AssetGenImage get icArea => const AssetGenImage('assets/message/ic_area.png');
/// File path: assets/message/ic_people.png
AssetGenImage get icPeople => AssetGenImage get icPeople =>
const AssetGenImage('assets/message/ic_people.png'); const AssetGenImage('assets/message/ic_people.png');
/// File path: assets/message/ic_phone.png
AssetGenImage get icPhone => AssetGenImage get icPhone =>
const AssetGenImage('assets/message/ic_phone.png'); const AssetGenImage('assets/message/ic_phone.png');
/// File path: assets/message/ic_pinglun.png
AssetGenImage get icPinglun => AssetGenImage get icPinglun =>
const AssetGenImage('assets/message/ic_pinglun.png'); const AssetGenImage('assets/message/ic_pinglun.png');
/// File path: assets/message/ic_star.png
AssetGenImage get icStar => const AssetGenImage('assets/message/ic_star.png'); AssetGenImage get icStar => const AssetGenImage('assets/message/ic_star.png');
/// File path: assets/message/ic_tongzhi.png
AssetGenImage get icTongzhi => AssetGenImage get icTongzhi =>
const AssetGenImage('assets/message/ic_tongzhi.png'); const AssetGenImage('assets/message/ic_tongzhi.png');
} }
@ -411,78 +205,40 @@ class $AssetsMessageGen {
class $AssetsOutdoorGen { class $AssetsOutdoorGen {
const $AssetsOutdoorGen(); const $AssetsOutdoorGen();
/// File path: assets/outdoor/ic_address.png
AssetGenImage get icAddress => AssetGenImage get icAddress =>
const AssetGenImage('assets/outdoor/ic_address.png'); const AssetGenImage('assets/outdoor/ic_address.png');
/// File path: assets/outdoor/ic_chuhu.png
AssetGenImage get icChuhu => AssetGenImage get icChuhu =>
const AssetGenImage('assets/outdoor/ic_chuhu.png'); const AssetGenImage('assets/outdoor/ic_chuhu.png');
/// File path: assets/outdoor/ic_goout.png
AssetGenImage get icGoout => AssetGenImage get icGoout =>
const AssetGenImage('assets/outdoor/ic_goout.png'); const AssetGenImage('assets/outdoor/ic_goout.png');
/// File path: assets/outdoor/ic_home.png
AssetGenImage get icHome => const AssetGenImage('assets/outdoor/ic_home.png'); AssetGenImage get icHome => const AssetGenImage('assets/outdoor/ic_home.png');
/// File path: assets/outdoor/ic_image.png
AssetGenImage get icImage => AssetGenImage get icImage =>
const AssetGenImage('assets/outdoor/ic_image.png'); const AssetGenImage('assets/outdoor/ic_image.png');
/// File path: assets/outdoor/ic_people.png
AssetGenImage get icPeople => AssetGenImage get icPeople =>
const AssetGenImage('assets/outdoor/ic_people.png'); const AssetGenImage('assets/outdoor/ic_people.png');
/// File path: assets/outdoor/ic_phoneblue.png
AssetGenImage get icPhoneblue => AssetGenImage get icPhoneblue =>
const AssetGenImage('assets/outdoor/ic_phoneblue.png'); const AssetGenImage('assets/outdoor/ic_phoneblue.png');
/// File path: assets/outdoor/ic_time.png
AssetGenImage get icTime => const AssetGenImage('assets/outdoor/ic_time.png'); AssetGenImage get icTime => const AssetGenImage('assets/outdoor/ic_time.png');
/// File path: assets/outdoor/ic_transport.png
AssetGenImage get icTransport => AssetGenImage get icTransport =>
const AssetGenImage('assets/outdoor/ic_transport.png'); const AssetGenImage('assets/outdoor/ic_transport.png');
/// File path: assets/outdoor/ic_weight.png
AssetGenImage get icWeight => AssetGenImage get icWeight =>
const AssetGenImage('assets/outdoor/ic_weight.png'); const AssetGenImage('assets/outdoor/ic_weight.png');
/// File path: assets/outdoor/item2.png
AssetGenImage get item2 => const AssetGenImage('assets/outdoor/item2.png'); AssetGenImage get item2 => const AssetGenImage('assets/outdoor/item2.png');
/// File path: assets/outdoor/item3.png
AssetGenImage get item3 => const AssetGenImage('assets/outdoor/item3.png'); AssetGenImage get item3 => const AssetGenImage('assets/outdoor/item3.png');
/// File path: assets/outdoor/itme1.png
AssetGenImage get itme1 => const AssetGenImage('assets/outdoor/itme1.png'); AssetGenImage get itme1 => const AssetGenImage('assets/outdoor/itme1.png');
} }
class $AssetsStaticFixGen { class $AssetsStaticFixGen {
const $AssetsStaticFixGen(); const $AssetsStaticFixGen();
/// File path: assets/static_fix/air1.png
AssetGenImage get air1 => const AssetGenImage('assets/static_fix/air1.png'); AssetGenImage get air1 => const AssetGenImage('assets/static_fix/air1.png');
/// File path: assets/static_fix/air2.png
AssetGenImage get air2 => const AssetGenImage('assets/static_fix/air2.png'); AssetGenImage get air2 => const AssetGenImage('assets/static_fix/air2.png');
/// File path: assets/static_fix/food.png
AssetGenImage get food => const AssetGenImage('assets/static_fix/food.png'); AssetGenImage get food => const AssetGenImage('assets/static_fix/food.png');
/// File path: assets/static_fix/food2.png
AssetGenImage get food2 => const AssetGenImage('assets/static_fix/food2.png'); AssetGenImage get food2 => const AssetGenImage('assets/static_fix/food2.png');
/// File path: assets/static_fix/light1.png
AssetGenImage get light1 => AssetGenImage get light1 =>
const AssetGenImage('assets/static_fix/light1.png'); const AssetGenImage('assets/static_fix/light1.png');
/// File path: assets/static_fix/light2.png
AssetGenImage get light2 => AssetGenImage get light2 =>
const AssetGenImage('assets/static_fix/light2.png'); const AssetGenImage('assets/static_fix/light2.png');
/// File path: assets/static_fix/light3.png
AssetGenImage get light3 => AssetGenImage get light3 =>
const AssetGenImage('assets/static_fix/light3.png'); const AssetGenImage('assets/static_fix/light3.png');
} }
@ -490,30 +246,15 @@ class $AssetsStaticFixGen {
class $AssetsStaticTempGen { class $AssetsStaticTempGen {
const $AssetsStaticTempGen(); const $AssetsStaticTempGen();
/// File path: assets/static_temp/drill.png
AssetGenImage get drill => AssetGenImage get drill =>
const AssetGenImage('assets/static_temp/drill.png'); const AssetGenImage('assets/static_temp/drill.png');
/// File path: assets/static_temp/f1.webp
AssetGenImage get f1 => const AssetGenImage('assets/static_temp/f1.webp'); AssetGenImage get f1 => const AssetGenImage('assets/static_temp/f1.webp');
/// File path: assets/static_temp/f2.webp
AssetGenImage get f2 => const AssetGenImage('assets/static_temp/f2.webp'); AssetGenImage get f2 => const AssetGenImage('assets/static_temp/f2.webp');
/// File path: assets/static_temp/f3.webp
AssetGenImage get f3 => const AssetGenImage('assets/static_temp/f3.webp'); AssetGenImage get f3 => const AssetGenImage('assets/static_temp/f3.webp');
/// File path: assets/static_temp/f4.webp
AssetGenImage get f4 => const AssetGenImage('assets/static_temp/f4.webp'); AssetGenImage get f4 => const AssetGenImage('assets/static_temp/f4.webp');
/// File path: assets/static_temp/f5.webp
AssetGenImage get f5 => const AssetGenImage('assets/static_temp/f5.webp'); AssetGenImage get f5 => const AssetGenImage('assets/static_temp/f5.webp');
/// File path: assets/static_temp/hammer.png
AssetGenImage get hammer => AssetGenImage get hammer =>
const AssetGenImage('assets/static_temp/hammer.png'); const AssetGenImage('assets/static_temp/hammer.png');
/// File path: assets/static_temp/ladder.png
AssetGenImage get ladder => AssetGenImage get ladder =>
const AssetGenImage('assets/static_temp/ladder.png'); const AssetGenImage('assets/static_temp/ladder.png');
} }
@ -521,14 +262,9 @@ class $AssetsStaticTempGen {
class $AssetsUserGen { class $AssetsUserGen {
const $AssetsUserGen(); const $AssetsUserGen();
/// File path: assets/user/ic_kefu.png
AssetGenImage get icKefu => const AssetGenImage('assets/user/ic_kefu.png'); AssetGenImage get icKefu => const AssetGenImage('assets/user/ic_kefu.png');
/// File path: assets/user/ic_person.png
AssetGenImage get icPerson => AssetGenImage get icPerson =>
const AssetGenImage('assets/user/ic_person.png'); const AssetGenImage('assets/user/ic_person.png');
/// File path: assets/user/ic_setup.png
AssetGenImage get icSetup => const AssetGenImage('assets/user/ic_setup.png'); AssetGenImage get icSetup => const AssetGenImage('assets/user/ic_setup.png');
} }

@ -3,11 +3,8 @@
/// FlutterGen /// FlutterGen
/// ***************************************************** /// *****************************************************
// ignore_for_file: directives_ordering,unnecessary_import
class FontFamily { class FontFamily {
FontFamily._(); FontFamily._();
/// Font family: Bebas
static const String bebas = 'Bebas'; static const String bebas = 'Bebas';
} }

@ -0,0 +1,261 @@
import 'package:aku_new_community_manager/const/saas_api.dart';
import 'package:aku_new_community_manager/gen/assets.gen.dart';
import 'package:aku_new_community_manager/saas_models/household_audit/household_audit_list_model.dart';
import 'package:aku_new_community_manager/ui/widgets/common/aku_scaffold.dart';
import 'package:aku_new_community_manager/ui/widgets/common/bee_divider.dart';
import 'package:aku_new_community_manager/ui/widgets/common/car_bottom_button.dart';
import 'package:aku_new_community_manager/ui/widgets/inner/aku_tab_bar.dart';
import 'package:aku_new_community_manager/utils/extension/list_extension.dart';
import 'package:aku_new_community_manager/utils/network/net_util.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:velocity_x/src/extensions/iterable_ext.dart';
import 'package:velocity_x/src/extensions/num_ext.dart';
import 'package:velocity_x/src/extensions/string_ext.dart';
class HouseholdAuditPage extends StatefulWidget {
const HouseholdAuditPage({Key? key}) : super(key: key);
@override
_HouseholdAuditPageState createState() => _HouseholdAuditPageState();
}
class _HouseholdAuditPageState extends State<HouseholdAuditPage>
with SingleTickerProviderStateMixin {
List<String> _tabs = ['全部', '待审核', '已同意', '已驳回'];
List<EasyRefreshController> _refreshControllers = [];
late TabController _tabController;
List<HouseholdAuditListModel> _models = [];
@override
void initState() {
_refreshControllers = List.filled(_tabs.length, EasyRefreshController());
_tabController = TabController(length: _tabs.length, vsync: this);
super.initState();
}
@override
void dispose() {
_refreshControllers.forEach((element) {
element.dispose();
});
_tabController.dispose();
super.dispose();
}
@override
Widget build(BuildContext context) {
return AkuScaffold(
title: '住户审核',
appBarBottom: PreferredSize(
preferredSize: Size.fromHeight(107.w),
child: AkuTabBar(
controller: _tabController,
tabs: _tabs,
)),
body: TabBarView(
controller: _tabController,
children: List.generate(_tabs.length, (index) => _getView(index))),
);
}
Widget _getView(int index) {
return EasyRefresh(
controller: _refreshControllers[index],
firstRefresh: true,
header: MaterialHeader(),
footer: MaterialFooter(),
onRefresh: () async {
var base = await NetUtil().getList(SAASAPI.householdAudit.list);
_models = base.rows
.map((e) => HouseholdAuditListModel.fromJson(e))
.toList();
setState(() {});
},
onLoad: () async {
var base = await NetUtil().getList(SAASAPI.householdAudit.list);
if (_models.length < base.total) {
_models.addAll(base.rows
.map((e) => HouseholdAuditListModel.fromJson(e))
.toList());
setState(() {});
} else {
_refreshControllers[index].finishLoad();
}
},
child: ListView(
padding: EdgeInsets.symmetric(horizontal: 32.w, vertical: 24.w),
children: _models
.mapIndexed((currentValue, index) => _card(currentValue, index))
.toList()
.sepWidget(separate: 24.w.heightBox),
));
}
Widget _card(HouseholdAuditListModel model, int index) {
return Stack(
children: [
Container(
width: double.infinity,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(16.w), color: Colors.white),
child: Column(
children: [
Container(
padding: EdgeInsets.symmetric(horizontal: 32.w, vertical: 16.w),
height: 77.w,
decoration: BoxDecoration(
gradient: LinearGradient(
begin: Alignment.centerLeft,
end: Alignment.centerRight,
// stops: [
// 0.4,
// 0.6,
// 0.8
// ],
colors: [
Color(0xFFFFEAC3).withOpacity(0.31),
Color(0xFFFEE1AE).withOpacity(0.24),
Color(0xFFFFFFFF),
])),
child: Row(
children: [
'2栋1单元502室'
.text
.size(32.sp)
.color(Colors.black.withOpacity(0.85))
.make(),
Spacer(),
'类型:${model.estateTypeName}'
.text
.size(24.sp)
.color(Colors.black.withOpacity(0.45))
.make(),
],
),
),
Padding(
padding: EdgeInsets.symmetric(horizontal: 24.w, vertical: 24.w),
child: Column(
children: [
Row(
mainAxisSize: MainAxisSize.max,
children: [
SizedBox(
width: 160.w,
child: '申请人'
.text
.size(28.sp)
.color(Colors.black.withOpacity(0.45))
.make()),
model.name.text
.size(28.sp)
.color(Colors.black.withOpacity(0.85))
.make(),
],
),
24.w.heightBox,
Row(
children: [
SizedBox(
width: 160.w,
child: '申请身份'
.text
.size(28.sp)
.color(Colors.black.withOpacity(0.45))
.make()),
_identity[model.identity]!
.text
.size(28.sp)
.color(Colors.black.withOpacity(0.85))
.make(),
],
),
24.w.heightBox,
Row(
children: [
SizedBox(
width: 160.w,
child: '申请身份'
.text
.size(28.sp)
.color(Colors.black.withOpacity(0.45))
.make()),
_identity[model.identity]!
.text
.size(28.sp)
.color(Colors.black.withOpacity(0.85))
.make(),
],
)
],
),
),
Offstage(
offstage: model.status != 1,
child: Column(
children: [
BeeDivider.horizontal(),
Padding(
padding: EdgeInsets.symmetric(
horizontal: 32.w, vertical: 24.w),
child: Row(
children: [
Spacer(),
CardBottomButton.yellow(
text: '通过',
onPressed: () async {
var base = await NetUtil().post(
SAASAPI.householdAudit.review,
params: {
'operate': 1,
'estateReviewId': model.estateReviewId
});
if (base.success) {
_refreshControllers[index].callRefresh();
}
}),
24.w.widthBox,
CardBottomButton.white(
text: '驳回',
onPressed: () async {
var base = await NetUtil().post(
SAASAPI.householdAudit.review,
params: {
'operate': 2,
'estateReviewId': model.estateReviewId
});
if (base.success) {
_refreshControllers[index].callRefresh();
}
}),
],
),
),
],
),
)
],
),
),
Positioned(
right: 24.w,
bottom: 24.w,
child: Offstage(
offstage: model.status == 1,
child: Image.asset(
model.status == 2
? Assets.manage.rejected.path
: Assets.manage.passed.path,
width: 160.w,
height: 160.w,
),
),
)
],
);
}
Map<int, String> _identity = {1: '业主', 2: '业主亲属', 3: '租户', 4: '租户亲属'};
}

@ -1,4 +1,5 @@
import 'package:aku_new_community_manager/gen/assets.gen.dart'; import 'package:aku_new_community_manager/gen/assets.gen.dart';
import 'package:aku_new_community_manager/new_ui/household_audit/household_audit_page.dart';
import 'package:aku_new_community_manager/new_ui/work_order/distributor/work_order_distributor_page.dart'; import 'package:aku_new_community_manager/new_ui/work_order/distributor/work_order_distributor_page.dart';
import 'package:aku_new_community_manager/new_ui/work_order/receiver/work_order_receiver_page.dart'; import 'package:aku_new_community_manager/new_ui/work_order/receiver/work_order_receiver_page.dart';
import 'package:aku_new_community_manager/tools/user_tool.dart'; import 'package:aku_new_community_manager/tools/user_tool.dart';
@ -51,8 +52,10 @@ class ApplicationUtil {
}), }),
AppElement( AppElement(
title: '住户审核', title: '住户审核',
imgPath: Assets.home.icArticle.path, imgPath: Assets.home.icVisitors.path,
onTap: () async {}) onTap: () async {
Get.to(() => HouseholdAuditPage());
})
]; ];
} }

@ -228,7 +228,7 @@ class _NewHomePageState extends State<NewHomePage> {
Column( Column(
children: [ children: [
Row( Row(
children: ApplicationUtil(['巡检管理', '工单管理']) children: ApplicationUtil(['巡检管理', '工单管理', '住户审核'])
.elements .elements
.map((e) => _applicationElement(e)) .map((e) => _applicationElement(e))
.toList() .toList()
@ -348,7 +348,12 @@ class _NewHomePageState extends State<NewHomePage> {
Column( Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
'小蜜蜂'.text.size(32.sp).black.bold.make(), '${UserTool.userProvider.userInfoModel!.nickName}'
.text
.size(32.sp)
.black
.bold
.make(),
10.w.heightBox, 10.w.heightBox,
Row( Row(
children: [ children: [
@ -359,11 +364,12 @@ class _NewHomePageState extends State<NewHomePage> {
color: Color(0xFFFFC40C), color: Color(0xFFFFC40C),
borderRadius: BorderRadius.circular(4.w), borderRadius: BorderRadius.circular(4.w),
), ),
child: '测试小区' child:
.text '${UserTool.userProvider.userInfoModel!.communityName}'
.size(24.sp) .text
.color(Colors.black.withOpacity(0.85)) .size(24.sp)
.make(), .color(Colors.black.withOpacity(0.85))
.make(),
), ),
16.w.widthBox, 16.w.widthBox,
Container( Container(
@ -373,11 +379,12 @@ class _NewHomePageState extends State<NewHomePage> {
color: Color(0xFFFFC40C), color: Color(0xFFFFC40C),
borderRadius: BorderRadius.circular(4.w), borderRadius: BorderRadius.circular(4.w),
), ),
child: '行政' child:
.text '${UserTool.userProvider.userInfoModel!.positionName}'
.size(24.sp) .text
.color(Colors.black.withOpacity(0.85)) .size(24.sp)
.make(), .color(Colors.black.withOpacity(0.85))
.make(),
) )
], ],
), ),

@ -36,7 +36,7 @@ class UserProvider extends ChangeNotifier {
/// ///
logout() async { logout() async {
await NetUtil().get(SAASAPI.login.logOut, showMessage: true); await NetUtil().post(SAASAPI.login.logOut, showMessage: true);
WebSocketUtil().closeWebSocket(); WebSocketUtil().closeWebSocket();
NetUtil().logout(); NetUtil().logout();
_isLogin = false; _isLogin = false;

@ -0,0 +1,49 @@
import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
part 'household_audit_list_model.g.dart';
@JsonSerializable()
class HouseholdAuditListModel extends Equatable {
final int estateReviewId;
final String name;
final String tel;
final int estateId;
final String estateName;
final String unitName;
final String buildingName;
final int identity;
final String idCard;
final int status;
final String estateTypeName;
factory HouseholdAuditListModel.fromJson(Map<String, dynamic> json) =>
_$HouseholdAuditListModelFromJson(json);
const HouseholdAuditListModel({
required this.estateReviewId,
required this.name,
required this.tel,
required this.estateId,
required this.estateName,
required this.unitName,
required this.buildingName,
required this.identity,
required this.idCard,
required this.status,
required this.estateTypeName,
});
@override
List<Object?> get props => [
estateReviewId,
name,
tel,
estateId,
estateName,
unitName,
buildingName,
identity,
idCard,
status,
estateTypeName,
];
}

@ -0,0 +1,23 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'household_audit_list_model.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
HouseholdAuditListModel _$HouseholdAuditListModelFromJson(
Map<String, dynamic> json) =>
HouseholdAuditListModel(
estateReviewId: json['estateReviewId'] as int,
name: json['name'] as String,
tel: json['tel'] as String,
estateId: json['estateId'] as int,
estateName: json['estateName'] as String,
unitName: json['unitName'] as String,
buildingName: json['buildingName'] as String,
identity: json['identity'] as int,
idCard: json['idCard'] as String,
status: json['status'] as int,
estateTypeName: json['estateTypeName'] as String,
);

@ -103,14 +103,11 @@ class NetUtil {
}) async { }) async {
try { try {
Response res = await _dio!.get(path, queryParameters: params); Response res = await _dio!.get(path, queryParameters: params);
if ((res.data as Map<String, dynamic>).containsKey('status') && if (res.data['success']) {
(res.data as Map<String, dynamic>).containsKey('data') && BaseListModel baseListModel = BaseListModel.fromJson(res.data['data']);
(res.data as Map<String, dynamic>).containsKey('message')) {
BaseModel baseModel = BaseModel.fromJson(res.data);
_parseRequestError(baseModel);
} else {
BaseListModel baseListModel = BaseListModel.fromJson(res.data);
return baseListModel; return baseListModel;
} else {
return BaseListModel.err();
} }
} on DioError catch (e) { } on DioError catch (e) {
_parseErr(e); _parseErr(e);

Loading…
Cancel
Save