Browse Source

兑换券跳转类型更改;

生意总览订单统计图更改;
核销数据对接完成;
已下架列表,选中下架数据优化;
管理系统我的页面更改;
管理系统首页更改;
核销接口更改;
wr_2023_business
wurong 1 year ago
parent
commit
a3af43585b
  1. 23
      lib/business_system/goods/off_shelf/off_shelf_page.dart
  2. 21
      lib/business_system/home/business_home_page.dart
  3. 10
      lib/business_system/home/overview/trade_order.dart
  4. 2
      lib/business_system/mine/business_mine_page.dart
  5. 8
      lib/business_system/order/order_list.dart
  6. 261
      lib/business_system/order/order_write_off.dart
  7. 2
      lib/home/welfare_page.dart
  8. 7
      lib/mine/coupon_page.dart
  9. 2
      lib/mine/coupons_page.dart
  10. 2
      lib/mine/roll_center_page.dart
  11. 25
      lib/order/write_off_page.dart
  12. 17
      lib/retrofit/business_api.dart
  13. 52
      lib/retrofit/business_api.g.dart
  14. 386
      lib/retrofit/data/business_order_list.dart
  15. 248
      pubspec.lock

23
lib/business_system/goods/off_shelf/off_shelf_page.dart

@ -40,7 +40,6 @@ class _OffShelfPage extends State<OffShelfPage> {
int _pageIndex = 1;
BusinessApiService businessService;
List<AdminProductVoList> adminProductVoList = [];
List<dynamic> productIds = [];
bool _shimmer = true;
@override
@ -106,7 +105,7 @@ class _OffShelfPage extends State<OffShelfPage> {
}
///
queryGoodsUpdate() async {
queryGoodsUpdate(productIds) async {
EasyLoading.show(
status: S.current.zhengzaijiazai, maskType: EasyLoadingMaskType.black);
if (businessService == null) {
@ -134,7 +133,7 @@ class _OffShelfPage extends State<OffShelfPage> {
}
///
queryDelProduct() async {
queryDelProduct(productIds) async {
EasyLoading.show(
status: S.current.zhengzaijiazai, maskType: EasyLoadingMaskType.black);
if (businessService == null) {
@ -271,16 +270,17 @@ class _OffShelfPage extends State<OffShelfPage> {
child: GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () {
if (productIds.length != 0) productIds.clear();
List<dynamic> productIds = [];
adminProductVoList.forEach((element) {
if (element.isSelect) productIds.add(element.id);
if (element.isSelect)
productIds.add(element.id);
});
if (productIds.length == 0) {
SmartDialog.showToast("请选择要上架的商品",
alignment: Alignment.center);
return;
} else {
queryGoodsUpdate();
queryGoodsUpdate(productIds);
}
},
child: Container(
@ -305,16 +305,17 @@ class _OffShelfPage extends State<OffShelfPage> {
child: GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () {
if (productIds.length != 0) productIds.clear();
List<dynamic> productIds = [];
adminProductVoList.forEach((element) {
if (element.isSelect) productIds.add(element.id);
if (element.isSelect)
productIds.add(element.id);
});
if (productIds.length == 0) {
SmartDialog.showToast("请选择要删除的商品",
alignment: Alignment.center);
return;
} else {
showDelGoodsDialog();
showDelGoodsDialog(productIds);
}
},
child: Container(
@ -388,7 +389,7 @@ class _OffShelfPage extends State<OffShelfPage> {
}
///
showDelGoodsDialog() {
showDelGoodsDialog(productIds) {
showDialog(
context: context,
builder: (context) {
@ -447,7 +448,7 @@ class _OffShelfPage extends State<OffShelfPage> {
),
onTap: () {
Navigator.of(context).pop();
queryDelProduct();
queryDelProduct(productIds);
},
),
flex: 1,

21
lib/business_system/home/business_home_page.dart

@ -567,16 +567,17 @@ class _BusinessHomePage extends State<BusinessHomePage>
SizedBox(
height: 18.h,
),
if (lineChartSample2Data.isNotEmpty)
(lineChartSample2Data.isNotEmpty)
? NoDataView(
src: "assets/image/bs_no data_logo.webp",
isShowBtn: false,
text: "暂无数据",
fontSize: 16.sp,
margin: EdgeInsets.all(20.h),
)
: LineChartSample2(lineChartSample2Data, "销售量"),
// if (lineChartSample2Data.isNotEmpty)
// (lineChartSample2Data.isNotEmpty)
// ? NoDataView(
// src: "assets/image/bs_no data_logo.webp",
// isShowBtn: false,
// text: "暂无数据",
// fontSize: 16.sp,
// margin: EdgeInsets.all(20.h),
// )
// :
LineChartSample2(lineChartSample2Data, "销售量"),
],
),
);

10
lib/business_system/home/overview/trade_order.dart

@ -177,8 +177,8 @@ class _TradeOrder extends State<TradeOrder> {
alignment: Alignment.center);
});
if (baseData != null && baseData.isSuccess) {
int amountIndex = 0;
int numIndex = 0;
double amountIndex = 0;
double numIndex = 0;
if (baseData.data.saleBusinessAnalysisVOS.isNotEmpty) {
lineChartSample2DataOrderAmount.clear();
lineChartSample2DataOrderNum.clear();
@ -186,14 +186,14 @@ class _TradeOrder extends State<TradeOrder> {
tradeSummaryList = baseData.data;
tradeSummaryList.saleBusinessAnalysisVOS.forEach((element) {
lineChartSample2DataOrderAmount.add(LineChartSample2Data(
amountIndex.toDouble(),
amountIndex,
double.tryParse(element.localDateBigDecimal.toString()),
element.localDateTime.substring(0, 10)));
amountIndex += 1;
});
tradeSummaryList.saleBusinessAnalysisVOS.forEach((element) {
lineChartSample2DataOrderNum.add(LineChartSample2Data(
numIndex.toDouble(),
numIndex,
double.tryParse(element.localDateCount.toString()),
element.localDateTime.substring(0, 10)));
numIndex += 1;
@ -491,7 +491,7 @@ class _TradeOrder extends State<TradeOrder> {
}
},
child: Container(
width: 194.w,
width: 200.w,
alignment: Alignment.center,
padding: EdgeInsets.all(8),
decoration: BoxDecoration(

2
lib/business_system/mine/business_mine_page.dart

@ -106,9 +106,7 @@ class _BusinessMinePage extends State<BusinessMinePage>
),
onRefresh: () {
if (widget.businessLoginInfo != null){
// if(widget.businessLoginInfo.storeList.length <= 1)
queryStoreList();
// refreshController.refreshCompleted();
}
else
refreshController.refreshFailed();

8
lib/business_system/order/order_list.dart

@ -327,9 +327,13 @@ class _OrderList extends State<OrderList> {
Navigator.of(context)
.pushNamed('/router/order_write_off', arguments:{
"tickets":adminOrderDtoList.tickets,
"productName": adminOrderDtoList.orderProductList[index].productName,
"orderCode": adminOrderDtoList?.orderCode ?? "",
"userName":adminOrderDtoList?.name ?? ""
"userName":adminOrderDtoList?.name ?? "",
"ticketStatus":adminOrderDtoList?.ticketStatus,
}).then((value) async{
// _pageIndex = 1;
adminOrderDTOList.clear();
await _onRefresh(isShowLoad: false);
});
},
child: Container(

261
lib/business_system/order/order_write_off.dart

@ -1,11 +1,15 @@
import 'dart:convert';
import 'package:dio/dio.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
import 'package:huixiang/utils/font_weight.dart';
import 'package:huixiang/view_widget/my_appbar.dart';
import 'package:pull_to_refresh/pull_to_refresh.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import '../../generated/l10n.dart';
import '../../retrofit/business_api.dart';
import '../../retrofit/data/base_data.dart';
import '../../retrofit/data/business_order_list.dart';
@ -28,51 +32,21 @@ class _OrderWriteOff extends State<OrderWriteOff> {
final RefreshController refreshController = RefreshController();
var writeOffCheck = false;
List<Tickets> tickets;
String productName;
AdminOrderDtoList adminOrderDTOList;
int nameIndex = 0;
BusinessApiService businessService;
List<dynamic> itemMap = [];
List<dynamic> skuTickets = [];
@override
void initState() {
super.initState();
tickets = widget.arguments["tickets"];
productName = widget.arguments["productName"];
}
///
singleWiped() async {
if (businessService == null) {
businessService = BusinessApiService(Dio(),
context: context,
token: BusinessInstance.instance.businessToken,
tenant: BusinessInstance.instance.businessTenant,
storeId: widget.arguments["storeId"]);
}
BaseData baseData = await businessService.wiped({
"pageNum":1,
"pageSize":10,
"productId":"",
"productSkuId":"",
"searchKey":"",
"state":"",
"storeId":"",
"ticketCode":"",
"ticketId":"",
"ticketItemIds":[],
"type":""
}).catchError((error) {});
if (baseData != null && baseData.isSuccess) {
SmartDialog.showToast("核销成功", alignment: Alignment.center);
Navigator.pop(context);
} else {
SmartDialog.showToast(baseData.msg, alignment: Alignment.center);
}
}
///
severalWiped() async {
severalWiped(ticketWipedBatch) async {
// try {
EasyLoading.show(
status: S.current.zhengzaijiazai, maskType: EasyLoadingMaskType.black);
if (businessService == null) {
businessService = BusinessApiService(Dio(),
context: context,
@ -80,27 +54,22 @@ class _OrderWriteOff extends State<OrderWriteOff> {
tenant: BusinessInstance.instance.businessTenant,
storeId: widget.arguments["storeId"]);
}
BaseData baseData = await businessService.posTicketRecharge({
"itemMap":[{
"productSkuld":tickets[nameIndex].productSkuId ?? "",
"skuTickets":[{
"number":1,
"skuTicket":tickets[nameIndex].name ?? "",
"state":tickets[nameIndex].state ?? "",
}]
}],
"ticketCode":tickets[nameIndex].code ?? "",
}).catchError((error) {});
BaseData baseData = await businessService
.wipedBatchs(jsonEncode(ticketWipedBatch).replaceAll("\\\"", "\""))
.catchError((error) {});
if (baseData != null && baseData.isSuccess) {
SmartDialog.showToast("核销成功", alignment: Alignment.center);
EasyLoading.dismiss();
Navigator.pop(context);
SmartDialog.showToast("核销成功", alignment: Alignment.center);
} else {
EasyLoading.dismiss();
SmartDialog.showToast(baseData.msg, alignment: Alignment.center);
}
// } finally {
// EasyLoading.dismiss();
// }
}
@override
Widget build(BuildContext context) {
return Scaffold(
@ -139,36 +108,55 @@ class _OrderWriteOff extends State<OrderWriteOff> {
writeOffInfo(),
GestureDetector(
onTap: () {
if (itemMap.length != 0) itemMap.clear();
if (widget.arguments["ticketStatus"] == false) {
return;
} else {
List<dynamic> ticketWipedBatch = [];
tickets.forEach((element) {
if (element.isSelect) {
List<dynamic> skuTickets = [];
element.ticketItemList.forEach((ele) {
if (ele.isSelect) {
skuTickets.add({
"number": 1,
"skuTicket":element.name,
"state":element.state,});
itemMap.add({
"skuTicket": ele.name,
"state": ele.state,
});
}
});
if (skuTickets.isNotEmpty) {
ticketWipedBatch.add({
"itemMap": [
{
"productSkuld": element.productSkuId,
"ticketExchangeName": element.name,
"ticketId": element.id,
"skuTickets": skuTickets
}
],
"ticketCode": element.code,
});
}
});
if (itemMap.length == 0) {
if (ticketWipedBatch.length == 0) {
SmartDialog.showToast("请选择要核销的商品",
alignment: Alignment.center);
return;
} else {
severalWiped();
severalWiped(ticketWipedBatch);
}
}
},
child: Container(
width: double.infinity,
alignment: Alignment.center,
margin: EdgeInsets.only(bottom:55.h,),
margin: EdgeInsets.only(
bottom: 55.h, top: tickets.length < 2 ? 125.h : 0),
padding: EdgeInsets.symmetric(vertical: 16.h),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(27),
color: Color(0xFF30415B)
),
color: widget.arguments["ticketStatus"] == true
? Color(0xFF30415B)
: Color(0xFFABACAB)),
child: Text(
"确认核销",
style: TextStyle(
@ -227,9 +215,7 @@ class _OrderWriteOff extends State<OrderWriteOff> {
SizedBox(
height: 12.h,
),
basicInfoItem("票券名称:",tickets[nameIndex].name ?? ""),
basicInfoItem("用户名称::", widget?.arguments["userName"] ?? ""),
basicInfoItem("票券编号::",tickets[nameIndex].code ?? ""),
basicInfoItem("订单编号::", widget?.arguments["orderCode"] ?? ""),
],
),
@ -351,33 +337,122 @@ class _OrderWriteOff extends State<OrderWriteOff> {
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.center,
children: [
Expanded(child: Text(
Expanded(
child: Text(
tickets?.name ?? "",
style: TextStyle(
fontWeight: MyFontWeight.regular,
fontWeight: MyFontWeight.bold,
fontSize: 14.sp,
color: tickets.state == 1?Color(0xFF0D0D0D):Color(0xFFABACAB),
color: tickets.state != 9
? (tickets.state == 7
? Color(0xFFACACAC)
: (tickets.state == 8
? Color(0xFFACACAC)
: Color(0xFF30415B)))
: Color(0xFFABACAB),
),
)),
Expanded(child: Column(
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.end,
children: [
Padding(padding: EdgeInsets.only(right:10.w),
Padding(
padding: EdgeInsets.only(right: 10.w),
child: Text(
(tickets.state == 1)?"待核销":"已核销",
(tickets.state != 9)
? (tickets.state == 7
? "已退款"
: (tickets.state == 8 ? "票券已失效" : "待核销"))
: "已核销",
style: TextStyle(
fontWeight: MyFontWeight.semi_bold,
fontSize: 12.sp,
color: (tickets.state == 1)?Color(0xFF30415B):Color(0xFFACACAC),
color: (tickets.state != 9)
? (tickets.state == 7
? Color(0xFFACACAC)
: (tickets.state == 8
? Color(0xFFACACAC)
: Color(0xFF30415B)))
: Color(0xFFACACAC),
),
),),
SizedBox(height:25.h,),
if(tickets.state == 1)
Checkbox(
value: tickets.isSelect,
),
),
],
))
],
),
ListView.builder(
padding: EdgeInsets.zero,
itemCount: tickets?.ticketItemList?.length ?? 0,
scrollDirection: Axis.vertical,
shrinkWrap: true,
physics: BouncingScrollPhysics(),
itemBuilder: (context, position) {
return GestureDetector(
onTap: () {},
child: skuTicketsItem(tickets.ticketItemList[position]),
);
},
),
Container(
margin: EdgeInsets.only(bottom: 11.h, top: 13.h),
width: double.infinity,
height: 1.h,
color: Color(0xFFEBECEF),
)
],
),
);
}
Widget skuTicketsItem(TicketItemList ticketItemList) {
return Container(
width: double.infinity,
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center,
children: [
Expanded(
child: Text(
ticketItemList?.name ?? "",
style: TextStyle(
fontWeight: MyFontWeight.regular,
fontSize: 12.sp,
color: Color(0xFF0D0D0D),
),
)),
(tickets[nameIndex].state == 7 || tickets[nameIndex].state == 8)
? (ticketItemList.state != 9
? Container(
margin: EdgeInsets.symmetric(vertical: 20.h),
)
: Align(
alignment: Alignment.centerRight,
child: Container(
margin: EdgeInsets.only(
right: 15.w, top: 10.h, bottom: 10.h),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(
2,
),
border: Border.all(
color: Color(0xFFCFCFCF),
width: 1.w,
),
),
child: Icon(
Icons.check,
color: Color(0xFFCFCFCF),
size: 14.w,
)),
))
: (ticketItemList.state == 1
? Checkbox(
value: ticketItemList.isSelect,
onChanged: (a) {
setState(() {
tickets.isSelect = !tickets.isSelect;
ticketItemList.isSelect = !ticketItemList.isSelect;
});
},
shape: RoundedRectangleBorder(
@ -385,16 +460,12 @@ class _OrderWriteOff extends State<OrderWriteOff> {
),
checkColor: Color(0xFFFFFFFF),
fillColor: MaterialStateProperty.all(Color(0xFF30415B)),
),
],
))
],
),
if(tickets.state != 1)
Align(
)
: Align(
alignment: Alignment.centerRight,
child: Container(
margin: EdgeInsets.only(right:10.w),
margin: EdgeInsets.only(
right: 15.w, top: 10.h, bottom: 10.h),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(
@ -409,14 +480,8 @@ class _OrderWriteOff extends State<OrderWriteOff> {
Icons.check,
color: Color(0xFFCFCFCF),
size: 14.w,
)
),),
Container(
margin: EdgeInsets.only(bottom:11.h,top: 13.h),
width: double.infinity,
height: 1.h,
color: Color(0xFFEBECEF),
)
)),
))
],
),
);
@ -431,7 +496,8 @@ class _OrderWriteOff extends State<OrderWriteOff> {
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.center,
children: [
Expanded(child: Text(
Expanded(
child: Text(
"哈哈哈哈哈",
style: TextStyle(
fontWeight: MyFontWeight.regular,
@ -439,10 +505,12 @@ class _OrderWriteOff extends State<OrderWriteOff> {
color: Color(0xFF0D0D0D),
),
)),
Expanded(child: Column(
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.end,
children: [
Padding(padding: EdgeInsets.only(right:10.w),
Padding(
padding: EdgeInsets.only(right: 10.w),
child: Text(
"已核销",
style: TextStyle(
@ -450,8 +518,11 @@ class _OrderWriteOff extends State<OrderWriteOff> {
fontSize: 12.sp,
color: Color(0xFF30415B),
),
),),
SizedBox(height:25.h,),
),
),
SizedBox(
height: 25.h,
),
Checkbox(
value: writeOffCheck,
onChanged: (a) {

2
lib/home/welfare_page.dart

@ -652,7 +652,7 @@ class _WelfarePage extends State<WelfarePage> {
Navigator.of(context)
.pushNamed('/router/write_off_page', arguments: {
"couponId": cop.id,
"coupon": jsonEncode(cop.toJson()),
"coupon": cop,
});
} else {
showStoreSelector(cop.storeList);

7
lib/mine/coupon_page.dart

@ -241,18 +241,21 @@ class _CouponPage extends State<CouponPage> {
} else {
if (coupons[position].bizType == 5 ||
coupons[position].bizType == 3) {
try{
Navigator.of(context).pushNamed(
'/router/write_off_page',
arguments: {
"couponId": coupons[position].id,
"coupon": jsonEncode(coupons[position]),
"coupon": coupons[position],
}).then((value) {
_onRefresh();
});
}catch(e){
print(e);
}
} else {
showStoreSelector(
coupons[position].storeList);
}
}
},

2
lib/mine/coupons_page.dart

@ -180,7 +180,7 @@ class _CouponsPage extends State<CouponsPage> {
'/router/write_off_page',
arguments: {
"couponId": coupons[position].id,
"coupon": jsonEncode(coupons[position]),
"coupon": coupons[position],
}).then((value) {
_onRefresh();
});

2
lib/mine/roll_center_page.dart

@ -134,7 +134,7 @@ class _RollCenterPage extends State<RollCenterPage> {
'/router/write_off_page',
arguments: {
"couponId": coupons[position].id,
"coupon": coupons[position].toJson()
"coupon": coupons[position]
});
} else {
showStoreSelector(coupons[position].storeList);

25
lib/order/write_off_page.dart

@ -33,7 +33,7 @@ class WriteOffPage extends StatefulWidget {
}
class _WriteOffPage extends State<WriteOffPage> {
dynamic coupon;
Coupon coupon;
ApiService apiService;
CouponDetail queryCoupon;
final RefreshController refreshController = RefreshController();
@ -42,10 +42,10 @@ class _WriteOffPage extends State<WriteOffPage> {
void initState() {
super.initState();
coupon = jsonDecode(widget.arguments["coupon"]);
coupon = widget.arguments["coupon"];
if (mounted) setState(() {});
queryCouponDetail(coupon["memberCouponId"]);
queryCouponDetail(coupon.memberCouponId);
}
////
@ -60,15 +60,14 @@ class _WriteOffPage extends State<WriteOffPage> {
}
BaseData baseData = await apiService.couponDetail(memberCouponId);
if (baseData != null && baseData.isSuccess) {
setState(() {
queryCoupon = baseData.data;
if(queryCoupon.status==2){
Navigator.of(context).pop(true);
}
else Future.delayed(Duration(seconds: 1), () {
queryCouponDetail(coupon["memberCouponId"]);
});
});
// else Future.delayed(Duration(seconds: 15), () {
// queryCouponDetail(coupon["memberCouponId"]);
// });
// setState(() {});
} else {
SmartDialog.showToast(baseData.msg, alignment: Alignment.center);
}
@ -127,7 +126,7 @@ class _WriteOffPage extends State<WriteOffPage> {
child: Column(
children: [
Text(
coupon != null ? coupon["couponName"] : "",
coupon != null ? coupon.couponName : "",
style: TextStyle(
fontSize: 16.sp,
fontWeight: FontWeight.bold,
@ -137,8 +136,8 @@ class _WriteOffPage extends State<WriteOffPage> {
height:11.h,
),
Text(
(coupon["useStartTime"] == null || coupon["useEndTime"] == null) ? "" : S.of(context).youxiaoqi(
"${coupon["useStartTime"].replaceAll("-", ".").split(" ")[0]}-${coupon["useEndTime"].replaceAll("-", ".").split(" ")[0]}"),
(coupon.useStartTime == null || coupon.useEndTime == null) ? "" : S.of(context).youxiaoqi(
"${coupon.useStartTime.replaceAll("-", ".").split(" ")[0]}-${coupon.useEndTime.replaceAll("-", ".").split(" ")[0]}"),
style: TextStyle(
fontSize: 12.sp,
color: Color(0xFF353535),
@ -203,7 +202,7 @@ class _WriteOffPage extends State<WriteOffPage> {
height: 16.h,
),
Expanded(child: QrImage(
data: "{\"type\":\"wiped\",\"memberCouponId\":\"${coupon["memberCouponId"]}\"}",
data: "{\"type\":\"wiped\",\"memberCouponId\":\"${coupon.memberCouponId}\"}",
version: QrVersions.auto,
size: 250.w,
gapless: true,
@ -560,7 +559,7 @@ class _WriteOffPage extends State<WriteOffPage> {
Container(
child: Html(
data:
coupon != null ? coupon["remark"] : "",
coupon != null ? coupon.remark : "",
customImageRenders: {
networkSourceMatcher(): networkImageRender(
loadingWidget: () {

17
lib/retrofit/business_api.dart

@ -247,20 +247,9 @@ abstract class BusinessApiService {
Future<BaseData<UploadResult>> upload(@Part(name: "file") File data,
@Part(name: "folderId") int folderId);
///
@POST("ticket/wiped")
Future<BaseData> wiped(
@Body() Map<String, dynamic> param);
///
@POST("ticket/wipedBatch")
Future<BaseData> wipedBatch(
@Body() Map<String, dynamic> param);
///pos端核销接口
@POST("member/posTicketRecharge")
Future<BaseData> posTicketRecharge(
@Body() Map<String, dynamic> param);
@POST("ticket/wipedBatchs")
Future<BaseData> wipedBatchs(
@Body() String param);
}

52
lib/retrofit/business_api.g.dart

@ -554,64 +554,18 @@ class _BusinessApiService implements BusinessApiService {
}
@override
Future<BaseData> wiped(param) async {
Future<BaseData> wipedBatchs(param) async {
ArgumentError.checkNotNull(param, 'param');
const _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{};
final _data = <String, dynamic>{};
_data.addAll(param ?? <String, dynamic>{});
final _result = await _dio.request<Map<String, dynamic>>('ticket/wiped',
queryParameters: queryParameters,
options: RequestOptions(
method: 'POST',
headers: <String, dynamic>{},
extra: _extra,
baseUrl: baseUrl),
data: _data);
final value = BaseData.fromJson(
_result.data,
(json) => json == null ? null : json,
);
return value;
}
@override
Future<BaseData> wipedBatch(param) async {
ArgumentError.checkNotNull(param, 'param');
const _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{};
final _data = <String, dynamic>{};
_data.addAll(param ?? <String, dynamic>{});
final _result = await _dio.request<Map<String, dynamic>>('ticket/wipedBatch',
final _result = await _dio.request<Map<String, dynamic>>('ticket/wipedBatchs',
queryParameters: queryParameters,
options: RequestOptions(
method: 'POST',
headers: <String, dynamic>{},
extra: _extra,
baseUrl: baseUrl),
data: _data);
final value = BaseData.fromJson(
_result.data,
(json) => json == null ? null : json,
);
return value;
}
@override
Future<BaseData> posTicketRecharge(param) async {
ArgumentError.checkNotNull(param, 'param');
const _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{};
final _data = <String, dynamic>{};
_data.addAll(param ?? <String, dynamic>{});
final _result = await _dio.request<Map<String, dynamic>>('member/posTicketRecharge',
queryParameters: queryParameters,
options: RequestOptions(
method: 'POST',
headers: <String, dynamic>{},
extra: _extra,
baseUrl: baseUrl),
data: _data);
data: param);
final value = BaseData.fromJson(
_result.data,
(json) => json == null ? null : json,

386
lib/retrofit/data/business_order_list.dart

File diff suppressed because one or more lines are too long

248
pubspec.lock

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save