通知修改;工单管理提醒

master
戴余标 2 years ago
parent abe8aa9e7c
commit 9018e8f2bd

@ -38,18 +38,6 @@ class NoticeModel extends Equatable {
List<Object?> get props => List<Object?> get props =>
[id, type, status, title, content, sendDate, jumpId]; [id, type, status, title, content, sendDate, jumpId];
Map<String, dynamic> toMap() {
return {
'id': this.id,
'type': this.type,
'status': this.status,
'title': this.title,
'content': this.content,
'sendDate': this.sendDate,
'jumpId': this.jumpId,
};
}
NoticeModel copyWith({ NoticeModel copyWith({
int? id, int? id,
int? type, int? type,

@ -7,11 +7,11 @@ part of 'notice_model.dart';
// ************************************************************************** // **************************************************************************
NoticeModel _$NoticeModelFromJson(Map<String, dynamic> json) => NoticeModel( NoticeModel _$NoticeModelFromJson(Map<String, dynamic> json) => NoticeModel(
id: ['id'] as int, id: json['id'] as int,
type: ['type'] as int, type: json['type'] as int,
status: ['status'] as int, status: json['status'] as int,
title: ['title'] as String, title: json['title'] as String,
content: ['content'] as String, content: json['content'] as String,
sendDate: ['sendDate'] as String, sendDate: json['sendDate'] as String,
jumpId: ['jumpId'] as int, jumpId: json['jumpId'] as int,
); );

@ -222,15 +222,18 @@ class _DistributorDetailPageState extends State<DistributorDetailPage> {
}, },
text: '移至待分配'); text: '移至待分配');
case 3: case 3:
return BeeLongButton( return SizedBox.shrink();
onPressed: () async {
var re = await WorkOrderFuc.reminderProcessing(widget.id);
if (re) {
_refreshController.callRefresh();
}
},
text: '提醒处理');
case 4: case 4:
return BeeLongButton(
onPressed: () async {
var re = await WorkOrderFuc.reminderProcessing(widget.id);
if (re) {
_refreshController.callRefresh();
}
},
text: '提醒处理');
case 5:
return BeeLongButton( return BeeLongButton(
onPressed: () async { onPressed: () async {
var re = await WorkOrderFuc.reminderConfirm(widget.id); var re = await WorkOrderFuc.reminderConfirm(widget.id);
@ -239,7 +242,8 @@ class _DistributorDetailPageState extends State<DistributorDetailPage> {
} }
}, },
text: '提醒用户确认'); text: '提醒用户确认');
case 5:
case 6:
return BeeLongButton( return BeeLongButton(
onPressed: () async { onPressed: () async {
WorkOrderFuc.getBill( WorkOrderFuc.getBill(
@ -255,8 +259,6 @@ class _DistributorDetailPageState extends State<DistributorDetailPage> {
); );
}, },
text: '提醒支付'); text: '提醒支付');
case 6:
case 7: case 7:
case 8: case 8:

@ -71,7 +71,6 @@ class _AnnounceViewState extends State<AnnounceView> {
Rect.fromLTRB(0, 0, 0, MediaQuery.of(context).padding.top + 130.w), Rect.fromLTRB(0, 0, 0, MediaQuery.of(context).padding.top + 130.w),
axis: Axis.vertical, axis: Axis.vertical,
); );
super.initState(); super.initState();
} }
@ -102,7 +101,7 @@ class _AnnounceViewState extends State<AnnounceView> {
await NetUtil().getList(SAASAPI.message.messageList, params: { await NetUtil().getList(SAASAPI.message.messageList, params: {
'pageNum': _page, 'pageNum': _page,
'size': _size, 'size': _size,
'type': 2, 'type': null,
}); });
_innerModelList = _innerModelList =
base.rows.map((e) => NoticeModel.fromJson(e)).toList(); base.rows.map((e) => NoticeModel.fromJson(e)).toList();
@ -110,7 +109,6 @@ class _AnnounceViewState extends State<AnnounceView> {
if (_modelLists.isNotEmpty) { if (_modelLists.isNotEmpty) {
_headMonth = _modelLists[0].month; _headMonth = _modelLists[0].month;
} }
setState(() {}); setState(() {});
}, },
onLoad: () async { onLoad: () async {
@ -119,7 +117,7 @@ class _AnnounceViewState extends State<AnnounceView> {
await NetUtil().getList(SAASAPI.message.messageList, params: { await NetUtil().getList(SAASAPI.message.messageList, params: {
'pageNum': _page, 'pageNum': _page,
'size': _size, 'size': _size,
'type': 2, 'type': null,
}); });
if (base.total > _modelLists.length) { if (base.total > _modelLists.length) {
_innerModelList = _innerModelList =
@ -127,7 +125,6 @@ class _AnnounceViewState extends State<AnnounceView> {
monthListDepart(_innerModelList); monthListDepart(_innerModelList);
setState(() {}); setState(() {});
} else { } else {
print('1111111');
_refreshController.finishLoadCallBack!(noMore: true); _refreshController.finishLoadCallBack!(noMore: true);
} }
}, },

Loading…
Cancel
Save