|
...
|
...
|
@@ -515,12 +515,12 @@ class _StoreBaseInfoPageState extends State<StoreBaseInfoPage> { |
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(cuisineIds.length == 0){
|
|
|
|
Utils.showToast('请至少选择一个菜系!');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
setSellerCuisine();
|
|
|
|
setAverage();
|
|
|
|
// if(cuisineIds.length == 0){
|
|
|
|
// Utils.showToast('请至少选择一个菜系!');
|
|
|
|
// return;
|
|
|
|
// }
|
|
|
|
// setSellerCuisine();
|
|
|
|
// setAverage();
|
|
|
|
await _setReceiveTime();
|
|
|
|
_refreshMarketingInfo();
|
|
|
|
await _setSellerInfoById();
|
|
...
|
...
|
@@ -2385,115 +2385,115 @@ class _StoreBaseInfoPageState extends State<StoreBaseInfoPage> { |
|
|
|
keyboardType: TextInputType.multiline,
|
|
|
|
)),
|
|
|
|
|
|
|
|
VEmptyView(152),
|
|
|
|
Text('其他信息',
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize: ScreenUtil().setSp(32),
|
|
|
|
color: MyColours.color_515151)),
|
|
|
|
VEmptyView(34),
|
|
|
|
timeWidget('经营菜系', cuisine, highted: false,
|
|
|
|
onTap: () {
|
|
|
|
FocusScope.of(context)
|
|
|
|
.requestFocus(FocusNode()); //隐藏键盘
|
|
|
|
// 存储
|
|
|
|
|
|
|
|
DialogUtil.openCuisineSelectModalBottomSheet(
|
|
|
|
context,
|
|
|
|
List.from(_baseIndoProvider.allCuisineData),
|
|
|
|
cuisineIds, rCallback: (value) async {
|
|
|
|
if (value != null) {
|
|
|
|
cuisineIds = value;
|
|
|
|
cuisine = '';
|
|
|
|
_baseIndoProvider.allCuisineData
|
|
|
|
.forEach((element) {
|
|
|
|
if (cuisineIds.contains(element.id)) {
|
|
|
|
cuisine += element.name + ' ';
|
|
|
|
}
|
|
|
|
});
|
|
|
|
if (cuisine.endsWith(' ')) {
|
|
|
|
cuisine = cuisine.substring(
|
|
|
|
0, cuisine.length - 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
setState(() {});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}),
|
|
|
|
VEmptyView(40),
|
|
|
|
|
|
|
|
///应收金额
|
|
|
|
|
|
|
|
Container(
|
|
|
|
// color: Colors.white,
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
left: ScreenUtil().setWidth(24),
|
|
|
|
right: w(10)),
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'人均消费',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(28),
|
|
|
|
color: MyColours.color_999999),
|
|
|
|
),
|
|
|
|
|
|
|
|
// HEmptyView(40),
|
|
|
|
Expanded(
|
|
|
|
child: Container(
|
|
|
|
child: TextField(
|
|
|
|
maxLines: 1,
|
|
|
|
textAlign: TextAlign.right,
|
|
|
|
//输入文本的样式
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(28),
|
|
|
|
color:
|
|
|
|
MyColours.color_438E93),
|
|
|
|
controller: _averageC,
|
|
|
|
// focusNode: _focusNode,
|
|
|
|
keyboardType: TextInputType
|
|
|
|
.numberWithOptions(
|
|
|
|
decimal: true),
|
|
|
|
// textAlignVertical: TextAlignVertical.bottom,
|
|
|
|
decoration: InputDecoration(
|
|
|
|
isCollapsed: false,
|
|
|
|
hintText: "请输入",
|
|
|
|
hintStyle: TextStyle(
|
|
|
|
color:
|
|
|
|
MyColours.color_999999,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(28),
|
|
|
|
),
|
|
|
|
// contentPadding:
|
|
|
|
// EdgeInsets.only(bottom: ScreenUtil().setWidth(17)),
|
|
|
|
contentPadding:
|
|
|
|
EdgeInsets.zero,
|
|
|
|
border: OutlineInputBorder(
|
|
|
|
borderSide:
|
|
|
|
BorderSide.none),
|
|
|
|
),
|
|
|
|
onChanged: (value) {
|
|
|
|
// print(value);
|
|
|
|
// // currentRemark = value;
|
|
|
|
// // print();
|
|
|
|
// setState(() {
|
|
|
|
// if (value != '¥' && value.trim().length > 0) {
|
|
|
|
// btnState = 1;
|
|
|
|
// } else {
|
|
|
|
// btnState = -1;
|
|
|
|
// }
|
|
|
|
// });
|
|
|
|
},
|
|
|
|
onEditingComplete: () {
|
|
|
|
print('fff');
|
|
|
|
// _focusNode.unfocus();
|
|
|
|
// VEmptyView(152),
|
|
|
|
// Text('其他信息',
|
|
|
|
// style: TextStyle(
|
|
|
|
// fontWeight: FontWeight.bold,
|
|
|
|
// fontSize: ScreenUtil().setSp(32),
|
|
|
|
// color: MyColours.color_515151)),
|
|
|
|
// VEmptyView(34),
|
|
|
|
// timeWidget('经营菜系', cuisine, highted: false,
|
|
|
|
// onTap: () {
|
|
|
|
// FocusScope.of(context)
|
|
|
|
// .requestFocus(FocusNode()); //隐藏键盘
|
|
|
|
// // 存储
|
|
|
|
|
|
|
|
// DialogUtil.openCuisineSelectModalBottomSheet(
|
|
|
|
// context,
|
|
|
|
// List.from(_baseIndoProvider.allCuisineData),
|
|
|
|
// cuisineIds, rCallback: (value) async {
|
|
|
|
// if (value != null) {
|
|
|
|
// cuisineIds = value;
|
|
|
|
// cuisine = '';
|
|
|
|
// _baseIndoProvider.allCuisineData
|
|
|
|
// .forEach((element) {
|
|
|
|
// if (cuisineIds.contains(element.id)) {
|
|
|
|
// cuisine += element.name + ' ';
|
|
|
|
// }
|
|
|
|
// });
|
|
|
|
// if (cuisine.endsWith(' ')) {
|
|
|
|
// cuisine = cuisine.substring(
|
|
|
|
// 0, cuisine.length - 1);
|
|
|
|
// }
|
|
|
|
|
|
|
|
// setState(() {});
|
|
|
|
// }
|
|
|
|
// });
|
|
|
|
// }),
|
|
|
|
// VEmptyView(40),
|
|
|
|
|
|
|
|
// ///应收金额
|
|
|
|
|
|
|
|
// _editingController.text = '';
|
|
|
|
// _needNode.unfocus();
|
|
|
|
})))
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
// Container(
|
|
|
|
// // color: Colors.white,
|
|
|
|
// padding: EdgeInsets.only(
|
|
|
|
// left: ScreenUtil().setWidth(24),
|
|
|
|
// right: w(10)),
|
|
|
|
// child: Row(
|
|
|
|
// children: [
|
|
|
|
// Text(
|
|
|
|
// '人均消费',
|
|
|
|
// style: TextStyle(
|
|
|
|
// fontSize: ScreenUtil().setSp(28),
|
|
|
|
// color: MyColours.color_999999),
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// // HEmptyView(40),
|
|
|
|
// Expanded(
|
|
|
|
// child: Container(
|
|
|
|
// child: TextField(
|
|
|
|
// maxLines: 1,
|
|
|
|
// textAlign: TextAlign.right,
|
|
|
|
// //输入文本的样式
|
|
|
|
// style: TextStyle(
|
|
|
|
// fontSize:
|
|
|
|
// ScreenUtil().setSp(28),
|
|
|
|
// color:
|
|
|
|
// MyColours.color_438E93),
|
|
|
|
// controller: _averageC,
|
|
|
|
// // focusNode: _focusNode,
|
|
|
|
// keyboardType: TextInputType
|
|
|
|
// .numberWithOptions(
|
|
|
|
// decimal: true),
|
|
|
|
// // textAlignVertical: TextAlignVertical.bottom,
|
|
|
|
// decoration: InputDecoration(
|
|
|
|
// isCollapsed: false,
|
|
|
|
// hintText: "请输入",
|
|
|
|
// hintStyle: TextStyle(
|
|
|
|
// color:
|
|
|
|
// MyColours.color_999999,
|
|
|
|
// fontSize:
|
|
|
|
// ScreenUtil().setSp(28),
|
|
|
|
// ),
|
|
|
|
// // contentPadding:
|
|
|
|
// // EdgeInsets.only(bottom: ScreenUtil().setWidth(17)),
|
|
|
|
// contentPadding:
|
|
|
|
// EdgeInsets.zero,
|
|
|
|
// border: OutlineInputBorder(
|
|
|
|
// borderSide:
|
|
|
|
// BorderSide.none),
|
|
|
|
// ),
|
|
|
|
// onChanged: (value) {
|
|
|
|
// // print(value);
|
|
|
|
// // // currentRemark = value;
|
|
|
|
// // // print();
|
|
|
|
// // setState(() {
|
|
|
|
// // if (value != '¥' && value.trim().length > 0) {
|
|
|
|
// // btnState = 1;
|
|
|
|
// // } else {
|
|
|
|
// // btnState = -1;
|
|
|
|
// // }
|
|
|
|
// // });
|
|
|
|
// },
|
|
|
|
// onEditingComplete: () {
|
|
|
|
// print('fff');
|
|
|
|
// // _focusNode.unfocus();
|
|
|
|
|
|
|
|
// // _editingController.text = '';
|
|
|
|
// // _needNode.unfocus();
|
|
|
|
// })))
|
|
|
|
// ],
|
|
|
|
// )),
|
|
|
|
|
|
|
|
// Padding(
|
|
|
|
// padding: EdgeInsets.symmetric(
|
...
|
...
|
|