对接:报损

hmxc
张萌 4 years ago
parent e34ef21ad0
commit 7fc9cd8aba

@ -136,6 +136,9 @@ class _Manager {
/// ///
String get articleBorrowMylist => '/user/articleBorrow/myList'; String get articleBorrowMylist => '/user/articleBorrow/myList';
///
String get fromLoss => '/user/articleBorrow/frmLoss';
} }
class _Community { class _Community {

@ -1,6 +1,7 @@
// Flutter imports: // Flutter imports:
import 'package:akuCommunity/constants/api.dart'; import 'package:akuCommunity/constants/api.dart';
import 'package:akuCommunity/model/manager/mine_goods_model.dart'; import 'package:akuCommunity/model/manager/mine_goods_model.dart';
import 'package:akuCommunity/pages/manager_func.dart';
import 'package:akuCommunity/pages/things_page/widget/bee_list_view.dart'; import 'package:akuCommunity/pages/things_page/widget/bee_list_view.dart';
import 'package:akuCommunity/utils/bee_map.dart'; import 'package:akuCommunity/utils/bee_map.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
@ -33,9 +34,11 @@ class _MineGoodsPageState extends State<MineGoodsPage> {
_controller.dispose(); _controller.dispose();
} }
InkWell _frmLoss() { InkWell _frmLoss(int id) {
return InkWell( return InkWell(
onTap: () {}, onTap: () async {
await ManagerFunc.fromLoss(id);
},
child: Container( child: Container(
width: 120.w, width: 120.w,
height: 44.w, height: 44.w,
@ -135,7 +138,7 @@ class _MineGoodsPageState extends State<MineGoodsPage> {
color: Color(0xff999999), color: Color(0xff999999),
), ),
), ),
_frmLoss(), _frmLoss(model.id),
], ],
), ),
), ),

@ -148,4 +148,14 @@ class ManagerFunc {
return baseModel; return baseModel;
} }
static Future<BaseModel> fromLoss(int id)async{
BaseModel baseModel = await NetUtil().post(
API.manager.fromLoss,
params: {
'articleBorrowId':id
},
showMessage: true,
);
return baseModel;
}
} }

Loading…
Cancel
Save