|
...
|
...
|
@@ -63,8 +63,8 @@ class _CouponEidtPageState extends State<CouponEidtPage> { |
|
|
|
final heightCell = ScreenUtil().setWidth(48 * 2);
|
|
|
|
bool swichState = true; //默认启用 开关状态
|
|
|
|
final GlobalKey<ScaffoldState> scaffoldKey = GlobalKey<ScaffoldState>();
|
|
|
|
String fromDate = '点击选择'; //有效期开始时间
|
|
|
|
String endDate = '点击选择'; //有效期结束时间
|
|
|
|
String fromDate = '点击选择开始日期'; //有效期开始时间
|
|
|
|
String endDate = '点击选择结束日期'; //有效期结束时间
|
|
|
|
FocusNode _nameFocusNode = FocusNode();
|
|
|
|
FocusNode _requireFocusNode = FocusNode();
|
|
|
|
bool showDateSelWidget = false;
|
|
...
|
...
|
@@ -122,6 +122,20 @@ class _CouponEidtPageState extends State<CouponEidtPage> { |
|
|
|
|
|
|
|
late StoreBaseIndoProvider storeBaseIndoProvider;
|
|
|
|
|
|
|
|
bool validForever = false;
|
|
|
|
bool validForeverCus = false;
|
|
|
|
bool fromToEndDateCus = true;
|
|
|
|
bool todayCus = false;
|
|
|
|
bool tomorrowCus = false;
|
|
|
|
bool fromToEndDayCus = false;
|
|
|
|
String fromDateCus = '点击选择开始日期'; //领取后有效期开始时间
|
|
|
|
String endDateCus = '点击选择结束日期'; //领取后有效期结束时间
|
|
|
|
|
|
|
|
TextEditingController todayC = TextEditingController();
|
|
|
|
TextEditingController tomorrowC = TextEditingController();
|
|
|
|
|
|
|
|
TextEditingController fromDayC = TextEditingController();
|
|
|
|
TextEditingController endDayC = TextEditingController();
|
|
|
|
@override
|
|
|
|
void initState() {
|
|
|
|
super.initState();
|
|
...
|
...
|
@@ -225,7 +239,6 @@ class _CouponEidtPageState extends State<CouponEidtPage> { |
|
|
|
swichState = widget.couponSunModel!.status == '1' ? true : false;
|
|
|
|
_priceControl.text = widget.couponSunModel!.price;
|
|
|
|
_limitDay.text = widget.couponSunModel!.aexpiration ?? '';
|
|
|
|
|
|
|
|
|
|
|
|
isSameDay = widget.couponSunModel!.arule!.isSameDay;
|
|
|
|
isAccumulation = widget.couponSunModel!.arule!.isAccumulation;
|
|
...
|
...
|
@@ -1183,83 +1196,83 @@ class _CouponEidtPageState extends State<CouponEidtPage> { |
|
|
|
color: MyColours.color_E7E7E7,
|
|
|
|
),
|
|
|
|
VEmptyView(24),
|
|
|
|
_select('活动开始于', fromDate, () {
|
|
|
|
FocusScope.of(context)
|
|
|
|
.requestFocus(FocusNode()); //点击空白处隐藏键盘
|
|
|
|
//弹出时间选择器
|
|
|
|
// showPickerDateTime(context);
|
|
|
|
showDateSelWidget = true;
|
|
|
|
DialogUtil.showPickerDateTime24(
|
|
|
|
context,
|
|
|
|
scaffoldKey,
|
|
|
|
(value) {
|
|
|
|
// {'text': picker.adapter.text, 'select': selecteds}
|
|
|
|
if (value != null) {
|
|
|
|
setState(() {
|
|
|
|
print(value);
|
|
|
|
fromDate = DateUtil.formatDateStr(
|
|
|
|
value,
|
|
|
|
format: DateFormats.y_mo_d);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
showDateSelWidget = false;
|
|
|
|
},
|
|
|
|
dateTime: fromDate == '点击选择'
|
|
|
|
? null
|
|
|
|
: DateUtil.getDateTime(fromDate),
|
|
|
|
pickerDateTimeType: PickerDateTimeType.kYMD,
|
|
|
|
onCancel: () {
|
|
|
|
showDateSelWidget = false;
|
|
|
|
});
|
|
|
|
}),
|
|
|
|
Container(
|
|
|
|
height: ScreenUtil().setWidth(2),
|
|
|
|
color: MyColours.color_E7E7E7,
|
|
|
|
),
|
|
|
|
VEmptyView(24),
|
|
|
|
_select('活动结束于', endDate, () {
|
|
|
|
FocusScope.of(context)
|
|
|
|
.requestFocus(FocusNode()); //点击空白处隐藏键盘
|
|
|
|
//弹出时间选择器
|
|
|
|
// showPickerDateTime(context);
|
|
|
|
showDateSelWidget = true;
|
|
|
|
DialogUtil.showPickerDateTime24(
|
|
|
|
context,
|
|
|
|
scaffoldKey,
|
|
|
|
(value) {
|
|
|
|
// {'text': picker.adapter.text, 'select': selecteds}
|
|
|
|
if (value != null) {
|
|
|
|
setState(() {
|
|
|
|
print(value);
|
|
|
|
endDate = DateUtil.formatDateStr(
|
|
|
|
value,
|
|
|
|
format: DateFormats.y_mo_d);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
showDateSelWidget = false;
|
|
|
|
},
|
|
|
|
dateTime: endDate == '点击选择'
|
|
|
|
? null
|
|
|
|
: DateUtil.getDateTime(endDate),
|
|
|
|
pickerDateTimeType: PickerDateTimeType.kYMD,
|
|
|
|
onCancel: () {
|
|
|
|
showDateSelWidget = false;
|
|
|
|
});
|
|
|
|
}),
|
|
|
|
Container(
|
|
|
|
height: ScreenUtil().setWidth(2),
|
|
|
|
color: MyColours.color_E7E7E7,
|
|
|
|
),
|
|
|
|
VEmptyView(48),
|
|
|
|
// _select('活动开始于', fromDate, () {
|
|
|
|
// FocusScope.of(context)
|
|
|
|
// .requestFocus(FocusNode()); //点击空白处隐藏键盘
|
|
|
|
// //弹出时间选择器
|
|
|
|
// // showPickerDateTime(context);
|
|
|
|
// showDateSelWidget = true;
|
|
|
|
// DialogUtil.showPickerDateTime24(
|
|
|
|
// context,
|
|
|
|
// scaffoldKey,
|
|
|
|
// (value) {
|
|
|
|
// // {'text': picker.adapter.text, 'select': selecteds}
|
|
|
|
// if (value != null) {
|
|
|
|
// setState(() {
|
|
|
|
// print(value);
|
|
|
|
// fromDate = DateUtil.formatDateStr(
|
|
|
|
// value,
|
|
|
|
// format: DateFormats.y_mo_d);
|
|
|
|
// });
|
|
|
|
// }
|
|
|
|
// showDateSelWidget = false;
|
|
|
|
// },
|
|
|
|
// dateTime: fromDate == '点击选择'
|
|
|
|
// ? null
|
|
|
|
// : DateUtil.getDateTime(fromDate),
|
|
|
|
// pickerDateTimeType: PickerDateTimeType.kYMD,
|
|
|
|
// onCancel: () {
|
|
|
|
// showDateSelWidget = false;
|
|
|
|
// });
|
|
|
|
// }),
|
|
|
|
// Container(
|
|
|
|
// height: ScreenUtil().setWidth(2),
|
|
|
|
// color: MyColours.color_E7E7E7,
|
|
|
|
// ),
|
|
|
|
// VEmptyView(24),
|
|
|
|
// _select('活动结束于', endDate, () {
|
|
|
|
// FocusScope.of(context)
|
|
|
|
// .requestFocus(FocusNode()); //点击空白处隐藏键盘
|
|
|
|
// //弹出时间选择器
|
|
|
|
// // showPickerDateTime(context);
|
|
|
|
// showDateSelWidget = true;
|
|
|
|
// DialogUtil.showPickerDateTime24(
|
|
|
|
// context,
|
|
|
|
// scaffoldKey,
|
|
|
|
// (value) {
|
|
|
|
// // {'text': picker.adapter.text, 'select': selecteds}
|
|
|
|
// if (value != null) {
|
|
|
|
// setState(() {
|
|
|
|
// print(value);
|
|
|
|
// endDate = DateUtil.formatDateStr(
|
|
|
|
// value,
|
|
|
|
// format: DateFormats.y_mo_d);
|
|
|
|
// });
|
|
|
|
// }
|
|
|
|
// showDateSelWidget = false;
|
|
|
|
// },
|
|
|
|
// dateTime: endDate == '点击选择'
|
|
|
|
// ? null
|
|
|
|
// : DateUtil.getDateTime(endDate),
|
|
|
|
// pickerDateTimeType: PickerDateTimeType.kYMD,
|
|
|
|
// onCancel: () {
|
|
|
|
// showDateSelWidget = false;
|
|
|
|
// });
|
|
|
|
// }),
|
|
|
|
// Container(
|
|
|
|
// height: ScreenUtil().setWidth(2),
|
|
|
|
// color: MyColours.color_E7E7E7,
|
|
|
|
// ),
|
|
|
|
// VEmptyView(48),
|
|
|
|
|
|
|
|
_textfield('领取后有效天数', '点击输入,0表示到活动结束', _limitDay,
|
|
|
|
_limitDayFocusNode,
|
|
|
|
textInputType: TextInputType.number),
|
|
|
|
Container(
|
|
|
|
height: ScreenUtil().setWidth(2),
|
|
|
|
color: MyColours.color_E7E7E7,
|
|
|
|
),
|
|
|
|
VEmptyView(24),
|
|
|
|
// _textfield('领取后有效天数', '点击输入,0表示到活动结束', _limitDay,
|
|
|
|
// _limitDayFocusNode,
|
|
|
|
// textInputType: TextInputType.number),
|
|
|
|
// Container(
|
|
|
|
// height: ScreenUtil().setWidth(2),
|
|
|
|
// color: MyColours.color_E7E7E7,
|
|
|
|
// ),
|
|
|
|
// VEmptyView(24),
|
|
|
|
|
|
|
|
_select('不可用日期', weekShow, () async {
|
|
|
|
if (storeBaseIndoProvider.dayDateData == null ||
|
|
...
|
...
|
@@ -1455,6 +1468,798 @@ class _CouponEidtPageState extends State<CouponEidtPage> { |
|
|
|
Container(
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
child: Text(
|
|
|
|
'活动有效期',
|
|
|
|
style: TextStyle(
|
|
|
|
color: Color.fromRGBO(0, 0, 0, 0.9),
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize: ScreenUtil().setSp(32)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
// VEmptyView(24),
|
|
|
|
// Container(
|
|
|
|
// height: ScreenUtil().setWidth(2),
|
|
|
|
// color: MyColours.color_E7E7E7,
|
|
|
|
// ),
|
|
|
|
VEmptyView(16),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
left: w(16),
|
|
|
|
),
|
|
|
|
child: Column(children: [
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
setState(() {
|
|
|
|
validForever = !validForever;
|
|
|
|
});
|
|
|
|
},
|
|
|
|
child: Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
top: w(8), bottom: w(8)),
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
Image.asset(
|
|
|
|
Utils.getImgPath(validForever
|
|
|
|
? 'base_radio_sel'
|
|
|
|
: 'base_radio_un'),
|
|
|
|
width: w(20),
|
|
|
|
),
|
|
|
|
HEmptyView(10),
|
|
|
|
Text('永久有效',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(14),
|
|
|
|
color: MyColours
|
|
|
|
.color_515151))
|
|
|
|
],
|
|
|
|
))),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
top: w(3), bottom: w(3)),
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
setState(() {
|
|
|
|
validForever =
|
|
|
|
!validForever;
|
|
|
|
});
|
|
|
|
},
|
|
|
|
child: Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
right: w(10)),
|
|
|
|
child: Image.asset(
|
|
|
|
Utils.getImgPath(
|
|
|
|
!validForever
|
|
|
|
? 'base_radio_sel'
|
|
|
|
: 'base_radio_un'),
|
|
|
|
width: w(20),
|
|
|
|
))),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
FocusScope.of(context)
|
|
|
|
.requestFocus(
|
|
|
|
FocusNode()); //点击空白处隐藏键盘
|
|
|
|
//弹出时间选择器
|
|
|
|
// showPickerDateTime(context);
|
|
|
|
showDateSelWidget = true;
|
|
|
|
DialogUtil
|
|
|
|
.showPickerDateTime24(
|
|
|
|
context,
|
|
|
|
scaffoldKey,
|
|
|
|
(value) {
|
|
|
|
// {'text': picker.adapter.text, 'select': selecteds}
|
|
|
|
if (value != null) {
|
|
|
|
setState(() {
|
|
|
|
print(value);
|
|
|
|
fromDate = DateUtil
|
|
|
|
.formatDateStr(
|
|
|
|
value,
|
|
|
|
format:
|
|
|
|
DateFormats.y_mo_d);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
showDateSelWidget =
|
|
|
|
false;
|
|
|
|
},
|
|
|
|
dateTime: fromDate ==
|
|
|
|
'点击选择开始日期'
|
|
|
|
? null
|
|
|
|
: DateUtil
|
|
|
|
.getDateTime(
|
|
|
|
fromDate),
|
|
|
|
pickerDateTimeType:
|
|
|
|
PickerDateTimeType
|
|
|
|
.kYMD,
|
|
|
|
onCancel: () {
|
|
|
|
showDateSelWidget =
|
|
|
|
false;
|
|
|
|
});
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
height: w(34),
|
|
|
|
padding: EdgeInsets.all(w(5)),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
border: Border.all(
|
|
|
|
width: w(1),
|
|
|
|
color: MyColours
|
|
|
|
.color_515151)),
|
|
|
|
child: Text(fromDate,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(14),
|
|
|
|
color: fromDate ==
|
|
|
|
'点击选择开始日期'
|
|
|
|
? MyColours
|
|
|
|
.color_999999
|
|
|
|
: MyColours
|
|
|
|
.color_515151)),
|
|
|
|
)),
|
|
|
|
HEmptyView(10),
|
|
|
|
Text('至',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(14),
|
|
|
|
color: MyColours
|
|
|
|
.color_999999)),
|
|
|
|
HEmptyView(10),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
FocusScope.of(context)
|
|
|
|
.requestFocus(
|
|
|
|
FocusNode()); //点击空白处隐藏键盘
|
|
|
|
//弹出时间选择器
|
|
|
|
// showPickerDateTime(context);
|
|
|
|
showDateSelWidget = true;
|
|
|
|
DialogUtil
|
|
|
|
.showPickerDateTime24(
|
|
|
|
context,
|
|
|
|
scaffoldKey,
|
|
|
|
(value) {
|
|
|
|
// {'text': picker.adapter.text, 'select': selecteds}
|
|
|
|
if (value != null) {
|
|
|
|
setState(() {
|
|
|
|
print(value);
|
|
|
|
endDate = DateUtil
|
|
|
|
.formatDateStr(
|
|
|
|
value,
|
|
|
|
format:
|
|
|
|
DateFormats.y_mo_d);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
showDateSelWidget =
|
|
|
|
false;
|
|
|
|
},
|
|
|
|
dateTime: endDate ==
|
|
|
|
'点击选择结束日期'
|
|
|
|
? null
|
|
|
|
: DateUtil
|
|
|
|
.getDateTime(
|
|
|
|
endDate),
|
|
|
|
pickerDateTimeType:
|
|
|
|
PickerDateTimeType
|
|
|
|
.kYMD,
|
|
|
|
onCancel: () {
|
|
|
|
showDateSelWidget =
|
|
|
|
false;
|
|
|
|
});
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
height: w(34),
|
|
|
|
padding: EdgeInsets.all(w(5)),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
border: Border.all(
|
|
|
|
width: w(1),
|
|
|
|
color: MyColours
|
|
|
|
.color_515151)),
|
|
|
|
child: Text(endDate,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(14),
|
|
|
|
color: endDate == '点击选择结束日期'
|
|
|
|
? MyColours
|
|
|
|
.color_999999
|
|
|
|
: MyColours
|
|
|
|
.color_515151)),
|
|
|
|
)),
|
|
|
|
],
|
|
|
|
))
|
|
|
|
])),
|
|
|
|
VEmptyView(20),
|
|
|
|
|
|
|
|
Container(
|
|
|
|
height: ScreenUtil().setWidth(2),
|
|
|
|
color: MyColours.color_E7E7E7,
|
|
|
|
),
|
|
|
|
VEmptyView(60),
|
|
|
|
|
|
|
|
Container(
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
child: Text(
|
|
|
|
'用户领取后有效期:',
|
|
|
|
style: TextStyle(
|
|
|
|
color: Color.fromRGBO(0, 0, 0, 0.9),
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize: ScreenUtil().setSp(32)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
// VEmptyView(24),
|
|
|
|
// Container(
|
|
|
|
// height: ScreenUtil().setWidth(2),
|
|
|
|
// color: MyColours.color_E7E7E7,
|
|
|
|
// ),
|
|
|
|
VEmptyView(16),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
left: w(16),
|
|
|
|
),
|
|
|
|
child: Column(children: [
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
validForeverCus = true;
|
|
|
|
fromToEndDateCus = false;
|
|
|
|
todayCus = false;
|
|
|
|
tomorrowCus = false;
|
|
|
|
fromToEndDayCus = false;
|
|
|
|
setState(() {});
|
|
|
|
},
|
|
|
|
child: Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
top: w(8), bottom: w(8)),
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
Image.asset(
|
|
|
|
Utils.getImgPath(
|
|
|
|
validForeverCus
|
|
|
|
? 'base_radio_sel'
|
|
|
|
: 'base_radio_un'),
|
|
|
|
width: w(20),
|
|
|
|
),
|
|
|
|
HEmptyView(10),
|
|
|
|
Text('永久有效',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(14),
|
|
|
|
color: MyColours
|
|
|
|
.color_515151))
|
|
|
|
],
|
|
|
|
))),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
top: w(3), bottom: w(3)),
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
validForeverCus = false;
|
|
|
|
fromToEndDateCus = true;
|
|
|
|
todayCus = false;
|
|
|
|
tomorrowCus = false;
|
|
|
|
fromToEndDayCus = false;
|
|
|
|
setState(() {});
|
|
|
|
},
|
|
|
|
child: Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
right: w(10)),
|
|
|
|
child: Image.asset(
|
|
|
|
Utils.getImgPath(
|
|
|
|
fromToEndDateCus
|
|
|
|
? 'base_radio_sel'
|
|
|
|
: 'base_radio_un'),
|
|
|
|
width: w(20),
|
|
|
|
))),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (fromDate == '点击选择开始日期') {
|
|
|
|
Utils.showToast(
|
|
|
|
'请先选择活动有效期的开始时间!');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
FocusScope.of(context)
|
|
|
|
.requestFocus(
|
|
|
|
FocusNode()); //点击空白处隐藏键盘
|
|
|
|
//弹出时间选择器
|
|
|
|
// showPickerDateTime(context);
|
|
|
|
showDateSelWidget = true;
|
|
|
|
DialogUtil
|
|
|
|
.showPickerDateTime24(
|
|
|
|
context,
|
|
|
|
scaffoldKey,
|
|
|
|
(value) {
|
|
|
|
// {'text': picker.adapter.text, 'select': selecteds}
|
|
|
|
if (value != null) {
|
|
|
|
setState(() {
|
|
|
|
print(value);
|
|
|
|
fromDateCus = DateUtil
|
|
|
|
.formatDateStr(
|
|
|
|
value,
|
|
|
|
format:
|
|
|
|
DateFormats.y_mo_d);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
showDateSelWidget =
|
|
|
|
false;
|
|
|
|
},
|
|
|
|
dateTime: fromDateCus ==
|
|
|
|
'点击选择开始日期'
|
|
|
|
? null
|
|
|
|
: DateUtil
|
|
|
|
.getDateTime(
|
|
|
|
fromDateCus),
|
|
|
|
pickerDateTimeType:
|
|
|
|
PickerDateTimeType
|
|
|
|
.kYMD,
|
|
|
|
onCancel: () {
|
|
|
|
showDateSelWidget =
|
|
|
|
false;
|
|
|
|
});
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
height: w(34),
|
|
|
|
padding: EdgeInsets.all(w(5)),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
border: Border.all(
|
|
|
|
width: w(1),
|
|
|
|
color: MyColours
|
|
|
|
.color_515151)),
|
|
|
|
child: Text(fromDateCus,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(14),
|
|
|
|
color: MyColours
|
|
|
|
.color_999999)),
|
|
|
|
)),
|
|
|
|
HEmptyView(10),
|
|
|
|
Text('至',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(14),
|
|
|
|
color: MyColours
|
|
|
|
.color_999999)),
|
|
|
|
HEmptyView(10),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (endDate == '点击选择结束日期') {
|
|
|
|
Utils.showToast(
|
|
|
|
'请先选择活动有效期的结束时间!');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
FocusScope.of(context)
|
|
|
|
.requestFocus(
|
|
|
|
FocusNode()); //点击空白处隐藏键盘
|
|
|
|
//弹出时间选择器
|
|
|
|
// showPickerDateTime(context);
|
|
|
|
showDateSelWidget = true;
|
|
|
|
DialogUtil
|
|
|
|
.showPickerDateTime24(
|
|
|
|
context,
|
|
|
|
scaffoldKey,
|
|
|
|
(value) {
|
|
|
|
// {'text': picker.adapter.text, 'select': selecteds}
|
|
|
|
if (value != null) {
|
|
|
|
setState(() {
|
|
|
|
print(value);
|
|
|
|
endDateCus = DateUtil
|
|
|
|
.formatDateStr(
|
|
|
|
value,
|
|
|
|
format:
|
|
|
|
DateFormats.y_mo_d);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
showDateSelWidget =
|
|
|
|
false;
|
|
|
|
},
|
|
|
|
dateTime: endDateCus ==
|
|
|
|
'点击选择结束日期'
|
|
|
|
? null
|
|
|
|
: DateUtil
|
|
|
|
.getDateTime(
|
|
|
|
endDateCus),
|
|
|
|
pickerDateTimeType:
|
|
|
|
PickerDateTimeType
|
|
|
|
.kYMD,
|
|
|
|
onCancel: () {
|
|
|
|
showDateSelWidget =
|
|
|
|
false;
|
|
|
|
});
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
height: w(34),
|
|
|
|
padding: EdgeInsets.all(w(5)),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
border: Border.all(
|
|
|
|
width: w(1),
|
|
|
|
color: MyColours
|
|
|
|
.color_515151)),
|
|
|
|
child: Text(endDateCus,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(14),
|
|
|
|
color: MyColours
|
|
|
|
.color_999999)),
|
|
|
|
)),
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
top: w(3), bottom: w(3)),
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
validForeverCus = false;
|
|
|
|
fromToEndDateCus = false;
|
|
|
|
todayCus = true;
|
|
|
|
tomorrowCus = false;
|
|
|
|
fromToEndDayCus = false;
|
|
|
|
setState(() {});
|
|
|
|
},
|
|
|
|
child: Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
right: w(10)),
|
|
|
|
child: Image.asset(
|
|
|
|
Utils.getImgPath(todayCus
|
|
|
|
? 'base_radio_sel'
|
|
|
|
: 'base_radio_un'),
|
|
|
|
width: w(20),
|
|
|
|
))),
|
|
|
|
Text('领券当日起',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(14),
|
|
|
|
color: MyColours
|
|
|
|
.color_515151)),
|
|
|
|
HEmptyView(10),
|
|
|
|
Container(
|
|
|
|
width: w(100),
|
|
|
|
height: w(34),
|
|
|
|
padding: EdgeInsets.all(w(5)),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
border: Border.all(
|
|
|
|
width: w(1),
|
|
|
|
color: MyColours
|
|
|
|
.color_515151)),
|
|
|
|
child: TextField(
|
|
|
|
maxLines: 1,
|
|
|
|
controller: todayC,
|
|
|
|
// focusNode: _focusNode,
|
|
|
|
// autofocus: true,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
style: TextStyle(
|
|
|
|
color:
|
|
|
|
MyColours.color_515151,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(28)),
|
|
|
|
// textAlignVertical: TextAlignVertical.center,
|
|
|
|
inputFormatters: [
|
|
|
|
FilteringTextInputFormatter
|
|
|
|
.digitsOnly
|
|
|
|
],
|
|
|
|
decoration: InputDecoration(
|
|
|
|
hintText: '点击输入多少',
|
|
|
|
hintStyle: TextStyle(
|
|
|
|
color: MyColours
|
|
|
|
.color_66000000,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(28),
|
|
|
|
),
|
|
|
|
isCollapsed:
|
|
|
|
true, //重点,相当于高度包裹的意思,必须设置为true,不然有默认奇妙的最小高度
|
|
|
|
border: OutlineInputBorder(
|
|
|
|
borderSide:
|
|
|
|
BorderSide.none),
|
|
|
|
contentPadding:
|
|
|
|
EdgeInsets.zero,
|
|
|
|
),
|
|
|
|
keyboardType: TextInputType
|
|
|
|
.numberWithOptions(),
|
|
|
|
textInputAction:
|
|
|
|
TextInputAction.done,
|
|
|
|
|
|
|
|
onChanged: (value) {
|
|
|
|
// setState(() {});
|
|
|
|
// _searchSellerLocation();
|
|
|
|
// customerProvider.searchData(value);
|
|
|
|
},
|
|
|
|
onEditingComplete: () {
|
|
|
|
FocusScope.of(context)
|
|
|
|
.requestFocus(
|
|
|
|
FocusNode()); //点击空白处隐藏键盘
|
|
|
|
// contantShowModel.searchData(
|
|
|
|
// contantShowModel.controller.text);
|
|
|
|
// _searchSellerLocation();
|
|
|
|
// _focusNode.unfocus();
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
HEmptyView(10),
|
|
|
|
Text('天内可用',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(14),
|
|
|
|
color: MyColours
|
|
|
|
.color_515151)),
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
top: w(3), bottom: w(3)),
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
validForeverCus = false;
|
|
|
|
fromToEndDateCus = false;
|
|
|
|
todayCus = false;
|
|
|
|
tomorrowCus = true;
|
|
|
|
fromToEndDayCus = false;
|
|
|
|
setState(() {});
|
|
|
|
},
|
|
|
|
child: Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
right: w(10)),
|
|
|
|
child: Image.asset(
|
|
|
|
Utils.getImgPath(
|
|
|
|
tomorrowCus
|
|
|
|
? 'base_radio_sel'
|
|
|
|
: 'base_radio_un'),
|
|
|
|
width: w(20),
|
|
|
|
))),
|
|
|
|
Text('领券次日起',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(14),
|
|
|
|
color: MyColours
|
|
|
|
.color_515151)),
|
|
|
|
HEmptyView(10),
|
|
|
|
Container(
|
|
|
|
width: w(100),
|
|
|
|
height: w(34),
|
|
|
|
padding: EdgeInsets.all(w(5)),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
border: Border.all(
|
|
|
|
width: w(1),
|
|
|
|
color: MyColours
|
|
|
|
.color_515151)),
|
|
|
|
child: TextField(
|
|
|
|
maxLines: 1,
|
|
|
|
controller: tomorrowC,
|
|
|
|
// focusNode: _focusNode,
|
|
|
|
// autofocus: true,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
style: TextStyle(
|
|
|
|
color:
|
|
|
|
MyColours.color_515151,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(28)),
|
|
|
|
// textAlignVertical: TextAlignVertical.center,
|
|
|
|
inputFormatters: [
|
|
|
|
FilteringTextInputFormatter
|
|
|
|
.digitsOnly
|
|
|
|
],
|
|
|
|
decoration: InputDecoration(
|
|
|
|
hintText: '点击输入多少',
|
|
|
|
hintStyle: TextStyle(
|
|
|
|
color: MyColours
|
|
|
|
.color_66000000,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(28),
|
|
|
|
),
|
|
|
|
isCollapsed:
|
|
|
|
true, //重点,相当于高度包裹的意思,必须设置为true,不然有默认奇妙的最小高度
|
|
|
|
border: OutlineInputBorder(
|
|
|
|
borderSide:
|
|
|
|
BorderSide.none),
|
|
|
|
contentPadding:
|
|
|
|
EdgeInsets.zero,
|
|
|
|
),
|
|
|
|
keyboardType: TextInputType
|
|
|
|
.numberWithOptions(),
|
|
|
|
textInputAction:
|
|
|
|
TextInputAction.done,
|
|
|
|
|
|
|
|
onChanged: (value) {
|
|
|
|
// setState(() {});
|
|
|
|
// _searchSellerLocation();
|
|
|
|
// customerProvider.searchData(value);
|
|
|
|
},
|
|
|
|
onEditingComplete: () {
|
|
|
|
FocusScope.of(context)
|
|
|
|
.requestFocus(
|
|
|
|
FocusNode()); //点击空白处隐藏键盘
|
|
|
|
// contantShowModel.searchData(
|
|
|
|
// contantShowModel.controller.text);
|
|
|
|
// _searchSellerLocation();
|
|
|
|
// _focusNode.unfocus();
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
HEmptyView(10),
|
|
|
|
Text('天内可用',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(14),
|
|
|
|
color: MyColours
|
|
|
|
.color_515151)),
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
top: w(3), bottom: w(3)),
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
validForeverCus = false;
|
|
|
|
fromToEndDateCus = false;
|
|
|
|
todayCus = false;
|
|
|
|
tomorrowCus = false;
|
|
|
|
fromToEndDayCus = true;
|
|
|
|
setState(() {});
|
|
|
|
},
|
|
|
|
child: Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
right: w(10)),
|
|
|
|
child: Image.asset(
|
|
|
|
Utils.getImgPath(
|
|
|
|
fromToEndDayCus
|
|
|
|
? 'base_radio_sel'
|
|
|
|
: 'base_radio_un'),
|
|
|
|
width: w(20),
|
|
|
|
))),
|
|
|
|
Text('领券后第',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(14),
|
|
|
|
color: MyColours
|
|
|
|
.color_515151)),
|
|
|
|
HEmptyView(10),
|
|
|
|
Container(
|
|
|
|
width: w(74),
|
|
|
|
height: w(34),
|
|
|
|
padding: EdgeInsets.all(w(5)),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
border: Border.all(
|
|
|
|
width: w(1),
|
|
|
|
color: MyColours
|
|
|
|
.color_515151)),
|
|
|
|
child: TextField(
|
|
|
|
maxLines: 1,
|
|
|
|
controller: fromDayC,
|
|
|
|
// focusNode: _focusNode,
|
|
|
|
// autofocus: true,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
style: TextStyle(
|
|
|
|
color:
|
|
|
|
MyColours.color_515151,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(28)),
|
|
|
|
// textAlignVertical: TextAlignVertical.center,
|
|
|
|
inputFormatters: [
|
|
|
|
FilteringTextInputFormatter
|
|
|
|
.digitsOnly
|
|
|
|
],
|
|
|
|
decoration: InputDecoration(
|
|
|
|
hintText: '点击输入',
|
|
|
|
hintStyle: TextStyle(
|
|
|
|
color: MyColours
|
|
|
|
.color_66000000,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(28),
|
|
|
|
),
|
|
|
|
isCollapsed:
|
|
|
|
true, //重点,相当于高度包裹的意思,必须设置为true,不然有默认奇妙的最小高度
|
|
|
|
border: OutlineInputBorder(
|
|
|
|
borderSide:
|
|
|
|
BorderSide.none),
|
|
|
|
contentPadding:
|
|
|
|
EdgeInsets.zero,
|
|
|
|
),
|
|
|
|
keyboardType: TextInputType
|
|
|
|
.numberWithOptions(),
|
|
|
|
textInputAction:
|
|
|
|
TextInputAction.done,
|
|
|
|
|
|
|
|
onChanged: (value) {
|
|
|
|
// setState(() {});
|
|
|
|
// _searchSellerLocation();
|
|
|
|
// customerProvider.searchData(value);
|
|
|
|
},
|
|
|
|
onEditingComplete: () {
|
|
|
|
FocusScope.of(context)
|
|
|
|
.requestFocus(
|
|
|
|
FocusNode()); //点击空白处隐藏键盘
|
|
|
|
// contantShowModel.searchData(
|
|
|
|
// contantShowModel.controller.text);
|
|
|
|
// _searchSellerLocation();
|
|
|
|
// _focusNode.unfocus();
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
HEmptyView(10),
|
|
|
|
Text('天至',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(14),
|
|
|
|
color: MyColours
|
|
|
|
.color_515151)),
|
|
|
|
HEmptyView(10),
|
|
|
|
Container(
|
|
|
|
width: w(74),
|
|
|
|
height: w(34),
|
|
|
|
padding: EdgeInsets.all(w(5)),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
border: Border.all(
|
|
|
|
width: w(1),
|
|
|
|
color: MyColours
|
|
|
|
.color_515151)),
|
|
|
|
child: TextField(
|
|
|
|
maxLines: 1,
|
|
|
|
controller: endDayC,
|
|
|
|
// focusNode: _focusNode,
|
|
|
|
// autofocus: true,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
style: TextStyle(
|
|
|
|
color:
|
|
|
|
MyColours.color_515151,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(28)),
|
|
|
|
// textAlignVertical: TextAlignVertical.center,
|
|
|
|
inputFormatters: [
|
|
|
|
FilteringTextInputFormatter
|
|
|
|
.digitsOnly
|
|
|
|
],
|
|
|
|
decoration: InputDecoration(
|
|
|
|
hintText: '点击输入',
|
|
|
|
hintStyle: TextStyle(
|
|
|
|
color: MyColours
|
|
|
|
.color_66000000,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(28),
|
|
|
|
),
|
|
|
|
isCollapsed:
|
|
|
|
true, //重点,相当于高度包裹的意思,必须设置为true,不然有默认奇妙的最小高度
|
|
|
|
border: OutlineInputBorder(
|
|
|
|
borderSide:
|
|
|
|
BorderSide.none),
|
|
|
|
contentPadding:
|
|
|
|
EdgeInsets.zero,
|
|
|
|
),
|
|
|
|
keyboardType: TextInputType
|
|
|
|
.numberWithOptions(),
|
|
|
|
textInputAction:
|
|
|
|
TextInputAction.done,
|
|
|
|
|
|
|
|
onChanged: (value) {
|
|
|
|
// setState(() {});
|
|
|
|
// _searchSellerLocation();
|
|
|
|
// customerProvider.searchData(value);
|
|
|
|
},
|
|
|
|
onEditingComplete: () {
|
|
|
|
FocusScope.of(context)
|
|
|
|
.requestFocus(
|
|
|
|
FocusNode()); //点击空白处隐藏键盘
|
|
|
|
// contantShowModel.searchData(
|
|
|
|
// contantShowModel.controller.text);
|
|
|
|
// _searchSellerLocation();
|
|
|
|
// _focusNode.unfocus();
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
HEmptyView(10),
|
|
|
|
Text('天可用',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(14),
|
|
|
|
color: MyColours
|
|
|
|
.color_515151)),
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
])),
|
|
|
|
VEmptyView(20),
|
|
|
|
|
|
|
|
Container(
|
|
|
|
height: ScreenUtil().setWidth(2),
|
|
|
|
color: MyColours.color_E7E7E7,
|
|
|
|
),
|
|
|
|
VEmptyView(60),
|
|
|
|
|
|
|
|
Container(
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
child: Text(
|
|
|
|
'使用规则:',
|
|
|
|
style: TextStyle(
|
|
|
|
color: Color.fromRGBO(0, 0, 0, 0.9),
|
|
...
|
...
|
@@ -1753,40 +2558,106 @@ class _CouponEidtPageState extends State<CouponEidtPage> { |
|
|
|
Utils.showToast('请填写消费要求');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (fromDate == '点击选择') {
|
|
|
|
Utils.showToast('请选择活动开始时间');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (endDate == '点击选择') {
|
|
|
|
Utils.showToast('请选择活动结束时间');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
// 券开始早于活动开始 && 券结束大于活动结束
|
|
|
|
if (widget.from != null && widget.from != 'null') {
|
|
|
|
if (DateUtil.getDateTime(fromDate)
|
|
|
|
.compareTo(DateUtil.getDateTime(widget.from!)) >
|
|
|
|
if (!validForever) {
|
|
|
|
//需要输入活动有效期
|
|
|
|
if (fromDate == '点击选择开始日期') {
|
|
|
|
Utils.showToast('请选择活动有效期的开始时间');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (endDate == '点击选择结束日期') {
|
|
|
|
Utils.showToast('请选择活动有效期的结束时间');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
// 券开始早于活动开始 && 券结束大于活动结束
|
|
|
|
if (widget.from != null && widget.from != 'null') {
|
|
|
|
if (DateUtil.getDateTime(fromDate).compareTo(
|
|
|
|
DateUtil.getDateTime(widget.from!)) >
|
|
|
|
0) {
|
|
|
|
Utils.showToast(
|
|
|
|
'优惠券的开始日期需要选择${widget.from}或以前的时间!');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (DateUtil.getDateTime(widget.end!)
|
|
|
|
.compareTo(DateUtil.getDateTime(endDate)) >
|
|
|
|
0) {
|
|
|
|
Utils.showToast('优惠券的结束日期需要选择${widget.end}或以后的时间!');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (DateUtil.getDateTime(endDate)
|
|
|
|
.compareTo(DateUtil.getDateTime(fromDate)) <
|
|
|
|
0) {
|
|
|
|
Utils.showToast('优惠券的开始日期需要选择${widget.from}或以前的时间!');
|
|
|
|
Utils.showToast('活动有效期的结束时间不能早于活动开始时间');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (DateUtil.getDateTime(widget.end!)
|
|
|
|
.compareTo(DateUtil.getDateTime(endDate)) >
|
|
|
|
}
|
|
|
|
|
|
|
|
if (fromToEndDateCus) {
|
|
|
|
if (fromDateCus == '点击选择开始日期') {
|
|
|
|
Utils.showToast('请选择用户领取后有效期的开始时间');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (endDateCus == '点击选择结束日期') {
|
|
|
|
Utils.showToast('请选择用户领取后有效期的结束时间');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (DateUtil.getDateTime(endDateCus)
|
|
|
|
.compareTo(DateUtil.getDateTime(fromDateCus)) <
|
|
|
|
0) {
|
|
|
|
Utils.showToast('优惠券的结束日期需要选择${widget.end}或以后的时间!');
|
|
|
|
Utils.showToast('用户领取后有效期的结束时间不能早于开始时间');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (!validForever) {
|
|
|
|
if (DateUtil.getDateTime(fromDate).compareTo(
|
|
|
|
DateUtil.getDateTime(fromDateCus)) >
|
|
|
|
0) {
|
|
|
|
Utils.showToast(
|
|
|
|
'用户领取后有效期开始日期需要选择${fromDate}或以后的时间!');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (DateUtil.getDateTime(endDate)
|
|
|
|
.compareTo(DateUtil.getDateTime(endDateCus)) >
|
|
|
|
0) {
|
|
|
|
Utils.showToast(
|
|
|
|
'用户领取后有效期开始日期需要选择${endDate}或以后的时间!');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (DateUtil.getDateTime(endDate)
|
|
|
|
.compareTo(DateUtil.getDateTime(fromDate)) <
|
|
|
|
0) {
|
|
|
|
Utils.showToast('活动结束时间不能早于活动开始时间');
|
|
|
|
return;
|
|
|
|
if (todayCus) {
|
|
|
|
if (todayC.text.trim().length == 0) {
|
|
|
|
Utils.showToast('请输入领券当日起天多少内可用!');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (_limitDay.text.trim().length == 0) {
|
|
|
|
Utils.showToast('请填写领取后有效天数');
|
|
|
|
return;
|
|
|
|
if (tomorrowCus) {
|
|
|
|
if (tomorrowC.text.trim().length == 0) {
|
|
|
|
Utils.showToast('请输入领券次日起天多少内可用!');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (fromToEndDayCus) {
|
|
|
|
if (fromDayC.text.trim().length == 0) {
|
|
|
|
Utils.showToast('请输入领券后第几天至第几天可用的开始天数!');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (endDayC.text.trim().length == 0) {
|
|
|
|
Utils.showToast('请输入领券后第几天至第几天可用的结束天数!');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if(int.parse(endDayC.text.trim()) < int.parse(fromDayC.text.trim())){
|
|
|
|
Utils.showToast('领券后第几天至第几天可用的结束天数须大于开始天数!');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// if (_limitDay.text.trim().length == 0) {
|
|
|
|
// Utils.showToast('请填写领取后有效天数');
|
|
|
|
// return;
|
|
|
|
// }
|
|
|
|
|
|
|
|
// if (isCommission &&
|
|
|
|
// (_commissionControl.text.trim().length == 0 ||
|
...
|
...
|
|