Browse Source
订单接口对接更改,(核销显示暂未确定) 我的页面-数据对接;(商户信息板块暂未确定,修改密码接口暂未确定) 商品板块接口对接(未完,暂时仅商品列表,分组列表接口对接) 流水日期选择待优化;wr_2023_business
wurong
1 year ago
30 changed files with 5290 additions and 732 deletions
@ -0,0 +1,138 @@ |
|||||||
|
import 'dart:ui'; |
||||||
|
|
||||||
|
import 'package:flutter/cupertino.dart'; |
||||||
|
import 'package:flutter/material.dart'; |
||||||
|
import 'package:image_pickers/image_pickers.dart'; |
||||||
|
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
||||||
|
import 'package:scan/scan.dart'; |
||||||
|
import '../generated/l10n.dart'; |
||||||
|
|
||||||
|
class BusinessScanCode extends StatefulWidget { |
||||||
|
|
||||||
|
@override |
||||||
|
State<StatefulWidget> createState() { |
||||||
|
return _BusinessScanCode(); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
class _BusinessScanCode extends State<BusinessScanCode> |
||||||
|
with AutomaticKeepAliveClientMixin { |
||||||
|
ScanController controller = ScanController(); |
||||||
|
final screenWidth = window.physicalSize.width; |
||||||
|
final screenHeight = window.physicalSize.height; |
||||||
|
|
||||||
|
@override |
||||||
|
void initState() { |
||||||
|
super.initState(); |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
@override |
||||||
|
void dispose() { |
||||||
|
if (this.controller != null) { |
||||||
|
this.controller.pause(); |
||||||
|
} |
||||||
|
super.dispose(); |
||||||
|
} |
||||||
|
|
||||||
|
@override |
||||||
|
Widget build(BuildContext context) { |
||||||
|
super.build(context); |
||||||
|
return Scaffold( |
||||||
|
body: Container( |
||||||
|
child: Stack( |
||||||
|
children: [ |
||||||
|
Positioned( |
||||||
|
child: Column( |
||||||
|
children: [ |
||||||
|
Expanded( |
||||||
|
child: ScanView( |
||||||
|
controller: controller, |
||||||
|
scanAreaScale: 0.7, |
||||||
|
scanLineColor: Colors.green.shade400, |
||||||
|
onCapture: (data) { |
||||||
|
if (data != null && data != "") { |
||||||
|
// Navigator.of(context).pop(data); |
||||||
|
|
||||||
|
} |
||||||
|
}, |
||||||
|
), |
||||||
|
flex: 1, |
||||||
|
), |
||||||
|
], |
||||||
|
), |
||||||
|
top: 0, |
||||||
|
bottom: 0, |
||||||
|
left: 0, |
||||||
|
right: 0, |
||||||
|
), |
||||||
|
Positioned( |
||||||
|
child: Container( |
||||||
|
margin: EdgeInsets.only(left:12.w,right: 16.w,top: 16.h), |
||||||
|
child:Row( |
||||||
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
||||||
|
crossAxisAlignment: CrossAxisAlignment.center, |
||||||
|
children: [ |
||||||
|
Expanded(child:Text( |
||||||
|
S.of(context).saoma, |
||||||
|
style: TextStyle( |
||||||
|
color: Colors.white, |
||||||
|
fontSize: 18.sp, |
||||||
|
fontWeight: FontWeight.bold, |
||||||
|
), |
||||||
|
)), |
||||||
|
GestureDetector( |
||||||
|
behavior: HitTestBehavior.opaque, |
||||||
|
onTap: () { |
||||||
|
pickImage(); |
||||||
|
}, |
||||||
|
child:Container( |
||||||
|
padding: EdgeInsets.symmetric(horizontal:10.w), |
||||||
|
child: Text( |
||||||
|
S.of(context).xiangce, |
||||||
|
style: TextStyle( |
||||||
|
color: Colors.black, |
||||||
|
fontSize: 18.sp, |
||||||
|
fontWeight: FontWeight.bold, |
||||||
|
), |
||||||
|
), |
||||||
|
), |
||||||
|
), |
||||||
|
], |
||||||
|
), |
||||||
|
), |
||||||
|
top:MediaQuery.of(context).padding.top, |
||||||
|
left: 0, |
||||||
|
right: 0, |
||||||
|
), |
||||||
|
], |
||||||
|
), |
||||||
|
), |
||||||
|
); |
||||||
|
} |
||||||
|
|
||||||
|
pickImage() async { |
||||||
|
List<Media> medias = await ImagePickers.pickerPaths( |
||||||
|
galleryMode: GalleryMode.image, |
||||||
|
selectCount: 1, |
||||||
|
showGif: true, |
||||||
|
showCamera: false, |
||||||
|
compressSize: 500, |
||||||
|
uiConfig: UIConfig( |
||||||
|
uiThemeColor: Color(0xFFFFFFFF), |
||||||
|
), |
||||||
|
cropConfig: CropConfig( |
||||||
|
enableCrop: false, |
||||||
|
), |
||||||
|
); |
||||||
|
if (medias != null && medias.length > 0) { |
||||||
|
String result = await Scan.parse(medias[0].path); |
||||||
|
if (result != null && result != "") { |
||||||
|
// Navigator.of(context).pop(result); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
@override |
||||||
|
bool get wantKeepAlive => true; |
||||||
|
} |
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,779 @@ |
|||||||
|
/// total : 1 |
||||||
|
/// adminOrderDTOList : [{"id":"1704311046749028352","orderCode":"202309200946320001","storeName":"士林鲜果&牛奶","productCount":1,"orderStatus":1,"orderSum":"0.01","paySum":"0","createTime":"2023-09-20 09:46:33","returnType":0,"orderType":0,"returnCode":null,"returnStatus":null,"applyTime":null,"applySum":null,"memberAccount":"郑州小吃街","name":null,"payStatus":0,"couponSubPrice":"0.00","totalDiscountPrice":"0.00","orderSource":3,"dayFlowCode":"352","tableId":"0","tableName":null,"realPeople":null,"refundStatus":0,"notes":"","payNum":null,"reason":null,"isSubscribe":false,"subcribeTime":null,"endRefundTime":null,"memberInfo":null,"orderProductList":[{"id":"1704311046925189120","createTime":"2023-09-20 09:46:33","createUser":"1640233401329909760","updateTime":"2023-09-20 09:46:33","updateUser":"1640233401329909760","tenantCode":"1195","storeId":"1645316356192600064","orderId":"1704311046749028352","actInfo":null,"productId":"1685891939443933184","productName":"芒果牛乳","skuId":"1704310860643565568","skuNameStr":"700ml 冰 七分糖","skuImg":"","buyNum":1,"refundNum":0,"type":0,"reason":null,"weight":0.0,"applyPrice":"19.00","sellPrice":"0.01","postPay":"0.00","isDelete":0,"discountAmount":"0.00","discountPercent":100,"status":true,"batch":1,"deliveries":0,"ticketType":"","ticketDays":"0","takeType":null,"skuTickets":[],"ticketStyle":"","setMealDataList":null,"packagingFee":"0.00"}],"mid":"1640233401329909760","isTakeOut":0,"logisticsId":"0","shipperCode":"","logisticsName":"","logisticsNum":"","logisticsCase":null,"postFee":"0.00","finalPayPrice":"0.00"}] |
||||||
|
|
||||||
|
class BusinessOrderList { |
||||||
|
BusinessOrderList({ |
||||||
|
num total, |
||||||
|
List<AdminOrderDtoList> adminOrderDTOList,}){ |
||||||
|
_total = total; |
||||||
|
_adminOrderDTOList = adminOrderDTOList; |
||||||
|
} |
||||||
|
|
||||||
|
BusinessOrderList.fromJson(dynamic json) { |
||||||
|
_total = json['total']; |
||||||
|
if (json['adminOrderDTOList'] != null) { |
||||||
|
_adminOrderDTOList = []; |
||||||
|
json['adminOrderDTOList'].forEach((v) { |
||||||
|
_adminOrderDTOList.add(AdminOrderDtoList.fromJson(v)); |
||||||
|
}); |
||||||
|
} |
||||||
|
} |
||||||
|
num _total; |
||||||
|
List<AdminOrderDtoList> _adminOrderDTOList; |
||||||
|
BusinessOrderList copyWith({ num total, |
||||||
|
List<AdminOrderDtoList> adminOrderDTOList, |
||||||
|
}) => BusinessOrderList( total: total ?? _total, |
||||||
|
adminOrderDTOList: adminOrderDTOList ?? _adminOrderDTOList, |
||||||
|
); |
||||||
|
num get total => _total; |
||||||
|
List<AdminOrderDtoList> get adminOrderDTOList => _adminOrderDTOList; |
||||||
|
|
||||||
|
Map<String, dynamic> toJson() { |
||||||
|
final map = <String, dynamic>{}; |
||||||
|
map['total'] = _total; |
||||||
|
if (_adminOrderDTOList != null) { |
||||||
|
map['adminOrderDTOList'] = _adminOrderDTOList.map((v) => v.toJson()).toList(); |
||||||
|
} |
||||||
|
return map; |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
/// id : "1704311046749028352" |
||||||
|
/// orderCode : "202309200946320001" |
||||||
|
/// storeName : "士林鲜果&牛奶" |
||||||
|
/// productCount : 1 |
||||||
|
/// orderStatus : 1 |
||||||
|
/// orderSum : "0.01" |
||||||
|
/// paySum : "0" |
||||||
|
/// createTime : "2023-09-20 09:46:33" |
||||||
|
/// returnType : 0 |
||||||
|
/// orderType : 0 |
||||||
|
/// returnCode : null |
||||||
|
/// returnStatus : null |
||||||
|
/// applyTime : null |
||||||
|
/// applySum : null |
||||||
|
/// memberAccount : "郑州小吃街" |
||||||
|
/// name : null |
||||||
|
/// payStatus : 0 |
||||||
|
/// couponSubPrice : "0.00" |
||||||
|
/// totalDiscountPrice : "0.00" |
||||||
|
/// orderSource : 3 |
||||||
|
/// dayFlowCode : "352" |
||||||
|
/// tableId : "0" |
||||||
|
/// tableName : null |
||||||
|
/// realPeople : null |
||||||
|
/// refundStatus : 0 |
||||||
|
/// notes : "" |
||||||
|
/// payNum : null |
||||||
|
/// reason : null |
||||||
|
/// isSubscribe : false |
||||||
|
/// subcribeTime : null |
||||||
|
/// endRefundTime : null |
||||||
|
/// memberInfo : null |
||||||
|
/// orderProductList : [{"id":"1704311046925189120","createTime":"2023-09-20 09:46:33","createUser":"1640233401329909760","updateTime":"2023-09-20 09:46:33","updateUser":"1640233401329909760","tenantCode":"1195","storeId":"1645316356192600064","orderId":"1704311046749028352","actInfo":null,"productId":"1685891939443933184","productName":"芒果牛乳","skuId":"1704310860643565568","skuNameStr":"700ml 冰 七分糖","skuImg":"","buyNum":1,"refundNum":0,"type":0,"reason":null,"weight":0.0,"applyPrice":"19.00","sellPrice":"0.01","postPay":"0.00","isDelete":0,"discountAmount":"0.00","discountPercent":100,"status":true,"batch":1,"deliveries":0,"ticketType":"","ticketDays":"0","takeType":null,"skuTickets":[],"ticketStyle":"","setMealDataList":null,"packagingFee":"0.00"}] |
||||||
|
/// mid : "1640233401329909760" |
||||||
|
/// isTakeOut : 0 |
||||||
|
/// logisticsId : "0" |
||||||
|
/// shipperCode : "" |
||||||
|
/// logisticsName : "" |
||||||
|
/// logisticsNum : "" |
||||||
|
/// logisticsCase : null |
||||||
|
/// postFee : "0.00" |
||||||
|
/// finalPayPrice : "0.00" |
||||||
|
|
||||||
|
class AdminOrderDtoList { |
||||||
|
AdminOrderDtoList({ |
||||||
|
String id, |
||||||
|
String orderCode, |
||||||
|
String storeName, |
||||||
|
num productCount, |
||||||
|
num orderStatus, |
||||||
|
String orderSum, |
||||||
|
String paySum, |
||||||
|
String createTime, |
||||||
|
num returnType, |
||||||
|
num orderType, |
||||||
|
dynamic returnCode, |
||||||
|
dynamic returnStatus, |
||||||
|
dynamic applyTime, |
||||||
|
dynamic applySum, |
||||||
|
String memberAccount, |
||||||
|
dynamic name, |
||||||
|
num payStatus, |
||||||
|
String couponSubPrice, |
||||||
|
String totalDiscountPrice, |
||||||
|
num orderSource, |
||||||
|
String dayFlowCode, |
||||||
|
String tableId, |
||||||
|
dynamic tableName, |
||||||
|
dynamic realPeople, |
||||||
|
num refundStatus, |
||||||
|
String notes, |
||||||
|
dynamic payNum, |
||||||
|
dynamic reason, |
||||||
|
bool isSubscribe, |
||||||
|
dynamic subcribeTime, |
||||||
|
dynamic endRefundTime, |
||||||
|
dynamic memberInfo, |
||||||
|
List<OrderProductList> orderProductList, |
||||||
|
String mid, |
||||||
|
num isTakeOut, |
||||||
|
String logisticsId, |
||||||
|
String shipperCode, |
||||||
|
String logisticsName, |
||||||
|
String logisticsNum, |
||||||
|
dynamic logisticsCase, |
||||||
|
String postFee, |
||||||
|
String finalPayPrice,}){ |
||||||
|
_id = id; |
||||||
|
_orderCode = orderCode; |
||||||
|
_storeName = storeName; |
||||||
|
_productCount = productCount; |
||||||
|
_orderStatus = orderStatus; |
||||||
|
_orderSum = orderSum; |
||||||
|
_paySum = paySum; |
||||||
|
_createTime = createTime; |
||||||
|
_returnType = returnType; |
||||||
|
_orderType = orderType; |
||||||
|
_returnCode = returnCode; |
||||||
|
_returnStatus = returnStatus; |
||||||
|
_applyTime = applyTime; |
||||||
|
_applySum = applySum; |
||||||
|
_memberAccount = memberAccount; |
||||||
|
_name = name; |
||||||
|
_payStatus = payStatus; |
||||||
|
_couponSubPrice = couponSubPrice; |
||||||
|
_totalDiscountPrice = totalDiscountPrice; |
||||||
|
_orderSource = orderSource; |
||||||
|
_dayFlowCode = dayFlowCode; |
||||||
|
_tableId = tableId; |
||||||
|
_tableName = tableName; |
||||||
|
_realPeople = realPeople; |
||||||
|
_refundStatus = refundStatus; |
||||||
|
_notes = notes; |
||||||
|
_payNum = payNum; |
||||||
|
_reason = reason; |
||||||
|
_isSubscribe = isSubscribe; |
||||||
|
_subcribeTime = subcribeTime; |
||||||
|
_endRefundTime = endRefundTime; |
||||||
|
_memberInfo = memberInfo; |
||||||
|
_orderProductList = orderProductList; |
||||||
|
_mid = mid; |
||||||
|
_isTakeOut = isTakeOut; |
||||||
|
_logisticsId = logisticsId; |
||||||
|
_shipperCode = shipperCode; |
||||||
|
_logisticsName = logisticsName; |
||||||
|
_logisticsNum = logisticsNum; |
||||||
|
_logisticsCase = logisticsCase; |
||||||
|
_postFee = postFee; |
||||||
|
_finalPayPrice = finalPayPrice; |
||||||
|
} |
||||||
|
|
||||||
|
AdminOrderDtoList.fromJson(dynamic json) { |
||||||
|
_id = json['id']; |
||||||
|
_orderCode = json['orderCode']; |
||||||
|
_storeName = json['storeName']; |
||||||
|
_productCount = json['productCount']; |
||||||
|
_orderStatus = json['orderStatus']; |
||||||
|
_orderSum = json['orderSum']; |
||||||
|
_paySum = json['paySum']; |
||||||
|
_createTime = json['createTime']; |
||||||
|
_returnType = json['returnType']; |
||||||
|
_orderType = json['orderType']; |
||||||
|
_returnCode = json['returnCode']; |
||||||
|
_returnStatus = json['returnStatus']; |
||||||
|
_applyTime = json['applyTime']; |
||||||
|
_applySum = json['applySum']; |
||||||
|
_memberAccount = json['memberAccount']; |
||||||
|
_name = json['name']; |
||||||
|
_payStatus = json['payStatus']; |
||||||
|
_couponSubPrice = json['couponSubPrice']; |
||||||
|
_totalDiscountPrice = json['totalDiscountPrice']; |
||||||
|
_orderSource = json['orderSource']; |
||||||
|
_dayFlowCode = json['dayFlowCode']; |
||||||
|
_tableId = json['tableId']; |
||||||
|
_tableName = json['tableName']; |
||||||
|
_realPeople = json['realPeople']; |
||||||
|
_refundStatus = json['refundStatus']; |
||||||
|
_notes = json['notes']; |
||||||
|
_payNum = json['payNum']; |
||||||
|
_reason = json['reason']; |
||||||
|
_isSubscribe = json['isSubscribe']; |
||||||
|
_subcribeTime = json['subcribeTime']; |
||||||
|
_endRefundTime = json['endRefundTime']; |
||||||
|
_memberInfo = json['memberInfo']; |
||||||
|
if (json['orderProductList'] != null) { |
||||||
|
_orderProductList = []; |
||||||
|
json['orderProductList'].forEach((v) { |
||||||
|
_orderProductList.add(OrderProductList.fromJson(v)); |
||||||
|
}); |
||||||
|
} |
||||||
|
_mid = json['mid']; |
||||||
|
_isTakeOut = json['isTakeOut']; |
||||||
|
_logisticsId = json['logisticsId']; |
||||||
|
_shipperCode = json['shipperCode']; |
||||||
|
_logisticsName = json['logisticsName']; |
||||||
|
_logisticsNum = json['logisticsNum']; |
||||||
|
_logisticsCase = json['logisticsCase']; |
||||||
|
_postFee = json['postFee']; |
||||||
|
_finalPayPrice = json['finalPayPrice']; |
||||||
|
} |
||||||
|
String _id; |
||||||
|
String _orderCode; |
||||||
|
String _storeName; |
||||||
|
num _productCount; |
||||||
|
num _orderStatus; |
||||||
|
String _orderSum; |
||||||
|
String _paySum; |
||||||
|
String _createTime; |
||||||
|
num _returnType; |
||||||
|
num _orderType; |
||||||
|
dynamic _returnCode; |
||||||
|
dynamic _returnStatus; |
||||||
|
dynamic _applyTime; |
||||||
|
dynamic _applySum; |
||||||
|
String _memberAccount; |
||||||
|
dynamic _name; |
||||||
|
num _payStatus; |
||||||
|
String _couponSubPrice; |
||||||
|
String _totalDiscountPrice; |
||||||
|
num _orderSource; |
||||||
|
String _dayFlowCode; |
||||||
|
String _tableId; |
||||||
|
dynamic _tableName; |
||||||
|
dynamic _realPeople; |
||||||
|
num _refundStatus; |
||||||
|
String _notes; |
||||||
|
dynamic _payNum; |
||||||
|
dynamic _reason; |
||||||
|
bool _isSubscribe; |
||||||
|
dynamic _subcribeTime; |
||||||
|
dynamic _endRefundTime; |
||||||
|
dynamic _memberInfo; |
||||||
|
List<OrderProductList> _orderProductList; |
||||||
|
String _mid; |
||||||
|
num _isTakeOut; |
||||||
|
String _logisticsId; |
||||||
|
String _shipperCode; |
||||||
|
String _logisticsName; |
||||||
|
String _logisticsNum; |
||||||
|
dynamic _logisticsCase; |
||||||
|
String _postFee; |
||||||
|
String _finalPayPrice; |
||||||
|
AdminOrderDtoList copyWith({ String id, |
||||||
|
String orderCode, |
||||||
|
String storeName, |
||||||
|
num productCount, |
||||||
|
num orderStatus, |
||||||
|
String orderSum, |
||||||
|
String paySum, |
||||||
|
String createTime, |
||||||
|
num returnType, |
||||||
|
num orderType, |
||||||
|
dynamic returnCode, |
||||||
|
dynamic returnStatus, |
||||||
|
dynamic applyTime, |
||||||
|
dynamic applySum, |
||||||
|
String memberAccount, |
||||||
|
dynamic name, |
||||||
|
num payStatus, |
||||||
|
String couponSubPrice, |
||||||
|
String totalDiscountPrice, |
||||||
|
num orderSource, |
||||||
|
String dayFlowCode, |
||||||
|
String tableId, |
||||||
|
dynamic tableName, |
||||||
|
dynamic realPeople, |
||||||
|
num refundStatus, |
||||||
|
String notes, |
||||||
|
dynamic payNum, |
||||||
|
dynamic reason, |
||||||
|
bool isSubscribe, |
||||||
|
dynamic subcribeTime, |
||||||
|
dynamic endRefundTime, |
||||||
|
dynamic memberInfo, |
||||||
|
List<OrderProductList> orderProductList, |
||||||
|
String mid, |
||||||
|
num isTakeOut, |
||||||
|
String logisticsId, |
||||||
|
String shipperCode, |
||||||
|
String logisticsName, |
||||||
|
String logisticsNum, |
||||||
|
dynamic logisticsCase, |
||||||
|
String postFee, |
||||||
|
String finalPayPrice, |
||||||
|
}) => AdminOrderDtoList( id: id ?? _id, |
||||||
|
orderCode: orderCode ?? _orderCode, |
||||||
|
storeName: storeName ?? _storeName, |
||||||
|
productCount: productCount ?? _productCount, |
||||||
|
orderStatus: orderStatus ?? _orderStatus, |
||||||
|
orderSum: orderSum ?? _orderSum, |
||||||
|
paySum: paySum ?? _paySum, |
||||||
|
createTime: createTime ?? _createTime, |
||||||
|
returnType: returnType ?? _returnType, |
||||||
|
orderType: orderType ?? _orderType, |
||||||
|
returnCode: returnCode ?? _returnCode, |
||||||
|
returnStatus: returnStatus ?? _returnStatus, |
||||||
|
applyTime: applyTime ?? _applyTime, |
||||||
|
applySum: applySum ?? _applySum, |
||||||
|
memberAccount: memberAccount ?? _memberAccount, |
||||||
|
name: name ?? _name, |
||||||
|
payStatus: payStatus ?? _payStatus, |
||||||
|
couponSubPrice: couponSubPrice ?? _couponSubPrice, |
||||||
|
totalDiscountPrice: totalDiscountPrice ?? _totalDiscountPrice, |
||||||
|
orderSource: orderSource ?? _orderSource, |
||||||
|
dayFlowCode: dayFlowCode ?? _dayFlowCode, |
||||||
|
tableId: tableId ?? _tableId, |
||||||
|
tableName: tableName ?? _tableName, |
||||||
|
realPeople: realPeople ?? _realPeople, |
||||||
|
refundStatus: refundStatus ?? _refundStatus, |
||||||
|
notes: notes ?? _notes, |
||||||
|
payNum: payNum ?? _payNum, |
||||||
|
reason: reason ?? _reason, |
||||||
|
isSubscribe: isSubscribe ?? _isSubscribe, |
||||||
|
subcribeTime: subcribeTime ?? _subcribeTime, |
||||||
|
endRefundTime: endRefundTime ?? _endRefundTime, |
||||||
|
memberInfo: memberInfo ?? _memberInfo, |
||||||
|
orderProductList: orderProductList ?? _orderProductList, |
||||||
|
mid: mid ?? _mid, |
||||||
|
isTakeOut: isTakeOut ?? _isTakeOut, |
||||||
|
logisticsId: logisticsId ?? _logisticsId, |
||||||
|
shipperCode: shipperCode ?? _shipperCode, |
||||||
|
logisticsName: logisticsName ?? _logisticsName, |
||||||
|
logisticsNum: logisticsNum ?? _logisticsNum, |
||||||
|
logisticsCase: logisticsCase ?? _logisticsCase, |
||||||
|
postFee: postFee ?? _postFee, |
||||||
|
finalPayPrice: finalPayPrice ?? _finalPayPrice, |
||||||
|
); |
||||||
|
String get id => _id; |
||||||
|
String get orderCode => _orderCode; |
||||||
|
String get storeName => _storeName; |
||||||
|
num get productCount => _productCount; |
||||||
|
num get orderStatus => _orderStatus; |
||||||
|
String get orderSum => _orderSum; |
||||||
|
String get paySum => _paySum; |
||||||
|
String get createTime => _createTime; |
||||||
|
num get returnType => _returnType; |
||||||
|
num get orderType => _orderType; |
||||||
|
dynamic get returnCode => _returnCode; |
||||||
|
dynamic get returnStatus => _returnStatus; |
||||||
|
dynamic get applyTime => _applyTime; |
||||||
|
dynamic get applySum => _applySum; |
||||||
|
String get memberAccount => _memberAccount; |
||||||
|
dynamic get name => _name; |
||||||
|
num get payStatus => _payStatus; |
||||||
|
String get couponSubPrice => _couponSubPrice; |
||||||
|
String get totalDiscountPrice => _totalDiscountPrice; |
||||||
|
num get orderSource => _orderSource; |
||||||
|
String get dayFlowCode => _dayFlowCode; |
||||||
|
String get tableId => _tableId; |
||||||
|
dynamic get tableName => _tableName; |
||||||
|
dynamic get realPeople => _realPeople; |
||||||
|
num get refundStatus => _refundStatus; |
||||||
|
String get notes => _notes; |
||||||
|
dynamic get payNum => _payNum; |
||||||
|
dynamic get reason => _reason; |
||||||
|
bool get isSubscribe => _isSubscribe; |
||||||
|
dynamic get subcribeTime => _subcribeTime; |
||||||
|
dynamic get endRefundTime => _endRefundTime; |
||||||
|
dynamic get memberInfo => _memberInfo; |
||||||
|
List<OrderProductList> get orderProductList => _orderProductList; |
||||||
|
String get mid => _mid; |
||||||
|
num get isTakeOut => _isTakeOut; |
||||||
|
String get logisticsId => _logisticsId; |
||||||
|
String get shipperCode => _shipperCode; |
||||||
|
String get logisticsName => _logisticsName; |
||||||
|
String get logisticsNum => _logisticsNum; |
||||||
|
dynamic get logisticsCase => _logisticsCase; |
||||||
|
String get postFee => _postFee; |
||||||
|
String get finalPayPrice => _finalPayPrice; |
||||||
|
|
||||||
|
Map<String, dynamic> toJson() { |
||||||
|
final map = <String, dynamic>{}; |
||||||
|
map['id'] = _id; |
||||||
|
map['orderCode'] = _orderCode; |
||||||
|
map['storeName'] = _storeName; |
||||||
|
map['productCount'] = _productCount; |
||||||
|
map['orderStatus'] = _orderStatus; |
||||||
|
map['orderSum'] = _orderSum; |
||||||
|
map['paySum'] = _paySum; |
||||||
|
map['createTime'] = _createTime; |
||||||
|
map['returnType'] = _returnType; |
||||||
|
map['orderType'] = _orderType; |
||||||
|
map['returnCode'] = _returnCode; |
||||||
|
map['returnStatus'] = _returnStatus; |
||||||
|
map['applyTime'] = _applyTime; |
||||||
|
map['applySum'] = _applySum; |
||||||
|
map['memberAccount'] = _memberAccount; |
||||||
|
map['name'] = _name; |
||||||
|
map['payStatus'] = _payStatus; |
||||||
|
map['couponSubPrice'] = _couponSubPrice; |
||||||
|
map['totalDiscountPrice'] = _totalDiscountPrice; |
||||||
|
map['orderSource'] = _orderSource; |
||||||
|
map['dayFlowCode'] = _dayFlowCode; |
||||||
|
map['tableId'] = _tableId; |
||||||
|
map['tableName'] = _tableName; |
||||||
|
map['realPeople'] = _realPeople; |
||||||
|
map['refundStatus'] = _refundStatus; |
||||||
|
map['notes'] = _notes; |
||||||
|
map['payNum'] = _payNum; |
||||||
|
map['reason'] = _reason; |
||||||
|
map['isSubscribe'] = _isSubscribe; |
||||||
|
map['subcribeTime'] = _subcribeTime; |
||||||
|
map['endRefundTime'] = _endRefundTime; |
||||||
|
map['memberInfo'] = _memberInfo; |
||||||
|
if (_orderProductList != null) { |
||||||
|
map['orderProductList'] = _orderProductList.map((v) => v.toJson()).toList(); |
||||||
|
} |
||||||
|
map['mid'] = _mid; |
||||||
|
map['isTakeOut'] = _isTakeOut; |
||||||
|
map['logisticsId'] = _logisticsId; |
||||||
|
map['shipperCode'] = _shipperCode; |
||||||
|
map['logisticsName'] = _logisticsName; |
||||||
|
map['logisticsNum'] = _logisticsNum; |
||||||
|
map['logisticsCase'] = _logisticsCase; |
||||||
|
map['postFee'] = _postFee; |
||||||
|
map['finalPayPrice'] = _finalPayPrice; |
||||||
|
return map; |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
/// id : "1704311046925189120" |
||||||
|
/// createTime : "2023-09-20 09:46:33" |
||||||
|
/// createUser : "1640233401329909760" |
||||||
|
/// updateTime : "2023-09-20 09:46:33" |
||||||
|
/// updateUser : "1640233401329909760" |
||||||
|
/// tenantCode : "1195" |
||||||
|
/// storeId : "1645316356192600064" |
||||||
|
/// orderId : "1704311046749028352" |
||||||
|
/// actInfo : null |
||||||
|
/// productId : "1685891939443933184" |
||||||
|
/// productName : "芒果牛乳" |
||||||
|
/// skuId : "1704310860643565568" |
||||||
|
/// skuNameStr : "700ml 冰 七分糖" |
||||||
|
/// skuImg : "" |
||||||
|
/// buyNum : 1 |
||||||
|
/// refundNum : 0 |
||||||
|
/// type : 0 |
||||||
|
/// reason : null |
||||||
|
/// weight : 0.0 |
||||||
|
/// applyPrice : "19.00" |
||||||
|
/// sellPrice : "0.01" |
||||||
|
/// postPay : "0.00" |
||||||
|
/// isDelete : 0 |
||||||
|
/// discountAmount : "0.00" |
||||||
|
/// discountPercent : 100 |
||||||
|
/// status : true |
||||||
|
/// batch : 1 |
||||||
|
/// deliveries : 0 |
||||||
|
/// ticketType : "" |
||||||
|
/// ticketDays : "0" |
||||||
|
/// takeType : null |
||||||
|
/// skuTickets : [] |
||||||
|
/// ticketStyle : "" |
||||||
|
/// setMealDataList : null |
||||||
|
/// packagingFee : "0.00" |
||||||
|
|
||||||
|
class OrderProductList { |
||||||
|
OrderProductList({ |
||||||
|
String id, |
||||||
|
String createTime, |
||||||
|
String createUser, |
||||||
|
String updateTime, |
||||||
|
String updateUser, |
||||||
|
String tenantCode, |
||||||
|
String storeId, |
||||||
|
String orderId, |
||||||
|
dynamic actInfo, |
||||||
|
String productId, |
||||||
|
String productName, |
||||||
|
String skuId, |
||||||
|
String skuNameStr, |
||||||
|
String skuImg, |
||||||
|
num buyNum, |
||||||
|
num refundNum, |
||||||
|
num type, |
||||||
|
dynamic reason, |
||||||
|
num weight, |
||||||
|
String applyPrice, |
||||||
|
String sellPrice, |
||||||
|
String postPay, |
||||||
|
num isDelete, |
||||||
|
String discountAmount, |
||||||
|
num discountPercent, |
||||||
|
bool status, |
||||||
|
num batch, |
||||||
|
num deliveries, |
||||||
|
String ticketType, |
||||||
|
String ticketDays, |
||||||
|
dynamic takeType, |
||||||
|
List<dynamic> skuTickets, |
||||||
|
String ticketStyle, |
||||||
|
dynamic setMealDataList, |
||||||
|
String packagingFee,}){ |
||||||
|
_id = id; |
||||||
|
_createTime = createTime; |
||||||
|
_createUser = createUser; |
||||||
|
_updateTime = updateTime; |
||||||
|
_updateUser = updateUser; |
||||||
|
_tenantCode = tenantCode; |
||||||
|
_storeId = storeId; |
||||||
|
_orderId = orderId; |
||||||
|
_actInfo = actInfo; |
||||||
|
_productId = productId; |
||||||
|
_productName = productName; |
||||||
|
_skuId = skuId; |
||||||
|
_skuNameStr = skuNameStr; |
||||||
|
_skuImg = skuImg; |
||||||
|
_buyNum = buyNum; |
||||||
|
_refundNum = refundNum; |
||||||
|
_type = type; |
||||||
|
_reason = reason; |
||||||
|
_weight = weight; |
||||||
|
_applyPrice = applyPrice; |
||||||
|
_sellPrice = sellPrice; |
||||||
|
_postPay = postPay; |
||||||
|
_isDelete = isDelete; |
||||||
|
_discountAmount = discountAmount; |
||||||
|
_discountPercent = discountPercent; |
||||||
|
_status = status; |
||||||
|
_batch = batch; |
||||||
|
_deliveries = deliveries; |
||||||
|
_ticketType = ticketType; |
||||||
|
_ticketDays = ticketDays; |
||||||
|
_takeType = takeType; |
||||||
|
_skuTickets = skuTickets; |
||||||
|
_ticketStyle = ticketStyle; |
||||||
|
_setMealDataList = setMealDataList; |
||||||
|
_packagingFee = packagingFee; |
||||||
|
} |
||||||
|
|
||||||
|
OrderProductList.fromJson(dynamic json) { |
||||||
|
_id = json['id']; |
||||||
|
_createTime = json['createTime']; |
||||||
|
_createUser = json['createUser']; |
||||||
|
_updateTime = json['updateTime']; |
||||||
|
_updateUser = json['updateUser']; |
||||||
|
_tenantCode = json['tenantCode']; |
||||||
|
_storeId = json['storeId']; |
||||||
|
_orderId = json['orderId']; |
||||||
|
_actInfo = json['actInfo']; |
||||||
|
_productId = json['productId']; |
||||||
|
_productName = json['productName']; |
||||||
|
_skuId = json['skuId']; |
||||||
|
_skuNameStr = json['skuNameStr']; |
||||||
|
_skuImg = json['skuImg']; |
||||||
|
_buyNum = json['buyNum']; |
||||||
|
_refundNum = json['refundNum']; |
||||||
|
_type = json['type']; |
||||||
|
_reason = json['reason']; |
||||||
|
_weight = json['weight']; |
||||||
|
_applyPrice = json['applyPrice']; |
||||||
|
_sellPrice = json['sellPrice']; |
||||||
|
_postPay = json['postPay']; |
||||||
|
_isDelete = json['isDelete']; |
||||||
|
_discountAmount = json['discountAmount']; |
||||||
|
_discountPercent = json['discountPercent']; |
||||||
|
_status = json['status']; |
||||||
|
_batch = json['batch']; |
||||||
|
_deliveries = json['deliveries']; |
||||||
|
_ticketType = json['ticketType']; |
||||||
|
_ticketDays = json['ticketDays']; |
||||||
|
_takeType = json['takeType']; |
||||||
|
// if (json['skuTickets'] != null) { |
||||||
|
// _skuTickets = []; |
||||||
|
// json['skuTickets'].forEach((v) { |
||||||
|
// _skuTickets.add(Dynamic.fromJson(v)); |
||||||
|
// }); |
||||||
|
// } |
||||||
|
_ticketStyle = json['ticketStyle']; |
||||||
|
_setMealDataList = json['setMealDataList']; |
||||||
|
_packagingFee = json['packagingFee']; |
||||||
|
} |
||||||
|
String _id; |
||||||
|
String _createTime; |
||||||
|
String _createUser; |
||||||
|
String _updateTime; |
||||||
|
String _updateUser; |
||||||
|
String _tenantCode; |
||||||
|
String _storeId; |
||||||
|
String _orderId; |
||||||
|
dynamic _actInfo; |
||||||
|
String _productId; |
||||||
|
String _productName; |
||||||
|
String _skuId; |
||||||
|
String _skuNameStr; |
||||||
|
String _skuImg; |
||||||
|
num _buyNum; |
||||||
|
num _refundNum; |
||||||
|
num _type; |
||||||
|
dynamic _reason; |
||||||
|
num _weight; |
||||||
|
String _applyPrice; |
||||||
|
String _sellPrice; |
||||||
|
String _postPay; |
||||||
|
num _isDelete; |
||||||
|
String _discountAmount; |
||||||
|
num _discountPercent; |
||||||
|
bool _status; |
||||||
|
num _batch; |
||||||
|
num _deliveries; |
||||||
|
String _ticketType; |
||||||
|
String _ticketDays; |
||||||
|
dynamic _takeType; |
||||||
|
List<dynamic> _skuTickets; |
||||||
|
String _ticketStyle; |
||||||
|
dynamic _setMealDataList; |
||||||
|
String _packagingFee; |
||||||
|
OrderProductList copyWith({ String id, |
||||||
|
String createTime, |
||||||
|
String createUser, |
||||||
|
String updateTime, |
||||||
|
String updateUser, |
||||||
|
String tenantCode, |
||||||
|
String storeId, |
||||||
|
String orderId, |
||||||
|
dynamic actInfo, |
||||||
|
String productId, |
||||||
|
String productName, |
||||||
|
String skuId, |
||||||
|
String skuNameStr, |
||||||
|
String skuImg, |
||||||
|
num buyNum, |
||||||
|
num refundNum, |
||||||
|
num type, |
||||||
|
dynamic reason, |
||||||
|
num weight, |
||||||
|
String applyPrice, |
||||||
|
String sellPrice, |
||||||
|
String postPay, |
||||||
|
num isDelete, |
||||||
|
String discountAmount, |
||||||
|
num discountPercent, |
||||||
|
bool status, |
||||||
|
num batch, |
||||||
|
num deliveries, |
||||||
|
String ticketType, |
||||||
|
String ticketDays, |
||||||
|
dynamic takeType, |
||||||
|
List<dynamic> skuTickets, |
||||||
|
String ticketStyle, |
||||||
|
dynamic setMealDataList, |
||||||
|
String packagingFee, |
||||||
|
}) => OrderProductList( id: id ?? _id, |
||||||
|
createTime: createTime ?? _createTime, |
||||||
|
createUser: createUser ?? _createUser, |
||||||
|
updateTime: updateTime ?? _updateTime, |
||||||
|
updateUser: updateUser ?? _updateUser, |
||||||
|
tenantCode: tenantCode ?? _tenantCode, |
||||||
|
storeId: storeId ?? _storeId, |
||||||
|
orderId: orderId ?? _orderId, |
||||||
|
actInfo: actInfo ?? _actInfo, |
||||||
|
productId: productId ?? _productId, |
||||||
|
productName: productName ?? _productName, |
||||||
|
skuId: skuId ?? _skuId, |
||||||
|
skuNameStr: skuNameStr ?? _skuNameStr, |
||||||
|
skuImg: skuImg ?? _skuImg, |
||||||
|
buyNum: buyNum ?? _buyNum, |
||||||
|
refundNum: refundNum ?? _refundNum, |
||||||
|
type: type ?? _type, |
||||||
|
reason: reason ?? _reason, |
||||||
|
weight: weight ?? _weight, |
||||||
|
applyPrice: applyPrice ?? _applyPrice, |
||||||
|
sellPrice: sellPrice ?? _sellPrice, |
||||||
|
postPay: postPay ?? _postPay, |
||||||
|
isDelete: isDelete ?? _isDelete, |
||||||
|
discountAmount: discountAmount ?? _discountAmount, |
||||||
|
discountPercent: discountPercent ?? _discountPercent, |
||||||
|
status: status ?? _status, |
||||||
|
batch: batch ?? _batch, |
||||||
|
deliveries: deliveries ?? _deliveries, |
||||||
|
ticketType: ticketType ?? _ticketType, |
||||||
|
ticketDays: ticketDays ?? _ticketDays, |
||||||
|
takeType: takeType ?? _takeType, |
||||||
|
skuTickets: skuTickets ?? _skuTickets, |
||||||
|
ticketStyle: ticketStyle ?? _ticketStyle, |
||||||
|
setMealDataList: setMealDataList ?? _setMealDataList, |
||||||
|
packagingFee: packagingFee ?? _packagingFee, |
||||||
|
); |
||||||
|
String get id => _id; |
||||||
|
String get createTime => _createTime; |
||||||
|
String get createUser => _createUser; |
||||||
|
String get updateTime => _updateTime; |
||||||
|
String get updateUser => _updateUser; |
||||||
|
String get tenantCode => _tenantCode; |
||||||
|
String get storeId => _storeId; |
||||||
|
String get orderId => _orderId; |
||||||
|
dynamic get actInfo => _actInfo; |
||||||
|
String get productId => _productId; |
||||||
|
String get productName => _productName; |
||||||
|
String get skuId => _skuId; |
||||||
|
String get skuNameStr => _skuNameStr; |
||||||
|
String get skuImg => _skuImg; |
||||||
|
num get buyNum => _buyNum; |
||||||
|
num get refundNum => _refundNum; |
||||||
|
num get type => _type; |
||||||
|
dynamic get reason => _reason; |
||||||
|
num get weight => _weight; |
||||||
|
String get applyPrice => _applyPrice; |
||||||
|
String get sellPrice => _sellPrice; |
||||||
|
String get postPay => _postPay; |
||||||
|
num get isDelete => _isDelete; |
||||||
|
String get discountAmount => _discountAmount; |
||||||
|
num get discountPercent => _discountPercent; |
||||||
|
bool get status => _status; |
||||||
|
num get batch => _batch; |
||||||
|
num get deliveries => _deliveries; |
||||||
|
String get ticketType => _ticketType; |
||||||
|
String get ticketDays => _ticketDays; |
||||||
|
dynamic get takeType => _takeType; |
||||||
|
List<dynamic> get skuTickets => _skuTickets; |
||||||
|
String get ticketStyle => _ticketStyle; |
||||||
|
dynamic get setMealDataList => _setMealDataList; |
||||||
|
String get packagingFee => _packagingFee; |
||||||
|
|
||||||
|
Map<String, dynamic> toJson() { |
||||||
|
final map = <String, dynamic>{}; |
||||||
|
map['id'] = _id; |
||||||
|
map['createTime'] = _createTime; |
||||||
|
map['createUser'] = _createUser; |
||||||
|
map['updateTime'] = _updateTime; |
||||||
|
map['updateUser'] = _updateUser; |
||||||
|
map['tenantCode'] = _tenantCode; |
||||||
|
map['storeId'] = _storeId; |
||||||
|
map['orderId'] = _orderId; |
||||||
|
map['actInfo'] = _actInfo; |
||||||
|
map['productId'] = _productId; |
||||||
|
map['productName'] = _productName; |
||||||
|
map['skuId'] = _skuId; |
||||||
|
map['skuNameStr'] = _skuNameStr; |
||||||
|
map['skuImg'] = _skuImg; |
||||||
|
map['buyNum'] = _buyNum; |
||||||
|
map['refundNum'] = _refundNum; |
||||||
|
map['type'] = _type; |
||||||
|
map['reason'] = _reason; |
||||||
|
map['weight'] = _weight; |
||||||
|
map['applyPrice'] = _applyPrice; |
||||||
|
map['sellPrice'] = _sellPrice; |
||||||
|
map['postPay'] = _postPay; |
||||||
|
map['isDelete'] = _isDelete; |
||||||
|
map['discountAmount'] = _discountAmount; |
||||||
|
map['discountPercent'] = _discountPercent; |
||||||
|
map['status'] = _status; |
||||||
|
map['batch'] = _batch; |
||||||
|
map['deliveries'] = _deliveries; |
||||||
|
map['ticketType'] = _ticketType; |
||||||
|
map['ticketDays'] = _ticketDays; |
||||||
|
map['takeType'] = _takeType; |
||||||
|
if (_skuTickets != null) { |
||||||
|
map['skuTickets'] = _skuTickets.map((v) => v.toJson()).toList(); |
||||||
|
} |
||||||
|
map['ticketStyle'] = _ticketStyle; |
||||||
|
map['setMealDataList'] = _setMealDataList; |
||||||
|
map['packagingFee'] = _packagingFee; |
||||||
|
return map; |
||||||
|
} |
||||||
|
|
||||||
|
} |
File diff suppressed because one or more lines are too long
@ -0,0 +1,232 @@ |
|||||||
|
/// records : [{"id":"1701507861319778304","createTime":"2023-09-12 16:07:41","createUser":"1640233401329909760","updateTime":"2023-09-12 16:07:41","updateUser":"1640233401329909760","storeId":"0","type":3,"reason":"测试退款","isDelete":0},{"id":"1689577561031442432","createTime":"2023-08-10 18:00:56","createUser":"1640233401329909760","updateTime":"2023-08-10 18:01:09","updateUser":"1640233401329909760","storeId":"1645316356192600064","type":3,"reason":"错误下单","isDelete":0},{"id":"1685119824058908672","createTime":"2023-07-29 10:47:29","createUser":"1640233401329909760","updateTime":"2023-07-29 10:47:29","updateUser":"1640233401329909760","storeId":"0","type":3,"reason":"客户取消","isDelete":0}] |
||||||
|
/// total : "3" |
||||||
|
/// size : "999" |
||||||
|
/// current : "1" |
||||||
|
/// orders : [{"column":"id","asc":false}] |
||||||
|
/// hitCount : false |
||||||
|
/// searchCount : true |
||||||
|
/// pages : "1" |
||||||
|
|
||||||
|
class RefundReasonList { |
||||||
|
RefundReasonList({ |
||||||
|
List<Records> records, |
||||||
|
String total, |
||||||
|
String size, |
||||||
|
String current, |
||||||
|
List<Orders> orders, |
||||||
|
bool hitCount, |
||||||
|
bool searchCount, |
||||||
|
String pages,}){ |
||||||
|
_records = records; |
||||||
|
_total = total; |
||||||
|
_size = size; |
||||||
|
_current = current; |
||||||
|
_orders = orders; |
||||||
|
_hitCount = hitCount; |
||||||
|
_searchCount = searchCount; |
||||||
|
_pages = pages; |
||||||
|
} |
||||||
|
|
||||||
|
RefundReasonList.fromJson(dynamic json) { |
||||||
|
if (json['records'] != null) { |
||||||
|
_records = []; |
||||||
|
json['records'].forEach((v) { |
||||||
|
_records.add(Records.fromJson(v)); |
||||||
|
}); |
||||||
|
} |
||||||
|
_total = json['total']; |
||||||
|
_size = json['size']; |
||||||
|
_current = json['current']; |
||||||
|
if (json['orders'] != null) { |
||||||
|
_orders = []; |
||||||
|
json['orders'].forEach((v) { |
||||||
|
_orders.add(Orders.fromJson(v)); |
||||||
|
}); |
||||||
|
} |
||||||
|
_hitCount = json['hitCount']; |
||||||
|
_searchCount = json['searchCount']; |
||||||
|
_pages = json['pages']; |
||||||
|
} |
||||||
|
List<Records> _records; |
||||||
|
String _total; |
||||||
|
String _size; |
||||||
|
String _current; |
||||||
|
List<Orders> _orders; |
||||||
|
bool _hitCount; |
||||||
|
bool _searchCount; |
||||||
|
String _pages; |
||||||
|
RefundReasonList copyWith({ List<Records> records, |
||||||
|
String total, |
||||||
|
String size, |
||||||
|
String current, |
||||||
|
List<Orders> orders, |
||||||
|
bool hitCount, |
||||||
|
bool searchCount, |
||||||
|
String pages, |
||||||
|
}) => RefundReasonList( records: records ?? _records, |
||||||
|
total: total ?? _total, |
||||||
|
size: size ?? _size, |
||||||
|
current: current ?? _current, |
||||||
|
orders: orders ?? _orders, |
||||||
|
hitCount: hitCount ?? _hitCount, |
||||||
|
searchCount: searchCount ?? _searchCount, |
||||||
|
pages: pages ?? _pages, |
||||||
|
); |
||||||
|
List<Records> get records => _records; |
||||||
|
String get total => _total; |
||||||
|
String get size => _size; |
||||||
|
String get current => _current; |
||||||
|
List<Orders> get orders => _orders; |
||||||
|
bool get hitCount => _hitCount; |
||||||
|
bool get searchCount => _searchCount; |
||||||
|
String get pages => _pages; |
||||||
|
|
||||||
|
Map<String, dynamic> toJson() { |
||||||
|
final map = <String, dynamic>{}; |
||||||
|
if (_records != null) { |
||||||
|
map['records'] = _records.map((v) => v.toJson()).toList(); |
||||||
|
} |
||||||
|
map['total'] = _total; |
||||||
|
map['size'] = _size; |
||||||
|
map['current'] = _current; |
||||||
|
if (_orders != null) { |
||||||
|
map['orders'] = _orders.map((v) => v.toJson()).toList(); |
||||||
|
} |
||||||
|
map['hitCount'] = _hitCount; |
||||||
|
map['searchCount'] = _searchCount; |
||||||
|
map['pages'] = _pages; |
||||||
|
return map; |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
/// column : "id" |
||||||
|
/// asc : false |
||||||
|
|
||||||
|
class Orders { |
||||||
|
Orders({ |
||||||
|
String column, |
||||||
|
bool asc,}){ |
||||||
|
_column = column; |
||||||
|
_asc = asc; |
||||||
|
} |
||||||
|
|
||||||
|
Orders.fromJson(dynamic json) { |
||||||
|
_column = json['column']; |
||||||
|
_asc = json['asc']; |
||||||
|
} |
||||||
|
String _column; |
||||||
|
bool _asc; |
||||||
|
Orders copyWith({ String column, |
||||||
|
bool asc, |
||||||
|
}) => Orders( column: column ?? _column, |
||||||
|
asc: asc ?? _asc, |
||||||
|
); |
||||||
|
String get column => _column; |
||||||
|
bool get asc => _asc; |
||||||
|
|
||||||
|
Map<String, dynamic> toJson() { |
||||||
|
final map = <String, dynamic>{}; |
||||||
|
map['column'] = _column; |
||||||
|
map['asc'] = _asc; |
||||||
|
return map; |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
/// id : "1701507861319778304" |
||||||
|
/// createTime : "2023-09-12 16:07:41" |
||||||
|
/// createUser : "1640233401329909760" |
||||||
|
/// updateTime : "2023-09-12 16:07:41" |
||||||
|
/// updateUser : "1640233401329909760" |
||||||
|
/// storeId : "0" |
||||||
|
/// type : 3 |
||||||
|
/// reason : "测试退款" |
||||||
|
/// isDelete : 0 |
||||||
|
|
||||||
|
class Records { |
||||||
|
Records({ |
||||||
|
String id, |
||||||
|
String createTime, |
||||||
|
String createUser, |
||||||
|
String updateTime, |
||||||
|
String updateUser, |
||||||
|
String storeId, |
||||||
|
num type, |
||||||
|
String reason, |
||||||
|
num isDelete,}){ |
||||||
|
_id = id; |
||||||
|
_createTime = createTime; |
||||||
|
_createUser = createUser; |
||||||
|
_updateTime = updateTime; |
||||||
|
_updateUser = updateUser; |
||||||
|
_storeId = storeId; |
||||||
|
_type = type; |
||||||
|
_reason = reason; |
||||||
|
_isDelete = isDelete; |
||||||
|
} |
||||||
|
|
||||||
|
Records.fromJson(dynamic json) { |
||||||
|
_id = json['id']; |
||||||
|
_createTime = json['createTime']; |
||||||
|
_createUser = json['createUser']; |
||||||
|
_updateTime = json['updateTime']; |
||||||
|
_updateUser = json['updateUser']; |
||||||
|
_storeId = json['storeId']; |
||||||
|
_type = json['type']; |
||||||
|
_reason = json['reason']; |
||||||
|
_isDelete = json['isDelete']; |
||||||
|
} |
||||||
|
String _id; |
||||||
|
String _createTime; |
||||||
|
String _createUser; |
||||||
|
String _updateTime; |
||||||
|
String _updateUser; |
||||||
|
String _storeId; |
||||||
|
num _type; |
||||||
|
String _reason; |
||||||
|
num _isDelete; |
||||||
|
Records copyWith({ String id, |
||||||
|
String createTime, |
||||||
|
String createUser, |
||||||
|
String updateTime, |
||||||
|
String updateUser, |
||||||
|
String storeId, |
||||||
|
num type, |
||||||
|
String reason, |
||||||
|
num isDelete, |
||||||
|
}) => Records( id: id ?? _id, |
||||||
|
createTime: createTime ?? _createTime, |
||||||
|
createUser: createUser ?? _createUser, |
||||||
|
updateTime: updateTime ?? _updateTime, |
||||||
|
updateUser: updateUser ?? _updateUser, |
||||||
|
storeId: storeId ?? _storeId, |
||||||
|
type: type ?? _type, |
||||||
|
reason: reason ?? _reason, |
||||||
|
isDelete: isDelete ?? _isDelete, |
||||||
|
); |
||||||
|
String get id => _id; |
||||||
|
String get createTime => _createTime; |
||||||
|
String get createUser => _createUser; |
||||||
|
String get updateTime => _updateTime; |
||||||
|
String get updateUser => _updateUser; |
||||||
|
String get storeId => _storeId; |
||||||
|
num get type => _type; |
||||||
|
String get reason => _reason; |
||||||
|
num get isDelete => _isDelete; |
||||||
|
|
||||||
|
Map<String, dynamic> toJson() { |
||||||
|
final map = <String, dynamic>{}; |
||||||
|
map['id'] = _id; |
||||||
|
map['createTime'] = _createTime; |
||||||
|
map['createUser'] = _createUser; |
||||||
|
map['updateTime'] = _updateTime; |
||||||
|
map['updateUser'] = _updateUser; |
||||||
|
map['storeId'] = _storeId; |
||||||
|
map['type'] = _type; |
||||||
|
map['reason'] = _reason; |
||||||
|
map['isDelete'] = _isDelete; |
||||||
|
return map; |
||||||
|
} |
||||||
|
|
||||||
|
} |
Loading…
Reference in new issue