|
@@ -316,23 +316,27 @@ class _OrderTakingPageState extends State < OrderTakingPage > with AutomaticKeep
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
void switchLine(BuildContext context) { //切换线路
|
|
void switchLine(BuildContext context) { //切换线路
|
|
|
|
|
+ print(checkStatusList.toString());
|
|
|
lineIdStr = '';
|
|
lineIdStr = '';
|
|
|
for (int i = 0; i < checkStatusList.length; i++) {
|
|
for (int i = 0; i < checkStatusList.length; i++) {
|
|
|
if (checkStatusList[i]) {
|
|
if (checkStatusList[i]) {
|
|
|
lineIdStr += lineList[i].id.toString() + ',';
|
|
lineIdStr += lineList[i].id.toString() + ',';
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ print(lineIdStr);
|
|
|
if (lineIdStr == '') {
|
|
if (lineIdStr == '') {
|
|
|
setState(() {
|
|
setState(() {
|
|
|
orderList = [];
|
|
orderList = [];
|
|
|
hasNextPage = false;
|
|
hasNextPage = false;
|
|
|
});
|
|
});
|
|
|
|
|
+ oldLineIdStr = lineIdStr;
|
|
|
setKey('lineIdStr', lineIdStr);
|
|
setKey('lineIdStr', lineIdStr);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
lineIdStr = lineIdStr.substring(0, lineIdStr.length - 1);
|
|
lineIdStr = lineIdStr.substring(0, lineIdStr.length - 1);
|
|
|
|
|
|
|
|
if (oldLineIdStr == lineIdStr) return;
|
|
if (oldLineIdStr == lineIdStr) return;
|
|
|
|
|
+ print('11111');
|
|
|
setState(() {
|
|
setState(() {
|
|
|
orderList = [];
|
|
orderList = [];
|
|
|
hasNextPage = true;
|
|
hasNextPage = true;
|