Browse Source
联盟:更改门店列表ui; 更改曾是选择范围,暂定(武汉,北京,郑州); 门店列表接口新增(productShow列表,显示商品数据); 所有loading更改,loading新增遮罩层,避免加载数据时用户过快操作导致数据不准确的错误操作;dev
huixiang_app
1 year ago
29 changed files with 1498 additions and 488 deletions
@ -0,0 +1,749 @@
|
||||
/// id : "1484156758195699712" |
||||
/// createTime : "2022-01-20 21:32:00" |
||||
/// createUser : "1364043181062094848" |
||||
/// updateTime : "2022-01-21 18:27:02" |
||||
/// updateUser : "1364043181062094848" |
||||
/// supplierName : "一心回乡生态农场" |
||||
/// storeId : "1460885296764682240" |
||||
/// categoryId : "1460889654206136320" |
||||
/// groupId : "1484146679266410496" |
||||
/// shortName : "【一心回乡】三益米 筋道绵润、鲜稻尝鲜;自留种老品种,非转基因种子" |
||||
/// productName : "三益米1kg" |
||||
/// sellDesc : "" |
||||
/// productCode : "PRO202201202132000000000000001" |
||||
/// weight : "0" |
||||
/// applyPrice : "39.00" |
||||
/// price : "24.00" |
||||
/// vipPrice : null |
||||
/// stock : -13 |
||||
/// sellCount : 19 |
||||
/// needLogistics : 1 |
||||
/// oversold : 1 |
||||
/// organic : 0 |
||||
/// status : 1 |
||||
/// posShow : true |
||||
/// subscribeParam : null |
||||
/// isRaise : false |
||||
/// productType : 0 |
||||
/// productNumber : 1 |
||||
/// setMeal : 1 |
||||
/// attrStyle : 0 |
||||
/// detail : "" |
||||
/// isDelete : 0 |
||||
/// printerFlag : "DEFAULT" |
||||
/// materials : null |
||||
/// materialId : null |
||||
/// details : "" |
||||
/// thumbnailImg : "" |
||||
/// info : "" |
||||
/// buyCount : 12 |
||||
/// sellCountLimit : 0 |
||||
/// stockRecoveryTime : null |
||||
/// isAddPurchase : null |
||||
/// limitNum : 0 |
||||
/// rankId : "0" |
||||
/// happyBean : 0 |
||||
/// imgs : ["https://pos.upload.lotus-wallet.com/1179/2022/01/243f54db-2dc8-4a9b-9ccc-09fc7a4e2a2e.jpg"] |
||||
/// productSkuList : [{"id":"1484156758229254144","createTime":"2022-01-20 21:32:00","createUser":"1364043181062094848","updateTime":"2022-01-20 21:32:00","updateUser":"1364043181062094848","storeId":"1460885296764682240","skuCode":"P202201202132002","skuNameStr":"","productId":"1484156758195699712","skuPrice":"24.00","applyPrice":"39.00","vipPrice":"24.00","packagingFee":"0.00","skuImg":null,"skuStock":-13,"autoRenewSkuStock":0,"deliveries":0,"ticketType":"","ticketWipedTimeTemplateId":null,"takeType":null,"ticketDays":"0","ticketExpireTime":"23:59:59","sort":50,"setMeal":"","productSetMeals":null,"weight":0.0,"volume":0.0,"isDelete":0,"material":null,"version":0,"skuTickets":null,"ticketStyle":""}] |
||||
|
||||
class ProductShow { |
||||
ProductShow({ |
||||
String id, |
||||
String createTime, |
||||
String createUser, |
||||
String updateTime, |
||||
String updateUser, |
||||
String supplierName, |
||||
String storeId, |
||||
String categoryId, |
||||
String groupId, |
||||
String shortName, |
||||
String productName, |
||||
String sellDesc, |
||||
String productCode, |
||||
String weight, |
||||
String applyPrice, |
||||
String price, |
||||
dynamic vipPrice, |
||||
num stock, |
||||
num sellCount, |
||||
num needLogistics, |
||||
num oversold, |
||||
num organic, |
||||
num status, |
||||
bool posShow, |
||||
dynamic subscribeParam, |
||||
bool isRaise, |
||||
num productType, |
||||
num productNumber, |
||||
num setMeal, |
||||
num attrStyle, |
||||
String detail, |
||||
num isDelete, |
||||
String printerFlag, |
||||
dynamic materials, |
||||
dynamic materialId, |
||||
String details, |
||||
String thumbnailImg, |
||||
String info, |
||||
num buyCount, |
||||
num sellCountLimit, |
||||
dynamic stockRecoveryTime, |
||||
dynamic isAddPurchase, |
||||
num limitNum, |
||||
String rankId, |
||||
num happyBean, |
||||
List<String> imgs, |
||||
List<ProductSkuList> productSkuList,}){ |
||||
_id = id; |
||||
_createTime = createTime; |
||||
_createUser = createUser; |
||||
_updateTime = updateTime; |
||||
_updateUser = updateUser; |
||||
_supplierName = supplierName; |
||||
_storeId = storeId; |
||||
_categoryId = categoryId; |
||||
_groupId = groupId; |
||||
_shortName = shortName; |
||||
_productName = productName; |
||||
_sellDesc = sellDesc; |
||||
_productCode = productCode; |
||||
_weight = weight; |
||||
_applyPrice = applyPrice; |
||||
_price = price; |
||||
_vipPrice = vipPrice; |
||||
_stock = stock; |
||||
_sellCount = sellCount; |
||||
_needLogistics = needLogistics; |
||||
_oversold = oversold; |
||||
_organic = organic; |
||||
_status = status; |
||||
_posShow = posShow; |
||||
_subscribeParam = subscribeParam; |
||||
_isRaise = isRaise; |
||||
_productType = productType; |
||||
_productNumber = productNumber; |
||||
_setMeal = setMeal; |
||||
_attrStyle = attrStyle; |
||||
_detail = detail; |
||||
_isDelete = isDelete; |
||||
_printerFlag = printerFlag; |
||||
_materials = materials; |
||||
_materialId = materialId; |
||||
_details = details; |
||||
_thumbnailImg = thumbnailImg; |
||||
_info = info; |
||||
_buyCount = buyCount; |
||||
_sellCountLimit = sellCountLimit; |
||||
_stockRecoveryTime = stockRecoveryTime; |
||||
_isAddPurchase = isAddPurchase; |
||||
_limitNum = limitNum; |
||||
_rankId = rankId; |
||||
_happyBean = happyBean; |
||||
_imgs = imgs; |
||||
_productSkuList = productSkuList; |
||||
} |
||||
|
||||
ProductShow.fromJson(dynamic json) { |
||||
_id = json['id']; |
||||
_createTime = json['createTime']; |
||||
_createUser = json['createUser']; |
||||
_updateTime = json['updateTime']; |
||||
_updateUser = json['updateUser']; |
||||
_supplierName = json['supplierName']; |
||||
_storeId = json['storeId']; |
||||
_categoryId = json['categoryId']; |
||||
_groupId = json['groupId']; |
||||
_shortName = json['shortName']; |
||||
_productName = json['productName']; |
||||
_sellDesc = json['sellDesc']; |
||||
_productCode = json['productCode']; |
||||
_weight = json['weight']; |
||||
_applyPrice = json['applyPrice']; |
||||
_price = json['price']; |
||||
_vipPrice = json['vipPrice']; |
||||
_stock = json['stock']; |
||||
_sellCount = json['sellCount']; |
||||
_needLogistics = json['needLogistics']; |
||||
_oversold = json['oversold']; |
||||
_organic = json['organic']; |
||||
_status = json['status']; |
||||
_posShow = json['posShow']; |
||||
_subscribeParam = json['subscribeParam']; |
||||
_isRaise = json['isRaise']; |
||||
_productType = json['productType']; |
||||
_productNumber = json['productNumber']; |
||||
_setMeal = json['setMeal']; |
||||
_attrStyle = json['attrStyle']; |
||||
_detail = json['detail']; |
||||
_isDelete = json['isDelete']; |
||||
_printerFlag = json['printerFlag']; |
||||
_materials = json['materials']; |
||||
_materialId = json['materialId']; |
||||
_details = json['details']; |
||||
_thumbnailImg = json['thumbnailImg']; |
||||
_info = json['info']; |
||||
_buyCount = json['buyCount']; |
||||
_sellCountLimit = json['sellCountLimit']; |
||||
_stockRecoveryTime = json['stockRecoveryTime']; |
||||
_isAddPurchase = json['isAddPurchase']; |
||||
_limitNum = json['limitNum']; |
||||
_rankId = json['rankId']; |
||||
_happyBean = json['happyBean']; |
||||
_imgs = json['imgs'] != null ? json['imgs'].cast<String>() : []; |
||||
if (json['productSkuList'] != null) { |
||||
_productSkuList = []; |
||||
json['productSkuList'].forEach((v) { |
||||
_productSkuList.add(ProductSkuList.fromJson(v)); |
||||
}); |
||||
} |
||||
} |
||||
String _id; |
||||
String _createTime; |
||||
String _createUser; |
||||
String _updateTime; |
||||
String _updateUser; |
||||
String _supplierName; |
||||
String _storeId; |
||||
String _categoryId; |
||||
String _groupId; |
||||
String _shortName; |
||||
String _productName; |
||||
String _sellDesc; |
||||
String _productCode; |
||||
String _weight; |
||||
String _applyPrice; |
||||
String _price; |
||||
dynamic _vipPrice; |
||||
num _stock; |
||||
num _sellCount; |
||||
num _needLogistics; |
||||
num _oversold; |
||||
num _organic; |
||||
num _status; |
||||
bool _posShow; |
||||
dynamic _subscribeParam; |
||||
bool _isRaise; |
||||
num _productType; |
||||
num _productNumber; |
||||
num _setMeal; |
||||
num _attrStyle; |
||||
String _detail; |
||||
num _isDelete; |
||||
String _printerFlag; |
||||
dynamic _materials; |
||||
dynamic _materialId; |
||||
String _details; |
||||
String _thumbnailImg; |
||||
String _info; |
||||
num _buyCount; |
||||
num _sellCountLimit; |
||||
dynamic _stockRecoveryTime; |
||||
dynamic _isAddPurchase; |
||||
num _limitNum; |
||||
String _rankId; |
||||
num _happyBean; |
||||
List<String> _imgs; |
||||
List<ProductSkuList> _productSkuList; |
||||
ProductShow copyWith({ String id, |
||||
String createTime, |
||||
String createUser, |
||||
String updateTime, |
||||
String updateUser, |
||||
String supplierName, |
||||
String storeId, |
||||
String categoryId, |
||||
String groupId, |
||||
String shortName, |
||||
String productName, |
||||
String sellDesc, |
||||
String productCode, |
||||
String weight, |
||||
String applyPrice, |
||||
String price, |
||||
dynamic vipPrice, |
||||
num stock, |
||||
num sellCount, |
||||
num needLogistics, |
||||
num oversold, |
||||
num organic, |
||||
num status, |
||||
bool posShow, |
||||
dynamic subscribeParam, |
||||
bool isRaise, |
||||
num productType, |
||||
num productNumber, |
||||
num setMeal, |
||||
num attrStyle, |
||||
String detail, |
||||
num isDelete, |
||||
String printerFlag, |
||||
dynamic materials, |
||||
dynamic materialId, |
||||
String details, |
||||
String thumbnailImg, |
||||
String info, |
||||
num buyCount, |
||||
num sellCountLimit, |
||||
dynamic stockRecoveryTime, |
||||
dynamic isAddPurchase, |
||||
num limitNum, |
||||
String rankId, |
||||
num happyBean, |
||||
List<String> imgs, |
||||
List<ProductSkuList> productSkuList, |
||||
}) => ProductShow( id: id ?? _id, |
||||
createTime: createTime ?? _createTime, |
||||
createUser: createUser ?? _createUser, |
||||
updateTime: updateTime ?? _updateTime, |
||||
updateUser: updateUser ?? _updateUser, |
||||
supplierName: supplierName ?? _supplierName, |
||||
storeId: storeId ?? _storeId, |
||||
categoryId: categoryId ?? _categoryId, |
||||
groupId: groupId ?? _groupId, |
||||
shortName: shortName ?? _shortName, |
||||
productName: productName ?? _productName, |
||||
sellDesc: sellDesc ?? _sellDesc, |
||||
productCode: productCode ?? _productCode, |
||||
weight: weight ?? _weight, |
||||
applyPrice: applyPrice ?? _applyPrice, |
||||
price: price ?? _price, |
||||
vipPrice: vipPrice ?? _vipPrice, |
||||
stock: stock ?? _stock, |
||||
sellCount: sellCount ?? _sellCount, |
||||
needLogistics: needLogistics ?? _needLogistics, |
||||
oversold: oversold ?? _oversold, |
||||
organic: organic ?? _organic, |
||||
status: status ?? _status, |
||||
posShow: posShow ?? _posShow, |
||||
subscribeParam: subscribeParam ?? _subscribeParam, |
||||
isRaise: isRaise ?? _isRaise, |
||||
productType: productType ?? _productType, |
||||
productNumber: productNumber ?? _productNumber, |
||||
setMeal: setMeal ?? _setMeal, |
||||
attrStyle: attrStyle ?? _attrStyle, |
||||
detail: detail ?? _detail, |
||||
isDelete: isDelete ?? _isDelete, |
||||
printerFlag: printerFlag ?? _printerFlag, |
||||
materials: materials ?? _materials, |
||||
materialId: materialId ?? _materialId, |
||||
details: details ?? _details, |
||||
thumbnailImg: thumbnailImg ?? _thumbnailImg, |
||||
info: info ?? _info, |
||||
buyCount: buyCount ?? _buyCount, |
||||
sellCountLimit: sellCountLimit ?? _sellCountLimit, |
||||
stockRecoveryTime: stockRecoveryTime ?? _stockRecoveryTime, |
||||
isAddPurchase: isAddPurchase ?? _isAddPurchase, |
||||
limitNum: limitNum ?? _limitNum, |
||||
rankId: rankId ?? _rankId, |
||||
happyBean: happyBean ?? _happyBean, |
||||
imgs: imgs ?? _imgs, |
||||
productSkuList: productSkuList ?? _productSkuList, |
||||
); |
||||
String get id => _id; |
||||
String get createTime => _createTime; |
||||
String get createUser => _createUser; |
||||
String get updateTime => _updateTime; |
||||
String get updateUser => _updateUser; |
||||
String get supplierName => _supplierName; |
||||
String get storeId => _storeId; |
||||
String get categoryId => _categoryId; |
||||
String get groupId => _groupId; |
||||
String get shortName => _shortName; |
||||
String get productName => _productName; |
||||
String get sellDesc => _sellDesc; |
||||
String get productCode => _productCode; |
||||
String get weight => _weight; |
||||
String get applyPrice => _applyPrice; |
||||
String get price => _price; |
||||
dynamic get vipPrice => _vipPrice; |
||||
num get stock => _stock; |
||||
num get sellCount => _sellCount; |
||||
num get needLogistics => _needLogistics; |
||||
num get oversold => _oversold; |
||||
num get organic => _organic; |
||||
num get status => _status; |
||||
bool get posShow => _posShow; |
||||
dynamic get subscribeParam => _subscribeParam; |
||||
bool get isRaise => _isRaise; |
||||
num get productType => _productType; |
||||
num get productNumber => _productNumber; |
||||
num get setMeal => _setMeal; |
||||
num get attrStyle => _attrStyle; |
||||
String get detail => _detail; |
||||
num get isDelete => _isDelete; |
||||
String get printerFlag => _printerFlag; |
||||
dynamic get materials => _materials; |
||||
dynamic get materialId => _materialId; |
||||
String get details => _details; |
||||
String get thumbnailImg => _thumbnailImg; |
||||
String get info => _info; |
||||
num get buyCount => _buyCount; |
||||
num get sellCountLimit => _sellCountLimit; |
||||
dynamic get stockRecoveryTime => _stockRecoveryTime; |
||||
dynamic get isAddPurchase => _isAddPurchase; |
||||
num get limitNum => _limitNum; |
||||
String get rankId => _rankId; |
||||
num get happyBean => _happyBean; |
||||
List<String> get imgs => _imgs; |
||||
List<ProductSkuList> get productSkuList => _productSkuList; |
||||
|
||||
Map<String, dynamic> toJson() { |
||||
final map = <String, dynamic>{}; |
||||
map['id'] = _id; |
||||
map['createTime'] = _createTime; |
||||
map['createUser'] = _createUser; |
||||
map['updateTime'] = _updateTime; |
||||
map['updateUser'] = _updateUser; |
||||
map['supplierName'] = _supplierName; |
||||
map['storeId'] = _storeId; |
||||
map['categoryId'] = _categoryId; |
||||
map['groupId'] = _groupId; |
||||
map['shortName'] = _shortName; |
||||
map['productName'] = _productName; |
||||
map['sellDesc'] = _sellDesc; |
||||
map['productCode'] = _productCode; |
||||
map['weight'] = _weight; |
||||
map['applyPrice'] = _applyPrice; |
||||
map['price'] = _price; |
||||
map['vipPrice'] = _vipPrice; |
||||
map['stock'] = _stock; |
||||
map['sellCount'] = _sellCount; |
||||
map['needLogistics'] = _needLogistics; |
||||
map['oversold'] = _oversold; |
||||
map['organic'] = _organic; |
||||
map['status'] = _status; |
||||
map['posShow'] = _posShow; |
||||
map['subscribeParam'] = _subscribeParam; |
||||
map['isRaise'] = _isRaise; |
||||
map['productType'] = _productType; |
||||
map['productNumber'] = _productNumber; |
||||
map['setMeal'] = _setMeal; |
||||
map['attrStyle'] = _attrStyle; |
||||
map['detail'] = _detail; |
||||
map['isDelete'] = _isDelete; |
||||
map['printerFlag'] = _printerFlag; |
||||
map['materials'] = _materials; |
||||
map['materialId'] = _materialId; |
||||
map['details'] = _details; |
||||
map['thumbnailImg'] = _thumbnailImg; |
||||
map['info'] = _info; |
||||
map['buyCount'] = _buyCount; |
||||
map['sellCountLimit'] = _sellCountLimit; |
||||
map['stockRecoveryTime'] = _stockRecoveryTime; |
||||
map['isAddPurchase'] = _isAddPurchase; |
||||
map['limitNum'] = _limitNum; |
||||
map['rankId'] = _rankId; |
||||
map['happyBean'] = _happyBean; |
||||
map['imgs'] = _imgs; |
||||
if (_productSkuList != null) { |
||||
map['productSkuList'] = _productSkuList.map((v) => v.toJson()).toList(); |
||||
} |
||||
return map; |
||||
} |
||||
|
||||
} |
||||
|
||||
/// id : "1484156758229254144" |
||||
/// createTime : "2022-01-20 21:32:00" |
||||
/// createUser : "1364043181062094848" |
||||
/// updateTime : "2022-01-20 21:32:00" |
||||
/// updateUser : "1364043181062094848" |
||||
/// storeId : "1460885296764682240" |
||||
/// skuCode : "P202201202132002" |
||||
/// skuNameStr : "" |
||||
/// productId : "1484156758195699712" |
||||
/// skuPrice : "24.00" |
||||
/// applyPrice : "39.00" |
||||
/// vipPrice : "24.00" |
||||
/// packagingFee : "0.00" |
||||
/// skuImg : null |
||||
/// skuStock : -13 |
||||
/// autoRenewSkuStock : 0 |
||||
/// deliveries : 0 |
||||
/// ticketType : "" |
||||
/// ticketWipedTimeTemplateId : null |
||||
/// takeType : null |
||||
/// ticketDays : "0" |
||||
/// ticketExpireTime : "23:59:59" |
||||
/// sort : 50 |
||||
/// setMeal : "" |
||||
/// productSetMeals : null |
||||
/// weight : 0.0 |
||||
/// volume : 0.0 |
||||
/// isDelete : 0 |
||||
/// material : null |
||||
/// version : 0 |
||||
/// skuTickets : null |
||||
/// ticketStyle : "" |
||||
|
||||
class ProductSkuList { |
||||
ProductSkuList({ |
||||
String id, |
||||
String createTime, |
||||
String createUser, |
||||
String updateTime, |
||||
String updateUser, |
||||
String storeId, |
||||
String skuCode, |
||||
String skuNameStr, |
||||
String productId, |
||||
String skuPrice, |
||||
String applyPrice, |
||||
String vipPrice, |
||||
String packagingFee, |
||||
dynamic skuImg, |
||||
num skuStock, |
||||
num autoRenewSkuStock, |
||||
num deliveries, |
||||
String ticketType, |
||||
dynamic ticketWipedTimeTemplateId, |
||||
dynamic takeType, |
||||
String ticketDays, |
||||
String ticketExpireTime, |
||||
num sort, |
||||
String setMeal, |
||||
dynamic productSetMeals, |
||||
num weight, |
||||
num volume, |
||||
num isDelete, |
||||
dynamic material, |
||||
num version, |
||||
dynamic skuTickets, |
||||
String ticketStyle,}){ |
||||
_id = id; |
||||
_createTime = createTime; |
||||
_createUser = createUser; |
||||
_updateTime = updateTime; |
||||
_updateUser = updateUser; |
||||
_storeId = storeId; |
||||
_skuCode = skuCode; |
||||
_skuNameStr = skuNameStr; |
||||
_productId = productId; |
||||
_skuPrice = skuPrice; |
||||
_applyPrice = applyPrice; |
||||
_vipPrice = vipPrice; |
||||
_packagingFee = packagingFee; |
||||
_skuImg = skuImg; |
||||
_skuStock = skuStock; |
||||
_autoRenewSkuStock = autoRenewSkuStock; |
||||
_deliveries = deliveries; |
||||
_ticketType = ticketType; |
||||
_ticketWipedTimeTemplateId = ticketWipedTimeTemplateId; |
||||
_takeType = takeType; |
||||
_ticketDays = ticketDays; |
||||
_ticketExpireTime = ticketExpireTime; |
||||
_sort = sort; |
||||
_setMeal = setMeal; |
||||
_productSetMeals = productSetMeals; |
||||
_weight = weight; |
||||
_volume = volume; |
||||
_isDelete = isDelete; |
||||
_material = material; |
||||
_version = version; |
||||
_skuTickets = skuTickets; |
||||
_ticketStyle = ticketStyle; |
||||
} |
||||
|
||||
ProductSkuList.fromJson(dynamic json) { |
||||
_id = json['id']; |
||||
_createTime = json['createTime']; |
||||
_createUser = json['createUser']; |
||||
_updateTime = json['updateTime']; |
||||
_updateUser = json['updateUser']; |
||||
_storeId = json['storeId']; |
||||
_skuCode = json['skuCode']; |
||||
_skuNameStr = json['skuNameStr']; |
||||
_productId = json['productId']; |
||||
_skuPrice = json['skuPrice']; |
||||
_applyPrice = json['applyPrice']; |
||||
_vipPrice = json['vipPrice']; |
||||
_packagingFee = json['packagingFee']; |
||||
_skuImg = json['skuImg']; |
||||
_skuStock = json['skuStock']; |
||||
_autoRenewSkuStock = json['autoRenewSkuStock']; |
||||
_deliveries = json['deliveries']; |
||||
_ticketType = json['ticketType']; |
||||
_ticketWipedTimeTemplateId = json['ticketWipedTimeTemplateId']; |
||||
_takeType = json['takeType']; |
||||
_ticketDays = json['ticketDays']; |
||||
_ticketExpireTime = json['ticketExpireTime']; |
||||
_sort = json['sort']; |
||||
_setMeal = json['setMeal']; |
||||
_productSetMeals = json['productSetMeals']; |
||||
_weight = json['weight']; |
||||
_volume = json['volume']; |
||||
_isDelete = json['isDelete']; |
||||
_material = json['material']; |
||||
_version = json['version']; |
||||
_skuTickets = json['skuTickets']; |
||||
_ticketStyle = json['ticketStyle']; |
||||
} |
||||
String _id; |
||||
String _createTime; |
||||
String _createUser; |
||||
String _updateTime; |
||||
String _updateUser; |
||||
String _storeId; |
||||
String _skuCode; |
||||
String _skuNameStr; |
||||
String _productId; |
||||
String _skuPrice; |
||||
String _applyPrice; |
||||
String _vipPrice; |
||||
String _packagingFee; |
||||
dynamic _skuImg; |
||||
num _skuStock; |
||||
num _autoRenewSkuStock; |
||||
num _deliveries; |
||||
String _ticketType; |
||||
dynamic _ticketWipedTimeTemplateId; |
||||
dynamic _takeType; |
||||
String _ticketDays; |
||||
String _ticketExpireTime; |
||||
num _sort; |
||||
String _setMeal; |
||||
dynamic _productSetMeals; |
||||
num _weight; |
||||
num _volume; |
||||
num _isDelete; |
||||
dynamic _material; |
||||
num _version; |
||||
dynamic _skuTickets; |
||||
String _ticketStyle; |
||||
ProductSkuList copyWith({ String id, |
||||
String createTime, |
||||
String createUser, |
||||
String updateTime, |
||||
String updateUser, |
||||
String storeId, |
||||
String skuCode, |
||||
String skuNameStr, |
||||
String productId, |
||||
String skuPrice, |
||||
String applyPrice, |
||||
String vipPrice, |
||||
String packagingFee, |
||||
dynamic skuImg, |
||||
num skuStock, |
||||
num autoRenewSkuStock, |
||||
num deliveries, |
||||
String ticketType, |
||||
dynamic ticketWipedTimeTemplateId, |
||||
dynamic takeType, |
||||
String ticketDays, |
||||
String ticketExpireTime, |
||||
num sort, |
||||
String setMeal, |
||||
dynamic productSetMeals, |
||||
num weight, |
||||
num volume, |
||||
num isDelete, |
||||
dynamic material, |
||||
num version, |
||||
dynamic skuTickets, |
||||
String ticketStyle, |
||||
}) => ProductSkuList( id: id ?? _id, |
||||
createTime: createTime ?? _createTime, |
||||
createUser: createUser ?? _createUser, |
||||
updateTime: updateTime ?? _updateTime, |
||||
updateUser: updateUser ?? _updateUser, |
||||
storeId: storeId ?? _storeId, |
||||
skuCode: skuCode ?? _skuCode, |
||||
skuNameStr: skuNameStr ?? _skuNameStr, |
||||
productId: productId ?? _productId, |
||||
skuPrice: skuPrice ?? _skuPrice, |
||||
applyPrice: applyPrice ?? _applyPrice, |
||||
vipPrice: vipPrice ?? _vipPrice, |
||||
packagingFee: packagingFee ?? _packagingFee, |
||||
skuImg: skuImg ?? _skuImg, |
||||
skuStock: skuStock ?? _skuStock, |
||||
autoRenewSkuStock: autoRenewSkuStock ?? _autoRenewSkuStock, |
||||
deliveries: deliveries ?? _deliveries, |
||||
ticketType: ticketType ?? _ticketType, |
||||
ticketWipedTimeTemplateId: ticketWipedTimeTemplateId ?? _ticketWipedTimeTemplateId, |
||||
takeType: takeType ?? _takeType, |
||||
ticketDays: ticketDays ?? _ticketDays, |
||||
ticketExpireTime: ticketExpireTime ?? _ticketExpireTime, |
||||
sort: sort ?? _sort, |
||||
setMeal: setMeal ?? _setMeal, |
||||
productSetMeals: productSetMeals ?? _productSetMeals, |
||||
weight: weight ?? _weight, |
||||
volume: volume ?? _volume, |
||||
isDelete: isDelete ?? _isDelete, |
||||
material: material ?? _material, |
||||
version: version ?? _version, |
||||
skuTickets: skuTickets ?? _skuTickets, |
||||
ticketStyle: ticketStyle ?? _ticketStyle, |
||||
); |
||||
String get id => _id; |
||||
String get createTime => _createTime; |
||||
String get createUser => _createUser; |
||||
String get updateTime => _updateTime; |
||||
String get updateUser => _updateUser; |
||||
String get storeId => _storeId; |
||||
String get skuCode => _skuCode; |
||||
String get skuNameStr => _skuNameStr; |
||||
String get productId => _productId; |
||||
String get skuPrice => _skuPrice; |
||||
String get applyPrice => _applyPrice; |
||||
String get vipPrice => _vipPrice; |
||||
String get packagingFee => _packagingFee; |
||||
dynamic get skuImg => _skuImg; |
||||
num get skuStock => _skuStock; |
||||
num get autoRenewSkuStock => _autoRenewSkuStock; |
||||
num get deliveries => _deliveries; |
||||
String get ticketType => _ticketType; |
||||
dynamic get ticketWipedTimeTemplateId => _ticketWipedTimeTemplateId; |
||||
dynamic get takeType => _takeType; |
||||
String get ticketDays => _ticketDays; |
||||
String get ticketExpireTime => _ticketExpireTime; |
||||
num get sort => _sort; |
||||
String get setMeal => _setMeal; |
||||
dynamic get productSetMeals => _productSetMeals; |
||||
num get weight => _weight; |
||||
num get volume => _volume; |
||||
num get isDelete => _isDelete; |
||||
dynamic get material => _material; |
||||
num get version => _version; |
||||
dynamic get skuTickets => _skuTickets; |
||||
String get ticketStyle => _ticketStyle; |
||||
|
||||
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['skuCode'] = _skuCode; |
||||
map['skuNameStr'] = _skuNameStr; |
||||
map['productId'] = _productId; |
||||
map['skuPrice'] = _skuPrice; |
||||
map['applyPrice'] = _applyPrice; |
||||
map['vipPrice'] = _vipPrice; |
||||
map['packagingFee'] = _packagingFee; |
||||
map['skuImg'] = _skuImg; |
||||
map['skuStock'] = _skuStock; |
||||
map['autoRenewSkuStock'] = _autoRenewSkuStock; |
||||
map['deliveries'] = _deliveries; |
||||
map['ticketType'] = _ticketType; |
||||
map['ticketWipedTimeTemplateId'] = _ticketWipedTimeTemplateId; |
||||
map['takeType'] = _takeType; |
||||
map['ticketDays'] = _ticketDays; |
||||
map['ticketExpireTime'] = _ticketExpireTime; |
||||
map['sort'] = _sort; |
||||
map['setMeal'] = _setMeal; |
||||
map['productSetMeals'] = _productSetMeals; |
||||
map['weight'] = _weight; |
||||
map['volume'] = _volume; |
||||
map['isDelete'] = _isDelete; |
||||
map['material'] = _material; |
||||
map['version'] = _version; |
||||
map['skuTickets'] = _skuTickets; |
||||
map['ticketStyle'] = _ticketStyle; |
||||
return map; |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue