Showing
1 changed file
with
23 additions
and
0 deletions
| ... | @@ -847,6 +847,7 @@ export default { | ... | @@ -847,6 +847,7 @@ export default { |
| 847 | console.log(err) | 847 | console.log(err) |
| 848 | }) | 848 | }) |
| 849 | } else { | 849 | } else { |
| 850 | + // 航班配舱设置普通规则 | ||
| 850 | this.routeList.forEach((route, sub) => { | 851 | this.routeList.forEach((route, sub) => { |
| 851 | if (!infoRouteList.includes(route.route)) { | 852 | if (!infoRouteList.includes(route.route)) { |
| 852 | this.infoForm.list.push({ | 853 | this.infoForm.list.push({ |
| ... | @@ -855,6 +856,28 @@ export default { | ... | @@ -855,6 +856,28 @@ export default { |
| 855 | flightRoute: route.route, | 856 | flightRoute: route.route, |
| 856 | routePriority: route.routePriority, | 857 | routePriority: route.routePriority, |
| 857 | }) | 858 | }) |
| 859 | + }else{ | ||
| 860 | + let routeStatus = 1 | ||
| 861 | + res.data.list.forEach(item => { | ||
| 862 | + if (item.flightRoute == route.route) { | ||
| 863 | + item.id = undefined | ||
| 864 | + item.status = undefined | ||
| 865 | + routeStatus = 2 | ||
| 866 | + this.infoForm.list.push( | ||
| 867 | + this.dataHandle(item) | ||
| 868 | + ) | ||
| 869 | + } | ||
| 870 | + }) | ||
| 871 | + if (routeStatus == 1) { | ||
| 872 | + // 否则插入占位基础数据 | ||
| 873 | + this.infoForm.list.push({ | ||
| 874 | + purposeOfFlightNo: this.infoForm.fltNo, | ||
| 875 | + ruleDate: this.infoForm.fltDate, | ||
| 876 | + flightRoute: route.route, | ||
| 877 | + routePriority: route.routePriority, | ||
| 878 | + }) | ||
| 879 | + this.newRoute(sub) | ||
| 880 | + } | ||
| 858 | } | 881 | } |
| 859 | }) | 882 | }) |
| 860 | } | 883 | } | ... | ... |
-
Please register or login to post a comment