wurong
1 year ago
23 changed files with 1878 additions and 740 deletions
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 780 B After Width: | Height: | Size: 780 B |
@ -0,0 +1,93 @@
|
||||
/// localDate : null |
||||
/// localDateTime : "2023-09-04 12:18:20" |
||||
/// count : 0 |
||||
/// amount : "19.00" |
||||
/// refundAmount : "0.00" |
||||
/// storeName : "屏东剉冰店(烧冷冰)" |
||||
/// nickname : null |
||||
/// phone : null |
||||
|
||||
class DayFlowList { |
||||
DayFlowList({ |
||||
dynamic localDate, |
||||
String localDateTime, |
||||
num count, |
||||
String amount, |
||||
String refundAmount, |
||||
String storeName, |
||||
dynamic nickname, |
||||
dynamic phone,}){ |
||||
_localDate = localDate; |
||||
_localDateTime = localDateTime; |
||||
_count = count; |
||||
_amount = amount; |
||||
_refundAmount = refundAmount; |
||||
_storeName = storeName; |
||||
_nickname = nickname; |
||||
_phone = phone; |
||||
} |
||||
|
||||
DayFlowList.fromJson(dynamic json) { |
||||
_localDate = json['localDate']; |
||||
_localDateTime = json['localDateTime']; |
||||
_count = json['count']; |
||||
_amount = json['amount']; |
||||
_refundAmount = json['refundAmount']; |
||||
_storeName = json['storeName']; |
||||
_nickname = json['nickname']; |
||||
_phone = json['phone']; |
||||
} |
||||
dynamic _localDate; |
||||
String _localDateTime; |
||||
num _count; |
||||
String _amount; |
||||
String _refundAmount; |
||||
String _storeName; |
||||
dynamic _nickname; |
||||
dynamic _phone; |
||||
DayFlowList copyWith({ dynamic localDate, |
||||
String localDateTime, |
||||
num count, |
||||
String amount, |
||||
String refundAmount, |
||||
String storeName, |
||||
dynamic nickname, |
||||
dynamic phone, |
||||
}) => DayFlowList( localDate: localDate ?? _localDate, |
||||
localDateTime: localDateTime ?? _localDateTime, |
||||
count: count ?? _count, |
||||
amount: amount ?? _amount, |
||||
refundAmount: refundAmount ?? _refundAmount, |
||||
storeName: storeName ?? _storeName, |
||||
nickname: nickname ?? _nickname, |
||||
phone: phone ?? _phone, |
||||
|
||||
); |
||||
dynamic get localDate => _localDate; |
||||
String get localDateTime => _localDateTime; |
||||
num get count => _count; |
||||
String get amount => _amount; |
||||
String get refundAmount => _refundAmount; |
||||
String get storeName => _storeName; |
||||
dynamic get nickname => _nickname; |
||||
dynamic get phone => _phone; |
||||
List<DayFlowList> detailList; |
||||
|
||||
|
||||
|
||||
Map<String, dynamic> toJson() { |
||||
final map = <String, dynamic>{}; |
||||
map['localDate'] = _localDate; |
||||
map['localDateTime'] = _localDateTime; |
||||
map['count'] = _count; |
||||
map['amount'] = _amount; |
||||
map['refundAmount'] = _refundAmount; |
||||
map['storeName'] = _storeName; |
||||
map['nickname'] = _nickname; |
||||
map['phone'] = _phone; |
||||
return map; |
||||
} |
||||
|
||||
|
||||
|
||||
} |
@ -0,0 +1,51 @@
|
||||
/// name : "筒仔米糕" |
||||
/// value : "10.00" |
||||
/// sale : "1" |
||||
/// percentage : "0.0059" |
||||
|
||||
class GoodsTypeSalesList { |
||||
GoodsTypeSalesList({ |
||||
String name, |
||||
String value, |
||||
String sale, |
||||
String percentage,}){ |
||||
_name = name; |
||||
_value = value; |
||||
_sale = sale; |
||||
_percentage = percentage; |
||||
} |
||||
|
||||
GoodsTypeSalesList.fromJson(dynamic json) { |
||||
_name = json['name']; |
||||
_value = json['value']; |
||||
_sale = json['sale']; |
||||
_percentage = json['percentage']; |
||||
} |
||||
String _name; |
||||
String _value; |
||||
String _sale; |
||||
String _percentage; |
||||
GoodsTypeSalesList copyWith({ String name, |
||||
String value, |
||||
String sale, |
||||
String percentage, |
||||
}) => GoodsTypeSalesList( name: name ?? _name, |
||||
value: value ?? _value, |
||||
sale: sale ?? _sale, |
||||
percentage: percentage ?? _percentage, |
||||
); |
||||
String get name => _name; |
||||
String get value => _value; |
||||
String get sale => _sale; |
||||
String get percentage => _percentage; |
||||
|
||||
Map<String, dynamic> toJson() { |
||||
final map = <String, dynamic>{}; |
||||
map['name'] = _name; |
||||
map['value'] = _value; |
||||
map['sale'] = _sale; |
||||
map['percentage'] = _percentage; |
||||
return map; |
||||
} |
||||
|
||||
} |
@ -0,0 +1,141 @@
|
||||
/// productId : null |
||||
/// saleNum : 16 |
||||
/// productName : "米粉汤" |
||||
/// productType : null |
||||
/// productGroupName : "米粉汤" |
||||
/// sumPrice : "256.00" |
||||
/// sellPrict : "16.00" |
||||
/// productSkuName : "" |
||||
/// productSkuList : null |
||||
/// platterLsit : null |
||||
/// giveNum : 0 |
||||
/// refundNum : 0 |
||||
/// productCountPercent : 0.11 |
||||
/// productSellPricePercent : 0.11 |
||||
|
||||
class SingleSalesList { |
||||
SingleSalesList({ |
||||
dynamic productId, |
||||
num saleNum, |
||||
String productName, |
||||
dynamic productType, |
||||
String productGroupName, |
||||
String sumPrice, |
||||
String sellPrict, |
||||
String productSkuName, |
||||
dynamic productSkuList, |
||||
dynamic platterLsit, |
||||
num giveNum, |
||||
num refundNum, |
||||
num productCountPercent, |
||||
num productSellPricePercent,}){ |
||||
_productId = productId; |
||||
_saleNum = saleNum; |
||||
_productName = productName; |
||||
_productType = productType; |
||||
_productGroupName = productGroupName; |
||||
_sumPrice = sumPrice; |
||||
_sellPrict = sellPrict; |
||||
_productSkuName = productSkuName; |
||||
_productSkuList = productSkuList; |
||||
_platterLsit = platterLsit; |
||||
_giveNum = giveNum; |
||||
_refundNum = refundNum; |
||||
_productCountPercent = productCountPercent; |
||||
_productSellPricePercent = productSellPricePercent; |
||||
} |
||||
|
||||
SingleSalesList.fromJson(dynamic json) { |
||||
_productId = json['productId']; |
||||
_saleNum = json['saleNum']; |
||||
_productName = json['productName']; |
||||
_productType = json['productType']; |
||||
_productGroupName = json['productGroupName']; |
||||
_sumPrice = json['sumPrice']; |
||||
_sellPrict = json['sellPrict']; |
||||
_productSkuName = json['productSkuName']; |
||||
_productSkuList = json['productSkuList']; |
||||
_platterLsit = json['platterLsit']; |
||||
_giveNum = json['giveNum']; |
||||
_refundNum = json['refundNum']; |
||||
_productCountPercent = json['productCountPercent']; |
||||
_productSellPricePercent = json['productSellPricePercent']; |
||||
} |
||||
dynamic _productId; |
||||
num _saleNum; |
||||
String _productName; |
||||
dynamic _productType; |
||||
String _productGroupName; |
||||
String _sumPrice; |
||||
String _sellPrict; |
||||
String _productSkuName; |
||||
dynamic _productSkuList; |
||||
dynamic _platterLsit; |
||||
num _giveNum; |
||||
num _refundNum; |
||||
num _productCountPercent; |
||||
num _productSellPricePercent; |
||||
SingleSalesList copyWith({ dynamic productId, |
||||
num saleNum, |
||||
String productName, |
||||
dynamic productType, |
||||
String productGroupName, |
||||
String sumPrice, |
||||
String sellPrict, |
||||
String productSkuName, |
||||
dynamic productSkuList, |
||||
dynamic platterLsit, |
||||
num giveNum, |
||||
num refundNum, |
||||
num productCountPercent, |
||||
num productSellPricePercent, |
||||
}) => SingleSalesList( productId: productId ?? _productId, |
||||
saleNum: saleNum ?? _saleNum, |
||||
productName: productName ?? _productName, |
||||
productType: productType ?? _productType, |
||||
productGroupName: productGroupName ?? _productGroupName, |
||||
sumPrice: sumPrice ?? _sumPrice, |
||||
sellPrict: sellPrict ?? _sellPrict, |
||||
productSkuName: productSkuName ?? _productSkuName, |
||||
productSkuList: productSkuList ?? _productSkuList, |
||||
platterLsit: platterLsit ?? _platterLsit, |
||||
giveNum: giveNum ?? _giveNum, |
||||
refundNum: refundNum ?? _refundNum, |
||||
productCountPercent: productCountPercent ?? _productCountPercent, |
||||
productSellPricePercent: productSellPricePercent ?? _productSellPricePercent, |
||||
); |
||||
dynamic get productId => _productId; |
||||
num get saleNum => _saleNum; |
||||
String get productName => _productName; |
||||
dynamic get productType => _productType; |
||||
String get productGroupName => _productGroupName; |
||||
String get sumPrice => _sumPrice; |
||||
String get sellPrict => _sellPrict; |
||||
String get productSkuName => _productSkuName; |
||||
dynamic get productSkuList => _productSkuList; |
||||
dynamic get platterLsit => _platterLsit; |
||||
num get giveNum => _giveNum; |
||||
num get refundNum => _refundNum; |
||||
num get productCountPercent => _productCountPercent; |
||||
num get productSellPricePercent => _productSellPricePercent; |
||||
|
||||
Map<String, dynamic> toJson() { |
||||
final map = <String, dynamic>{}; |
||||
map['productId'] = _productId; |
||||
map['saleNum'] = _saleNum; |
||||
map['productName'] = _productName; |
||||
map['productType'] = _productType; |
||||
map['productGroupName'] = _productGroupName; |
||||
map['sumPrice'] = _sumPrice; |
||||
map['sellPrict'] = _sellPrict; |
||||
map['productSkuName'] = _productSkuName; |
||||
map['productSkuList'] = _productSkuList; |
||||
map['platterLsit'] = _platterLsit; |
||||
map['giveNum'] = _giveNum; |
||||
map['refundNum'] = _refundNum; |
||||
map['productCountPercent'] = _productCountPercent; |
||||
map['productSellPricePercent'] = _productSellPricePercent; |
||||
return map; |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue