作者 xudada

运输工具通用查询

@@ -8,6 +8,7 @@ let baseUrlAirLineAircraft = 'air-server-transport/transport/airlineaircraft' @@ -8,6 +8,7 @@ let baseUrlAirLineAircraft = 'air-server-transport/transport/airlineaircraft'
8 let baseUrlPrediction = 'air-server-transport/transport/prediction' 8 let baseUrlPrediction = 'air-server-transport/transport/prediction'
9 let baseUrlConfirm = 'air-server-transport/transport/confirm' 9 let baseUrlConfirm = 'air-server-transport/transport/confirm'
10 let baseUrlSchedule = 'air-server-transport/transport/schedule' 10 let baseUrlSchedule = 'air-server-transport/transport/schedule'
  11 +let baseUrlLongtimeplan = 'air-server-transport/transport/longtimeplan'
11 12
12 13
13 14
@@ -61,33 +62,35 @@ export const editAircraft=params=>{return http.put(`${baseUrlAircraft}/editAircr @@ -61,33 +62,35 @@ export const editAircraft=params=>{return http.put(`${baseUrlAircraft}/editAircr
61 //新增方法 62 //新增方法
62 export const addAirLineAircraft = params => { return http.post(`${baseUrlAirLineAircraft}/addAirLineAircraft`, params); }; 63 export const addAirLineAircraft = params => { return http.post(`${baseUrlAirLineAircraft}/addAirLineAircraft`, params); };
63 //删除方法 64 //删除方法
64 -export const editAirLineAircraft=params=>{return http.get(`${baseUrlAirLineAircraft}/editAirLineAircraft`, params);}; 65 +export const editAirLineAircraft=params=>{return http.put(`${baseUrlAirLineAircraft}/editAirLineAircraft`, params);};
65 //查询列表 66 //查询列表
66 -export const selectAirLineAircraft=params=>{return http.put(`${baseUrlAirLineAircraft}/selectAirLineAircraft`, params);}; 67 +export const selectAirLineAircraft=params=>{return http.get(`${baseUrlAirLineAircraft}/selectAirLineAircraft`, params);};
67 68
68 69
69 //进港预报申报prediction 70 //进港预报申报prediction
70 //新增方法 71 //新增方法
71 export const addPrediction = params => { return http.post(`${baseUrlPrediction}/addPrediction`, params); }; 72 export const addPrediction = params => { return http.post(`${baseUrlPrediction}/addPrediction`, params); };
72 //删除方法 73 //删除方法
73 -export const editPrediction=params=>{return http.get(`${baseUrlPrediction}/editPrediction`, params);}; 74 +export const editPrediction=params=>{return http.put(`${baseUrlPrediction}/editPrediction`, params);};
74 //查询列表 75 //查询列表
75 -export const selectPrediction=params=>{return http.put(`${baseUrlPrediction}/selectPrediction`, params);}; 76 +export const selectPrediction=params=>{return http.get(`${baseUrlPrediction}/selectPrediction`, params);};
76 77
77 78
78 //进港确报申报confirm 79 //进港确报申报confirm
79 //新增方法 80 //新增方法
80 export const addConfirm = params => { return http.post(`${baseUrlConfirm}/addConfirm`, params); }; 81 export const addConfirm = params => { return http.post(`${baseUrlConfirm}/addConfirm`, params); };
81 //删除方法 82 //删除方法
82 -export const editConfirm=params=>{return http.get(`${baseUrlConfirm}/editConfirm`, params);}; 83 +export const editConfirm=params=>{return http.put(`${baseUrlConfirm}/editConfirm`, params);};
83 //查询列表 84 //查询列表
84 -export const selectConfirm=params=>{return http.put(`${baseUrlConfirm}/selectConfirm`, params);}; 85 +export const selectConfirm=params=>{return http.get(`${baseUrlConfirm}/selectConfirm`, params);};
85 86
86 87
87 //进港航班配置 88 //进港航班配置
88 //新增方法 89 //新增方法
89 export const addSchedule = params => { return http.post(`${baseUrlSchedule}/addSchedule`, params); }; 90 export const addSchedule = params => { return http.post(`${baseUrlSchedule}/addSchedule`, params); };
90 //删除方法 91 //删除方法
91 -export const editSchedule=params=>{return http.get(`${baseUrlSchedule}/editSchedule`, params);}; 92 +export const editSchedule=params=>{return http.put(`${baseUrlSchedule}/editSchedule`, params);};
92 //查询列表 93 //查询列表
93 -export const selectSchedule=params=>{return http.put(`${baseUrlSchedule}/selectSchedule`, params);};  
  94 +export const selectSchedule=params=>{return http.get(`${baseUrlSchedule}/selectSchedule`, params);};
  95 +//查询长期计划查询列表
  96 +export const selectLongTimePlan=params=>{return http.get(`${baseUrlLongtimeplan}/selectLongTimePlan`, params);};
@@ -20,7 +20,6 @@ @@ -20,7 +20,6 @@
20 </el-row> 20 </el-row>
21 <el-row> 21 <el-row>
22 <el-col :span="24"> 22 <el-col :span="24">
23 - <template>  
24 <el-table 23 <el-table
25 :data="tableData" 24 :data="tableData"
26 border 25 border
@@ -38,61 +37,60 @@ @@ -38,61 +37,60 @@
38 </template> 37 </template>
39 </el-table-column> 38 </el-table-column>
40 <el-table-column 39 <el-table-column
41 - fixed 40 +
42 prop="serialNo" 41 prop="serialNo"
43 label="航线序号" 42 label="航线序号"
44 width="80"> 43 width="80">
45 </el-table-column> 44 </el-table-column>
46 <el-table-column 45 <el-table-column
47 - fixed 46 +
48 prop="departurePort" 47 prop="departurePort"
49 label="出发港" 48 label="出发港"
50 width="80"> 49 width="80">
51 </el-table-column> 50 </el-table-column>
52 <el-table-column 51 <el-table-column
53 - fixed 52 +
54 prop="departureCustomNo" 53 prop="departureCustomNo"
55 label="出发港关区代码" 54 label="出发港关区代码"
56 width="150"> 55 width="150">
57 </el-table-column> 56 </el-table-column>
58 <el-table-column 57 <el-table-column
59 - fixed 58 +
60 prop="arrivalPort" 59 prop="arrivalPort"
61 label="目的港" 60 label="目的港"
62 width="80"> 61 width="80">
63 </el-table-column> 62 </el-table-column>
64 <el-table-column 63 <el-table-column
65 - fixed 64 +
66 prop="arrivalCustomNo" 65 prop="arrivalCustomNo"
67 label="目的港关区代码" 66 label="目的港关区代码"
68 width="150"> 67 width="150">
69 </el-table-column> 68 </el-table-column>
70 <el-table-column 69 <el-table-column
71 - fixed 70 +
72 prop="std" 71 prop="std"
73 label="长期离港时间" 72 label="长期离港时间"
74 width="150"> 73 width="150">
75 </el-table-column> 74 </el-table-column>
76 <el-table-column 75 <el-table-column
77 - fixed 76 +
78 prop="sta" 77 prop="sta"
79 label="长期抵港时间" 78 label="长期抵港时间"
80 width="150"> 79 width="150">
81 </el-table-column> 80 </el-table-column>
82 <el-table-column 81 <el-table-column
83 - fixed 82 +
84 prop="effStartdate" 83 prop="effStartdate"
85 label="有效期起始时间" 84 label="有效期起始时间"
86 width="150"> 85 width="150">
87 </el-table-column> 86 </el-table-column>
88 <el-table-column 87 <el-table-column
89 - fixed 88 +
90 prop="effEnddate" 89 prop="effEnddate"
91 label="有效期结束时间" 90 label="有效期结束时间"
92 width="150"> 91 width="150">
93 </el-table-column> 92 </el-table-column>
94 <el-table-column 93 <el-table-column
95 - fixed  
96 prop="plan" 94 prop="plan"
97 label="每周执行情况" 95 label="每周执行情况"
98 width="150"> 96 width="150">
@@ -113,7 +111,6 @@ @@ -113,7 +111,6 @@
113 </template> 111 </template>
114 </el-table-column> 112 </el-table-column>
115 </el-table> 113 </el-table>
116 - </template>  
117 </el-col> 114 </el-col>
118 </el-row> 115 </el-row>
119 <el-row> 116 <el-row>
@@ -131,25 +131,21 @@ @@ -131,25 +131,21 @@
131 </template> 131 </template>
132 </el-table-column> 132 </el-table-column>
133 <el-table-column 133 <el-table-column
134 - fixed  
135 prop="std" 134 prop="std"
136 label="长期离港时间" 135 label="长期离港时间"
137 width="150"> 136 width="150">
138 </el-table-column> 137 </el-table-column>
139 <el-table-column 138 <el-table-column
140 - fixed  
141 prop="sta" 139 prop="sta"
142 label="长期抵港时间" 140 label="长期抵港时间"
143 width="150"> 141 width="150">
144 </el-table-column> 142 </el-table-column>
145 <el-table-column 143 <el-table-column
146 - fixed  
147 prop="effStartdate" 144 prop="effStartdate"
148 label="有效起始日期" 145 label="有效起始日期"
149 width="180"> 146 width="180">
150 </el-table-column> 147 </el-table-column>
151 <el-table-column 148 <el-table-column
152 - fixed  
153 prop="effEnddate" 149 prop="effEnddate"
154 label="有效结束日期" 150 label="有效结束日期"
155 width="180"> 151 width="180">
@@ -321,7 +317,7 @@ @@ -321,7 +317,7 @@
321 //加载默认值 317 //加载默认值
322 defaultData(){ 318 defaultData(){
323 if(this.$route.query.uuid!=null){ 319 if(this.$route.query.uuid!=null){
324 - Object.assign(this.airline, this.$route.query); 320 + let ob=Object.assign(this.airline, this.$route.query);
325 if(ob.sta!=null && ob.sta!=undefined && ob.sta!=""){ 321 if(ob.sta!=null && ob.sta!=undefined && ob.sta!=""){
326 this.airline.sta=fecha.parse(ob.sta,'HHmmss'); 322 this.airline.sta=fecha.parse(ob.sta,'HHmmss');
327 } 323 }