|
@@ -38,6 +38,10 @@ class _CustomerSettingPageState extends State<CustomerSettingPage> { |
|
@@ -38,6 +38,10 @@ class _CustomerSettingPageState extends State<CustomerSettingPage> { |
|
38
|
late MarketingCenterProvider marketingCenterProvider;
|
38
|
late MarketingCenterProvider marketingCenterProvider;
|
|
39
|
TextEditingController controllerDay = TextEditingController();
|
39
|
TextEditingController controllerDay = TextEditingController();
|
|
40
|
|
40
|
|
|
|
|
41
|
+ TextEditingController controllerDeadline = TextEditingController();
|
|
|
|
42
|
+ TextEditingController controllerConsumptionTimes = TextEditingController();
|
|
|
|
43
|
+ TextEditingController controllerHighValue = TextEditingController();
|
|
|
|
44
|
+
|
|
41
|
@override
|
45
|
@override
|
|
42
|
void initState() {
|
46
|
void initState() {
|
|
43
|
WidgetsBinding.instance.addPostFrameCallback((_) async {
|
47
|
WidgetsBinding.instance.addPostFrameCallback((_) async {
|
|
@@ -101,7 +105,12 @@ class _CustomerSettingPageState extends State<CustomerSettingPage> { |
|
@@ -101,7 +105,12 @@ class _CustomerSettingPageState extends State<CustomerSettingPage> { |
|
101
|
Map<String, String?> params = {
|
105
|
Map<String, String?> params = {
|
|
102
|
"sellerid": Provider.of<UserModel>(context, listen: false).user!.sellerid,
|
106
|
"sellerid": Provider.of<UserModel>(context, listen: false).user!.sellerid,
|
|
103
|
'is_additional': customerProvider.isrepair ? "1" : "0",
|
107
|
'is_additional': customerProvider.isrepair ? "1" : "0",
|
|
104
|
- 'is_enter_self': customerProvider.isselfphone ? '1' : '0'
|
108
|
+ 'is_enter_self': customerProvider.isselfphone ? '1' : '0',
|
|
|
|
109
|
+ 'is_high_frequency': customerProvider.isHighFrequency ? '1' : '0',
|
|
|
|
110
|
+ 'high_frequency_day': controllerDeadline.text,
|
|
|
|
111
|
+ 'high_frequency_reserve': controllerConsumptionTimes.text,
|
|
|
|
112
|
+ 'is_high_consumption': customerProvider.isHighConsumption ? '1' : '0',
|
|
|
|
113
|
+ 'is_high_money': controllerHighValue.text
|
|
105
|
};
|
114
|
};
|
|
106
|
bool success = await customerProvider.setSellerGuest(context, params,
|
115
|
bool success = await customerProvider.setSellerGuest(context, params,
|
|
107
|
showLoading: true);
|
116
|
showLoading: true);
|
|
@@ -153,6 +162,14 @@ class _CustomerSettingPageState extends State<CustomerSettingPage> { |
|
@@ -153,6 +162,14 @@ class _CustomerSettingPageState extends State<CustomerSettingPage> { |
|
153
|
///获取客情配置
|
162
|
///获取客情配置
|
|
154
|
_sellerGuestGet() async {
|
163
|
_sellerGuestGet() async {
|
|
155
|
bool success = await customerProvider.getSellerGuest(context);
|
164
|
bool success = await customerProvider.getSellerGuest(context);
|
|
|
|
165
|
+ if (success) {
|
|
|
|
166
|
+ controllerDeadline.text =
|
|
|
|
167
|
+ customerProvider.sellerGuestData?.highFrequencyDay ?? '';
|
|
|
|
168
|
+ controllerConsumptionTimes.text =
|
|
|
|
169
|
+ customerProvider.sellerGuestData?.highFrequencyReserve ?? '';
|
|
|
|
170
|
+ controllerHighValue.text =
|
|
|
|
171
|
+ customerProvider.sellerGuestData?.isHighMoney ?? '';
|
|
|
|
172
|
+ }
|
|
156
|
|
173
|
|
|
157
|
// if (success) {
|
174
|
// if (success) {
|
|
158
|
// customerProvider.isrepair = true;
|
175
|
// customerProvider.isrepair = true;
|
|
@@ -829,6 +846,311 @@ class _CustomerSettingPageState extends State<CustomerSettingPage> { |
|
@@ -829,6 +846,311 @@ class _CustomerSettingPageState extends State<CustomerSettingPage> { |
|
829
|
color: MyColours.color_E7E7E7,
|
846
|
color: MyColours.color_E7E7E7,
|
|
830
|
)),
|
847
|
)),
|
|
831
|
VEmptyView(48),
|
848
|
VEmptyView(48),
|
|
|
|
849
|
+ Container(
|
|
|
|
850
|
+ padding: EdgeInsets.symmetric(vertical: w(8)),
|
|
|
|
851
|
+ child: Text('优质客户标记',
|
|
|
|
852
|
+ style: TextStyle(
|
|
|
|
853
|
+ color: MyColours.color_515151,
|
|
|
|
854
|
+ fontSize: ScreenUtil().setSp(32)))),
|
|
|
|
855
|
+ VEmptyView(22),
|
|
|
|
856
|
+ MyDivider(
|
|
|
|
857
|
+ double.infinity,
|
|
|
|
858
|
+ w(1),
|
|
|
|
859
|
+ color: MyColours.color_E7E7E7,
|
|
|
|
860
|
+ ),
|
|
|
|
861
|
+ VEmptyView(24),
|
|
|
|
862
|
+ InkWell(
|
|
|
|
863
|
+ onTap: () {
|
|
|
|
864
|
+ setState(() {
|
|
|
|
865
|
+ customerProvider.isHighFrequency =
|
|
|
|
866
|
+ !customerProvider.isHighFrequency;
|
|
|
|
867
|
+ });
|
|
|
|
868
|
+ },
|
|
|
|
869
|
+ child: Container(
|
|
|
|
870
|
+ padding: EdgeInsets.symmetric(
|
|
|
|
871
|
+ vertical: w(8), horizontal: w(14)),
|
|
|
|
872
|
+ child: Row(
|
|
|
|
873
|
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
874
|
+ crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
875
|
+ children: [
|
|
|
|
876
|
+ Text('高频客户标记',
|
|
|
|
877
|
+ style: TextStyle(
|
|
|
|
878
|
+ color: MyColours.color_515151,
|
|
|
|
879
|
+ fontSize: ScreenUtil().setSp(28))),
|
|
|
|
880
|
+ Image.asset(
|
|
|
|
881
|
+ customerProvider.isHighFrequency
|
|
|
|
882
|
+ ? Utils.getImgPath('swich_on')
|
|
|
|
883
|
+ : Utils.getImgPath('swich_off'),
|
|
|
|
884
|
+ width: ScreenUtil().setWidth(88),
|
|
|
|
885
|
+ // height: ScreenUtil().setWidth(82),
|
|
|
|
886
|
+ ),
|
|
|
|
887
|
+ ],
|
|
|
|
888
|
+ ),
|
|
|
|
889
|
+ )),
|
|
|
|
890
|
+ Padding(
|
|
|
|
891
|
+ padding: EdgeInsets.only(left: w(14), right: w(10)),
|
|
|
|
892
|
+ child: MyDivider(
|
|
|
|
893
|
+ double.infinity,
|
|
|
|
894
|
+ w(1),
|
|
|
|
895
|
+ color: MyColours.color_E7E7E7,
|
|
|
|
896
|
+ )),
|
|
|
|
897
|
+ VEmptyView(24),
|
|
|
|
898
|
+ Container(
|
|
|
|
899
|
+ padding:
|
|
|
|
900
|
+ EdgeInsets.symmetric(vertical: w(8), horizontal: w(14)),
|
|
|
|
901
|
+ child: Row(
|
|
|
|
902
|
+ children: [
|
|
|
|
903
|
+ Expanded(
|
|
|
|
904
|
+ child: Container(
|
|
|
|
905
|
+ padding: EdgeInsets.symmetric(vertical: w(8)),
|
|
|
|
906
|
+ child: Text('指定期限',
|
|
|
|
907
|
+ overflow: TextOverflow.ellipsis,
|
|
|
|
908
|
+ maxLines: 10,
|
|
|
|
909
|
+ style: TextStyle(
|
|
|
|
910
|
+ color: MyColours.color_515151,
|
|
|
|
911
|
+ fontSize: ScreenUtil().setSp(28))))),
|
|
|
|
912
|
+ HEmptyView(2),
|
|
|
|
913
|
+ Container(
|
|
|
|
914
|
+ width: w(40),
|
|
|
|
915
|
+ child: TextField(
|
|
|
|
916
|
+ controller: controllerDeadline,
|
|
|
|
917
|
+ textAlign: TextAlign.right,
|
|
|
|
918
|
+ textAlignVertical: TextAlignVertical.bottom,
|
|
|
|
919
|
+ maxLines: 1,
|
|
|
|
920
|
+ // //光标颜色
|
|
|
|
921
|
+ // cursorColor:
|
|
|
|
922
|
+ // widget.isSelect ? Colors.white : MyColours.color_199095,
|
|
|
|
923
|
+ //输入文本的样式
|
|
|
|
924
|
+ style: TextStyle(
|
|
|
|
925
|
+ color: MyColours.color_515151,
|
|
|
|
926
|
+ fontSize: ScreenUtil().setSp(28),
|
|
|
|
927
|
+ ),
|
|
|
|
928
|
+ inputFormatters: <TextInputFormatter>[
|
|
|
|
929
|
+ FilteringTextInputFormatter.allow(
|
|
|
|
930
|
+ RegExp(r'[0-9]')), //设置只允许输入数字
|
|
|
|
931
|
+ ],
|
|
|
|
932
|
+ decoration: InputDecoration(
|
|
|
|
933
|
+ isCollapsed: true,
|
|
|
|
934
|
+ border: OutlineInputBorder(
|
|
|
|
935
|
+ borderSide: BorderSide.none),
|
|
|
|
936
|
+ hintText: '输入',
|
|
|
|
937
|
+ hintStyle: TextStyle(
|
|
|
|
938
|
+ color: MyColours.color_999999,
|
|
|
|
939
|
+ fontSize: ScreenUtil().setSp(28),
|
|
|
|
940
|
+ ),
|
|
|
|
941
|
+ enabledBorder: new UnderlineInputBorder(
|
|
|
|
942
|
+ borderSide: BorderSide.none,
|
|
|
|
943
|
+ ),
|
|
|
|
944
|
+ focusedBorder: new UnderlineInputBorder(
|
|
|
|
945
|
+ borderSide: BorderSide.none,
|
|
|
|
946
|
+ ),
|
|
|
|
947
|
+ ),
|
|
|
|
948
|
+ onChanged: (value) {},
|
|
|
|
949
|
+ onEditingComplete: () {
|
|
|
|
950
|
+ FocusScope.of(context)
|
|
|
|
951
|
+ .requestFocus(FocusNode()); //点击空白处隐藏键盘
|
|
|
|
952
|
+ },
|
|
|
|
953
|
+ keyboardType: TextInputType.number),
|
|
|
|
954
|
+ ),
|
|
|
|
955
|
+ HEmptyView(5),
|
|
|
|
956
|
+ Text('天',
|
|
|
|
957
|
+ style: TextStyle(
|
|
|
|
958
|
+ color: MyColours.color_999999,
|
|
|
|
959
|
+ fontSize: ScreenUtil().setSp(28))),
|
|
|
|
960
|
+ // HEmptyView(24),
|
|
|
|
961
|
+ ],
|
|
|
|
962
|
+ )),
|
|
|
|
963
|
+ Padding(
|
|
|
|
964
|
+ padding: EdgeInsets.only(left: w(14), right: w(10)),
|
|
|
|
965
|
+ child: MyDivider(
|
|
|
|
966
|
+ double.infinity,
|
|
|
|
967
|
+ w(1),
|
|
|
|
968
|
+ color: MyColours.color_E7E7E7,
|
|
|
|
969
|
+ )),
|
|
|
|
970
|
+ VEmptyView(24),
|
|
|
|
971
|
+ Container(
|
|
|
|
972
|
+ padding:
|
|
|
|
973
|
+ EdgeInsets.symmetric(vertical: w(8), horizontal: w(14)),
|
|
|
|
974
|
+ child: Row(
|
|
|
|
975
|
+ children: [
|
|
|
|
976
|
+ Expanded(
|
|
|
|
977
|
+ child: Container(
|
|
|
|
978
|
+ padding: EdgeInsets.symmetric(vertical: w(8)),
|
|
|
|
979
|
+ child: Text('消费次数',
|
|
|
|
980
|
+ overflow: TextOverflow.ellipsis,
|
|
|
|
981
|
+ maxLines: 10,
|
|
|
|
982
|
+ style: TextStyle(
|
|
|
|
983
|
+ color: MyColours.color_515151,
|
|
|
|
984
|
+ fontSize: ScreenUtil().setSp(28))))),
|
|
|
|
985
|
+ HEmptyView(2),
|
|
|
|
986
|
+ Container(
|
|
|
|
987
|
+ width: w(40),
|
|
|
|
988
|
+ child: TextField(
|
|
|
|
989
|
+ controller: controllerConsumptionTimes,
|
|
|
|
990
|
+ textAlign: TextAlign.right,
|
|
|
|
991
|
+ textAlignVertical: TextAlignVertical.bottom,
|
|
|
|
992
|
+ maxLines: 1,
|
|
|
|
993
|
+ // //光标颜色
|
|
|
|
994
|
+ // cursorColor:
|
|
|
|
995
|
+ // widget.isSelect ? Colors.white : MyColours.color_199095,
|
|
|
|
996
|
+ //输入文本的样式
|
|
|
|
997
|
+ style: TextStyle(
|
|
|
|
998
|
+ color: MyColours.color_515151,
|
|
|
|
999
|
+ fontSize: ScreenUtil().setSp(28),
|
|
|
|
1000
|
+ ),
|
|
|
|
1001
|
+ inputFormatters: <TextInputFormatter>[
|
|
|
|
1002
|
+ FilteringTextInputFormatter.allow(
|
|
|
|
1003
|
+ RegExp(r'[0-9]')), //设置只允许输入数字
|
|
|
|
1004
|
+ ],
|
|
|
|
1005
|
+ decoration: InputDecoration(
|
|
|
|
1006
|
+ isCollapsed: true,
|
|
|
|
1007
|
+ border: OutlineInputBorder(
|
|
|
|
1008
|
+ borderSide: BorderSide.none),
|
|
|
|
1009
|
+ hintText: '输入',
|
|
|
|
1010
|
+ hintStyle: TextStyle(
|
|
|
|
1011
|
+ color: MyColours.color_999999,
|
|
|
|
1012
|
+ fontSize: ScreenUtil().setSp(28),
|
|
|
|
1013
|
+ ),
|
|
|
|
1014
|
+ enabledBorder: new UnderlineInputBorder(
|
|
|
|
1015
|
+ borderSide: BorderSide.none,
|
|
|
|
1016
|
+ ),
|
|
|
|
1017
|
+ focusedBorder: new UnderlineInputBorder(
|
|
|
|
1018
|
+ borderSide: BorderSide.none,
|
|
|
|
1019
|
+ ),
|
|
|
|
1020
|
+ ),
|
|
|
|
1021
|
+ onChanged: (value) {},
|
|
|
|
1022
|
+ onEditingComplete: () {
|
|
|
|
1023
|
+ FocusScope.of(context)
|
|
|
|
1024
|
+ .requestFocus(FocusNode()); //点击空白处隐藏键盘
|
|
|
|
1025
|
+ },
|
|
|
|
1026
|
+ keyboardType: TextInputType.number),
|
|
|
|
1027
|
+ ),
|
|
|
|
1028
|
+ HEmptyView(5),
|
|
|
|
1029
|
+ Text('次',
|
|
|
|
1030
|
+ style: TextStyle(
|
|
|
|
1031
|
+ color: MyColours.color_999999,
|
|
|
|
1032
|
+ fontSize: ScreenUtil().setSp(28))),
|
|
|
|
1033
|
+ // HEmptyView(24),
|
|
|
|
1034
|
+ ],
|
|
|
|
1035
|
+ )),
|
|
|
|
1036
|
+ Padding(
|
|
|
|
1037
|
+ padding: EdgeInsets.only(left: w(14), right: w(10)),
|
|
|
|
1038
|
+ child: MyDivider(
|
|
|
|
1039
|
+ double.infinity,
|
|
|
|
1040
|
+ w(1),
|
|
|
|
1041
|
+ color: MyColours.color_E7E7E7,
|
|
|
|
1042
|
+ )),
|
|
|
|
1043
|
+ VEmptyView(24),
|
|
|
|
1044
|
+ InkWell(
|
|
|
|
1045
|
+ onTap: () {
|
|
|
|
1046
|
+ setState(() {
|
|
|
|
1047
|
+ customerProvider.isHighConsumption =
|
|
|
|
1048
|
+ !customerProvider.isHighConsumption;
|
|
|
|
1049
|
+ });
|
|
|
|
1050
|
+ },
|
|
|
|
1051
|
+ child: Container(
|
|
|
|
1052
|
+ padding: EdgeInsets.symmetric(
|
|
|
|
1053
|
+ vertical: w(8), horizontal: w(14)),
|
|
|
|
1054
|
+ child: Row(
|
|
|
|
1055
|
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
1056
|
+ crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
1057
|
+ children: [
|
|
|
|
1058
|
+ Text('高消费客户标记',
|
|
|
|
1059
|
+ style: TextStyle(
|
|
|
|
1060
|
+ color: MyColours.color_515151,
|
|
|
|
1061
|
+ fontSize: ScreenUtil().setSp(28))),
|
|
|
|
1062
|
+ Image.asset(
|
|
|
|
1063
|
+ customerProvider.isHighConsumption
|
|
|
|
1064
|
+ ? Utils.getImgPath('swich_on')
|
|
|
|
1065
|
+ : Utils.getImgPath('swich_off'),
|
|
|
|
1066
|
+ width: ScreenUtil().setWidth(88),
|
|
|
|
1067
|
+ // height: ScreenUtil().setWidth(82),
|
|
|
|
1068
|
+ ),
|
|
|
|
1069
|
+ ],
|
|
|
|
1070
|
+ ),
|
|
|
|
1071
|
+ )),
|
|
|
|
1072
|
+ Padding(
|
|
|
|
1073
|
+ padding: EdgeInsets.only(left: w(14), right: w(10)),
|
|
|
|
1074
|
+ child: MyDivider(
|
|
|
|
1075
|
+ double.infinity,
|
|
|
|
1076
|
+ w(1),
|
|
|
|
1077
|
+ color: MyColours.color_E7E7E7,
|
|
|
|
1078
|
+ )),
|
|
|
|
1079
|
+ VEmptyView(24),
|
|
|
|
1080
|
+ Container(
|
|
|
|
1081
|
+ padding:
|
|
|
|
1082
|
+ EdgeInsets.symmetric(vertical: w(8), horizontal: w(14)),
|
|
|
|
1083
|
+ child: Row(
|
|
|
|
1084
|
+ children: [
|
|
|
|
1085
|
+ Expanded(
|
|
|
|
1086
|
+ child: Container(
|
|
|
|
1087
|
+ padding: EdgeInsets.symmetric(vertical: w(8)),
|
|
|
|
1088
|
+ child: Text('客户人均消费到达设置金额标记为高单值',
|
|
|
|
1089
|
+ overflow: TextOverflow.ellipsis,
|
|
|
|
1090
|
+ maxLines: 10,
|
|
|
|
1091
|
+ style: TextStyle(
|
|
|
|
1092
|
+ color: MyColours.color_515151,
|
|
|
|
1093
|
+ fontSize: ScreenUtil().setSp(28))))),
|
|
|
|
1094
|
+ HEmptyView(2),
|
|
|
|
1095
|
+ Container(
|
|
|
|
1096
|
+ width: w(40),
|
|
|
|
1097
|
+ child: TextField(
|
|
|
|
1098
|
+ controller: controllerHighValue,
|
|
|
|
1099
|
+ textAlign: TextAlign.right,
|
|
|
|
1100
|
+ textAlignVertical: TextAlignVertical.bottom,
|
|
|
|
1101
|
+ maxLines: 1,
|
|
|
|
1102
|
+ // //光标颜色
|
|
|
|
1103
|
+ // cursorColor:
|
|
|
|
1104
|
+ // widget.isSelect ? Colors.white : MyColours.color_199095,
|
|
|
|
1105
|
+ //输入文本的样式
|
|
|
|
1106
|
+ style: TextStyle(
|
|
|
|
1107
|
+ color: MyColours.color_515151,
|
|
|
|
1108
|
+ fontSize: ScreenUtil().setSp(28),
|
|
|
|
1109
|
+ ),
|
|
|
|
1110
|
+ inputFormatters: <TextInputFormatter>[
|
|
|
|
1111
|
+ FilteringTextInputFormatter.allow(
|
|
|
|
1112
|
+ RegExp("[0-9.]")),
|
|
|
|
1113
|
+ ],
|
|
|
|
1114
|
+ decoration: InputDecoration(
|
|
|
|
1115
|
+ isCollapsed: true,
|
|
|
|
1116
|
+ border: OutlineInputBorder(
|
|
|
|
1117
|
+ borderSide: BorderSide.none),
|
|
|
|
1118
|
+ hintText: '输入',
|
|
|
|
1119
|
+ hintStyle: TextStyle(
|
|
|
|
1120
|
+ color: MyColours.color_999999,
|
|
|
|
1121
|
+ fontSize: ScreenUtil().setSp(28),
|
|
|
|
1122
|
+ ),
|
|
|
|
1123
|
+ enabledBorder: new UnderlineInputBorder(
|
|
|
|
1124
|
+ borderSide: BorderSide.none,
|
|
|
|
1125
|
+ ),
|
|
|
|
1126
|
+ focusedBorder: new UnderlineInputBorder(
|
|
|
|
1127
|
+ borderSide: BorderSide.none,
|
|
|
|
1128
|
+ ),
|
|
|
|
1129
|
+ ),
|
|
|
|
1130
|
+ onChanged: (value) {},
|
|
|
|
1131
|
+ onEditingComplete: () {
|
|
|
|
1132
|
+ FocusScope.of(context)
|
|
|
|
1133
|
+ .requestFocus(FocusNode()); //点击空白处隐藏键盘
|
|
|
|
1134
|
+ },
|
|
|
|
1135
|
+ keyboardType: TextInputType.number),
|
|
|
|
1136
|
+ ),
|
|
|
|
1137
|
+ HEmptyView(5),
|
|
|
|
1138
|
+ Text('元',
|
|
|
|
1139
|
+ style: TextStyle(
|
|
|
|
1140
|
+ color: MyColours.color_999999,
|
|
|
|
1141
|
+ fontSize: ScreenUtil().setSp(28))),
|
|
|
|
1142
|
+ // HEmptyView(24),
|
|
|
|
1143
|
+ ],
|
|
|
|
1144
|
+ )),
|
|
|
|
1145
|
+ Padding(
|
|
|
|
1146
|
+ padding: EdgeInsets.only(left: w(14), right: w(10)),
|
|
|
|
1147
|
+ child: MyDivider(
|
|
|
|
1148
|
+ double.infinity,
|
|
|
|
1149
|
+ w(1),
|
|
|
|
1150
|
+ color: MyColours.color_E7E7E7,
|
|
|
|
1151
|
+ )),
|
|
|
|
1152
|
+ VEmptyView(24),
|
|
|
|
1153
|
+ VEmptyView(48),
|
|
832
|
Text('店内自定义标签',
|
1154
|
Text('店内自定义标签',
|
|
833
|
style: TextStyle(
|
1155
|
style: TextStyle(
|
|
834
|
color: MyColours.color_515151,
|
1156
|
color: MyColours.color_515151,
|
|
@@ -872,6 +1194,24 @@ class _CustomerSettingPageState extends State<CustomerSettingPage> { |
|
@@ -872,6 +1194,24 @@ class _CustomerSettingPageState extends State<CustomerSettingPage> { |
|
872
|
textColor: MyColours.color_ffffff,
|
1194
|
textColor: MyColours.color_ffffff,
|
|
873
|
onPressed: () {
|
1195
|
onPressed: () {
|
|
874
|
FocusScope.of(context).requestFocus(FocusNode()); //点击空白处隐藏键盘
|
1196
|
FocusScope.of(context).requestFocus(FocusNode()); //点击空白处隐藏键盘
|
|
|
|
1197
|
+
|
|
|
|
1198
|
+ //前置条件判断
|
|
|
|
1199
|
+ if (customerProvider.isHighFrequency) {
|
|
|
|
1200
|
+ if (controllerDeadline.text.trim().length == 0) {
|
|
|
|
1201
|
+ Utils.showToast('请输入指定期限');
|
|
|
|
1202
|
+ return;
|
|
|
|
1203
|
+ }
|
|
|
|
1204
|
+ if (controllerConsumptionTimes.text.trim().length == 0) {
|
|
|
|
1205
|
+ Utils.showToast('请输入消费次数');
|
|
|
|
1206
|
+ return;
|
|
|
|
1207
|
+ }
|
|
|
|
1208
|
+ }
|
|
|
|
1209
|
+ if (customerProvider.isHighConsumption) {
|
|
|
|
1210
|
+ if (controllerHighValue.text.trim().length == 0) {
|
|
|
|
1211
|
+ Utils.showToast('请设置客户人均消费到达金额');
|
|
|
|
1212
|
+ return;
|
|
|
|
1213
|
+ }
|
|
|
|
1214
|
+ }
|
|
875
|
_saveData();
|
1215
|
_saveData();
|
|
876
|
},
|
1216
|
},
|
|
877
|
),
|
1217
|
),
|