|
@@ -139,6 +139,11 @@ class _CustomerListPageState extends State<CustomerListPage> |
|
@@ -139,6 +139,11 @@ class _CustomerListPageState extends State<CustomerListPage> |
|
139
|
StoreCustomerHomeSunModel model =
|
139
|
StoreCustomerHomeSunModel model =
|
|
140
|
await customerProvider.getSellerGuestManage(context);
|
140
|
await customerProvider.getSellerGuestManage(context);
|
|
141
|
customerProvider.filterManageList = [];
|
141
|
customerProvider.filterManageList = [];
|
|
|
|
142
|
+ FilterBtnModel model1 = FilterBtnModel();
|
|
|
|
143
|
+ // model.id = item.id;
|
|
|
|
144
|
+ model1.title = '未分配经理';
|
|
|
|
145
|
+ model1.select = false;
|
|
|
|
146
|
+ customerProvider.filterManageList.add(model1);
|
|
142
|
if (model != null &&
|
147
|
if (model != null &&
|
|
143
|
model.sellerUser != null &&
|
148
|
model.sellerUser != null &&
|
|
144
|
model.sellerUser.length > 0) {
|
149
|
model.sellerUser.length > 0) {
|
|
@@ -169,6 +174,11 @@ class _CustomerListPageState extends State<CustomerListPage> |
|
@@ -169,6 +174,11 @@ class _CustomerListPageState extends State<CustomerListPage> |
|
169
|
if (customerProvider.labelList != null &&
|
174
|
if (customerProvider.labelList != null &&
|
|
170
|
customerProvider.labelList.length > 0) {
|
175
|
customerProvider.labelList.length > 0) {
|
|
171
|
customerProvider.filterLabelList = [];
|
176
|
customerProvider.filterLabelList = [];
|
|
|
|
177
|
+ FilterBtnModel model = FilterBtnModel();
|
|
|
|
178
|
+ model.title = '未标记客户';
|
|
|
|
179
|
+ // model.id = item.id;
|
|
|
|
180
|
+ model.select = false;
|
|
|
|
181
|
+ customerProvider.filterLabelList.add(model);
|
|
172
|
for (CustomerLabelSunModel item in customerProvider.labelList) {
|
182
|
for (CustomerLabelSunModel item in customerProvider.labelList) {
|
|
173
|
FilterBtnModel model = FilterBtnModel();
|
183
|
FilterBtnModel model = FilterBtnModel();
|
|
174
|
model.title = item.label;
|
184
|
model.title = item.label;
|
|
@@ -232,11 +242,17 @@ class _CustomerListPageState extends State<CustomerListPage> |
|
@@ -232,11 +242,17 @@ class _CustomerListPageState extends State<CustomerListPage> |
|
232
|
params['uid'] = widget.uidStr;
|
242
|
params['uid'] = widget.uidStr;
|
|
233
|
} else {
|
243
|
} else {
|
|
234
|
String uid = '';
|
244
|
String uid = '';
|
|
235
|
- for (FilterBtnModel item in customerProvider.filterManageList) {
|
245
|
+ List<FilterBtnModel> tempfilterManage =
|
|
|
|
246
|
+ List.from(customerProvider.filterManageList);
|
|
|
|
247
|
+ if (tempfilterManage.length > 0) {
|
|
|
|
248
|
+ tempfilterManage.removeAt(0);
|
|
|
|
249
|
+ }
|
|
|
|
250
|
+ for (FilterBtnModel item in tempfilterManage) {
|
|
236
|
if (item.select) {
|
251
|
if (item.select) {
|
|
237
|
uid += '${item.id},';
|
252
|
uid += '${item.id},';
|
|
238
|
}
|
253
|
}
|
|
239
|
}
|
254
|
}
|
|
|
|
255
|
+
|
|
240
|
if (uid.length > 0) {
|
256
|
if (uid.length > 0) {
|
|
241
|
if (uid.endsWith(',')) {
|
257
|
if (uid.endsWith(',')) {
|
|
242
|
uid = uid.substring(0, uid.length - 1);
|
258
|
uid = uid.substring(0, uid.length - 1);
|
|
@@ -293,9 +309,16 @@ class _CustomerListPageState extends State<CustomerListPage> |
|
@@ -293,9 +309,16 @@ class _CustomerListPageState extends State<CustomerListPage> |
|
293
|
params['etime'] = customerProvider.controlleretime.text;
|
309
|
params['etime'] = customerProvider.controlleretime.text;
|
|
294
|
}
|
310
|
}
|
|
295
|
}
|
311
|
}
|
|
296
|
-
|
|
|
|
297
|
- if (distribution) {
|
|
|
|
298
|
- params['distribution'] = '1';
|
312
|
+ print(customerProvider.filterManageList);
|
|
|
|
313
|
+ if (first) {
|
|
|
|
314
|
+ if (distribution) {
|
|
|
|
315
|
+ params['distribution'] = '1';
|
|
|
|
316
|
+ }
|
|
|
|
317
|
+ } else {
|
|
|
|
318
|
+ if (customerProvider.filterManageList.length > 0 &&
|
|
|
|
319
|
+ customerProvider.filterManageList[0].select) {
|
|
|
|
320
|
+ params['distribution'] = '1';
|
|
|
|
321
|
+ }
|
|
299
|
}
|
322
|
}
|
|
300
|
|
323
|
|
|
301
|
await customerProvider.getCustomerBySeller(context, params);
|
324
|
await customerProvider.getCustomerBySeller(context, params);
|