Merge remote-tracking branch 'origin/master'
正在显示
29 个修改的文件
包含
3342 行增加
和
364 行删除
@@ -3855,6 +3855,11 @@ | @@ -3855,6 +3855,11 @@ | ||
3855 | "integrity": "sha512-483XLLxTVIwWK3QTrMGRqUfUpoOs/0hbQrl2oz4J0pAcm3A3bu84wxTFqGqkJzewCLdME38xJLJAxBABfQT8sQ==", | 3855 | "integrity": "sha512-483XLLxTVIwWK3QTrMGRqUfUpoOs/0hbQrl2oz4J0pAcm3A3bu84wxTFqGqkJzewCLdME38xJLJAxBABfQT8sQ==", |
3856 | "dev": true | 3856 | "dev": true |
3857 | }, | 3857 | }, |
3858 | + "fecha": { | ||
3859 | + "version": "4.2.0", | ||
3860 | + "resolved": "https://registry.npmjs.org/fecha/-/fecha-4.2.0.tgz", | ||
3861 | + "integrity": "sha512-aN3pcx/DSmtyoovUudctc8+6Hl4T+hI9GBBHLjA76jdZl7+b1sgh5g4k+u/GL3dTy1/pnYzKp69FpJ0OicE3Wg==" | ||
3862 | + }, | ||
3858 | "figures": { | 3863 | "figures": { |
3859 | "version": "3.0.0", | 3864 | "version": "3.0.0", |
3860 | "resolved": "https://registry.npmjs.org/figures/-/figures-3.0.0.tgz", | 3865 | "resolved": "https://registry.npmjs.org/figures/-/figures-3.0.0.tgz", |
@@ -14,6 +14,7 @@ | @@ -14,6 +14,7 @@ | ||
14 | "echarts": "^3.3.2", | 14 | "echarts": "^3.3.2", |
15 | "element-ui": "^2.13.0", | 15 | "element-ui": "^2.13.0", |
16 | "eslint": "^5.14.1", | 16 | "eslint": "^5.14.1", |
17 | + "fecha": "^4.2.0", | ||
17 | "file-saver": "^2.0.2", | 18 | "file-saver": "^2.0.2", |
18 | "font-awesome": "^4.7.0", | 19 | "font-awesome": "^4.7.0", |
19 | "html2canvas": "^1.0.0-rc.5", | 20 | "html2canvas": "^1.0.0-rc.5", |
src/api/transport.js
0 → 100644
1 | +import http from './http.js' | ||
2 | +let baseUrl = 'air-server-transport/transport/route' | ||
3 | +let baseUrlBill = 'air-server-transport/transport/bill' | ||
4 | +let baseUrlFlight = 'air-server-transport/transport/flight' | ||
5 | +let baseUrlFlightPlan = 'air-server-transport/transport/flightplan' | ||
6 | +let baseUrlAircraft = 'air-server-transport/transport/aircraft' | ||
7 | +let baseUrlAirLineAircraft = 'air-server-transport/transport/airlineaircraft' | ||
8 | +let baseUrlPrediction = 'air-server-transport/transport/prediction' | ||
9 | +let baseUrlConfirm = 'air-server-transport/transport/confirm' | ||
10 | +let baseUrlSchedule = 'air-server-transport/transport/schedule' | ||
11 | +let baseUrlLongtimeplan = 'air-server-transport/transport/longtimeplan' | ||
12 | +let baseUrlBillperson = 'air-server-transport/transport/billperson' | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | ||
18 | +//航线申报 | ||
19 | +//新增方法 | ||
20 | +export const addRoute = params => { return http.post(`${baseUrl}/addRoute`, params); }; | ||
21 | +//查询列表 | ||
22 | +export const selectRoute=params=>{return http.get(`${baseUrl}/selectRoute`, params);}; | ||
23 | +//删除方法 | ||
24 | +export const editRoute=params=>{return http.put(`${baseUrl}/editRoute`, params);}; | ||
25 | + | ||
26 | + | ||
27 | + | ||
28 | + | ||
29 | +//单据申报 | ||
30 | +//新增方法 | ||
31 | +export const addBill = params => { return http.post(`${baseUrlBill}/addBill`, params); }; | ||
32 | +//查询列表 | ||
33 | +export const selectBill=params=>{return http.get(`${baseUrlBill}/selectBill`, params);}; | ||
34 | +//删除方法 | ||
35 | +export const editBill=params=>{return http.put(`${baseUrlBill}/editBill`, params);}; | ||
36 | + | ||
37 | + | ||
38 | +//航班申报 | ||
39 | +//新增方法 | ||
40 | +export const addFlight = params => { return http.post(`${baseUrlFlight}/addFlight`, params); }; | ||
41 | +//查询列表 | ||
42 | +export const selectFlight=params=>{return http.get(`${baseUrlFlight}/selectFlight`, params);}; | ||
43 | +//删除方法 | ||
44 | +export const editFlight=params=>{return http.put(`${baseUrlFlight}/editFlight`, params);}; | ||
45 | + | ||
46 | +//航班当日计划申报 | ||
47 | +//新增方法 | ||
48 | +export const addFlightPlan = params => { return http.post(`${baseUrlFlightPlan}/addFlightPlan`, params); }; | ||
49 | +//查询列表 | ||
50 | +export const selectFlightPlan=params=>{return http.get(`${baseUrlFlightPlan}/selectFlightPlan`, params);}; | ||
51 | +//删除方法 | ||
52 | +export const editFlightPlan=params=>{return http.put(`${baseUrlFlightPlan}/editFlightPlan`, params);}; | ||
53 | + | ||
54 | +//通用航空器申报 | ||
55 | +//新增方法 | ||
56 | +export const addAircraft = params => { return http.post(`${baseUrlAircraft}/addAircraft`, params); }; | ||
57 | +//查询列表 | ||
58 | +export const selectAircraft=params=>{return http.get(`${baseUrlAircraft}/selectAircraft`, params);}; | ||
59 | +//删除方法 | ||
60 | +export const editAircraft=params=>{return http.put(`${baseUrlAircraft}/editAircraft`, params);}; | ||
61 | + | ||
62 | +//航线航空器申报 | ||
63 | +//新增方法 | ||
64 | +export const addAirLineAircraft = params => { return http.post(`${baseUrlAirLineAircraft}/addAirLineAircraft`, params); }; | ||
65 | +//删除方法 | ||
66 | +export const editAirLineAircraft=params=>{return http.put(`${baseUrlAirLineAircraft}/editAirLineAircraft`, params);}; | ||
67 | +//查询列表 | ||
68 | +export const selectAirLineAircraft=params=>{return http.get(`${baseUrlAirLineAircraft}/selectAirLineAircraft`, params);}; | ||
69 | + | ||
70 | + | ||
71 | +//进港预报申报prediction | ||
72 | +//新增方法 | ||
73 | +export const addPrediction = params => { return http.post(`${baseUrlPrediction}/addPrediction`, params); }; | ||
74 | +//删除方法 | ||
75 | +export const editPrediction=params=>{return http.put(`${baseUrlPrediction}/editPrediction`, params);}; | ||
76 | +//查询列表 | ||
77 | +export const selectPrediction=params=>{return http.get(`${baseUrlPrediction}/selectPrediction`, params);}; | ||
78 | + | ||
79 | + | ||
80 | +//进港确报申报confirm | ||
81 | +//新增方法 | ||
82 | +export const addConfirm = params => { return http.post(`${baseUrlConfirm}/addConfirm`, params); }; | ||
83 | +//删除方法 | ||
84 | +export const editConfirm=params=>{return http.put(`${baseUrlConfirm}/editConfirm`, params);}; | ||
85 | +//查询列表 | ||
86 | +export const selectConfirm=params=>{return http.get(`${baseUrlConfirm}/selectConfirm`, params);}; | ||
87 | + | ||
88 | + | ||
89 | +//进港航班配置 | ||
90 | +//新增方法 | ||
91 | +export const addSchedule = params => { return http.post(`${baseUrlSchedule}/addSchedule`, params); }; | ||
92 | +//删除方法 | ||
93 | +export const editSchedule=params=>{return http.put(`${baseUrlSchedule}/editSchedule`, params);}; | ||
94 | +//查询列表 | ||
95 | +export const selectSchedule=params=>{return http.get(`${baseUrlSchedule}/selectSchedule`, params);}; | ||
96 | + | ||
97 | +//查询长期计划查询列表 | ||
98 | +export const selectLongTimePlan=params=>{return http.get(`${baseUrlLongtimeplan}/selectLongTimePlan`, params);}; | ||
99 | + | ||
100 | +//机组人员 | ||
101 | +//新增方法 | ||
102 | +export const addBillPerson = params => { return http.post(`${baseUrlBillperson}/addBillPerson`, params); }; | ||
103 | +//删除方法 | ||
104 | +export const editBillPerson=params=>{return http.put(`${baseUrlBillperson}/editBillPerson`, params);}; | ||
105 | +//查询列表 | ||
106 | +export const selectBillPerson=params=>{return http.get(`${baseUrlBillperson}/selectBillPerson`, params);}; |
@@ -216,7 +216,7 @@ let routes = [ | @@ -216,7 +216,7 @@ let routes = [ | ||
216 | { | 216 | { |
217 | path: '/input', | 217 | path: '/input', |
218 | component: Home, | 218 | component: Home, |
219 | - name: '进港业务申报', | 219 | + name: '进港航班申报', |
220 | iconCls:'el-icon-goods', | 220 | iconCls:'el-icon-goods', |
221 | children:[ | 221 | children:[ |
222 | {path:'/arrival',component:arrival,name:'进港预报申报'}, | 222 | {path:'/arrival',component:arrival,name:'进港预报申报'}, |
@@ -230,7 +230,7 @@ let routes = [ | @@ -230,7 +230,7 @@ let routes = [ | ||
230 | { | 230 | { |
231 | path: '/out', | 231 | path: '/out', |
232 | component: Home, | 232 | component: Home, |
233 | - name: '出港业务申报', | 233 | + name: '出港航班申报', |
234 | iconCls:'el-icon-goods', | 234 | iconCls:'el-icon-goods', |
235 | children:[ | 235 | children:[ |
236 | {path:'/departure',component:departure,name:'出港预报申报'}, | 236 | {path:'/departure',component:departure,name:'出港预报申报'}, |
@@ -14,12 +14,12 @@ | @@ -14,12 +14,12 @@ | ||
14 | </el-form-item> | 14 | </el-form-item> |
15 | </el-col> | 15 | </el-col> |
16 | <el-col :span="6"> | 16 | <el-col :span="6"> |
17 | - <el-form-item label="航空公司英文名称" prop="airwayNameEn" label-width="130px"> | 17 | + <el-form-item label="航空公司英文名称" prop="airwayNameEn" label-width="140px"> |
18 | <el-input v-model="aircraft.airwayNameEn" placeholder="请输入"></el-input> | 18 | <el-input v-model="aircraft.airwayNameEn" placeholder="请输入"></el-input> |
19 | </el-form-item> | 19 | </el-form-item> |
20 | </el-col> | 20 | </el-col> |
21 | <el-col :span="6"> | 21 | <el-col :span="6"> |
22 | - <el-form-item label="航空公司中文名称" prop="airwayNameCn" label-width="130px"> | 22 | + <el-form-item label="航空公司中文名称" prop="airwayNameCn" label-width="140px"> |
23 | <el-input v-model="aircraft.airwayNameCn" placeholder="请输入"></el-input> | 23 | <el-input v-model="aircraft.airwayNameCn" placeholder="请输入"></el-input> |
24 | </el-form-item> | 24 | </el-form-item> |
25 | </el-col> | 25 | </el-col> |
@@ -52,12 +52,12 @@ | @@ -52,12 +52,12 @@ | ||
52 | </el-col> | 52 | </el-col> |
53 | <el-col :span="6"> | 53 | <el-col :span="6"> |
54 | <el-form-item label="最大起飞重量" prop="grossWeight" label-width="130px"> | 54 | <el-form-item label="最大起飞重量" prop="grossWeight" label-width="130px"> |
55 | - <el-input v-model="aircraft.grossWeight" placeholder="请输入重量(单位:KG)"></el-input> | 55 | + <el-input v-model="aircraft.grossWeight" placeholder="请输入重量(单位:KG)" oninput="value=value.replace(/[^\d]/g,'')"></el-input> |
56 | </el-form-item> | 56 | </el-form-item> |
57 | </el-col> | 57 | </el-col> |
58 | <el-col :span="6"> | 58 | <el-col :span="6"> |
59 | <el-form-item label="标客舱载客人数" prop="passengerLimit" label-width="130px"> | 59 | <el-form-item label="标客舱载客人数" prop="passengerLimit" label-width="130px"> |
60 | - <el-input v-model="aircraft.passengerLimit" placeholder="请输入数量(单位:人)"></el-input> | 60 | + <el-input v-model="aircraft.passengerLimit" placeholder="请输入数量(单位:人)" oninput="value=value.replace(/[^\d]/g,'')"></el-input> |
61 | </el-form-item> | 61 | </el-form-item> |
62 | </el-col> | 62 | </el-col> |
63 | <el-col :span="6"> | 63 | <el-col :span="6"> |
@@ -66,7 +66,7 @@ | @@ -66,7 +66,7 @@ | ||
66 | </el-form-item> | 66 | </el-form-item> |
67 | </el-col> | 67 | </el-col> |
68 | <el-col :span="6"> | 68 | <el-col :span="6"> |
69 | - <el-form-item label="航空器所有人代码" prop="ownerCo" label-width="130px"> | 69 | + <el-form-item label="航空器所有人代码" prop="ownerCo" label-width="140px"> |
70 | <el-input v-model="aircraft.ownerCo" placeholder="请输入数量(单位:人)"></el-input> | 70 | <el-input v-model="aircraft.ownerCo" placeholder="请输入数量(单位:人)"></el-input> |
71 | </el-form-item> | 71 | </el-form-item> |
72 | </el-col> | 72 | </el-col> |
@@ -80,6 +80,8 @@ | @@ -80,6 +80,8 @@ | ||
80 | <el-date-picker | 80 | <el-date-picker |
81 | v-model="aircraft.deliverDate" | 81 | v-model="aircraft.deliverDate" |
82 | type="date" | 82 | type="date" |
83 | + value-format="yyyyMMdd" | ||
84 | + format="yyyyMMdd" | ||
83 | style="width:100%" | 85 | style="width:100%" |
84 | placeholder="选择日期"> | 86 | placeholder="选择日期"> |
85 | </el-date-picker> | 87 | </el-date-picker> |
@@ -96,6 +98,20 @@ | @@ -96,6 +98,20 @@ | ||
96 | <el-col :span="24"> <el-button type="primary" @click="submitForm('aircraft')">保 存</el-button> | 98 | <el-col :span="24"> <el-button type="primary" @click="submitForm('aircraft')">保 存</el-button> |
97 | <el-button type="success">保存并发送</el-button></el-col> | 99 | <el-button type="success">保存并发送</el-button></el-col> |
98 | </el-row> | 100 | </el-row> |
101 | + <!--对话提示框--> | ||
102 | + <el-row> | ||
103 | + <el-dialog | ||
104 | + title="系统提示" | ||
105 | + :visible.sync="centerDialogVisible" | ||
106 | + width="30%" | ||
107 | + center> | ||
108 | + <span>{{msg}}</span> | ||
109 | + <span slot="footer" class="dialog-footer"> | ||
110 | + <el-button @click="centerDialogVisible = false">取 消</el-button> | ||
111 | + <el-button type="primary" @click="centerDialogVisible = false">确 定</el-button> | ||
112 | + </span> | ||
113 | + </el-dialog> | ||
114 | + </el-row> | ||
99 | </el-main> | 115 | </el-main> |
100 | </el-container> | 116 | </el-container> |
101 | </template> | 117 | </template> |
@@ -118,6 +134,8 @@ | @@ -118,6 +134,8 @@ | ||
118 | .el-col{margin-right: 0px;} | 134 | .el-col{margin-right: 0px;} |
119 | </style> | 135 | </style> |
120 | <script> | 136 | <script> |
137 | + const fecha = require('fecha'); | ||
138 | + import {addAircraft} from "../../api/transport"; | ||
121 | export default { | 139 | export default { |
122 | data(){ | 140 | data(){ |
123 | return{ | 141 | return{ |
@@ -148,10 +166,86 @@ | @@ -148,10 +166,86 @@ | ||
148 | messageid:undefined | 166 | messageid:undefined |
149 | }, | 167 | }, |
150 | rules:{ | 168 | rules:{ |
151 | - | ||
152 | - } | 169 | + airwayCode: [ |
170 | + {required: true, message: '请输入', trigger: 'blur'} | ||
171 | + ], | ||
172 | + airwayNameEn: [ | ||
173 | + {required: true, message: '请输入', trigger: 'blur'} | ||
174 | + ], | ||
175 | + airwayNameCn: [ | ||
176 | + {required: true, message: '请输入', trigger: 'blur'} | ||
177 | + ], | ||
178 | + areoNationality: [ | ||
179 | + {required: true, message: '请输入', trigger: 'blur'} | ||
180 | + ], | ||
181 | + aircraftNo: [ | ||
182 | + {required: true, message: '请输入', trigger: 'blur'} | ||
183 | + ], | ||
184 | + credentialType: [ | ||
185 | + {required: true, message: '请输入', trigger: 'blur'} | ||
186 | + ], | ||
187 | + credentialNo: [ | ||
188 | + {required: true, message: '请输入', trigger: 'blur'} | ||
189 | + ], | ||
190 | + areoModel: [ | ||
191 | + {required: true, message: '请输入', trigger: 'blur'} | ||
192 | + ], | ||
193 | + grossWeight: [ | ||
194 | + {required: true, message: '请输入', trigger: 'blur'} | ||
195 | + ], | ||
196 | + passengerLimit: [ | ||
197 | + {required: true, message: '请输入', trigger: 'blur'} | ||
198 | + ], | ||
199 | + useRelation: [ | ||
200 | + {required: true, message: '请输入', trigger: 'blur'} | ||
201 | + ], | ||
202 | + ownerCo: [ | ||
203 | + {required: true, message: '请输入', trigger: 'blur'} | ||
204 | + ], | ||
205 | + certNo: [ | ||
206 | + {required: true, message: '请输入', trigger: 'blur'} | ||
207 | + ], | ||
208 | + deliverDate: [ | ||
209 | + {required: true, message: '请输入', trigger: 'blur'} | ||
210 | + ], | ||
211 | + }, | ||
212 | + centerDialogVisible:false, | ||
153 | } | 213 | } |
154 | }, | 214 | }, |
155 | - methods(){} | 215 | + methods:{ |
216 | + //新增当日飞行计划(保存按钮) | ||
217 | + submitForm(formName) { | ||
218 | + this.$refs[formName].validate((valid) => { | ||
219 | + if (valid) { | ||
220 | + addAircraft(this.aircraft).then(res=>{ | ||
221 | + let response=res.data; | ||
222 | + if(response.code=='200'){ | ||
223 | + this.centerDialogVisible=true; | ||
224 | + this.msg=response.msg; | ||
225 | + this.$router.push({path:'/queryAircraft',query:{airwayCode:JSON.stringify(this.aircraft.airwayCode)}}); | ||
226 | + }else{ | ||
227 | + this.msg=response.msg; | ||
228 | + } | ||
229 | + }); | ||
230 | + } else { | ||
231 | + console.log('error submit!!'); | ||
232 | + return false; | ||
233 | + } | ||
234 | + }); | ||
235 | + }, | ||
236 | + //加载默认值 | ||
237 | + defaultData(){ | ||
238 | + if(this.$route.query!=null){ | ||
239 | + let ob=Object.assign(this.aircraft, this.$route.query); | ||
240 | + /*有时分秒时用fecha | ||
241 | + this.flight.flightDate=ob.flightDate; | ||
242 | + this.flight.currentLandingTime=fecha.parse(ob.currentLandingTime,'yyyyMMddHHmm'); | ||
243 | + this.flight.currentTakeoffTime=fecha.parse(ob.currentTakeoffTime,'yyyyMMddHHmm');*/ | ||
244 | + } | ||
245 | + }, | ||
246 | + }, | ||
247 | + mounted(){ | ||
248 | + this.defaultData(); | ||
249 | + } | ||
156 | } | 250 | } |
157 | </script> | 251 | </script> |
1 | +<template> | ||
2 | + <el-container> | ||
3 | + <el-main> | ||
4 | + <el-row class="row-bg"> | ||
5 | + <el-col :span="24"> | ||
6 | + <div class="grid-content content">进港预报申报</div> | ||
7 | + </el-col> | ||
8 | + </el-row> | ||
9 | + <el-row> | ||
10 | + <el-form :model="arrival" :rules="rules" ref="arrival" label-width="100%" class="demo-ruleForm"> | ||
11 | + <el-col :span="8"> | ||
12 | + <el-form-item label="航空器注册编码" prop="aircraftNo" label-width="120px"> | ||
13 | + <el-input v-model="arrival.aircraftNo"></el-input> | ||
14 | + </el-form-item> | ||
15 | + </el-col> | ||
16 | + <el-col :span="8"> | ||
17 | + <el-form-item label="航班号" prop="flightNo" label-width="120px"> | ||
18 | + <el-input v-model="arrival.flightNo"></el-input> | ||
19 | + </el-form-item> | ||
20 | + </el-col> | ||
21 | + <el-col :span="8"> | ||
22 | + <el-form-item label="航班日期" prop="flightDate" label-width="120px"> | ||
23 | + <el-date-picker | ||
24 | + v-model="arrival.flightDate" | ||
25 | + type="date" | ||
26 | + style="width:275px" | ||
27 | + placeholder="选择日期"> | ||
28 | + </el-date-picker> | ||
29 | + </el-form-item> | ||
30 | + </el-col> | ||
31 | + <el-col :span="8"> | ||
32 | + <el-form-item label="出发港" prop="departurePort" label-width="120px"> | ||
33 | + <el-input v-model="arrival.departurePort"></el-input> | ||
34 | + </el-form-item> | ||
35 | + </el-col> | ||
36 | + <el-col :span="8"> | ||
37 | + <el-form-item label="目的港" prop="arrivalPort" label-width="120px"> | ||
38 | + <el-input v-model="arrival.arrivalPort"></el-input> | ||
39 | + </el-form-item> | ||
40 | + </el-col> | ||
41 | + <el-col :span="8"> | ||
42 | + <el-form-item label="关区代码" prop="customDistrictNo" label-width="120px"> | ||
43 | + <el-input v-model="arrival.customDistrictNo"></el-input> | ||
44 | + </el-form-item> | ||
45 | + </el-col> | ||
46 | + <el-col :span="6"> | ||
47 | + <el-form-item label="预计离港时间" prop="departuredatetime" label-width="120px"> | ||
48 | + <el-input v-model="arrival.departuredatetime"></el-input> | ||
49 | + </el-form-item> | ||
50 | + </el-col> | ||
51 | + <el-col :span="6"> | ||
52 | + <el-form-item label="停靠机坪" prop="stayid" label-width="120px"> | ||
53 | + <el-input v-model="arrival.stayid"></el-input> | ||
54 | + </el-form-item> | ||
55 | + </el-col> | ||
56 | + <el-col :span="6"> | ||
57 | + <el-form-item label="完成装卸时间" prop="dischargecompleteddatetime" label-width="120px"> | ||
58 | + <el-input v-model="arrival.dischargecompleteddatetime"></el-input> | ||
59 | + </el-form-item> | ||
60 | + </el-col> | ||
61 | + <el-col :span="6"> | ||
62 | + <el-form-item label="预计抵港时间" prop="arrivaldatetime" label-width="140px"> | ||
63 | + <el-input v-model="arrival.arrivaldatetime"></el-input> | ||
64 | + </el-form-item> | ||
65 | + </el-col> | ||
66 | + <el-col :span="24"> | ||
67 | + <el-form-item label="备注" prop="meno" label-width="120px"> | ||
68 | + <el-input v-model="arrival.meno"></el-input> | ||
69 | + </el-form-item> | ||
70 | + </el-col> | ||
71 | + </el-form> | ||
72 | + </el-row> | ||
73 | + <el-row style="margin-left: 120px"> | ||
74 | + <el-col :span="24"> <el-button type="primary" @click="submitForm('arrival')">保 存</el-button> | ||
75 | + <el-button type="success">保存并发送</el-button></el-col> | ||
76 | + </el-row> | ||
77 | + </el-main> | ||
78 | + </el-container> | ||
79 | +</template> | ||
80 | +<style scoped> | ||
81 | + .grid-content { | ||
82 | + height: 36px; | ||
83 | + line-height: 36px; | ||
84 | + } | ||
85 | + .el-dialog__body{text-align: center} | ||
86 | + .content { | ||
87 | + border-left: 4px #409EFF solid; | ||
88 | + padding-left: 10px; | ||
89 | + background-color: #f9fafc; | ||
90 | + margin-bottom: 2px | ||
91 | + } | ||
92 | + | ||
93 | + .row-bg{ | ||
94 | + background-color: white; | ||
95 | + } | ||
96 | + .el-col{margin-right: 0px;} | ||
97 | +</style> | ||
98 | +<script> | ||
99 | + export default { | ||
100 | + data(){ | ||
101 | + return{ | ||
102 | + arrival:{ | ||
103 | + aircraftNo:undefined, | ||
104 | + flightNo:undefined, | ||
105 | + flightDate:undefined, | ||
106 | + departurePort:undefined, | ||
107 | + arrivalPort:undefined, | ||
108 | + customDistrictNo:undefined, | ||
109 | + departuredatetime:undefined, | ||
110 | + stayid:undefined, | ||
111 | + dischargecompleteddatetime:undefined, | ||
112 | + arrivaldatetime:undefined, | ||
113 | + meno:undefined, | ||
114 | + accessFlag:'0' | ||
115 | + }, | ||
116 | + rules: { | ||
117 | + aircraftNo: [ | ||
118 | + {required: true, message: '请输入', trigger: 'blur'} | ||
119 | + ], | ||
120 | + flightNo: [ | ||
121 | + {required: true, message: '请输入', trigger: 'blur'} | ||
122 | + ], | ||
123 | + flightDate: [ | ||
124 | + {type: 'date',required: true, message: '请选择', trigger: 'change'} | ||
125 | + ], | ||
126 | + departurePort: [ | ||
127 | + {required: true, message: '请输入(三字码)', trigger: 'blur'}, | ||
128 | + {min: 3, max: 3, message: '长度在 3 个字符', trigger: 'blur'} | ||
129 | + ], | ||
130 | + arrivalPort: [ | ||
131 | + {required: true, message: '请输入(三字码)', trigger: 'blur'}, | ||
132 | + {min: 3, max: 3, message: '长度在 3 个字符', trigger: 'blur'} | ||
133 | + ], | ||
134 | + customDistrictNo: [ | ||
135 | + {required: true, message: '请选择', trigger: 'blur'} | ||
136 | + ], | ||
137 | + departuredatetime: [ | ||
138 | + {required: true, message: '请选择', trigger: 'blur'} | ||
139 | + ], | ||
140 | + stayid: [ | ||
141 | + {required: true, message: '请输入', trigger: 'blur'} | ||
142 | + ], | ||
143 | + dischargecompleteddatetime: [ | ||
144 | + {required: true, message: '请输入', trigger: 'blur'} | ||
145 | + ], | ||
146 | + arrivaldatetime: [ | ||
147 | + {required: true, message: '请选择', trigger: 'blur'} | ||
148 | + ], | ||
149 | + }, | ||
150 | + tableData:[] | ||
151 | + } | ||
152 | + }, | ||
153 | + methods:{ | ||
154 | + submitForm(formName) { | ||
155 | + this.$refs[formName].validate((valid) => { | ||
156 | + if (valid) { | ||
157 | + alert('submit!'); | ||
158 | + } else { | ||
159 | + console.log('error submit!!'); | ||
160 | + return false; | ||
161 | + } | ||
162 | + }); | ||
163 | + }, | ||
164 | + submitPerson(formName){ | ||
165 | + this.$refs[formName].validate((valid) => { | ||
166 | + if (valid) { | ||
167 | + alert('submit!'); | ||
168 | + } else { | ||
169 | + console.log('error submit!!'); | ||
170 | + return false; | ||
171 | + } | ||
172 | + }); | ||
173 | + }, | ||
174 | + | ||
175 | + } | ||
176 | + } | ||
177 | +</script> |
@@ -10,112 +10,131 @@ | @@ -10,112 +10,131 @@ | ||
10 | <el-form :model="bill" :rules="rules" ref="bill" label-width="100%" class="demo-ruleForm"> | 10 | <el-form :model="bill" :rules="rules" ref="bill" label-width="100%" class="demo-ruleForm"> |
11 | <el-col :span="8"> | 11 | <el-col :span="8"> |
12 | <el-form-item label="航空器注册编号" prop="aircraftNo" label-width="120px"> | 12 | <el-form-item label="航空器注册编号" prop="aircraftNo" label-width="120px"> |
13 | - <el-input v-model="bill.aircraftNo"></el-input> | 13 | + <el-input v-model="bill.aircraftNo" placeholder="请输入"></el-input> |
14 | </el-form-item> | 14 | </el-form-item> |
15 | </el-col> | 15 | </el-col> |
16 | <el-col :span="8"> | 16 | <el-col :span="8"> |
17 | <el-form-item label="航班号" prop="flightNo" label-width="120px"> | 17 | <el-form-item label="航班号" prop="flightNo" label-width="120px"> |
18 | - <el-input v-model="bill.flightNo"></el-input> | 18 | + <el-input v-model="bill.flightNo" placeholder="请输入"></el-input> |
19 | </el-form-item> | 19 | </el-form-item> |
20 | </el-col> | 20 | </el-col> |
21 | <el-col :span="8"> | 21 | <el-col :span="8"> |
22 | - <el-form-item label="航班时间" prop="flightDate" label-width="120px"> | ||
23 | - <el-input v-model="bill.flightDate"></el-input> | 22 | + <el-form-item label="航班日期" prop="flightDate" label-width="120px"> |
23 | + <el-date-picker | ||
24 | + v-model="bill.flightDate" | ||
25 | + type="date" | ||
26 | + value-format="yyyyMMdd" | ||
27 | + format="yyyyMMdd" | ||
28 | + style="width:100%" | ||
29 | + placeholder="选择日期"> | ||
30 | + </el-date-picker> | ||
24 | </el-form-item> | 31 | </el-form-item> |
25 | </el-col> | 32 | </el-col> |
26 | <el-col :span="6"> | 33 | <el-col :span="6"> |
27 | <el-form-item label="进出港标识" prop="accessFlag" label-width="120px"> | 34 | <el-form-item label="进出港标识" prop="accessFlag" label-width="120px"> |
28 | - <el-input v-model="bill.accessFlag"></el-input> | 35 | + <el-input v-model="bill.accessFlag" placeholder="A/D"></el-input> |
29 | </el-form-item> | 36 | </el-form-item> |
30 | </el-col> | 37 | </el-col> |
31 | <el-col :span="6"> | 38 | <el-col :span="6"> |
32 | <el-form-item label="机组人数" prop="aircrewSum" label-width="120px"> | 39 | <el-form-item label="机组人数" prop="aircrewSum" label-width="120px"> |
33 | - <el-input v-model="bill.aircrewSum"></el-input> | 40 | + <el-input v-model="bill.aircrewSum" oninput="value=value.replace(/[^\d]/g,'')" placeholder="请输入"></el-input> |
34 | </el-form-item> | 41 | </el-form-item> |
35 | </el-col> | 42 | </el-col> |
36 | <el-col :span="6"> | 43 | <el-col :span="6"> |
37 | <el-form-item label="国际旅客人数" prop="interPassengerSum" label-width="120px"> | 44 | <el-form-item label="国际旅客人数" prop="interPassengerSum" label-width="120px"> |
38 | - <el-input v-model="bill.interPassengerSum"></el-input> | 45 | + <el-input v-model="bill.interPassengerSum" oninput="value=value.replace(/[^\d]/g,'')" placeholder="请输入"></el-input> |
39 | </el-form-item> | 46 | </el-form-item> |
40 | </el-col> | 47 | </el-col> |
41 | <el-col :span="6"> | 48 | <el-col :span="6"> |
42 | <el-form-item label="国内旅客人数" prop="localePassengerSum" label-width="120px"> | 49 | <el-form-item label="国内旅客人数" prop="localePassengerSum" label-width="120px"> |
43 | - <el-input v-model="bill.localePassengerSum"></el-input> | 50 | + <el-input v-model="bill.localePassengerSum" oninput="value=value.replace(/[^\d]/g,'')" placeholder="请输入"></el-input> |
44 | </el-form-item> | 51 | </el-form-item> |
45 | </el-col> | 52 | </el-col> |
46 | <el-col :span="6"> | 53 | <el-col :span="6"> |
47 | <el-form-item label="国际行李件数" prop="interBaggageNum" label-width="120px"> | 54 | <el-form-item label="国际行李件数" prop="interBaggageNum" label-width="120px"> |
48 | - <el-input v-model="bill.interBaggageNum"></el-input> | 55 | + <el-input v-model="bill.interBaggageNum" oninput="value=value.replace(/[^\d]/g,'')" placeholder="请输入"></el-input> |
49 | </el-form-item> | 56 | </el-form-item> |
50 | </el-col> | 57 | </el-col> |
51 | <el-col :span="6"> | 58 | <el-col :span="6"> |
52 | <el-form-item label="国内行李件数" prop="localeBaggageNum" label-width="120px"> | 59 | <el-form-item label="国内行李件数" prop="localeBaggageNum" label-width="120px"> |
53 | - <el-input v-model="bill.localeBaggageNum"></el-input> | 60 | + <el-input v-model="bill.localeBaggageNum" oninput="value=value.replace(/[^\d]/g,'')" placeholder="请输入"></el-input> |
54 | </el-form-item> | 61 | </el-form-item> |
55 | </el-col> | 62 | </el-col> |
56 | <el-col :span="6"> | 63 | <el-col :span="6"> |
57 | <el-form-item label="货邮件数" prop="goodsNum" label-width="120px"> | 64 | <el-form-item label="货邮件数" prop="goodsNum" label-width="120px"> |
58 | - <el-input v-model="bill.goodsNum"></el-input> | 65 | + <el-input v-model="bill.goodsNum" oninput="value=value.replace(/[^\d]/g,'')" placeholder="请输入"></el-input> |
59 | </el-form-item> | 66 | </el-form-item> |
60 | </el-col> | 67 | </el-col> |
61 | <el-col :span="6"> | 68 | <el-col :span="6"> |
62 | <el-form-item label="货邮重量(KG)" prop="goodsQuantity" label-width="120px"> | 69 | <el-form-item label="货邮重量(KG)" prop="goodsQuantity" label-width="120px"> |
63 | - <el-input v-model="bill.goodsQuantity"></el-input> | 70 | + <el-input v-model="bill.goodsQuantity" oninput="value=value.replace(/[^\d]/g,'')" placeholder="请输入"></el-input> |
64 | </el-form-item> | 71 | </el-form-item> |
65 | </el-col> | 72 | </el-col> |
66 | <el-col :span="8"> | 73 | <el-col :span="8"> |
67 | - <el-form-item label="抵达港口" prop="arrivalAirport" label-width="120px"> | ||
68 | - <el-input v-model="bill.arrivalAirport"></el-input> | 74 | + <el-form-item label="抵达港口" prop="arrivalAirport" label-width="120px" > |
75 | + <el-input v-model="bill.arrivalAirport" placeholder="请输入"></el-input> | ||
69 | </el-form-item> | 76 | </el-form-item> |
70 | </el-col> | 77 | </el-col> |
71 | <el-col :span="8"> | 78 | <el-col :span="8"> |
72 | <el-form-item label="关区代码" prop="arrivalno" label-width="120px"> | 79 | <el-form-item label="关区代码" prop="arrivalno" label-width="120px"> |
73 | - <el-input v-model="bill.arrivalno"></el-input> | 80 | + <el-input v-model="bill.arrivalno" oninput="value=value.replace(/[^\d]/g,'')" maxLength='4' placeholder="请输入"></el-input> |
74 | </el-form-item> | 81 | </el-form-item> |
75 | </el-col> | 82 | </el-col> |
76 | <el-col :span="8"> | 83 | <el-col :span="8"> |
77 | <el-form-item label="抵达时间" prop="arrivaldatetime" label-width="120px"> | 84 | <el-form-item label="抵达时间" prop="arrivaldatetime" label-width="120px"> |
78 | - <el-input v-model="bill.arrivaldatetime"></el-input> | 85 | + <el-date-picker |
86 | + v-model="bill.arrivaldatetime" | ||
87 | + value-format="yyyyMMdd" | ||
88 | + format="yyyyMMdd" | ||
89 | + style="width:100%" | ||
90 | + placeholder="请选择"> | ||
91 | + </el-date-picker> | ||
79 | </el-form-item> | 92 | </el-form-item> |
80 | </el-col> | 93 | </el-col> |
81 | <el-col :span="8"> | 94 | <el-col :span="8"> |
82 | <el-form-item label="驶离港口" prop="departureAirport" label-width="120px"> | 95 | <el-form-item label="驶离港口" prop="departureAirport" label-width="120px"> |
83 | - <el-input v-model="bill.departureAirport"></el-input> | 96 | + <el-input v-model="bill.departureAirport" placeholder="请输入"></el-input> |
84 | </el-form-item> | 97 | </el-form-item> |
85 | </el-col> | 98 | </el-col> |
86 | <el-col :span="8"> | 99 | <el-col :span="8"> |
87 | <el-form-item label="关区代码" prop="departureno" label-width="120px"> | 100 | <el-form-item label="关区代码" prop="departureno" label-width="120px"> |
88 | - <el-input v-model="bill.departureno"></el-input> | 101 | + <el-input v-model="bill.departureno" oninput="value=value.replace(/[^\d]/g,'')" maxLength='4' placeholder="请输入"></el-input> |
89 | </el-form-item> | 102 | </el-form-item> |
90 | </el-col> | 103 | </el-col> |
91 | <el-col :span="8"> | 104 | <el-col :span="8"> |
92 | <el-form-item label="驶离时间" prop="departuredatetime" label-width="120px"> | 105 | <el-form-item label="驶离时间" prop="departuredatetime" label-width="120px"> |
93 | - <el-input v-model="bill.departuredatetime"></el-input> | 106 | + <el-date-picker |
107 | + v-model="bill.departuredatetime" | ||
108 | + value-format="yyyyMMdd" | ||
109 | + format="yyyyMMdd" | ||
110 | + style="width:100%" | ||
111 | + placeholder="请选择"> | ||
112 | + </el-date-picker> | ||
94 | </el-form-item> | 113 | </el-form-item> |
95 | </el-col> | 114 | </el-col> |
96 | <el-col :span="6"> | 115 | <el-col :span="6"> |
97 | <el-form-item label="货物申报单份数" prop="cargoBillNum" label-width="120px"> | 116 | <el-form-item label="货物申报单份数" prop="cargoBillNum" label-width="120px"> |
98 | - <el-input v-model="bill.cargoBillNum"></el-input> | 117 | + <el-input v-model="bill.cargoBillNum" oninput="value=value.replace(/[^\d]/g,'')"></el-input> |
99 | </el-form-item> | 118 | </el-form-item> |
100 | </el-col> | 119 | </el-col> |
101 | <el-col :span="6"> | 120 | <el-col :span="6"> |
102 | <el-form-item label="旅客名单份数" prop="passengerPage" label-width="120px"> | 121 | <el-form-item label="旅客名单份数" prop="passengerPage" label-width="120px"> |
103 | - <el-input v-model="bill.passengerPage"></el-input> | 122 | + <el-input v-model="bill.passengerPage" oninput="value=value.replace(/[^\d]/g,'')"></el-input> |
104 | </el-form-item> | 123 | </el-form-item> |
105 | </el-col> | 124 | </el-col> |
106 | <el-col :span="6"> | 125 | <el-col :span="6"> |
107 | <el-form-item label="机组名单份数" prop="aircrewBillNum" label-width="120px"> | 126 | <el-form-item label="机组名单份数" prop="aircrewBillNum" label-width="120px"> |
108 | - <el-input v-model="bill.aircrewBillNum"></el-input> | 127 | + <el-input v-model="bill.aircrewBillNum" oninput="value=value.replace(/[^\d]/g,'')"></el-input> |
109 | </el-form-item> | 128 | </el-form-item> |
110 | </el-col> | 129 | </el-col> |
111 | <el-col :span="6"> | 130 | <el-col :span="6"> |
112 | - <el-form-item label="机组物品申报单份数" prop="aircrewCargoBillNum" label-width="140px"> | ||
113 | - <el-input v-model="bill.aircrewCargoBillNum"></el-input> | 131 | + <el-form-item label="机组物品申报单份数" prop="aircrewCargoBillNum" label-width="150px"> |
132 | + <el-input v-model="bill.aircrewCargoBillNum" oninput="value=value.replace(/[^\d]/g,'')"></el-input> | ||
114 | </el-form-item> | 133 | </el-form-item> |
115 | </el-col> | 134 | </el-col> |
116 | <el-col :span="6"> | 135 | <el-col :span="6"> |
117 | <el-form-item label="停靠机位" prop="arrivalPosition" label-width="120px"> | 136 | <el-form-item label="停靠机位" prop="arrivalPosition" label-width="120px"> |
118 | - <el-input v-model="bill.arrivalPosition"></el-input> | 137 | + <el-input v-model="bill.arrivalPosition" placeholder="请输入"></el-input> |
119 | </el-form-item> | 138 | </el-form-item> |
120 | </el-col> | 139 | </el-col> |
121 | <el-col :span="18"> | 140 | <el-col :span="18"> |
@@ -128,57 +147,59 @@ | @@ -128,57 +147,59 @@ | ||
128 | </el-col> | 147 | </el-col> |
129 | <el-col :span="24"> | 148 | <el-col :span="24"> |
130 | <el-form-item label="备注" prop="meno" label-width="120px"> | 149 | <el-form-item label="备注" prop="meno" label-width="120px"> |
131 | - <el-input v-model="bill.meno"></el-input> | 150 | + <el-input v-model="bill.meno" placeholder="请输入"></el-input> |
132 | </el-form-item> | 151 | </el-form-item> |
133 | </el-col> | 152 | </el-col> |
134 | </el-form> | 153 | </el-form> |
135 | </el-row> | 154 | </el-row> |
136 | <el-row style="margin-left: 120px"> | 155 | <el-row style="margin-left: 120px"> |
137 | - <el-col :span="24"> <el-button type="primary" @click="submitForm('bill')">保 存</el-button> | ||
138 | - <el-button type="success">保存并发送</el-button></el-col> | 156 | + <el-col :span="24"> |
157 | + <el-button type="primary" @click="submitForm('bill')">保 存</el-button> | ||
158 | + <el-button type="success">保存并发送</el-button></el-col> | ||
139 | </el-row> | 159 | </el-row> |
140 | <el-row class="row-bg"> | 160 | <el-row class="row-bg"> |
141 | <el-col :span="24"> | 161 | <el-col :span="24"> |
142 | <div class="grid-content content">机组名单<el-button type="primary" size="mini" @click="dialogTableVisible = true" style="margin-left:50px">添加机组人员</el-button></div> | 162 | <div class="grid-content content">机组名单<el-button type="primary" size="mini" @click="dialogTableVisible = true" style="margin-left:50px">添加机组人员</el-button></div> |
143 | </el-col> | 163 | </el-col> |
144 | </el-row> | 164 | </el-row> |
165 | + <!--添加机组人员dialog--> | ||
145 | <el-row> | 166 | <el-row> |
146 | <el-dialog title="机组人员添加" :visible.sync="dialogTableVisible"> | 167 | <el-dialog title="机组人员添加" :visible.sync="dialogTableVisible"> |
147 | <el-form :model="billperson" :rules="brules" ref="billperson" label-width="100px" class="demo-ruleForm"> | 168 | <el-form :model="billperson" :rules="brules" ref="billperson" label-width="100px" class="demo-ruleForm"> |
148 | <el-row> | 169 | <el-row> |
149 | <el-col :span="12"> | 170 | <el-col :span="12"> |
150 | <el-form-item label="姓名" prop="name"> | 171 | <el-form-item label="姓名" prop="name"> |
151 | - <el-input v-model="billperson.name"></el-input> | 172 | + <el-input v-model="billperson.name" placeholder="请输入"></el-input> |
152 | </el-form-item> | 173 | </el-form-item> |
153 | </el-col> | 174 | </el-col> |
154 | <el-col :span="12"> | 175 | <el-col :span="12"> |
155 | <el-form-item label="性别" prop="gender"> | 176 | <el-form-item label="性别" prop="gender"> |
156 | - <el-input v-model="billperson.gender"></el-input> | 177 | + <el-input v-model="billperson.gender" placeholder="M/F"></el-input> |
157 | </el-form-item> | 178 | </el-form-item> |
158 | </el-col> | 179 | </el-col> |
159 | <el-col :span="12"> | 180 | <el-col :span="12"> |
160 | <el-form-item label="证件类型" prop="certType"> | 181 | <el-form-item label="证件类型" prop="certType"> |
161 | - <el-input v-model="billperson.certType"></el-input> | 182 | + <el-input v-model="billperson.certType" placeholder="请输入"></el-input> |
162 | </el-form-item> | 183 | </el-form-item> |
163 | </el-col> | 184 | </el-col> |
164 | <el-col :span="12"> | 185 | <el-col :span="12"> |
165 | <el-form-item label="证件号码" prop="ceterNo"> | 186 | <el-form-item label="证件号码" prop="ceterNo"> |
166 | - <el-input v-model="billperson.ceterNo"></el-input> | 187 | + <el-input v-model="billperson.ceterNo" placeholder="请输入"></el-input> |
167 | </el-form-item> | 188 | </el-form-item> |
168 | </el-col> | 189 | </el-col> |
169 | <el-col :span="12"> | 190 | <el-col :span="12"> |
170 | <el-form-item label="国籍" prop="nationality"> | 191 | <el-form-item label="国籍" prop="nationality"> |
171 | - <el-input v-model="billperson.nationality"></el-input> | 192 | + <el-input v-model="billperson.nationality" placeholder="请输入"></el-input> |
172 | </el-form-item> | 193 | </el-form-item> |
173 | </el-col> | 194 | </el-col> |
174 | <el-col :span="12"> | 195 | <el-col :span="12"> |
175 | <el-form-item label="职务" prop="gareer"> | 196 | <el-form-item label="职务" prop="gareer"> |
176 | - <el-input v-model="billperson.gareer"></el-input> | 197 | + <el-input v-model="billperson.gareer" placeholder="请输入"></el-input> |
177 | </el-form-item> | 198 | </el-form-item> |
178 | </el-col> | 199 | </el-col> |
179 | <el-col :span="24"> | 200 | <el-col :span="24"> |
180 | <el-form-item label="备注" prop="meno"> | 201 | <el-form-item label="备注" prop="meno"> |
181 | - <el-input v-model="billperson.meno"></el-input> | 202 | + <el-input v-model="billperson.meno" placeholder="请输入"></el-input> |
182 | </el-form-item> | 203 | </el-form-item> |
183 | </el-col> | 204 | </el-col> |
184 | <el-col :span="24"> <el-button type="primary" @click="submitPerson('billperson')" style="float: right">提 交</el-button></el-col> | 205 | <el-col :span="24"> <el-button type="primary" @click="submitPerson('billperson')" style="float: right">提 交</el-button></el-col> |
@@ -203,49 +224,69 @@ | @@ -203,49 +224,69 @@ | ||
203 | </template> | 224 | </template> |
204 | </el-table-column> | 225 | </el-table-column> |
205 | <el-table-column | 226 | <el-table-column |
206 | - fixed | ||
207 | prop="name" | 227 | prop="name" |
208 | label="姓名" | 228 | label="姓名" |
209 | width="150"> | 229 | width="150"> |
210 | </el-table-column> | 230 | </el-table-column> |
211 | <el-table-column | 231 | <el-table-column |
212 | - fixed | ||
213 | prop="gender" | 232 | prop="gender" |
214 | label="性别" | 233 | label="性别" |
215 | width="150"> | 234 | width="150"> |
216 | </el-table-column> | 235 | </el-table-column> |
217 | <el-table-column | 236 | <el-table-column |
218 | - fixed | ||
219 | prop="nationality" | 237 | prop="nationality" |
220 | label="国籍" | 238 | label="国籍" |
221 | width="150"> | 239 | width="150"> |
222 | </el-table-column> | 240 | </el-table-column> |
223 | <el-table-column | 241 | <el-table-column |
224 | - fixed | ||
225 | prop="certType" | 242 | prop="certType" |
226 | label="证件类型" | 243 | label="证件类型" |
227 | width="150"> | 244 | width="150"> |
228 | </el-table-column> | 245 | </el-table-column> |
229 | <el-table-column | 246 | <el-table-column |
230 | - fixed | ||
231 | prop="ceterNo" | 247 | prop="ceterNo" |
232 | label="证件编辑" | 248 | label="证件编辑" |
233 | width="150"> | 249 | width="150"> |
234 | </el-table-column> | 250 | </el-table-column> |
235 | <el-table-column | 251 | <el-table-column |
236 | - fixed | ||
237 | prop="gareer" | 252 | prop="gareer" |
238 | label="职务" | 253 | label="职务" |
239 | width="150"> | 254 | width="150"> |
240 | </el-table-column> | 255 | </el-table-column> |
241 | <el-table-column | 256 | <el-table-column |
242 | - fixed | ||
243 | prop="meno" | 257 | prop="meno" |
244 | label="备注" | 258 | label="备注" |
245 | width="350"> | 259 | width="350"> |
246 | </el-table-column> | 260 | </el-table-column> |
247 | </el-table> | 261 | </el-table> |
248 | </el-row> | 262 | </el-row> |
263 | + <el-row> | ||
264 | + <div class="block"> | ||
265 | + <el-pagination | ||
266 | + @size-change="handleSizeChange" | ||
267 | + @current-change="handleCurrentChange" | ||
268 | + :current-page="currentPage" | ||
269 | + :page-sizes="[10, 20, 30, 40]" | ||
270 | + :page-size="pageSize" | ||
271 | + layout="total, sizes, prev, pager, next, jumper" | ||
272 | + :total="total"> | ||
273 | + </el-pagination> | ||
274 | + </div> | ||
275 | + </el-row> | ||
276 | + <!--对话提示框--> | ||
277 | + <el-row> | ||
278 | + <el-dialog | ||
279 | + title="系统提示" | ||
280 | + :visible.sync="centerDialogVisible" | ||
281 | + width="30%" | ||
282 | + center> | ||
283 | + <span>{{msg}}</span> | ||
284 | + <span slot="footer" class="dialog-footer"> | ||
285 | + <el-button @click="centerDialogVisible = false">取 消</el-button> | ||
286 | + <el-button type="primary" @click="centerDialogVisible = false">确 定</el-button> | ||
287 | + </span> | ||
288 | + </el-dialog> | ||
289 | + </el-row> | ||
249 | </el-main> | 290 | </el-main> |
250 | </el-container> | 291 | </el-container> |
251 | </template> | 292 | </template> |
@@ -268,6 +309,9 @@ background-color: white; | @@ -268,6 +309,9 @@ background-color: white; | ||
268 | .el-col{margin-right: 0px;} | 309 | .el-col{margin-right: 0px;} |
269 | </style> | 310 | </style> |
270 | <script> | 311 | <script> |
312 | + import {addBill} from '../../api/transport' | ||
313 | + const fecha = require('fecha'); | ||
314 | + import loginUserInfo from '../../api/base' | ||
271 | export default { | 315 | export default { |
272 | data(){ | 316 | data(){ |
273 | return{ | 317 | return{ |
@@ -290,10 +334,10 @@ background-color: white; | @@ -290,10 +334,10 @@ background-color: white; | ||
290 | localeBaggageNum:undefined, | 334 | localeBaggageNum:undefined, |
291 | goodsNum:undefined, | 335 | goodsNum:undefined, |
292 | goodsQuantity:undefined, | 336 | goodsQuantity:undefined, |
293 | - cargoBillNum:undefined, | ||
294 | - passengerPage:undefined, | ||
295 | - aircrewBillNum:undefined, | ||
296 | - aircrewCargoBillNum:undefined, | 337 | + cargoBillNum:3, |
338 | + passengerPage:3, | ||
339 | + aircrewBillNum:3, | ||
340 | + aircrewCargoBillNum:3, | ||
297 | arrivalPosition:undefined, | 341 | arrivalPosition:undefined, |
298 | bussinessType:undefined, | 342 | bussinessType:undefined, |
299 | messageid:undefined, | 343 | messageid:undefined, |
@@ -301,9 +345,9 @@ background-color: white; | @@ -301,9 +345,9 @@ background-color: white; | ||
301 | statusMsg:undefined, | 345 | statusMsg:undefined, |
302 | meno:undefined, | 346 | meno:undefined, |
303 | createTime:undefined, | 347 | createTime:undefined, |
304 | - createBy:undefined, | 348 | + createBy:loginUserInfo.username, |
305 | updateTime:undefined, | 349 | updateTime:undefined, |
306 | - updateBy:undefined, | 350 | + updateBy:loginUserInfo.username, |
307 | isDelete:undefined, | 351 | isDelete:undefined, |
308 | remark:undefined, | 352 | remark:undefined, |
309 | remark1:undefined, | 353 | remark1:undefined, |
@@ -312,14 +356,71 @@ background-color: white; | @@ -312,14 +356,71 @@ background-color: white; | ||
312 | }, | 356 | }, |
313 | rules: { | 357 | rules: { |
314 | aircraftNo: [ | 358 | aircraftNo: [ |
315 | - {required: true, message: '请输入', trigger: 'blur'} | 359 | + {required: true, message: '请输入编号', trigger: 'blur'} |
316 | ], | 360 | ], |
317 | flightNo: [ | 361 | flightNo: [ |
318 | - {required: true, message: '请输入', trigger: 'blur'} | 362 | + {required: true, message: '请输入航班号', trigger: 'blur'} |
319 | ], | 363 | ], |
320 | flightDate: [ | 364 | flightDate: [ |
365 | + {required: true, message: '请选择航班日期', trigger: 'blur'} | ||
366 | + ], | ||
367 | + accessFlag: [ | ||
368 | + {required: true, message: '请输入', trigger: 'blur'} | ||
369 | + ], | ||
370 | + aircrewSum: [ | ||
371 | + {required: true, message: '请输入', trigger: 'blur'} | ||
372 | + ], | ||
373 | + interPassengerSum: [ | ||
321 | {required: true, message: '请选择', trigger: 'blur'} | 374 | {required: true, message: '请选择', trigger: 'blur'} |
322 | ], | 375 | ], |
376 | + localePassengerSum: [ | ||
377 | + {required: true, message: '请输入', trigger: 'blur'} | ||
378 | + ], | ||
379 | + interBaggageNum: [ | ||
380 | + {required: true, message: '请输入', trigger: 'blur'} | ||
381 | + ], | ||
382 | + localeBaggageNum: [ | ||
383 | + {required: true, message: '请输入', trigger: 'blur'} | ||
384 | + ], | ||
385 | + goodsNum: [ | ||
386 | + {required: true, message: '请输入', trigger: 'blur'} | ||
387 | + ], | ||
388 | + goodsQuantity: [ | ||
389 | + {required: true, message: '请输入', trigger: 'blur'} | ||
390 | + ], | ||
391 | + arrivalAirport: [ | ||
392 | + {required: true, message: '请选择', trigger: 'blur'} | ||
393 | + ], | ||
394 | + arrivalno: [ | ||
395 | + {required: true, message: '请输入', trigger: 'blur'} | ||
396 | + ], | ||
397 | + arrivaldatetime: [ | ||
398 | + {required: true, message: '请选择', trigger: 'blur'} | ||
399 | + ], | ||
400 | + departureAirport: [ | ||
401 | + {required: true, message: '请输入', trigger: 'blur'} | ||
402 | + ], | ||
403 | + departureno: [ | ||
404 | + {required: true, message: '请输入', trigger: 'blur'} | ||
405 | + ], | ||
406 | + departuredatetime: [ | ||
407 | + {required: true, message: '请选择', trigger: 'blur'} | ||
408 | + ], | ||
409 | + cargoBillNum: [ | ||
410 | + {required: true, message: '请输入', trigger: 'blur'} | ||
411 | + ], | ||
412 | + passengerPage: [ | ||
413 | + {required: true, message: '请输入', trigger: 'blur'} | ||
414 | + ], | ||
415 | + aircrewBillNum: [ | ||
416 | + {required: true, message: '请输入', trigger: 'blur'} | ||
417 | + ], | ||
418 | + aircrewCargoBillNum: [ | ||
419 | + {required: true, message: '请输入', trigger: 'blur'} | ||
420 | + ], | ||
421 | + arrivalPosition: [ | ||
422 | + {required: true, message: '请输入', trigger: 'blur'} | ||
423 | + ], | ||
323 | }, | 424 | }, |
324 | dialogTableVisible:false, | 425 | dialogTableVisible:false, |
325 | billperson:{ | 426 | billperson:{ |
@@ -331,9 +432,9 @@ background-color: white; | @@ -331,9 +432,9 @@ background-color: white; | ||
331 | certType:undefined, | 432 | certType:undefined, |
332 | ceterNo:undefined, | 433 | ceterNo:undefined, |
333 | createTime:undefined, | 434 | createTime:undefined, |
334 | - createBy:undefined, | 435 | + createBy:loginUserInfo.username, |
335 | updateTime:undefined, | 436 | updateTime:undefined, |
336 | - updateBy:undefined, | 437 | + updateBy:loginUserInfo.username, |
337 | meno:undefined, | 438 | meno:undefined, |
338 | isDelete:undefined, | 439 | isDelete:undefined, |
339 | billsId:undefined | 440 | billsId:undefined |
@@ -358,36 +459,59 @@ background-color: white; | @@ -358,36 +459,59 @@ background-color: white; | ||
358 | {required: true, message: '请输入', trigger: 'blur'} | 459 | {required: true, message: '请输入', trigger: 'blur'} |
359 | ], | 460 | ], |
360 | }, | 461 | }, |
361 | - tableData:[] | 462 | + tableData:[{ |
463 | + arrivaldatetime: '161146', | ||
464 | + departuredatetime: '161146', | ||
465 | + flightDate: '20160502', | ||
466 | + }], | ||
467 | + centerDialogVisible:false, | ||
468 | + labelPosition:'left', | ||
469 | + currentPage: 1, | ||
470 | + pageSize:10, | ||
471 | + total:0, | ||
472 | + msg:undefined | ||
362 | } | 473 | } |
363 | }, | 474 | }, |
364 | methods:{ | 475 | methods:{ |
476 | + //新增单据方法(保存按钮) | ||
365 | submitForm(formName) { | 477 | submitForm(formName) { |
366 | this.$refs[formName].validate((valid) => { | 478 | this.$refs[formName].validate((valid) => { |
367 | if (valid) { | 479 | if (valid) { |
368 | - alert('submit!'); | 480 | + addBill(this.bill).then(res=>{ |
481 | + let response=res.data; | ||
482 | + if(response.code=='200'){ | ||
483 | + this.centerDialogVisible=true; | ||
484 | + this.msg=response.msg; | ||
485 | + this.$router.push({path:'/queryBill',query:{aircraftNo:JSON.stringify(this.bill.aircraftNo),flightNo:JSON.stringify(this.bill.flightNo), | ||
486 | + flightDate:JSON.stringify(this.bill.flightDate)}}); | ||
487 | + }else{ | ||
488 | + this.msg=response.msg; | ||
489 | + } | ||
490 | + }); | ||
369 | } else { | 491 | } else { |
370 | console.log('error submit!!'); | 492 | console.log('error submit!!'); |
371 | return false; | 493 | return false; |
372 | } | 494 | } |
373 | }); | 495 | }); |
374 | }, | 496 | }, |
375 | - submitPerson(formName){ | ||
376 | - this.$refs[formName].validate((valid) => { | ||
377 | - if (valid) { | ||
378 | - alert('submit!'); | ||
379 | - } else { | ||
380 | - console.log('error submit!!'); | ||
381 | - return false; | ||
382 | - } | ||
383 | - }); | 497 | + //加载默认值 |
498 | + defaultData(){ | ||
499 | + if(this.$route.query.uuid!=null){ | ||
500 | + let ob=Object.assign(this.bill, this.$route.query); | ||
501 | + this.bill.arrivaldatetime=fecha.parse(ob.arrivaldatetime,'HHmmss'); | ||
502 | + } | ||
384 | }, | 503 | }, |
504 | + // 分页 | ||
385 | handleSizeChange(val) { | 505 | handleSizeChange(val) { |
386 | - console.log(`每页 ${val} 条`); | 506 | + this.pageSize=val; |
387 | }, | 507 | }, |
388 | handleCurrentChange(val) { | 508 | handleCurrentChange(val) { |
389 | - console.log(`当前页: ${val}`); | 509 | + this.currentPage=val; |
510 | + this.submitForm(); | ||
390 | } | 511 | } |
512 | + }, | ||
513 | + mounted(){ | ||
514 | + this.defaultData(); | ||
391 | } | 515 | } |
392 | } | 516 | } |
393 | </script> | 517 | </script> |
1 | +<template> | ||
2 | + <el-container> | ||
3 | + <el-main> | ||
4 | + <el-row class="row-bg"> | ||
5 | + <el-col :span="24"> | ||
6 | + <div class="grid-content content">进港航班配置</div> | ||
7 | + </el-col> | ||
8 | + </el-row> | ||
9 | + <el-row> | ||
10 | + <el-form :model="configure" :rules="rules" ref="configure" label-width="100%" class="demo-ruleForm"> | ||
11 | + <el-col :span="8"> | ||
12 | + <el-form-item label="航班号" prop="flightNo" label-width="120px"> | ||
13 | + <el-input v-model="configure.flightNo"></el-input> | ||
14 | + </el-form-item> | ||
15 | + </el-col> | ||
16 | + <el-col :span="8"> | ||
17 | + <el-form-item label="进出标识" prop="ietype" label-width="120px"> | ||
18 | + <el-select v-model="configure.ietype" placeholder="" style="display:inline"> | ||
19 | + <el-option v-for="item in linesTypes" :key="item.value" :label="item.label" | ||
20 | + :value="item.value"></el-option> | ||
21 | + </el-select> | ||
22 | + </el-form-item> | ||
23 | + </el-col> | ||
24 | + <el-col :span="24"> | ||
25 | + <el-form-item label="备注" prop="reamrk" label-width="120px"> | ||
26 | + <el-input v-model="configure.reamrk"></el-input> | ||
27 | + </el-form-item> | ||
28 | + </el-col> | ||
29 | + </el-form> | ||
30 | + </el-row> | ||
31 | + <el-row style="margin-left: 120px"> | ||
32 | + <el-col :span="24"> <el-button type="primary" @click="submitForm('confirmatory')">保 存</el-button> | ||
33 | + </el-col> | ||
34 | + </el-row> | ||
35 | + </el-main> | ||
36 | + </el-container> | ||
37 | +</template> | ||
38 | +<style scoped> | ||
39 | + .grid-content { | ||
40 | + height: 36px; | ||
41 | + line-height: 36px; | ||
42 | + } | ||
43 | + .el-dialog__body{text-align: center} | ||
44 | + .content { | ||
45 | + border-left: 4px #409EFF solid; | ||
46 | + padding-left: 10px; | ||
47 | + background-color: #f9fafc; | ||
48 | + margin-bottom: 2px | ||
49 | + } | ||
50 | + | ||
51 | + .row-bg{ | ||
52 | + background-color: white; | ||
53 | + } | ||
54 | + .el-col{margin-right: 0px;} | ||
55 | +</style> | ||
56 | +<script> | ||
57 | + export default { | ||
58 | + data(){ | ||
59 | + return{ | ||
60 | + configure:{ | ||
61 | + flightNo:undefined, | ||
62 | + ietype:undefined, | ||
63 | + reamrk:undefined, | ||
64 | + }, | ||
65 | + rules: { | ||
66 | + flightNo: [ | ||
67 | + {required: true, message: '请输入', trigger: 'blur'} | ||
68 | + ], | ||
69 | + ietype: [ | ||
70 | + {required: true, message: '请输入', trigger: 'change'} | ||
71 | + ], | ||
72 | + }, | ||
73 | + linesTypes:[ | ||
74 | + {value:'',label:'请选择'}, | ||
75 | + {value:'1',label:'进港'}, | ||
76 | + {value:'2',label:'出港'} | ||
77 | + ], | ||
78 | + tableData:[] | ||
79 | + } | ||
80 | + }, | ||
81 | + methods:{ | ||
82 | + submitForm(formName) { | ||
83 | + this.$refs[formName].validate((valid) => { | ||
84 | + if (valid) { | ||
85 | + alert('submit!'); | ||
86 | + } else { | ||
87 | + console.log('error submit!!'); | ||
88 | + return false; | ||
89 | + } | ||
90 | + }); | ||
91 | + }, | ||
92 | + submitPerson(formName){ | ||
93 | + this.$refs[formName].validate((valid) => { | ||
94 | + if (valid) { | ||
95 | + alert('submit!'); | ||
96 | + } else { | ||
97 | + console.log('error submit!!'); | ||
98 | + return false; | ||
99 | + } | ||
100 | + }); | ||
101 | + }, | ||
102 | + | ||
103 | + } | ||
104 | + } | ||
105 | +</script> |
1 | +<template> | ||
2 | + <el-container> | ||
3 | + <el-main> | ||
4 | + <el-row class="row-bg"> | ||
5 | + <el-col :span="24"> | ||
6 | + <div class="grid-content content">进港确报申报</div> | ||
7 | + </el-col> | ||
8 | + </el-row> | ||
9 | + <el-row> | ||
10 | + <el-form :model="confirmatory" :rules="rules" ref="confirmatory" label-width="100%" class="demo-ruleForm"> | ||
11 | + <el-col :span="8"> | ||
12 | + <el-form-item label="航空器注册编号" prop="aircraftNo" label-width="120px"> | ||
13 | + <el-input v-model="confirmatory.aircraftNo"></el-input> | ||
14 | + </el-form-item> | ||
15 | + </el-col> | ||
16 | + <el-col :span="8"> | ||
17 | + <el-form-item label="进港航班号" prop="flightNo" label-width="120px"> | ||
18 | + <el-input v-model="confirmatory.flightNo"></el-input> | ||
19 | + </el-form-item> | ||
20 | + </el-col> | ||
21 | + <el-col :span="8"> | ||
22 | + <el-form-item label="航班日期" prop="flightDate" label-width="120px"> | ||
23 | + <el-date-picker | ||
24 | + v-model="confirmatory.flightDate" | ||
25 | + type="date" | ||
26 | + style="width:275px" | ||
27 | + placeholder="选择日期"> | ||
28 | + </el-date-picker> | ||
29 | + </el-form-item> | ||
30 | + </el-col> | ||
31 | + <el-col :span="8"> | ||
32 | + <el-form-item label="离港时间" prop="departuredatetime" label-width="120px"> | ||
33 | + <el-input v-model="confirmatory.departuredatetime"></el-input> | ||
34 | + </el-form-item> | ||
35 | + </el-col> | ||
36 | + <el-col :span="8"> | ||
37 | + <el-form-item label="目的港" prop="arrivalPort" label-width="120px"> | ||
38 | + <el-input v-model="confirmatory.arrivalPort"></el-input> | ||
39 | + </el-form-item> | ||
40 | + </el-col> | ||
41 | + <el-col :span="8"> | ||
42 | + <el-form-item label="关区代码" prop="customDistrictNo" label-width="120px"> | ||
43 | + <el-input v-model="confirmatory.customDistrictNo"></el-input> | ||
44 | + </el-form-item> | ||
45 | + </el-col> | ||
46 | + <el-col :span="8"> | ||
47 | + <el-form-item label="抵港时间" prop="arrivaldatetime" label-width="120px"> | ||
48 | + <el-input v-model="confirmatory.arrivaldatetime"></el-input> | ||
49 | + </el-form-item> | ||
50 | + </el-col> | ||
51 | + <el-col :span="8"> | ||
52 | + <el-form-item label="停靠机坪" prop="stayid" label-width="120px"> | ||
53 | + <el-input v-model="confirmatory.stayid"></el-input> | ||
54 | + </el-form-item> | ||
55 | + </el-col> | ||
56 | + <el-col :span="24"> | ||
57 | + <el-form-item label="备注" prop="meno" label-width="120px"> | ||
58 | + <el-input v-model="confirmatory.meno"></el-input> | ||
59 | + </el-form-item> | ||
60 | + </el-col> | ||
61 | + </el-form> | ||
62 | + </el-row> | ||
63 | + <el-row style="margin-left: 120px"> | ||
64 | + <el-col :span="24"> <el-button type="primary" @click="submitForm('confirmatory')">保 存</el-button> | ||
65 | + <el-button type="success">保存并发送</el-button></el-col> | ||
66 | + </el-row> | ||
67 | + </el-main> | ||
68 | + </el-container> | ||
69 | +</template> | ||
70 | +<style scoped> | ||
71 | + .grid-content { | ||
72 | + height: 36px; | ||
73 | + line-height: 36px; | ||
74 | + } | ||
75 | + .el-dialog__body{text-align: center} | ||
76 | + .content { | ||
77 | + border-left: 4px #409EFF solid; | ||
78 | + padding-left: 10px; | ||
79 | + background-color: #f9fafc; | ||
80 | + margin-bottom: 2px | ||
81 | + } | ||
82 | + | ||
83 | + .row-bg{ | ||
84 | + background-color: white; | ||
85 | + } | ||
86 | + .el-col{margin-right: 0px;} | ||
87 | +</style> | ||
88 | +<script> | ||
89 | + export default { | ||
90 | + data(){ | ||
91 | + return{ | ||
92 | + confirmatory:{ | ||
93 | + aircraftNo:undefined, | ||
94 | + flightNo:undefined, | ||
95 | + flightDate:undefined, | ||
96 | + departuredatetime:undefined, | ||
97 | + arrivalPort:undefined, | ||
98 | + customDistrictNo:undefined, | ||
99 | + arrivaldatetime:undefined, | ||
100 | + stayid:undefined, | ||
101 | + meno:undefined, | ||
102 | + accessFlag:'0' | ||
103 | + }, | ||
104 | + rules: { | ||
105 | + aircraftNo: [ | ||
106 | + {required: true, message: '请输入', trigger: 'blur'} | ||
107 | + ], | ||
108 | + flightNo: [ | ||
109 | + {required: true, message: '请输入', trigger: 'blur'} | ||
110 | + ], | ||
111 | + flightDate: [ | ||
112 | + {required: true, message: '请选择', trigger: 'change'} | ||
113 | + ], | ||
114 | + departuredatetime: [ | ||
115 | + {required: true, message: '请输入', trigger: 'blur'} | ||
116 | + ], | ||
117 | + arrivalPort: [ | ||
118 | + {required: true, message: '请输入(三字码)', trigger: 'blur'}, | ||
119 | + {min: 3, max: 3, message: '长度在 3 个字符', trigger: 'blur'} | ||
120 | + ], | ||
121 | + customDistrictNo: [ | ||
122 | + {required: true, message: '请输入', trigger: 'blur'} | ||
123 | + ], | ||
124 | + arrivaldatetime: [ | ||
125 | + {required: true, message: '请选择', trigger: 'blur'} | ||
126 | + ], | ||
127 | + stayid: [ | ||
128 | + {required: true, message: '请选择', trigger: 'blur'} | ||
129 | + ], | ||
130 | + }, | ||
131 | + tableData:[] | ||
132 | + } | ||
133 | + }, | ||
134 | + methods:{ | ||
135 | + submitForm(formName) { | ||
136 | + this.$refs[formName].validate((valid) => { | ||
137 | + if (valid) { | ||
138 | + alert('submit!'); | ||
139 | + } else { | ||
140 | + console.log('error submit!!'); | ||
141 | + return false; | ||
142 | + } | ||
143 | + }); | ||
144 | + }, | ||
145 | + submitPerson(formName){ | ||
146 | + this.$refs[formName].validate((valid) => { | ||
147 | + if (valid) { | ||
148 | + alert('submit!'); | ||
149 | + } else { | ||
150 | + console.log('error submit!!'); | ||
151 | + return false; | ||
152 | + } | ||
153 | + }); | ||
154 | + }, | ||
155 | + | ||
156 | + } | ||
157 | + } | ||
158 | +</script> |
1 | +<template> | ||
2 | + <el-container> | ||
3 | + <el-main> | ||
4 | + <el-row class="row-bg"> | ||
5 | + <el-col :span="24"> | ||
6 | + <div class="grid-content content">出港确报申报</div> | ||
7 | + </el-col> | ||
8 | + </el-row> | ||
9 | + <el-row> | ||
10 | + <el-form :model="declare" :rules="rules" ref="declare" label-width="100%" class="demo-ruleForm"> | ||
11 | + <el-col :span="8"> | ||
12 | + <el-form-item label="航空器注册编号" prop="aircraftNo" label-width="120px"> | ||
13 | + <el-input v-model="declare.aircraftNo"></el-input> | ||
14 | + </el-form-item> | ||
15 | + </el-col> | ||
16 | + <el-col :span="8"> | ||
17 | + <el-form-item label="出港航班号" prop="flightNo" label-width="120px"> | ||
18 | + <el-input v-model="declare.flightNo"></el-input> | ||
19 | + </el-form-item> | ||
20 | + </el-col> | ||
21 | + <el-col :span="8"> | ||
22 | + <el-form-item label="航班日期" prop="flightDate" label-width="120px"> | ||
23 | + <el-date-picker | ||
24 | + v-model="declare.flightDate" | ||
25 | + type="date" | ||
26 | + style="width:275px" | ||
27 | + placeholder="选择日期"> | ||
28 | + </el-date-picker> | ||
29 | + </el-form-item> | ||
30 | + </el-col> | ||
31 | + <el-col :span="8"> | ||
32 | + <el-form-item label="离港时间" prop="departuredatetime" label-width="120px"> | ||
33 | + <el-input v-model="declare.departuredatetime"></el-input> | ||
34 | + </el-form-item> | ||
35 | + </el-col> | ||
36 | + <el-col :span="8"> | ||
37 | + <el-form-item label="出发港" prop="departurePort" label-width="120px"> | ||
38 | + <el-input v-model="declare.departurePort"></el-input> | ||
39 | + </el-form-item> | ||
40 | + </el-col> | ||
41 | + <el-col :span="8"> | ||
42 | + <el-form-item label="关区代码" prop="customDistrictNo" label-width="120px"> | ||
43 | + <el-input v-model="declare.customDistrictNo"></el-input> | ||
44 | + </el-form-item> | ||
45 | + </el-col> | ||
46 | + <el-col :span="24"> | ||
47 | + <el-form-item label="备注" prop="meno" label-width="120px"> | ||
48 | + <el-input v-model="declare.meno"></el-input> | ||
49 | + </el-form-item> | ||
50 | + </el-col> | ||
51 | + </el-form> | ||
52 | + </el-row> | ||
53 | + <el-row style="margin-left: 120px"> | ||
54 | + <el-col :span="24"> <el-button type="primary" @click="submitForm('declare')">保 存</el-button> | ||
55 | + <el-button type="success">保存并发送</el-button></el-col> | ||
56 | + </el-row> | ||
57 | + </el-main> | ||
58 | + </el-container> | ||
59 | +</template> | ||
60 | +<style scoped> | ||
61 | + .grid-content { | ||
62 | + height: 36px; | ||
63 | + line-height: 36px; | ||
64 | + } | ||
65 | + .el-dialog__body{text-align: center} | ||
66 | + .content { | ||
67 | + border-left: 4px #409EFF solid; | ||
68 | + padding-left: 10px; | ||
69 | + background-color: #f9fafc; | ||
70 | + margin-bottom: 2px | ||
71 | + } | ||
72 | + | ||
73 | + .row-bg{ | ||
74 | + background-color: white; | ||
75 | + } | ||
76 | + .el-col{margin-right: 0px;} | ||
77 | +</style> | ||
78 | +<script> | ||
79 | + export default { | ||
80 | + data(){ | ||
81 | + return{ | ||
82 | + declare:{ | ||
83 | + aircraftNo:undefined, | ||
84 | + flightNo:undefined, | ||
85 | + flightDate:undefined, | ||
86 | + departurePort:undefined, | ||
87 | + departuredatetime:undefined, | ||
88 | + customDistrictNo:undefined, | ||
89 | + meno:undefined, | ||
90 | + accessFlag:'1' | ||
91 | + }, | ||
92 | + rules: { | ||
93 | + aircraftNo: [ | ||
94 | + {required: true, message: '请输入', trigger: 'blur'} | ||
95 | + ], | ||
96 | + flightNo: [ | ||
97 | + {required: true, message: '请输入', trigger: 'blur'} | ||
98 | + ], | ||
99 | + flightDate: [ | ||
100 | + {required: true, message: '请选择', trigger: 'change'} | ||
101 | + ], | ||
102 | + departuredatetime: [ | ||
103 | + {required: true, message: '请输入', trigger: 'blur'} | ||
104 | + ], | ||
105 | + departurePort: [ | ||
106 | + {required: true, message: '请输入(三字码)', trigger: 'blur'}, | ||
107 | + {min: 3, max: 3, message: '长度在 3 个字符', trigger: 'blur'} | ||
108 | + ], | ||
109 | + customDistrictNo: [ | ||
110 | + {required: true, message: '请输入', trigger: 'blur'} | ||
111 | + ], | ||
112 | + | ||
113 | + }, | ||
114 | + tableData:[] | ||
115 | + } | ||
116 | + }, | ||
117 | + methods:{ | ||
118 | + submitForm(formName) { | ||
119 | + this.$refs[formName].validate((valid) => { | ||
120 | + if (valid) { | ||
121 | + alert('submit!'); | ||
122 | + } else { | ||
123 | + console.log('error submit!!'); | ||
124 | + return false; | ||
125 | + } | ||
126 | + }); | ||
127 | + }, | ||
128 | + submitPerson(formName){ | ||
129 | + this.$refs[formName].validate((valid) => { | ||
130 | + if (valid) { | ||
131 | + alert('submit!'); | ||
132 | + } else { | ||
133 | + console.log('error submit!!'); | ||
134 | + return false; | ||
135 | + } | ||
136 | + }); | ||
137 | + }, | ||
138 | + | ||
139 | + } | ||
140 | + } | ||
141 | +</script> |
1 | +<template> | ||
2 | + <el-container> | ||
3 | + <el-main> | ||
4 | + <el-row class="row-bg"> | ||
5 | + <el-col :span="24"> | ||
6 | + <div class="grid-content content">出港预报申报</div> | ||
7 | + </el-col> | ||
8 | + </el-row> | ||
9 | + <el-row> | ||
10 | + <el-form :model="departure" :rules="rules" ref="departure" label-width="100%" class="demo-ruleForm"> | ||
11 | + <el-col :span="8"> | ||
12 | + <el-form-item label="航空器注册编码" prop="aircraftNo" label-width="120px"> | ||
13 | + <el-input v-model="departure.aircraftNo"></el-input> | ||
14 | + </el-form-item> | ||
15 | + </el-col> | ||
16 | + <el-col :span="8"> | ||
17 | + <el-form-item label="航班号" prop="flightNo" label-width="120px"> | ||
18 | + <el-input v-model="departure.flightNo"></el-input> | ||
19 | + </el-form-item> | ||
20 | + </el-col> | ||
21 | + <el-col :span="8"> | ||
22 | + <el-form-item label="航班日期" prop="flightDate" label-width="120px"> | ||
23 | + <el-date-picker | ||
24 | + v-model="departure.flightDate" | ||
25 | + type="date" | ||
26 | + style="width:275px" | ||
27 | + placeholder="选择日期"> | ||
28 | + </el-date-picker> | ||
29 | + </el-form-item> | ||
30 | + </el-col> | ||
31 | + <el-col :span="8"> | ||
32 | + <el-form-item label="出发港" prop="departurePort" label-width="120px"> | ||
33 | + <el-input v-model="departure.departurePort"></el-input> | ||
34 | + </el-form-item> | ||
35 | + </el-col> | ||
36 | + <el-col :span="8"> | ||
37 | + <el-form-item label="目的港" prop="arrivalPort" label-width="120px"> | ||
38 | + <el-input v-model="departure.arrivalPort"></el-input> | ||
39 | + </el-form-item> | ||
40 | + </el-col> | ||
41 | + <el-col :span="8"> | ||
42 | + <el-form-item label="关区代码" prop="customDistrictNo" label-width="120px"> | ||
43 | + <el-input v-model="departure.customDistrictNo"></el-input> | ||
44 | + </el-form-item> | ||
45 | + </el-col> | ||
46 | + <el-col :span="8"> | ||
47 | + <el-form-item label="预计离港时间" prop="departuredatetime" label-width="120px"> | ||
48 | + <el-input v-model="departure.departuredatetime"></el-input> | ||
49 | + </el-form-item> | ||
50 | + </el-col> | ||
51 | + <el-col :span="8"> | ||
52 | + <el-form-item label="停靠机坪" prop="stayid" label-width="120px"> | ||
53 | + <el-input v-model="departure.stayid"></el-input> | ||
54 | + </el-form-item> | ||
55 | + </el-col> | ||
56 | + <el-col :span="24"> | ||
57 | + <el-form-item label="备注" prop="meno" label-width="120px"> | ||
58 | + <el-input v-model="departure.meno"></el-input> | ||
59 | + </el-form-item> | ||
60 | + </el-col> | ||
61 | + </el-form> | ||
62 | + </el-row> | ||
63 | + <el-row style="margin-left: 120px"> | ||
64 | + <el-col :span="24"> <el-button type="primary" @click="submitForm('departure')">保 存</el-button> | ||
65 | + <el-button type="success">保存并发送</el-button></el-col> | ||
66 | + </el-row> | ||
67 | + </el-main> | ||
68 | + </el-container> | ||
69 | +</template> | ||
70 | +<style scoped> | ||
71 | + .grid-content { | ||
72 | + height: 36px; | ||
73 | + line-height: 36px; | ||
74 | + } | ||
75 | + .el-dialog__body{text-align: center} | ||
76 | + .content { | ||
77 | + border-left: 4px #409EFF solid; | ||
78 | + padding-left: 10px; | ||
79 | + background-color: #f9fafc; | ||
80 | + margin-bottom: 2px | ||
81 | + } | ||
82 | + | ||
83 | + .row-bg{ | ||
84 | + background-color: white; | ||
85 | + } | ||
86 | + .el-col{margin-right: 0px;} | ||
87 | +</style> | ||
88 | +<script> | ||
89 | + export default { | ||
90 | + data(){ | ||
91 | + return{ | ||
92 | + departure:{ | ||
93 | + aircraftNo:undefined, | ||
94 | + flightNo:undefined, | ||
95 | + flightDate:undefined, | ||
96 | + departurePort:undefined, | ||
97 | + arrivalPort:undefined, | ||
98 | + customDistrictNo:undefined, | ||
99 | + stayid:undefined, | ||
100 | + departuredatetime:undefined, | ||
101 | + meno:undefined, | ||
102 | + accessFlag:'1' | ||
103 | + }, | ||
104 | + rules: { | ||
105 | + aircraftNo: [ | ||
106 | + {required: true, message: '请输入', trigger: 'blur'} | ||
107 | + ], | ||
108 | + flightNo: [ | ||
109 | + {required: true, message: '请输入', trigger: 'blur'} | ||
110 | + ], | ||
111 | + flightDate: [ | ||
112 | + {type: 'date',required: true, message: '请选择', trigger: 'change'} | ||
113 | + ], | ||
114 | + departurePort: [ | ||
115 | + {required: true, message: '请输入(三字码)', trigger: 'blur'}, | ||
116 | + {min: 3, max: 3, message: '长度在 3 个字符', trigger: 'blur'} | ||
117 | + ], | ||
118 | + arrivalPort: [ | ||
119 | + {required: true, message: '请输入(三字码)', trigger: 'blur'}, | ||
120 | + {min: 3, max: 3, message: '长度在 3 个字符', trigger: 'blur'} | ||
121 | + ], | ||
122 | + customDistrictNo: [ | ||
123 | + {required: true, message: '请选择', trigger: 'blur'} | ||
124 | + ], | ||
125 | + departuredatetime: [ | ||
126 | + {required: true, message: '请选择', trigger: 'blur'} | ||
127 | + ], | ||
128 | + stayid: [ | ||
129 | + {required: true, message: '请输入', trigger: 'blur'} | ||
130 | + ], | ||
131 | + }, | ||
132 | + tableData:[] | ||
133 | + } | ||
134 | + }, | ||
135 | + methods:{ | ||
136 | + submitForm(formName) { | ||
137 | + this.$refs[formName].validate((valid) => { | ||
138 | + if (valid) { | ||
139 | + alert('submit!'); | ||
140 | + } else { | ||
141 | + console.log('error submit!!'); | ||
142 | + return false; | ||
143 | + } | ||
144 | + }); | ||
145 | + }, | ||
146 | + submitPerson(formName){ | ||
147 | + this.$refs[formName].validate((valid) => { | ||
148 | + if (valid) { | ||
149 | + alert('submit!'); | ||
150 | + } else { | ||
151 | + console.log('error submit!!'); | ||
152 | + return false; | ||
153 | + } | ||
154 | + }); | ||
155 | + }, | ||
156 | + | ||
157 | + } | ||
158 | + } | ||
159 | +</script> |
@@ -19,12 +19,12 @@ | @@ -19,12 +19,12 @@ | ||
19 | </el-form-item> | 19 | </el-form-item> |
20 | </el-col> | 20 | </el-col> |
21 | <el-col :span="6"> | 21 | <el-col :span="6"> |
22 | - <el-form-item label="航空公司中文名称" prop="airwayNameCn" label-width="130px"> | 22 | + <el-form-item label="航空公司中文名称" prop="airwayNameCn" label-width="140px"> |
23 | <el-input v-model="flight.airwayNameCn"></el-input> | 23 | <el-input v-model="flight.airwayNameCn"></el-input> |
24 | </el-form-item> | 24 | </el-form-item> |
25 | </el-col> | 25 | </el-col> |
26 | <el-col :span="6"> | 26 | <el-col :span="6"> |
27 | - <el-form-item label="航空公司英文名称" prop="airwayNameEn" label-width="130px"> | 27 | + <el-form-item label="航空公司英文名称" prop="airwayNameEn" label-width="140px"> |
28 | <el-input v-model="flight.airwayNameEn"></el-input> | 28 | <el-input v-model="flight.airwayNameEn"></el-input> |
29 | </el-form-item> | 29 | </el-form-item> |
30 | </el-col> | 30 | </el-col> |
@@ -67,27 +67,31 @@ | @@ -67,27 +67,31 @@ | ||
67 | </el-form-item> | 67 | </el-form-item> |
68 | </el-col> | 68 | </el-col> |
69 | <el-col :span="24" style="margin-bottom: 20px"> | 69 | <el-col :span="24" style="margin-bottom: 20px"> |
70 | - <div class="grid-content content">航线信息<el-button type="primary" size="mini" @click="dialogTableVisible = true" style="margin-left:50px">航线信息查询</el-button></div> | 70 | + <div class="grid-content content">航线信息<el-button type="primary" size="mini" @click="selectAirline()" style="margin-left:50px">航线信息查询</el-button></div> |
71 | </el-col> | 71 | </el-col> |
72 | 72 | ||
73 | <el-col :span="6"> | 73 | <el-col :span="6"> |
74 | <el-form-item label="出发港" prop="departurePort" label-width="120px"> | 74 | <el-form-item label="出发港" prop="departurePort" label-width="120px"> |
75 | - <el-input v-model="flight.departurePort"></el-input> | 75 | + <el-input v-model="flight.departurePort" @input="e => flight.departurePort=inputMe(e)" |
76 | + maxLength='3' ></el-input> | ||
76 | </el-form-item> | 77 | </el-form-item> |
77 | </el-col> | 78 | </el-col> |
78 | <el-col :span="6"> | 79 | <el-col :span="6"> |
79 | <el-form-item label="出发港关区代码" prop="departureCustomNo" label-width="120px"> | 80 | <el-form-item label="出发港关区代码" prop="departureCustomNo" label-width="120px"> |
80 | - <el-input v-model="flight.departureCustomNo"></el-input> | 81 | + <el-input v-model="flight.departureCustomNo" oninput="value=value.replace(/[^\d]/g,'')" |
82 | + maxLength='4'></el-input> | ||
81 | </el-form-item> | 83 | </el-form-item> |
82 | </el-col> | 84 | </el-col> |
83 | <el-col :span="6"> | 85 | <el-col :span="6"> |
84 | <el-form-item label="目的港" prop="arrivalPort" label-width="120px"> | 86 | <el-form-item label="目的港" prop="arrivalPort" label-width="120px"> |
85 | - <el-input v-model="flight.arrivalPort"></el-input> | 87 | + <el-input v-model="flight.arrivalPort" @input="e => flight.arrivalPort=inputMe(e)" |
88 | + maxLength='3'></el-input> | ||
86 | </el-form-item> | 89 | </el-form-item> |
87 | </el-col> | 90 | </el-col> |
88 | <el-col :span="6"> | 91 | <el-col :span="6"> |
89 | <el-form-item label="目的港关区代码" prop="arrivalCustomNo" label-width="120px"> | 92 | <el-form-item label="目的港关区代码" prop="arrivalCustomNo" label-width="120px"> |
90 | - <el-input v-model="flight.arrivalCustomNo"></el-input> | 93 | + <el-input v-model="flight.arrivalCustomNo" oninput="value=value.replace(/[^\d]/g,'')" |
94 | + maxLength='4'></el-input> | ||
91 | </el-form-item> | 95 | </el-form-item> |
92 | </el-col> | 96 | </el-col> |
93 | <el-col :span="6"> | 97 | <el-col :span="6"> |
@@ -102,6 +106,7 @@ | @@ -102,6 +106,7 @@ | ||
102 | :picker-options="{ | 106 | :picker-options="{ |
103 | selectableRange: '00:00:00 - 23:59:59' | 107 | selectableRange: '00:00:00 - 23:59:59' |
104 | }" | 108 | }" |
109 | + format="HHmmss" | ||
105 | style="width:100%" | 110 | style="width:100%" |
106 | placeholder="任意时间点"> | 111 | placeholder="任意时间点"> |
107 | </el-time-picker> | 112 | </el-time-picker> |
@@ -114,6 +119,7 @@ | @@ -114,6 +119,7 @@ | ||
114 | :picker-options="{ | 119 | :picker-options="{ |
115 | selectableRange: '00:00:00 - 23:59:59' | 120 | selectableRange: '00:00:00 - 23:59:59' |
116 | }" | 121 | }" |
122 | + format="HHmmss" | ||
117 | style="width:100%" | 123 | style="width:100%" |
118 | placeholder="任意时间点"> | 124 | placeholder="任意时间点"> |
119 | </el-time-picker> | 125 | </el-time-picker> |
@@ -126,6 +132,8 @@ | @@ -126,6 +132,8 @@ | ||
126 | <el-date-picker | 132 | <el-date-picker |
127 | v-model="flight.effStartdate" | 133 | v-model="flight.effStartdate" |
128 | type="date" | 134 | type="date" |
135 | + value-format="yyyyMMdd" | ||
136 | + format="yyyyMMdd" | ||
129 | style="width:100%" | 137 | style="width:100%" |
130 | placeholder="选择日期"> | 138 | placeholder="选择日期"> |
131 | </el-date-picker> | 139 | </el-date-picker> |
@@ -136,6 +144,8 @@ | @@ -136,6 +144,8 @@ | ||
136 | <el-date-picker | 144 | <el-date-picker |
137 | v-model="flight.effEnddate" | 145 | v-model="flight.effEnddate" |
138 | type="date" | 146 | type="date" |
147 | + value-format="yyyyMMdd" | ||
148 | + format="yyyyMMdd" | ||
139 | style="width:100%" | 149 | style="width:100%" |
140 | placeholder="选择日期"> | 150 | placeholder="选择日期"> |
141 | </el-date-picker> | 151 | </el-date-picker> |
@@ -156,6 +166,7 @@ | @@ -156,6 +166,7 @@ | ||
156 | <el-dialog title="航线信息" :visible.sync="dialogTableVisible" width="90%"> | 166 | <el-dialog title="航线信息" :visible.sync="dialogTableVisible" width="90%"> |
157 | <el-table | 167 | <el-table |
158 | :data="tableData" | 168 | :data="tableData" |
169 | + v-loading="tableloading" | ||
159 | border | 170 | border |
160 | style="width: 100%;margin-bottom: 10px"> | 171 | style="width: 100%;margin-bottom: 10px"> |
161 | <el-table-column | 172 | <el-table-column |
@@ -170,74 +181,65 @@ | @@ -170,74 +181,65 @@ | ||
170 | </template> | 181 | </template> |
171 | </el-table-column> | 182 | </el-table-column> |
172 | <el-table-column | 183 | <el-table-column |
173 | - fixed | ||
174 | prop="serialNo" | 184 | prop="serialNo" |
175 | - label="航线序号" | ||
176 | - width="80"> | 185 | + label="航线序号"> |
177 | </el-table-column> | 186 | </el-table-column> |
178 | <el-table-column | 187 | <el-table-column |
179 | - fixed | ||
180 | prop="departurePort" | 188 | prop="departurePort" |
181 | - label="出发港" | ||
182 | - width="80"> | 189 | + label="出发港"> |
183 | </el-table-column> | 190 | </el-table-column> |
184 | <el-table-column | 191 | <el-table-column |
185 | - fixed | ||
186 | prop="departureCustomNo" | 192 | prop="departureCustomNo" |
187 | - label="出发港关区代码" | ||
188 | - width="150"> | 193 | + label="出发港关区代码"> |
189 | </el-table-column> | 194 | </el-table-column> |
190 | <el-table-column | 195 | <el-table-column |
191 | - fixed | ||
192 | prop="arrivalPort" | 196 | prop="arrivalPort" |
193 | - label="目的港" | ||
194 | - width="80"> | 197 | + label="目的港"> |
195 | </el-table-column> | 198 | </el-table-column> |
196 | <el-table-column | 199 | <el-table-column |
197 | - fixed | ||
198 | prop="arrivalCustomNo" | 200 | prop="arrivalCustomNo" |
199 | - label="目的港关区代码" | ||
200 | - width="150"> | 201 | + label="目的港关区代码"> |
201 | </el-table-column> | 202 | </el-table-column> |
202 | <el-table-column | 203 | <el-table-column |
203 | - fixed | ||
204 | prop="std" | 204 | prop="std" |
205 | - label="长期离港时间" | ||
206 | - width="150"> | 205 | + label="长期离港时间"> |
207 | </el-table-column> | 206 | </el-table-column> |
208 | <el-table-column | 207 | <el-table-column |
209 | - fixed | ||
210 | prop="sta" | 208 | prop="sta" |
211 | - label="长期抵港时间" | ||
212 | - width="150"> | 209 | + label="长期抵港时间"> |
213 | </el-table-column> | 210 | </el-table-column> |
214 | <el-table-column | 211 | <el-table-column |
215 | - fixed | ||
216 | prop="effStartdate" | 212 | prop="effStartdate" |
217 | - label="有效期起始时间" | ||
218 | - width="150"> | 213 | + label="有效期起始时间"> |
219 | </el-table-column> | 214 | </el-table-column> |
220 | <el-table-column | 215 | <el-table-column |
221 | - fixed | ||
222 | prop="effEnddate" | 216 | prop="effEnddate" |
223 | - label="有效期结束时间" | ||
224 | - width="150"> | 217 | + label="有效期结束时间"> |
225 | </el-table-column> | 218 | </el-table-column> |
226 | <el-table-column | 219 | <el-table-column |
227 | - fixed | ||
228 | prop="plan" | 220 | prop="plan" |
229 | - label="每周执行情况" | ||
230 | - width="150"> | 221 | + label="每周执行情况"> |
231 | </el-table-column> | 222 | </el-table-column> |
232 | <el-table-column | 223 | <el-table-column |
233 | - fixed | ||
234 | prop="remark" | 224 | prop="remark" |
235 | - label="备注" | ||
236 | - width="150"> | 225 | + label="备注"> |
237 | </el-table-column> | 226 | </el-table-column> |
238 | </el-table> | 227 | </el-table> |
239 | </el-dialog> | 228 | </el-dialog> |
240 | </el-row> | 229 | </el-row> |
230 | + <el-row> | ||
231 | + <el-dialog | ||
232 | + title="系统提示" | ||
233 | + :visible.sync="centerDialogVisible" | ||
234 | + width="30%" | ||
235 | + center> | ||
236 | + <span>{{msg}}</span> | ||
237 | + <span slot="footer" class="dialog-footer"> | ||
238 | + <el-button @click="centerDialogVisible = false">取 消</el-button> | ||
239 | + <el-button type="primary" @click="centerDialogVisible = false">确 定</el-button> | ||
240 | + </span> | ||
241 | + </el-dialog> | ||
242 | + </el-row> | ||
241 | </el-main> | 243 | </el-main> |
242 | </el-container> | 244 | </el-container> |
243 | </template> | 245 | </template> |
@@ -260,6 +262,9 @@ | @@ -260,6 +262,9 @@ | ||
260 | .el-col{margin-right: 0px;} | 262 | .el-col{margin-right: 0px;} |
261 | </style> | 263 | </style> |
262 | <script> | 264 | <script> |
265 | + import {addFlight, selectRoute} from "../../api/transport"; | ||
266 | + const fecha = require('fecha'); | ||
267 | + import loginUserInfo from '../../api/base'; | ||
263 | export default { | 268 | export default { |
264 | data(){ | 269 | data(){ |
265 | return{ | 270 | return{ |
@@ -272,7 +277,7 @@ | @@ -272,7 +277,7 @@ | ||
272 | groundAgentCode:undefined, | 277 | groundAgentCode:undefined, |
273 | flightNo:undefined, | 278 | flightNo:undefined, |
274 | shareFlightNo:undefined, | 279 | shareFlightNo:undefined, |
275 | - linesType:'2', | 280 | + linesType:'', |
276 | flightType:'', | 281 | flightType:'', |
277 | cancelFlag:undefined, | 282 | cancelFlag:undefined, |
278 | departurePort:undefined, | 283 | departurePort:undefined, |
@@ -295,7 +300,68 @@ | @@ -295,7 +300,68 @@ | ||
295 | statusMsg:undefined, | 300 | statusMsg:undefined, |
296 | messageid:undefined | 301 | messageid:undefined |
297 | }, | 302 | }, |
298 | - rules:{}, | 303 | + rules: { |
304 | + flightNo: [ | ||
305 | + {required: true, message: '请输入航班号', trigger: 'blur'} | ||
306 | + ], | ||
307 | + airwayCode: [ | ||
308 | + {required: true, message: '请输入', trigger: 'blur'} | ||
309 | + ], | ||
310 | + airwayNameEn: [ | ||
311 | + {required: true, message: '请输入', trigger: 'blur'} | ||
312 | + ], | ||
313 | + airwayNameCn: [ | ||
314 | + {required: true, message: '请输入', trigger: 'blur'} | ||
315 | + ], | ||
316 | + transportAgentCode: [ | ||
317 | + {required: true, message: '请输入', trigger: 'blur'} | ||
318 | + ], | ||
319 | + groundAgentCode: [ | ||
320 | + {required: true, message: '请输入', trigger: 'blur'} | ||
321 | + ], | ||
322 | + linesType: [ | ||
323 | + {required: true, message: '请输入', trigger: 'blur'} | ||
324 | + ], | ||
325 | + flightType: [ | ||
326 | + {required: true, message: '请输入', trigger: 'blur'} | ||
327 | + ], | ||
328 | + shareFlightNo: [ | ||
329 | + {required: true, message: '请输入', trigger: 'blur'} | ||
330 | + ], | ||
331 | + departurePort: [ | ||
332 | + //{ min: 3, max: 3, message: '长度在3个字符', trigger: 'blur'}, | ||
333 | + {required: true, message: '请输入(三字码)', trigger: 'blur'}, | ||
334 | + ], | ||
335 | + departureCustomNo: [ | ||
336 | + {required: true, message: '请输入四位(数字)关区代码', trigger: 'blur'} | ||
337 | + ], | ||
338 | + arrivalPort: [ | ||
339 | + {required: true, message: '请输入(三字码)', trigger: 'blur'}, | ||
340 | + ], | ||
341 | + arrivalCustomNo: [ | ||
342 | + {required: true, message: '请输入四位(数字)关区代码', trigger: 'blur'} | ||
343 | + ], | ||
344 | + plan: [ | ||
345 | + {required: true, message: '请输入', trigger: 'blur'}, | ||
346 | + ], | ||
347 | + std: [ | ||
348 | + {required: true, message: '请选择时间', trigger: 'blur'} | ||
349 | + ], | ||
350 | + sta: [ | ||
351 | + {required: true, message: '请选择时间', trigger: 'blur'}, | ||
352 | + ], | ||
353 | + effStartdate: [ | ||
354 | + {required: true, message: '请选择时间', trigger: 'blur'} | ||
355 | + ], | ||
356 | + effEnddate:[ | ||
357 | + {required: true, message: '请选择时间', trigger: 'blur'} | ||
358 | + ] | ||
359 | + | ||
360 | + }, | ||
361 | + airLine:{ | ||
362 | + createBy:loginUserInfo.username, | ||
363 | + serialno:'' | ||
364 | + }, | ||
299 | flightTypes:[ | 365 | flightTypes:[ |
300 | {value:'',label:'请选择'}, | 366 | {value:'',label:'请选择'}, |
301 | {value:'1',label:'来自关境外'}, | 367 | {value:'1',label:'来自关境外'}, |
@@ -316,8 +382,89 @@ | @@ -316,8 +382,89 @@ | ||
316 | {value:'8',label:'货包机'} | 382 | {value:'8',label:'货包机'} |
317 | ], | 383 | ], |
318 | dialogTableVisible:false, | 384 | dialogTableVisible:false, |
319 | - tableData:[] | 385 | + centerDialogVisible:false, |
386 | + currentPage4:4, | ||
387 | + msg:undefined, | ||
388 | + tableData: [], | ||
389 | + tableloading:true, | ||
390 | + } | ||
391 | + }, | ||
392 | + methods:{ | ||
393 | + //航线信息查询 | ||
394 | + selectAirline(){ | ||
395 | + let params={currentPage:this.currentPage,pageSize:this.pageSize,createBy:this.airLine.createBy}; | ||
396 | + this.dialogTableVisible=true; | ||
397 | + this.tableloading=true; | ||
398 | + selectRoute(params).then(res=>{ | ||
399 | + let response=res.data.data; | ||
400 | + this.tableData=response.list; | ||
401 | + this.tableloading=false; | ||
402 | + this.total=response.total; | ||
403 | + }); | ||
404 | + }, | ||
405 | + //新增航班方法(保存按钮) | ||
406 | + submitForm(formName) { | ||
407 | + this.$refs[formName].validate((valid) => { | ||
408 | + if (valid) { | ||
409 | + addFlight(this.flight).then(res=>{ | ||
410 | + let response=res.data; | ||
411 | + if(response.code=='200'){ | ||
412 | + this.centerDialogVisible=true; | ||
413 | + this.msg=response.msg; | ||
414 | + this.$router.push({path:'/queryFlights',query:{flightNo:this.flight.flightNo,aircraftNo:this.flight.aircraftNo}}); | ||
415 | + this.centerDialogVisible=false; | ||
416 | + }else{ | ||
417 | + this.centerDialogVisible=true; | ||
418 | + this.msg=response.msg; | ||
419 | + } | ||
420 | + }); | ||
421 | + } else { | ||
422 | + console.log('error submit!!'); | ||
423 | + return false; | ||
424 | + } | ||
425 | + }); | ||
426 | + }, | ||
427 | + //分页方法 | ||
428 | + handleSizeChange(val) { | ||
429 | + console.log(`每页 ${val} 条`); | ||
430 | + }, | ||
431 | + handleCurrentChange(val) { | ||
432 | + console.log(`当前页: ${val}`); | ||
433 | + }, | ||
434 | + //航线信息查询选择功能 | ||
435 | + handleEdit(index,row){ | ||
436 | + this.flight.std=fecha.parse(row.std,'HHmmss'); | ||
437 | + this.flight.sta=fecha.parse(row.sta,'HHmmss'); | ||
438 | + this.flight.effStartdate=row.effStartdate; | ||
439 | + this.flight.effEnddate=row.effEnddate; | ||
440 | + this.flight.departurePort=row.departurePort; | ||
441 | + this.flight.arrivalPort=row.arrivalPort; | ||
442 | + this.flight.departureCustomNo=row.departureCustomNo; | ||
443 | + this.flight.arrivalCustomNo=row.arrivalCustomNo; | ||
444 | + this.flight.plan=row.plan; | ||
445 | + this.dialogTableVisible=false; | ||
446 | + }, | ||
447 | + //加载默认值 | ||
448 | + defaultData(){ | ||
449 | + if(this.$route.query.uuid!=null){ | ||
450 | + let ob=Object.assign(this.flight,this.$route.query); | ||
451 | + if(ob.std!=null && ob.std!=undefined && ob.std!=""){ | ||
452 | + this.flight.std=fecha.parse(ob.std,'HHmmss'); | ||
453 | + } | ||
454 | + if(ob.sta!=null && ob.sta!=undefined &&ob.sta!=""){ | ||
455 | + this.flight.sta=fecha.parse(ob.sta,'HHmmss'); | ||
456 | + } | ||
457 | + } | ||
458 | + | ||
459 | + }, | ||
460 | + // 过滤中英文 | ||
461 | + inputMe(e){ | ||
462 | + return e.replace(/[^a-zA-Z]/g,'').toUpperCase(); | ||
320 | } | 463 | } |
321 | }, | 464 | }, |
465 | + //渲染方法 | ||
466 | + mounted(){ | ||
467 | + this.defaultData(); | ||
468 | + } | ||
322 | } | 469 | } |
323 | </script> | 470 | </script> |
@@ -18,6 +18,8 @@ | @@ -18,6 +18,8 @@ | ||
18 | <el-date-picker | 18 | <el-date-picker |
19 | v-model="flight.flightDate" | 19 | v-model="flight.flightDate" |
20 | type="date" | 20 | type="date" |
21 | + value-format="yyyyMMdd" | ||
22 | + format="yyyyMMdd" | ||
21 | style="width:100%" | 23 | style="width:100%" |
22 | placeholder="选择日期"> | 24 | placeholder="选择日期"> |
23 | </el-date-picker> | 25 | </el-date-picker> |
@@ -25,22 +27,26 @@ | @@ -25,22 +27,26 @@ | ||
25 | </el-col> | 27 | </el-col> |
26 | <el-col :span="12"> | 28 | <el-col :span="12"> |
27 | <el-form-item label="出发港" prop="departurePort" label-width="120px"> | 29 | <el-form-item label="出发港" prop="departurePort" label-width="120px"> |
28 | - <el-input v-model="flight.departurePort"></el-input> | 30 | + <el-input v-model="flight.departurePort" @input="e => flight.departurePort=inputMe(e)" |
31 | + maxLength='3'></el-input> | ||
29 | </el-form-item> | 32 | </el-form-item> |
30 | </el-col> | 33 | </el-col> |
31 | <el-col :span="12"> | 34 | <el-col :span="12"> |
32 | <el-form-item label="出发港关区代码" prop="departureCustomNo" label-width="120px"> | 35 | <el-form-item label="出发港关区代码" prop="departureCustomNo" label-width="120px"> |
33 | - <el-input v-model="flight.departureCustomNo"></el-input> | 36 | + <el-input v-model="flight.departureCustomNo" oninput="value=value.replace(/[^\d]/g,'')" |
37 | + maxLength='4'></el-input> | ||
34 | </el-form-item> | 38 | </el-form-item> |
35 | </el-col> | 39 | </el-col> |
36 | <el-col :span="12"> | 40 | <el-col :span="12"> |
37 | <el-form-item label="目的港" prop="arrivalPort" label-width="120px"> | 41 | <el-form-item label="目的港" prop="arrivalPort" label-width="120px"> |
38 | - <el-input v-model="flight.arrivalPort"></el-input> | 42 | + <el-input v-model="flight.arrivalPort" @input="e => flight.departurePort=inputMe(e)" |
43 | + maxLength='3'></el-input> | ||
39 | </el-form-item> | 44 | </el-form-item> |
40 | </el-col> | 45 | </el-col> |
41 | <el-col :span="12"> | 46 | <el-col :span="12"> |
42 | <el-form-item label="目的港关区代码" prop="arrivalCustomNo" label-width="120px"> | 47 | <el-form-item label="目的港关区代码" prop="arrivalCustomNo" label-width="120px"> |
43 | - <el-input v-model="flight.arrivalCustomNo"></el-input> | 48 | + <el-input v-model="flight.arrivalCustomNo" oninput="value=value.replace(/[^\d]/g,'')" |
49 | + maxLength='4'></el-input> | ||
44 | </el-form-item> | 50 | </el-form-item> |
45 | </el-col> | 51 | </el-col> |
46 | <el-col :span="12"> | 52 | <el-col :span="12"> |
@@ -48,8 +54,10 @@ | @@ -48,8 +54,10 @@ | ||
48 | <el-date-picker | 54 | <el-date-picker |
49 | v-model="flight.currentTakeoffTime" | 55 | v-model="flight.currentTakeoffTime" |
50 | type="date" | 56 | type="date" |
57 | + format="yyyyMMddHHmm" | ||
58 | + value-format="yyyyMMddHHmm" | ||
51 | style="width:100%" | 59 | style="width:100%" |
52 | - placeholder="选择日期"> | 60 | + placeholder="任意时间点"> |
53 | </el-date-picker> | 61 | </el-date-picker> |
54 | </el-form-item> | 62 | </el-form-item> |
55 | </el-col> | 63 | </el-col> |
@@ -58,8 +66,10 @@ | @@ -58,8 +66,10 @@ | ||
58 | <el-date-picker | 66 | <el-date-picker |
59 | v-model="flight.currentLandingTime" | 67 | v-model="flight.currentLandingTime" |
60 | type="date" | 68 | type="date" |
69 | + format="yyyyMMddHHmm" | ||
70 | + value-format="yyyyMMddHHmm" | ||
61 | style="width:100%" | 71 | style="width:100%" |
62 | - placeholder="选择日期"> | 72 | + placeholder="任意时间点"> |
63 | </el-date-picker> | 73 | </el-date-picker> |
64 | </el-form-item> | 74 | </el-form-item> |
65 | </el-col> | 75 | </el-col> |
@@ -80,7 +90,35 @@ | @@ -80,7 +90,35 @@ | ||
80 | </el-row> | 90 | </el-row> |
81 | <el-row style="margin-left: 120px"> | 91 | <el-row style="margin-left: 120px"> |
82 | <el-col :span="24"> <el-button type="primary" @click="submitForm('flight')">保 存</el-button> | 92 | <el-col :span="24"> <el-button type="primary" @click="submitForm('flight')">保 存</el-button> |
83 | - <el-button type="success">保存并发送</el-button></el-col> | 93 | + <el-button type="success">保存并发送</el-button></el-col> |
94 | + </el-row> | ||
95 | + <!--对话提示框--> | ||
96 | + <el-row> | ||
97 | + <el-dialog | ||
98 | + title="系统提示" | ||
99 | + :visible.sync="centerDialogVisible" | ||
100 | + width="30%" | ||
101 | + center> | ||
102 | + <span>{{msg}}</span> | ||
103 | + <span slot="footer" class="dialog-footer"> | ||
104 | + <el-button @click="centerDialogVisible = false">取 消</el-button> | ||
105 | + <el-button type="primary" @click="centerDialogVisible = false">确 定</el-button> | ||
106 | + </span> | ||
107 | + </el-dialog> | ||
108 | + </el-row> | ||
109 | + <!--对话提示框--> | ||
110 | + <el-row> | ||
111 | + <el-dialog | ||
112 | + title="系统提示" | ||
113 | + :visible.sync="centerDialogVisible" | ||
114 | + width="30%" | ||
115 | + center> | ||
116 | + <span>{{msg}}</span> | ||
117 | + <span slot="footer" class="dialog-footer"> | ||
118 | + <el-button @click="centerDialogVisible = false">取 消</el-button> | ||
119 | + <el-button type="primary" @click="centerDialogVisible = false">确 定</el-button> | ||
120 | + </span> | ||
121 | + </el-dialog> | ||
84 | </el-row> | 122 | </el-row> |
85 | </el-main> | 123 | </el-main> |
86 | </el-container> | 124 | </el-container> |
@@ -104,6 +142,8 @@ | @@ -104,6 +142,8 @@ | ||
104 | .el-col{margin-right: 0px;} | 142 | .el-col{margin-right: 0px;} |
105 | </style> | 143 | </style> |
106 | <script> | 144 | <script> |
145 | + const fecha = require('fecha'); | ||
146 | + import {addFlightPlan} from "../../api/transport"; | ||
107 | export default { | 147 | export default { |
108 | data(){ | 148 | data(){ |
109 | return{ | 149 | return{ |
@@ -120,15 +160,82 @@ | @@ -120,15 +160,82 @@ | ||
120 | meno:undefined | 160 | meno:undefined |
121 | }, | 161 | }, |
122 | rules:{ | 162 | rules:{ |
123 | - | 163 | + flightNo: [ |
164 | + {required: true, message: '请输入航班号', trigger: 'blur'} | ||
165 | + ], | ||
166 | + flightDate: [ | ||
167 | + {required: true, message: '请选择航班日期', trigger: 'blur'} | ||
168 | + ], | ||
169 | + departurePort: [ | ||
170 | + //{ min: 3, max: 3, message: '长度在3个字符', trigger: 'blur'}, | ||
171 | + {required: true, message: '请输入(三字码)', trigger: 'blur'}, | ||
172 | + ], | ||
173 | + departureCustomNo: [ | ||
174 | + {required: true, message: '请输入四位(数字)关区代码', trigger: 'blur'} | ||
175 | + ], | ||
176 | + arrivalPort: [ | ||
177 | + {required: true, message: '请输入(三字码)', trigger: 'blur'}, | ||
178 | + ], | ||
179 | + arrivalCustomNo: [ | ||
180 | + {required: true, message: '请输入四位(数字)关区代码', trigger: 'blur'} | ||
181 | + ], | ||
182 | + currentTakeoffTime: [ | ||
183 | + {required: true, message: '请选择日期', trigger: 'blur'} | ||
184 | + ], | ||
185 | + currentLandingTime: [ | ||
186 | + {required: true, message: '请选择日期', trigger: 'blur'} | ||
187 | + ], | ||
188 | + linesType: [ | ||
189 | + {required: true, message: '请选择', trigger: 'blur'} | ||
190 | + ], | ||
124 | }, | 191 | }, |
125 | linesTypes:[ | 192 | linesTypes:[ |
126 | {value:'',label:'请选择'}, | 193 | {value:'',label:'请选择'}, |
127 | {value:'1',label:'客运'}, | 194 | {value:'1',label:'客运'}, |
128 | {value:'2',label:'货运'} | 195 | {value:'2',label:'货运'} |
129 | ], | 196 | ], |
197 | + centerDialogVisible:false, | ||
198 | + msg:undefined | ||
130 | } | 199 | } |
131 | }, | 200 | }, |
132 | - methods(){} | 201 | + methods:{ |
202 | + //新增当日飞行计划(保存按钮) | ||
203 | + submitForm(formName) { | ||
204 | + this.$refs[formName].validate((valid) => { | ||
205 | + if (valid) { | ||
206 | + addFlightPlan(this.flight).then(res=>{ | ||
207 | + let response=res.data; | ||
208 | + if(response.code=='200'){ | ||
209 | + this.centerDialogVisible=true; | ||
210 | + this.msg=response.msg; | ||
211 | + this.$router.push({path:'/queryFlightplan',query:{flightNo:JSON.stringify(this.flight.flightNo)}}); | ||
212 | + }else{ | ||
213 | + this.msg=response.msg; | ||
214 | + } | ||
215 | + }); | ||
216 | + } else { | ||
217 | + console.log('error submit!!'); | ||
218 | + return false; | ||
219 | + } | ||
220 | + }); | ||
221 | + }, | ||
222 | + //加载默认值 | ||
223 | + defaultData(){ | ||
224 | + if(this.$route.query!=null){ | ||
225 | + let ob=Object.assign(this.flight, this.$route.query); | ||
226 | + /*有时分秒时用fecha | ||
227 | + this.flight.flightDate=ob.flightDate; | ||
228 | + this.flight.currentLandingTime=fecha.parse(ob.currentLandingTime,'yyyyMMddHHmm'); | ||
229 | + this.flight.currentTakeoffTime=fecha.parse(ob.currentTakeoffTime,'yyyyMMddHHmm');*/ | ||
230 | + } | ||
231 | + }, | ||
232 | + }, | ||
233 | + // 过滤中英文 | ||
234 | + inputMe(e){ | ||
235 | + return e.replace(/[^a-zA-Z]/g,'').toUpperCase(); | ||
236 | + }, | ||
237 | + mounted(){ | ||
238 | + this.defaultData(); | ||
239 | + } | ||
133 | } | 240 | } |
134 | </script> | 241 | </script> |
1 | +<template> | ||
2 | + <el-container> | ||
3 | + <el-main> | ||
4 | + <el-row class="row-bg"> | ||
5 | + <el-col :span="24"> | ||
6 | + <div class="grid-content content">出港航班配置</div> | ||
7 | + </el-col> | ||
8 | + </el-row> | ||
9 | + <el-row> | ||
10 | + <el-form :model="outConfigure" :rules="rules" ref="outConfigure" label-width="100%" class="demo-ruleForm"> | ||
11 | + <el-col :span="8"> | ||
12 | + <el-form-item label="航班号" prop="flightNo" label-width="120px"> | ||
13 | + <el-input v-model="outConfigure.flightNo"></el-input> | ||
14 | + </el-form-item> | ||
15 | + </el-col> | ||
16 | + <el-col :span="8"> | ||
17 | + <el-form-item label="进出标识" prop="ietype" label-width="120px"> | ||
18 | + <el-select v-model="outConfigure.ietype" placeholder="" style="display:inline"> | ||
19 | + <el-option v-for="item in linesTypes" :key="item.value" :label="item.label" | ||
20 | + :value="item.value"></el-option> | ||
21 | + </el-select> | ||
22 | + </el-form-item> | ||
23 | + </el-col> | ||
24 | + <el-col :span="24"> | ||
25 | + <el-form-item label="备注" prop="reamrk" label-width="120px"> | ||
26 | + <el-input v-model="outConfigure.reamrk"></el-input> | ||
27 | + </el-form-item> | ||
28 | + </el-col> | ||
29 | + </el-form> | ||
30 | + </el-row> | ||
31 | + <el-row style="margin-left: 120px"> | ||
32 | + <el-col :span="24"> <el-button type="primary" @click="submitForm('outConfigure')">保 存</el-button> | ||
33 | + </el-col> | ||
34 | + </el-row> | ||
35 | + </el-main> | ||
36 | + </el-container> | ||
37 | +</template> | ||
38 | +<style scoped> | ||
39 | + .grid-content { | ||
40 | + height: 36px; | ||
41 | + line-height: 36px; | ||
42 | + } | ||
43 | + .el-dialog__body{text-align: center} | ||
44 | + .content { | ||
45 | + border-left: 4px #409EFF solid; | ||
46 | + padding-left: 10px; | ||
47 | + background-color: #f9fafc; | ||
48 | + margin-bottom: 2px | ||
49 | + } | ||
50 | + | ||
51 | + .row-bg{ | ||
52 | + background-color: white; | ||
53 | + } | ||
54 | + .el-col{margin-right: 0px;} | ||
55 | +</style> | ||
56 | +<script> | ||
57 | + export default { | ||
58 | + data(){ | ||
59 | + return{ | ||
60 | + outConfigure:{ | ||
61 | + flightNo:undefined, | ||
62 | + ietype:undefined, | ||
63 | + reamrk:undefined, | ||
64 | + }, | ||
65 | + rules: { | ||
66 | + flightNo: [ | ||
67 | + {required: true, message: '请输入', trigger: 'blur'} | ||
68 | + ], | ||
69 | + ietype: [ | ||
70 | + {required: true, message: '请输入', trigger: 'change'} | ||
71 | + ], | ||
72 | + }, | ||
73 | + linesTypes:[ | ||
74 | + {value:'',label:'请选择'}, | ||
75 | + {value:'1',label:'进港'}, | ||
76 | + {value:'2',label:'出港'} | ||
77 | + ], | ||
78 | + tableData:[] | ||
79 | + } | ||
80 | + }, | ||
81 | + methods:{ | ||
82 | + submitForm(formName) { | ||
83 | + this.$refs[formName].validate((valid) => { | ||
84 | + if (valid) { | ||
85 | + alert('submit!'); | ||
86 | + } else { | ||
87 | + console.log('error submit!!'); | ||
88 | + return false; | ||
89 | + } | ||
90 | + }); | ||
91 | + }, | ||
92 | + submitPerson(formName){ | ||
93 | + this.$refs[formName].validate((valid) => { | ||
94 | + if (valid) { | ||
95 | + alert('submit!'); | ||
96 | + } else { | ||
97 | + console.log('error submit!!'); | ||
98 | + return false; | ||
99 | + } | ||
100 | + }); | ||
101 | + }, | ||
102 | + | ||
103 | + } | ||
104 | + } | ||
105 | +</script> |
@@ -30,6 +30,7 @@ | @@ -30,6 +30,7 @@ | ||
30 | <el-table | 30 | <el-table |
31 | :data="tableData" | 31 | :data="tableData" |
32 | border | 32 | border |
33 | + v-loading="tableloading" | ||
33 | style="width: 100%;margin-bottom: 10px"> | 34 | style="width: 100%;margin-bottom: 10px"> |
34 | <el-table-column | 35 | <el-table-column |
35 | fixed="left" | 36 | fixed="left" |
@@ -43,67 +44,56 @@ | @@ -43,67 +44,56 @@ | ||
43 | </template> | 44 | </template> |
44 | </el-table-column> | 45 | </el-table-column> |
45 | <el-table-column | 46 | <el-table-column |
46 | - fixed | ||
47 | - prop=ownerCo" | 47 | + prop=airwayCode" |
48 | label="航空器所有人代码" | 48 | label="航空器所有人代码" |
49 | width="120"> | 49 | width="120"> |
50 | </el-table-column> | 50 | </el-table-column> |
51 | <el-table-column | 51 | <el-table-column |
52 | - fixed | ||
53 | prop="airwayNameEn" | 52 | prop="airwayNameEn" |
54 | label="所有人英文名称" | 53 | label="所有人英文名称" |
55 | width="120"> | 54 | width="120"> |
56 | </el-table-column> | 55 | </el-table-column> |
57 | <el-table-column | 56 | <el-table-column |
58 | - fixed | ||
59 | prop="airwayNameCn" | 57 | prop="airwayNameCn" |
60 | label="所有人中文名称" | 58 | label="所有人中文名称" |
61 | width="150"> | 59 | width="150"> |
62 | </el-table-column> | 60 | </el-table-column> |
63 | <el-table-column | 61 | <el-table-column |
64 | - fixed | ||
65 | prop="aircraftNo" | 62 | prop="aircraftNo" |
66 | label="航空器注册编号" | 63 | label="航空器注册编号" |
67 | width="120"> | 64 | width="120"> |
68 | </el-table-column> | 65 | </el-table-column> |
69 | <el-table-column | 66 | <el-table-column |
70 | - fixed | ||
71 | prop="certNo" | 67 | prop="certNo" |
72 | label="国际证书编号" | 68 | label="国际证书编号" |
73 | width="120"> | 69 | width="120"> |
74 | </el-table-column> | 70 | </el-table-column> |
75 | <el-table-column | 71 | <el-table-column |
76 | - fixed | ||
77 | - prop="owner" | 72 | + prop="ownerCo" |
78 | label="航空器所有人" | 73 | label="航空器所有人" |
79 | width="120"> | 74 | width="120"> |
80 | </el-table-column> | 75 | </el-table-column> |
81 | <el-table-column | 76 | <el-table-column |
82 | - fixed | ||
83 | prop="areoNationality" | 77 | prop="areoNationality" |
84 | label="国籍" | 78 | label="国籍" |
85 | width="80"> | 79 | width="80"> |
86 | </el-table-column> | 80 | </el-table-column> |
87 | <el-table-column | 81 | <el-table-column |
88 | - fixed | ||
89 | prop="areoModel" | 82 | prop="areoModel" |
90 | label="机型" | 83 | label="机型" |
91 | width="80"> | 84 | width="80"> |
92 | </el-table-column> | 85 | </el-table-column> |
93 | <el-table-column | 86 | <el-table-column |
94 | - fixed | ||
95 | prop="deliverDate" | 87 | prop="deliverDate" |
96 | label="交付日期" | 88 | label="交付日期" |
97 | width="120"> | 89 | width="120"> |
98 | </el-table-column> | 90 | </el-table-column> |
99 | <el-table-column | 91 | <el-table-column |
100 | - fixed | ||
101 | prop="statusMsg" | 92 | prop="statusMsg" |
102 | label="海关回执" | 93 | label="海关回执" |
103 | width="120"> | 94 | width="120"> |
104 | </el-table-column> | 95 | </el-table-column> |
105 | <el-table-column | 96 | <el-table-column |
106 | - fixed | ||
107 | prop="" | 97 | prop="" |
108 | label="报文操作" | 98 | label="报文操作" |
109 | width="150"> | 99 | width="150"> |
@@ -128,10 +118,10 @@ | @@ -128,10 +118,10 @@ | ||
128 | @size-change="handleSizeChange" | 118 | @size-change="handleSizeChange" |
129 | @current-change="handleCurrentChange" | 119 | @current-change="handleCurrentChange" |
130 | :current-page="currentPage" | 120 | :current-page="currentPage" |
131 | - :page-sizes="[100, 200, 300, 400]" | ||
132 | - :page-size="100" | 121 | + :page-sizes="[10, 20, 30, 40]" |
122 | + :page-size="pageSize" | ||
133 | layout="total, sizes, prev, pager, next, jumper" | 123 | layout="total, sizes, prev, pager, next, jumper" |
134 | - :total="400"> | 124 | + :total="total"> |
135 | </el-pagination> | 125 | </el-pagination> |
136 | </div> | 126 | </div> |
137 | </el-row> | 127 | </el-row> |
@@ -157,27 +147,90 @@ | @@ -157,27 +147,90 @@ | ||
157 | 147 | ||
158 | </style> | 148 | </style> |
159 | <script> | 149 | <script> |
150 | + import {selectAircraft, editAircraft} from "../../api/transport"; | ||
151 | + | ||
160 | export default { | 152 | export default { |
161 | data(){ | 153 | data(){ |
162 | return{ | 154 | return{ |
163 | queryAircraft:{ | 155 | queryAircraft:{ |
164 | - flightNo:undefined, | 156 | + airwayCode:undefined, |
165 | aircraftNo:undefined, | 157 | aircraftNo:undefined, |
166 | - flightDate:undefined, | ||
167 | - accessFlag:undefined, | ||
168 | }, | 158 | }, |
169 | rules:{}, | 159 | rules:{}, |
170 | labelPosition:'left', | 160 | labelPosition:'left', |
171 | - currentPage: 4, | ||
172 | - tableData:[] | 161 | + currentPage: 1, |
162 | + pageSize:10, | ||
163 | + total:0, | ||
164 | + tableData:[], | ||
165 | + tableloading:false | ||
166 | + | ||
173 | } | 167 | } |
174 | }, | 168 | }, |
175 | methods: { | 169 | methods: { |
170 | + //分页 | ||
176 | handleSizeChange(val) { | 171 | handleSizeChange(val) { |
177 | - console.log(`每页 ${val} 条`); | 172 | + this.pageSize=val; |
178 | }, | 173 | }, |
179 | handleCurrentChange(val) { | 174 | handleCurrentChange(val) { |
180 | - console.log(`当前页: ${val}`); | 175 | + this.currentPage=val; |
176 | + this.submitForm(); | ||
177 | + }, | ||
178 | + //获取通用航空器列表 | ||
179 | + submitForm() { | ||
180 | + let params = { | ||
181 | + currentPage: this.currentPage, pageSize: this.pageSize, airwayCode: this.queryAircraft.airwayCode, | ||
182 | + aircraftNo: this.queryAircraft.aircraftNo | ||
183 | + }; | ||
184 | + this.tableloading = true; | ||
185 | + selectAircraft(params).then(res => { | ||
186 | + let response = res.data.data; | ||
187 | + this.tableData = response.list; | ||
188 | + this.tableloading = false; | ||
189 | + this.total = response.total; | ||
190 | + }); | ||
191 | + }, | ||
192 | + //列表删除功能 | ||
193 | + handleDel(index, row) { | ||
194 | + this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', { | ||
195 | + confirmButtonText: '确定', | ||
196 | + cancelButtonText: '取消', | ||
197 | + type: 'warning' | ||
198 | + }).then(() => { | ||
199 | + editAircraft(row).then(res => { | ||
200 | + let response = res.data; | ||
201 | + if (response.code == '200') { | ||
202 | + this.$message({ | ||
203 | + type: 'info', | ||
204 | + message: '删除成功' | ||
205 | + }); | ||
206 | + this.submitForm(); | ||
207 | + } else { | ||
208 | + this.$message({ | ||
209 | + type: 'info', | ||
210 | + message: '删除失败' | ||
211 | + }); | ||
212 | + } | ||
213 | + }); | ||
214 | + }).catch(() => { | ||
215 | + this.$message({ | ||
216 | + type: 'info', | ||
217 | + message: '已取消删除' | ||
218 | + }); | ||
219 | + }); | ||
220 | + }, | ||
221 | + //获取默认值 | ||
222 | + defaultData() { | ||
223 | + this.airwayCode = JSON.parse(this.$route.query.airwayCode); | ||
224 | + this.aircraftNo = JSON.parse(this.$route.query.aircraftNo); | ||
225 | + }, | ||
226 | + //编辑通用航空器 | ||
227 | + handleEdit(index,row){ | ||
228 | + this.$router.push({path:'/aircraft',query: row}) | ||
229 | + }, | ||
230 | + //渲染方法 | ||
231 | + mounted(){ | ||
232 | + this.defaultData(); | ||
233 | + this.submitForm(); | ||
181 | } | 234 | } |
182 | }, | 235 | }, |
183 | } | 236 | } |
1 | +<template> | ||
2 | + <el-container> | ||
3 | + <el-main> | ||
4 | + <el-row class="row-bg"> | ||
5 | + <el-col :span="24"> | ||
6 | + <div class="grid-content content">航班查询</div> | ||
7 | + </el-col> | ||
8 | + </el-row> | ||
9 | + <!-- 搜索区域--> | ||
10 | + <el-row> | ||
11 | + <el-form :label-position="labelPosition" :model="queryArrival" :rules="rules" ref="queryFlight" | ||
12 | + label-width="130px" class="demo-ruleForm"> | ||
13 | + <el-col :span="6" > | ||
14 | + <el-form-item label="承运人:" prop="awcd" label-width="80px"> | ||
15 | + <el-input v-model="queryArrival.awcd" style="width:190px"></el-input> | ||
16 | + </el-form-item> | ||
17 | + </el-col> | ||
18 | + <el-col :span="6" > | ||
19 | + <el-form-item label="航班号:" prop="flightNo" label-width="80px"> | ||
20 | + <el-input v-model="queryArrival.flightNo" style="width:190px"></el-input> | ||
21 | + </el-form-item> | ||
22 | + </el-col> | ||
23 | + <el-col :span="6" > | ||
24 | + <el-form-item label="航班日期:" prop="flightDate" label-width="90px"> | ||
25 | + <el-date-picker | ||
26 | + v-model="queryArrival.flightDate" | ||
27 | + type="date" | ||
28 | + style="width:190px" | ||
29 | + placeholder="选择日期"> | ||
30 | + </el-date-picker> | ||
31 | + </el-form-item> | ||
32 | + </el-col> | ||
33 | + <el-col :span="5" > | ||
34 | + <el-button type="primary" @click="submitForm('queryArrival')">查询</el-button> | ||
35 | + </el-col> | ||
36 | + </el-form> | ||
37 | + </el-row> | ||
38 | + <!-- 表单区域--> | ||
39 | + <el-row> | ||
40 | + <el-table | ||
41 | + :data="tableData" | ||
42 | + border | ||
43 | + style="width: 100%;margin-bottom: 10px"> | ||
44 | + <el-table-column | ||
45 | + fixed="left" | ||
46 | + label="操作" | ||
47 | + width="100"> | ||
48 | + <template slot-scope="scope"> | ||
49 | + <el-button | ||
50 | + size="mini" | ||
51 | + type="primary" | ||
52 | + @click="handleEdit(scope.$index, scope.row)">编辑</el-button> | ||
53 | + </template> | ||
54 | + </el-table-column> | ||
55 | + <el-table-column | ||
56 | + prop="flightNo" | ||
57 | + label="航班号" | ||
58 | + width="80"> | ||
59 | + </el-table-column> | ||
60 | + <el-table-column | ||
61 | + prop="flightDate" | ||
62 | + label="航班日期" | ||
63 | + width="120"> | ||
64 | + </el-table-column> | ||
65 | + <el-table-column | ||
66 | + prop="aircraftNo" | ||
67 | + label="航空器注册编码" | ||
68 | + width="120"> | ||
69 | + </el-table-column> | ||
70 | + <el-table-column | ||
71 | + prop="departurePort" | ||
72 | + label="出发港" | ||
73 | + width="80"> | ||
74 | + </el-table-column> | ||
75 | + <el-table-column | ||
76 | + prop="arrivalPort" | ||
77 | + label="目的港" | ||
78 | + width="80"> | ||
79 | + </el-table-column> | ||
80 | + <el-table-column | ||
81 | + prop="customDistrictNo" | ||
82 | + label="关区代码" | ||
83 | + width="80"> | ||
84 | + </el-table-column> | ||
85 | + <el-table-column | ||
86 | + prop="transportflag" | ||
87 | + label="运输计划" | ||
88 | + width="150"> | ||
89 | + </el-table-column> | ||
90 | + <el-table-column | ||
91 | + prop="departuredatetime" | ||
92 | + label="离港时间" | ||
93 | + width="120"> | ||
94 | + </el-table-column> | ||
95 | + <el-table-column | ||
96 | + prop="statusMsg" | ||
97 | + label="海关回执" | ||
98 | + width="150"> | ||
99 | + </el-table-column> | ||
100 | + <el-table-column | ||
101 | + prop="" | ||
102 | + label="报文操作" | ||
103 | + width="150"> | ||
104 | + <template slot-scope="scope"> | ||
105 | + <el-button | ||
106 | + size="mini" | ||
107 | + type="success" | ||
108 | + @click="handleEdit(scope.$index, scope.row)">查看</el-button> | ||
109 | + </template> | ||
110 | + <template slot-scope="scope"> | ||
111 | + <el-button | ||
112 | + size="mini" | ||
113 | + type="danger" | ||
114 | + @click="handleDel(scope.$index, scope.row)">删除</el-button> | ||
115 | + </template> | ||
116 | + </el-table-column> | ||
117 | + </el-table> | ||
118 | + </el-row> | ||
119 | + <el-row> | ||
120 | + <div class="block"> | ||
121 | + <el-pagination | ||
122 | + @size-change="handleSizeChange" | ||
123 | + @current-change="handleCurrentChange" | ||
124 | + :current-page="currentPage" | ||
125 | + :page-sizes="[100, 200, 300, 400]" | ||
126 | + :page-size="100" | ||
127 | + layout="total, sizes, prev, pager, next, jumper" | ||
128 | + :total="400"> | ||
129 | + </el-pagination> | ||
130 | + </div> | ||
131 | + </el-row> | ||
132 | + </el-main> | ||
133 | + </el-container> | ||
134 | +</template> | ||
135 | +<style scoped> | ||
136 | + .grid-content { | ||
137 | + height: 36px; | ||
138 | + line-height: 36px; | ||
139 | + } | ||
140 | + .el-dialog__body{text-align: center} | ||
141 | + .content { | ||
142 | + border-left: 4px #409EFF solid; | ||
143 | + padding-left: 10px; | ||
144 | + background-color: #f9fafc; | ||
145 | + margin-bottom: 2px | ||
146 | + } | ||
147 | + | ||
148 | + .row-bg{ | ||
149 | + background-color: white; | ||
150 | + } | ||
151 | + | ||
152 | +</style> | ||
153 | +<script> | ||
154 | + export default { | ||
155 | + data(){ | ||
156 | + return{ | ||
157 | + queryArrival:{ | ||
158 | + awcd:undefined, | ||
159 | + flightNo:undefined, | ||
160 | + flightDate:undefined, | ||
161 | + }, | ||
162 | + rules:{ | ||
163 | + awcd: [ | ||
164 | + {required: true, message: '请输入', trigger: 'blur'} | ||
165 | + ], | ||
166 | + flightNo: [ | ||
167 | + {required: true, message: '请输入', trigger: 'blur'} | ||
168 | + ], | ||
169 | + flightDate: [ | ||
170 | + {required: true, message: '请选择', trigger: 'change'} | ||
171 | + ], | ||
172 | + }, | ||
173 | + labelPosition:'left', | ||
174 | + currentPage: 4, | ||
175 | + tableData:[] | ||
176 | + } | ||
177 | + }, | ||
178 | + methods: { | ||
179 | + handleSizeChange(val) { | ||
180 | + console.log(`每页 ${val} 条`); | ||
181 | + }, | ||
182 | + handleCurrentChange(val) { | ||
183 | + console.log(`当前页: ${val}`); | ||
184 | + } | ||
185 | + }, | ||
186 | + } | ||
187 | +</script> |
@@ -6,45 +6,48 @@ | @@ -6,45 +6,48 @@ | ||
6 | <div class="grid-content content">单据查询</div> | 6 | <div class="grid-content content">单据查询</div> |
7 | </el-col> | 7 | </el-col> |
8 | </el-row> | 8 | </el-row> |
9 | - <!-- 搜索区域--> | 9 | + <!--搜索区域--> |
10 | <el-row> | 10 | <el-row> |
11 | <el-form :label-position="labelPosition" :model="queryBill" :rules="rules" ref="queryBill" | 11 | <el-form :label-position="labelPosition" :model="queryBill" :rules="rules" ref="queryBill" |
12 | label-width="130px" class="demo-ruleForm"> | 12 | label-width="130px" class="demo-ruleForm"> |
13 | - <el-col :span="6"> | 13 | + <el-col :span="5"> |
14 | <el-form-item label="航班号:" prop="flightNo" label-width="70px"> | 14 | <el-form-item label="航班号:" prop="flightNo" label-width="70px"> |
15 | <el-input v-model="queryBill.flightNo" style="width:190px"></el-input> | 15 | <el-input v-model="queryBill.flightNo" style="width:190px"></el-input> |
16 | </el-form-item> | 16 | </el-form-item> |
17 | </el-col> | 17 | </el-col> |
18 | - <el-col :span="6" > | 18 | + <el-col :span="5" > |
19 | <el-form-item label="航空器注册号:" prop="aircraftNo" label-width="110px"> | 19 | <el-form-item label="航空器注册号:" prop="aircraftNo" label-width="110px"> |
20 | <el-input v-model="queryBill.aircraftNo" style="width:190px"></el-input> | 20 | <el-input v-model="queryBill.aircraftNo" style="width:190px"></el-input> |
21 | </el-form-item> | 21 | </el-form-item> |
22 | </el-col> | 22 | </el-col> |
23 | - <el-col :span="6" > | 23 | + <el-col :span="5" > |
24 | <el-form-item label="航班日期:" prop="flightDate" label-width="80px"> | 24 | <el-form-item label="航班日期:" prop="flightDate" label-width="80px"> |
25 | <el-date-picker | 25 | <el-date-picker |
26 | v-model="queryBill.flightDate" | 26 | v-model="queryBill.flightDate" |
27 | type="date" | 27 | type="date" |
28 | + value-format="yyyyMMdd" | ||
29 | + format="yyyyMMdd" | ||
28 | style="width:190px" | 30 | style="width:190px" |
29 | placeholder="选择日期"> | 31 | placeholder="选择日期"> |
30 | </el-date-picker> | 32 | </el-date-picker> |
31 | </el-form-item> | 33 | </el-form-item> |
32 | </el-col> | 34 | </el-col> |
33 | - <el-col :span="6" > | 35 | + <el-col :span="5" > |
34 | <el-form-item label="进出港:" prop="accessFlag" label-width="70px"> | 36 | <el-form-item label="进出港:" prop="accessFlag" label-width="70px"> |
35 | <el-input v-model="queryBill.accessFlag" style="width:190px"></el-input> | 37 | <el-input v-model="queryBill.accessFlag" style="width:190px"></el-input> |
36 | </el-form-item> | 38 | </el-form-item> |
37 | </el-col> | 39 | </el-col> |
38 | - <el-col :span="6" > | ||
39 | - <el-button type="primary" @click="submitForm('queryBill')">查询</el-button> | 40 | + <el-col :span="3" > |
41 | + <el-button type="primary" @click="submitForm()">查询</el-button> | ||
40 | </el-col> | 42 | </el-col> |
41 | </el-form> | 43 | </el-form> |
42 | </el-row> | 44 | </el-row> |
43 | -<!-- 表单区域--> | 45 | + <!--表单区域--> |
44 | <el-row> | 46 | <el-row> |
45 | <el-table | 47 | <el-table |
46 | :data="tableData" | 48 | :data="tableData" |
47 | border | 49 | border |
50 | + v-loading="tableloading" | ||
48 | style="width: 100%;margin-bottom: 10px"> | 51 | style="width: 100%;margin-bottom: 10px"> |
49 | <el-table-column | 52 | <el-table-column |
50 | fixed="left" | 53 | fixed="left" |
@@ -58,61 +61,43 @@ | @@ -58,61 +61,43 @@ | ||
58 | </template> | 61 | </template> |
59 | </el-table-column> | 62 | </el-table-column> |
60 | <el-table-column | 63 | <el-table-column |
61 | - fixed | ||
62 | prop=aircraftNo" | 64 | prop=aircraftNo" |
63 | - label="航空器注册号" | ||
64 | - width="120"> | 65 | + label="航空器注册号"> |
65 | </el-table-column> | 66 | </el-table-column> |
66 | <el-table-column | 67 | <el-table-column |
67 | - fixed | ||
68 | prop="flightNo" | 68 | prop="flightNo" |
69 | - label="航班号" | ||
70 | - width="80"> | 69 | + label="航班号"> |
71 | </el-table-column> | 70 | </el-table-column> |
72 | <el-table-column | 71 | <el-table-column |
73 | - fixed | ||
74 | prop="flightDate" | 72 | prop="flightDate" |
75 | - label="航班日期" | ||
76 | - width="150"> | 73 | + label="航班日期"> |
77 | </el-table-column> | 74 | </el-table-column> |
78 | <el-table-column | 75 | <el-table-column |
79 | - fixed | ||
80 | prop="accessFlag" | 76 | prop="accessFlag" |
81 | - label="进出港标识" | ||
82 | - width="120"> | 77 | + label="进出港标识"> |
83 | </el-table-column> | 78 | </el-table-column> |
84 | <el-table-column | 79 | <el-table-column |
85 | - fixed | ||
86 | prop="departureAirport" | 80 | prop="departureAirport" |
87 | - label="出发港" | ||
88 | - width="80"> | 81 | + label="出发港"> |
89 | </el-table-column> | 82 | </el-table-column> |
90 | <el-table-column | 83 | <el-table-column |
91 | - fixed | ||
92 | prop="departuredatetime" | 84 | prop="departuredatetime" |
93 | - label="出发时间" | ||
94 | - width="150"> | 85 | + label="出发时间"> |
95 | </el-table-column> | 86 | </el-table-column> |
96 | <el-table-column | 87 | <el-table-column |
97 | - fixed | ||
98 | prop="arrivalAirport" | 88 | prop="arrivalAirport" |
99 | - label="目的港" | ||
100 | - width="80"> | 89 | + label="目的港"> |
101 | </el-table-column> | 90 | </el-table-column> |
102 | <el-table-column | 91 | <el-table-column |
103 | - fixed | ||
104 | prop="arrivaldatetime" | 92 | prop="arrivaldatetime" |
105 | - label="到达时间" | ||
106 | - width="150"> | 93 | + label="到达时间"> |
107 | </el-table-column> | 94 | </el-table-column> |
108 | <el-table-column | 95 | <el-table-column |
109 | - fixed | ||
110 | prop="statusMsg" | 96 | prop="statusMsg" |
111 | - label="海关回执" | ||
112 | - width="150"> | 97 | + label="海关回执"> |
113 | </el-table-column> | 98 | </el-table-column> |
114 | <el-table-column | 99 | <el-table-column |
115 | - fixed | 100 | + fixed="right" |
116 | prop="" | 101 | prop="" |
117 | label="报文操作" | 102 | label="报文操作" |
118 | width="150"> | 103 | width="150"> |
@@ -121,8 +106,6 @@ | @@ -121,8 +106,6 @@ | ||
121 | size="mini" | 106 | size="mini" |
122 | type="success" | 107 | type="success" |
123 | @click="handleEdit(scope.$index, scope.row)">查看</el-button> | 108 | @click="handleEdit(scope.$index, scope.row)">查看</el-button> |
124 | - </template> | ||
125 | - <template slot-scope="scope"> | ||
126 | <el-button | 109 | <el-button |
127 | size="mini" | 110 | size="mini" |
128 | type="danger" | 111 | type="danger" |
@@ -137,10 +120,10 @@ | @@ -137,10 +120,10 @@ | ||
137 | @size-change="handleSizeChange" | 120 | @size-change="handleSizeChange" |
138 | @current-change="handleCurrentChange" | 121 | @current-change="handleCurrentChange" |
139 | :current-page="currentPage" | 122 | :current-page="currentPage" |
140 | - :page-sizes="[100, 200, 300, 400]" | ||
141 | - :page-size="100" | 123 | + :page-sizes="[10, 20, 30, 40]" |
124 | + :page-size="pageSize" | ||
142 | layout="total, sizes, prev, pager, next, jumper" | 125 | layout="total, sizes, prev, pager, next, jumper" |
143 | - :total="400"> | 126 | + :total="total"> |
144 | </el-pagination> | 127 | </el-pagination> |
145 | </div> | 128 | </div> |
146 | </el-row> | 129 | </el-row> |
@@ -166,6 +149,7 @@ | @@ -166,6 +149,7 @@ | ||
166 | 149 | ||
167 | </style> | 150 | </style> |
168 | <script> | 151 | <script> |
152 | + import {editBill,selectBill} from "../../api/transport"; | ||
169 | export default { | 153 | export default { |
170 | data(){ | 154 | data(){ |
171 | return{ | 155 | return{ |
@@ -175,19 +159,81 @@ | @@ -175,19 +159,81 @@ | ||
175 | flightDate:undefined, | 159 | flightDate:undefined, |
176 | accessFlag:undefined, | 160 | accessFlag:undefined, |
177 | }, | 161 | }, |
162 | + tableloading:false, | ||
178 | rules:{}, | 163 | rules:{}, |
179 | labelPosition:'left', | 164 | labelPosition:'left', |
180 | - currentPage: 4, | 165 | + currentPage: 1, |
166 | + pageSize:10, | ||
167 | + total:0, | ||
181 | tableData:[] | 168 | tableData:[] |
182 | } | 169 | } |
183 | }, | 170 | }, |
184 | methods: { | 171 | methods: { |
172 | + //获取单据列表 | ||
173 | + submitForm(){ | ||
174 | + let params={currentPage:this.currentPage,pageSize:this.pageSize,flightNo:this.queryBill.flightNo, | ||
175 | + aircraftNo:this.queryBill.aircraftNo,flightDate:this.queryBill.flightDate,accessFlag:this.queryBill.accessFlag}; | ||
176 | + this.tableloading=true; | ||
177 | + selectBill(params).then(res=>{ | ||
178 | + let response=res.data.data; | ||
179 | + this.tableData=response.list; | ||
180 | + this.tableloading=false; | ||
181 | + this.total=response.total; | ||
182 | + }); | ||
183 | + }, | ||
184 | + //列表删除功能 | ||
185 | + handleDel(index,row){ | ||
186 | + this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', { | ||
187 | + confirmButtonText: '确定', | ||
188 | + cancelButtonText: '取消', | ||
189 | + type: 'warning' | ||
190 | + }).then(() => { | ||
191 | + editBill(row).then(res=>{ | ||
192 | + let response=res.data; | ||
193 | + if(response.code=='200'){ | ||
194 | + this.$message({ | ||
195 | + type: 'info', | ||
196 | + message: '删除成功' | ||
197 | + }); | ||
198 | + this.submitForm(); | ||
199 | + }else{ | ||
200 | + this.$message({ | ||
201 | + type: 'info', | ||
202 | + message: '删除失败' | ||
203 | + }); } | ||
204 | + }); | ||
205 | + }).catch(() => { | ||
206 | + this.$message({ | ||
207 | + type: 'info', | ||
208 | + message: '已取消删除' | ||
209 | + }); | ||
210 | + }); | ||
211 | + }, | ||
212 | + //获取默认值 | ||
213 | + defaultData(){ | ||
214 | + if(this.$route.query.aircraftNo!=null){ | ||
215 | + this.queryBill.flightNo=JSON.parse(this.$route.query.flightNo); | ||
216 | + this.queryBill.aircraftNo=JSON.parse(this.$route.query.aircraftNo); | ||
217 | + this.queryBill.flightDate=JSON.parse(this.$route.query.flightDate); | ||
218 | + } | ||
219 | + }, | ||
220 | + //编辑单据查询 | ||
221 | + handleEdit(index,row){ | ||
222 | + this.$router.push({path:'/bill',query:row}) | ||
223 | + }, | ||
224 | + //分页 | ||
185 | handleSizeChange(val) { | 225 | handleSizeChange(val) { |
186 | - console.log(`每页 ${val} 条`); | 226 | + this.pageSize=val; |
187 | }, | 227 | }, |
188 | handleCurrentChange(val) { | 228 | handleCurrentChange(val) { |
189 | - console.log(`当前页: ${val}`); | 229 | + this.currentPage=val; |
230 | + this.submitForm(); | ||
190 | } | 231 | } |
191 | }, | 232 | }, |
233 | + //渲染方法 | ||
234 | + mounted(){ | ||
235 | + this.defaultData(); | ||
236 | + this.submitForm(); | ||
237 | + } | ||
192 | } | 238 | } |
193 | </script> | 239 | </script> |
1 | +<template> | ||
2 | + <el-container> | ||
3 | + <el-main> | ||
4 | + <el-row class="row-bg"> | ||
5 | + <el-col :span="24"> | ||
6 | + <div class="grid-content content">进港航班配置查询</div> | ||
7 | + </el-col> | ||
8 | + </el-row> | ||
9 | + <!-- 搜索区域--> | ||
10 | + <el-row> | ||
11 | + <el-form :label-position="labelPosition" :model="queryConfigure" :rules="rules" ref="queryFlight" | ||
12 | + label-width="130px" class="demo-ruleForm"> | ||
13 | + | ||
14 | + <el-col :span="6" > | ||
15 | + <el-form-item label="航班号:" prop="flightNo" label-width="80px"> | ||
16 | + <el-input v-model="queryConfigure.flightNo" style="width:190px"></el-input> | ||
17 | + </el-form-item> | ||
18 | + </el-col> | ||
19 | + <el-col :span="5" > | ||
20 | + <el-button type="primary" @click="submitForm('queryConfigure')">查询</el-button> | ||
21 | + </el-col> | ||
22 | + </el-form> | ||
23 | + </el-row> | ||
24 | + <!-- 表单区域--> | ||
25 | + <el-row> | ||
26 | + <el-table | ||
27 | + :data="tableData" | ||
28 | + border | ||
29 | + style="width: 100%;margin-bottom: 10px"> | ||
30 | + <el-table-column | ||
31 | + fixed="left" | ||
32 | + label="操作" | ||
33 | + width="100"> | ||
34 | + <template slot-scope="scope"> | ||
35 | + <el-button | ||
36 | + size="mini" | ||
37 | + type="primary" | ||
38 | + @click="handleEdit(scope.$index, scope.row)">编辑</el-button> | ||
39 | + </template> | ||
40 | + </el-table-column> | ||
41 | + <el-table-column | ||
42 | + prop="username" | ||
43 | + label="用户名" | ||
44 | + width="120"> | ||
45 | + </el-table-column> | ||
46 | + <el-table-column | ||
47 | + prop="flightno" | ||
48 | + label="航班号" | ||
49 | + width="80"> | ||
50 | + </el-table-column> | ||
51 | + <el-table-column | ||
52 | + prop="ietype" | ||
53 | + label="进出港" | ||
54 | + width="80"> | ||
55 | + </el-table-column> | ||
56 | + <el-table-column | ||
57 | + prop="createby" | ||
58 | + label="创建人" | ||
59 | + width="120"> | ||
60 | + </el-table-column> | ||
61 | + <el-table-column | ||
62 | + prop="createtime" | ||
63 | + label="创建时间" | ||
64 | + width="120"> | ||
65 | + </el-table-column> | ||
66 | + <el-table-column | ||
67 | + prop="updateby" | ||
68 | + label="更新人" | ||
69 | + width="120"> | ||
70 | + </el-table-column> | ||
71 | + <el-table-column | ||
72 | + prop="updatetime" | ||
73 | + label="更新时间" | ||
74 | + width="120"> | ||
75 | + </el-table-column> | ||
76 | + <el-table-column | ||
77 | + prop="" | ||
78 | + label="报文操作" | ||
79 | + width="150"> | ||
80 | + <template slot-scope="scope"> | ||
81 | + <el-button | ||
82 | + size="mini" | ||
83 | + type="success" | ||
84 | + @click="handleEdit(scope.$index, scope.row)">查看</el-button> | ||
85 | + </template> | ||
86 | + <template slot-scope="scope"> | ||
87 | + <el-button | ||
88 | + size="mini" | ||
89 | + type="danger" | ||
90 | + @click="handleDel(scope.$index, scope.row)">删除</el-button> | ||
91 | + </template> | ||
92 | + </el-table-column> | ||
93 | + </el-table> | ||
94 | + </el-row> | ||
95 | + <el-row> | ||
96 | + <div class="block"> | ||
97 | + <el-pagination | ||
98 | + @size-change="handleSizeChange" | ||
99 | + @current-change="handleCurrentChange" | ||
100 | + :current-page="currentPage" | ||
101 | + :page-sizes="[100, 200, 300, 400]" | ||
102 | + :page-size="100" | ||
103 | + layout="total, sizes, prev, pager, next, jumper" | ||
104 | + :total="400"> | ||
105 | + </el-pagination> | ||
106 | + </div> | ||
107 | + </el-row> | ||
108 | + </el-main> | ||
109 | + </el-container> | ||
110 | +</template> | ||
111 | +<style scoped> | ||
112 | + .grid-content { | ||
113 | + height: 36px; | ||
114 | + line-height: 36px; | ||
115 | + } | ||
116 | + .el-dialog__body{text-align: center} | ||
117 | + .content { | ||
118 | + border-left: 4px #409EFF solid; | ||
119 | + padding-left: 10px; | ||
120 | + background-color: #f9fafc; | ||
121 | + margin-bottom: 2px | ||
122 | + } | ||
123 | + | ||
124 | + .row-bg{ | ||
125 | + background-color: white; | ||
126 | + } | ||
127 | + | ||
128 | +</style> | ||
129 | +<script> | ||
130 | + export default { | ||
131 | + data(){ | ||
132 | + return{ | ||
133 | + queryConfigure:{ | ||
134 | + flightNo:undefined, | ||
135 | + }, | ||
136 | + rules:{ | ||
137 | + flightNo: [ | ||
138 | + {required: true, message: '请输入', trigger: 'blur'} | ||
139 | + ], | ||
140 | + }, | ||
141 | + labelPosition:'left', | ||
142 | + currentPage: 4, | ||
143 | + tableData:[] | ||
144 | + } | ||
145 | + }, | ||
146 | + methods: { | ||
147 | + handleSizeChange(val) { | ||
148 | + console.log(`每页 ${val} 条`); | ||
149 | + }, | ||
150 | + handleCurrentChange(val) { | ||
151 | + console.log(`当前页: ${val}`); | ||
152 | + } | ||
153 | + }, | ||
154 | + } | ||
155 | +</script> |
1 | +<template> | ||
2 | + <el-container> | ||
3 | + <el-main> | ||
4 | + <el-row class="row-bg"> | ||
5 | + <el-col :span="24"> | ||
6 | + <div class="grid-content content">进港确报查询</div> | ||
7 | + </el-col> | ||
8 | + </el-row> | ||
9 | + <!-- 搜索区域--> | ||
10 | + <el-row> | ||
11 | + <el-form :label-position="labelPosition" :model="queryConfirmatory" :rules="rules" ref="queryFlight" | ||
12 | + label-width="130px" class="demo-ruleForm"> | ||
13 | + <el-col :span="6" > | ||
14 | + <el-form-item label="承运人:" prop="awcd" label-width="80px"> | ||
15 | + <el-input v-model="queryConfirmatory.awcd" style="width:190px"></el-input> | ||
16 | + </el-form-item> | ||
17 | + </el-col> | ||
18 | + <el-col :span="6" > | ||
19 | + <el-form-item label="航班号:" prop="flightNo" label-width="80px"> | ||
20 | + <el-input v-model="queryConfirmatory.flightNo" style="width:190px"></el-input> | ||
21 | + </el-form-item> | ||
22 | + </el-col> | ||
23 | + <el-col :span="6" > | ||
24 | + <el-form-item label="航班日期:" prop="flightDate" label-width="90px"> | ||
25 | + <el-date-picker | ||
26 | + v-model="queryConfirmatory.flightDate" | ||
27 | + type="date" | ||
28 | + style="width:190px" | ||
29 | + placeholder="选择日期"> | ||
30 | + </el-date-picker> | ||
31 | + </el-form-item> | ||
32 | + </el-col> | ||
33 | + <el-col :span="5" > | ||
34 | + <el-button type="primary" @click="submitForm('queryConfirmatory')">查询</el-button> | ||
35 | + </el-col> | ||
36 | + </el-form> | ||
37 | + </el-row> | ||
38 | + <!-- 表单区域--> | ||
39 | + <el-row> | ||
40 | + <el-table | ||
41 | + :data="tableData" | ||
42 | + border | ||
43 | + style="width: 100%;margin-bottom: 10px"> | ||
44 | + <el-table-column | ||
45 | + fixed="left" | ||
46 | + label="操作" | ||
47 | + width="100"> | ||
48 | + <template slot-scope="scope"> | ||
49 | + <el-button | ||
50 | + size="mini" | ||
51 | + type="primary" | ||
52 | + @click="handleEdit(scope.$index, scope.row)">编辑</el-button> | ||
53 | + </template> | ||
54 | + </el-table-column> | ||
55 | + <el-table-column | ||
56 | + prop="flightNo" | ||
57 | + label="航班号" | ||
58 | + width="80"> | ||
59 | + </el-table-column> | ||
60 | + <el-table-column | ||
61 | + prop="flightDate" | ||
62 | + label="航班日期" | ||
63 | + width="120"> | ||
64 | + </el-table-column> | ||
65 | + <el-table-column | ||
66 | + prop="aircraftNo" | ||
67 | + label="航空器注册编码" | ||
68 | + width="120"> | ||
69 | + </el-table-column> | ||
70 | + <el-table-column | ||
71 | + prop="arrivalPort" | ||
72 | + label="目的港" | ||
73 | + width="80"> | ||
74 | + </el-table-column> | ||
75 | + <el-table-column | ||
76 | + prop="customDistrictNo" | ||
77 | + label="关区代码" | ||
78 | + width="80"> | ||
79 | + </el-table-column> | ||
80 | + <el-table-column | ||
81 | + prop="transportflag" | ||
82 | + label="运输计划" | ||
83 | + width="80"> | ||
84 | + </el-table-column> | ||
85 | + <el-table-column | ||
86 | + prop="departuredatetime" | ||
87 | + label="离港时间" | ||
88 | + width="120"> | ||
89 | + </el-table-column> | ||
90 | + <el-table-column | ||
91 | + prop="arrivaldatetime" | ||
92 | + label="抵港时间" | ||
93 | + width="120"> | ||
94 | + </el-table-column> | ||
95 | + <el-table-column | ||
96 | + prop="statusMsg" | ||
97 | + label="海关回执" | ||
98 | + width="150"> | ||
99 | + </el-table-column> | ||
100 | + <el-table-column | ||
101 | + prop="" | ||
102 | + label="报文操作" | ||
103 | + width="150"> | ||
104 | + <template slot-scope="scope"> | ||
105 | + <el-button | ||
106 | + size="mini" | ||
107 | + type="success" | ||
108 | + @click="handleEdit(scope.$index, scope.row)">查看</el-button> | ||
109 | + </template> | ||
110 | + <template slot-scope="scope"> | ||
111 | + <el-button | ||
112 | + size="mini" | ||
113 | + type="danger" | ||
114 | + @click="handleDel(scope.$index, scope.row)">删除</el-button> | ||
115 | + </template> | ||
116 | + </el-table-column> | ||
117 | + </el-table> | ||
118 | + </el-row> | ||
119 | + <el-row> | ||
120 | + <div class="block"> | ||
121 | + <el-pagination | ||
122 | + @size-change="handleSizeChange" | ||
123 | + @current-change="handleCurrentChange" | ||
124 | + :current-page="currentPage" | ||
125 | + :page-sizes="[100, 200, 300, 400]" | ||
126 | + :page-size="100" | ||
127 | + layout="total, sizes, prev, pager, next, jumper" | ||
128 | + :total="400"> | ||
129 | + </el-pagination> | ||
130 | + </div> | ||
131 | + </el-row> | ||
132 | + </el-main> | ||
133 | + </el-container> | ||
134 | +</template> | ||
135 | +<style scoped> | ||
136 | + .grid-content { | ||
137 | + height: 36px; | ||
138 | + line-height: 36px; | ||
139 | + } | ||
140 | + .el-dialog__body{text-align: center} | ||
141 | + .content { | ||
142 | + border-left: 4px #409EFF solid; | ||
143 | + padding-left: 10px; | ||
144 | + background-color: #f9fafc; | ||
145 | + margin-bottom: 2px | ||
146 | + } | ||
147 | + | ||
148 | + .row-bg{ | ||
149 | + background-color: white; | ||
150 | + } | ||
151 | + | ||
152 | +</style> | ||
153 | +<script> | ||
154 | + export default { | ||
155 | + data(){ | ||
156 | + return{ | ||
157 | + queryConfirmatory:{ | ||
158 | + awcd:undefined, | ||
159 | + flightNo:undefined, | ||
160 | + flightDate:undefined, | ||
161 | + }, | ||
162 | + rules:{ | ||
163 | + awcd: [ | ||
164 | + {required: true, message: '请输入', trigger: 'blur'} | ||
165 | + ], | ||
166 | + flightNo: [ | ||
167 | + {required: true, message: '请输入', trigger: 'blur'} | ||
168 | + ], | ||
169 | + flightDate: [ | ||
170 | + {required: true, message: '请选择', trigger: 'change'} | ||
171 | + ], | ||
172 | + }, | ||
173 | + labelPosition:'left', | ||
174 | + currentPage: 4, | ||
175 | + tableData:[] | ||
176 | + } | ||
177 | + }, | ||
178 | + methods: { | ||
179 | + handleSizeChange(val) { | ||
180 | + console.log(`每页 ${val} 条`); | ||
181 | + }, | ||
182 | + handleCurrentChange(val) { | ||
183 | + console.log(`当前页: ${val}`); | ||
184 | + } | ||
185 | + }, | ||
186 | + } | ||
187 | +</script> |
1 | +<template> | ||
2 | + <el-container> | ||
3 | + <el-main> | ||
4 | + <el-row class="row-bg"> | ||
5 | + <el-col :span="24"> | ||
6 | + <div class="grid-content content">出港确报查询</div> | ||
7 | + </el-col> | ||
8 | + </el-row> | ||
9 | + <!-- 搜索区域--> | ||
10 | + <el-row> | ||
11 | + <el-form :label-position="labelPosition" :model="queryDeclare" :rules="rules" ref="queryFlight" | ||
12 | + label-width="130px" class="demo-ruleForm"> | ||
13 | + <el-col :span="6" > | ||
14 | + <el-form-item label="承运人:" prop="awcd" label-width="80px"> | ||
15 | + <el-input v-model="queryDeclare.awcd" style="width:190px"></el-input> | ||
16 | + </el-form-item> | ||
17 | + </el-col> | ||
18 | + <el-col :span="6" > | ||
19 | + <el-form-item label="航班号:" prop="flightNo" label-width="80px"> | ||
20 | + <el-input v-model="queryDeclare.flightNo" style="width:190px"></el-input> | ||
21 | + </el-form-item> | ||
22 | + </el-col> | ||
23 | + <el-col :span="6" > | ||
24 | + <el-form-item label="航班日期:" prop="flightDate" label-width="90px"> | ||
25 | + <el-date-picker | ||
26 | + v-model="queryDeclare.flightDate" | ||
27 | + type="date" | ||
28 | + style="width:190px" | ||
29 | + placeholder="选择日期"> | ||
30 | + </el-date-picker> | ||
31 | + </el-form-item> | ||
32 | + </el-col> | ||
33 | + <el-col :span="5" > | ||
34 | + <el-button type="primary" @click="submitForm('queryDeclare')">查询</el-button> | ||
35 | + </el-col> | ||
36 | + </el-form> | ||
37 | + </el-row> | ||
38 | + <!-- 表单区域--> | ||
39 | + <el-row> | ||
40 | + <el-table | ||
41 | + :data="tableData" | ||
42 | + border | ||
43 | + style="width: 100%;margin-bottom: 10px"> | ||
44 | + <el-table-column | ||
45 | + fixed="left" | ||
46 | + label="操作" | ||
47 | + width="100"> | ||
48 | + <template slot-scope="scope"> | ||
49 | + <el-button | ||
50 | + size="mini" | ||
51 | + type="primary" | ||
52 | + @click="handleEdit(scope.$index, scope.row)">编辑</el-button> | ||
53 | + </template> | ||
54 | + </el-table-column> | ||
55 | + <el-table-column | ||
56 | + prop="flightNo" | ||
57 | + label="航班号" | ||
58 | + width="80"> | ||
59 | + </el-table-column> | ||
60 | + <el-table-column | ||
61 | + prop="flightDate" | ||
62 | + label="航班日期" | ||
63 | + width="120"> | ||
64 | + </el-table-column> | ||
65 | + <el-table-column | ||
66 | + prop="aircraftNo" | ||
67 | + label="航空器注册编码" | ||
68 | + width="120"> | ||
69 | + </el-table-column> | ||
70 | + <el-table-column | ||
71 | + prop="departurePort" | ||
72 | + label="出发港" | ||
73 | + width="80"> | ||
74 | + </el-table-column> | ||
75 | + <el-table-column | ||
76 | + prop="arrivalPort" | ||
77 | + label="目的港" | ||
78 | + width="80"> | ||
79 | + </el-table-column> | ||
80 | + <el-table-column | ||
81 | + prop="customDistrictNo" | ||
82 | + label="关区代码" | ||
83 | + width="80"> | ||
84 | + </el-table-column> | ||
85 | + <el-table-column | ||
86 | + prop="transportflag" | ||
87 | + label="运输计划" | ||
88 | + width="120"> | ||
89 | + </el-table-column> | ||
90 | + <el-table-column | ||
91 | + prop="departuredatetime" | ||
92 | + label="离港时间" | ||
93 | + width="120"> | ||
94 | + </el-table-column> | ||
95 | + <el-table-column | ||
96 | + prop="statusMsg" | ||
97 | + label="海关回执" | ||
98 | + width="150"> | ||
99 | + </el-table-column> | ||
100 | + <el-table-column | ||
101 | + prop="" | ||
102 | + label="报文操作" | ||
103 | + width="150"> | ||
104 | + <template slot-scope="scope"> | ||
105 | + <el-button | ||
106 | + size="mini" | ||
107 | + type="success" | ||
108 | + @click="handleEdit(scope.$index, scope.row)">查看</el-button> | ||
109 | + </template> | ||
110 | + <template slot-scope="scope"> | ||
111 | + <el-button | ||
112 | + size="mini" | ||
113 | + type="danger" | ||
114 | + @click="handleDel(scope.$index, scope.row)">删除</el-button> | ||
115 | + </template> | ||
116 | + </el-table-column> | ||
117 | + </el-table> | ||
118 | + </el-row> | ||
119 | + <el-row> | ||
120 | + <div class="block"> | ||
121 | + <el-pagination | ||
122 | + @size-change="handleSizeChange" | ||
123 | + @current-change="handleCurrentChange" | ||
124 | + :current-page="currentPage" | ||
125 | + :page-sizes="[100, 200, 300, 400]" | ||
126 | + :page-size="100" | ||
127 | + layout="total, sizes, prev, pager, next, jumper" | ||
128 | + :total="400"> | ||
129 | + </el-pagination> | ||
130 | + </div> | ||
131 | + </el-row> | ||
132 | + </el-main> | ||
133 | + </el-container> | ||
134 | +</template> | ||
135 | +<style scoped> | ||
136 | + .grid-content { | ||
137 | + height: 36px; | ||
138 | + line-height: 36px; | ||
139 | + } | ||
140 | + .el-dialog__body{text-align: center} | ||
141 | + .content { | ||
142 | + border-left: 4px #409EFF solid; | ||
143 | + padding-left: 10px; | ||
144 | + background-color: #f9fafc; | ||
145 | + margin-bottom: 2px | ||
146 | + } | ||
147 | + | ||
148 | + .row-bg{ | ||
149 | + background-color: white; | ||
150 | + } | ||
151 | + | ||
152 | +</style> | ||
153 | +<script> | ||
154 | + export default { | ||
155 | + data(){ | ||
156 | + return{ | ||
157 | + queryDeclare:{ | ||
158 | + awcd:undefined, | ||
159 | + flightNo:undefined, | ||
160 | + flightDate:undefined, | ||
161 | + }, | ||
162 | + rules:{ | ||
163 | + awcd: [ | ||
164 | + {required: true, message: '请输入', trigger: 'blur'} | ||
165 | + ], | ||
166 | + flightNo: [ | ||
167 | + {required: true, message: '请输入', trigger: 'blur'} | ||
168 | + ], | ||
169 | + flightDate: [ | ||
170 | + {required: true, message: '请选择', trigger: 'change'} | ||
171 | + ], | ||
172 | + }, | ||
173 | + labelPosition:'left', | ||
174 | + currentPage: 4, | ||
175 | + tableData:[] | ||
176 | + } | ||
177 | + }, | ||
178 | + methods: { | ||
179 | + handleSizeChange(val) { | ||
180 | + console.log(`每页 ${val} 条`); | ||
181 | + }, | ||
182 | + handleCurrentChange(val) { | ||
183 | + console.log(`当前页: ${val}`); | ||
184 | + } | ||
185 | + }, | ||
186 | + } | ||
187 | +</script> |
1 | +<template> | ||
2 | + <el-container> | ||
3 | + <el-main> | ||
4 | + <el-row class="row-bg"> | ||
5 | + <el-col :span="24"> | ||
6 | + <div class="grid-content content">出港航班查询</div> | ||
7 | + </el-col> | ||
8 | + </el-row> | ||
9 | + <!-- 搜索区域--> | ||
10 | + <el-row> | ||
11 | + <el-form :label-position="labelPosition" :model="queryDeparture" :rules="rules" ref="queryFlight" | ||
12 | + label-width="130px" class="demo-ruleForm"> | ||
13 | + <el-col :span="6" > | ||
14 | + <el-form-item label="承运人:" prop="awcd" label-width="80px"> | ||
15 | + <el-input v-model="queryDeparture.awcd" style="width:190px"></el-input> | ||
16 | + </el-form-item> | ||
17 | + </el-col> | ||
18 | + <el-col :span="6" > | ||
19 | + <el-form-item label="航班号:" prop="flightNo" label-width="80px"> | ||
20 | + <el-input v-model="queryDeparture.flightNo" style="width:190px"></el-input> | ||
21 | + </el-form-item> | ||
22 | + </el-col> | ||
23 | + <el-col :span="6" > | ||
24 | + <el-form-item label="航班日期:" prop="flightDate" label-width="90px"> | ||
25 | + <el-date-picker | ||
26 | + v-model="queryDeparture.flightDate" | ||
27 | + type="date" | ||
28 | + style="width:190px" | ||
29 | + placeholder="选择日期"> | ||
30 | + </el-date-picker> | ||
31 | + </el-form-item> | ||
32 | + </el-col> | ||
33 | + <el-col :span="5" > | ||
34 | + <el-button type="primary" @click="submitForm('queryDeparture')">查询</el-button> | ||
35 | + </el-col> | ||
36 | + </el-form> | ||
37 | + </el-row> | ||
38 | + <!-- 表单区域--> | ||
39 | + <el-row> | ||
40 | + <el-table | ||
41 | + :data="tableData" | ||
42 | + border | ||
43 | + style="width: 100%;margin-bottom: 10px"> | ||
44 | + <el-table-column | ||
45 | + fixed="left" | ||
46 | + label="操作" | ||
47 | + width="100"> | ||
48 | + <template slot-scope="scope"> | ||
49 | + <el-button | ||
50 | + size="mini" | ||
51 | + type="primary" | ||
52 | + @click="handleEdit(scope.$index, scope.row)">编辑</el-button> | ||
53 | + </template> | ||
54 | + </el-table-column> | ||
55 | + <el-table-column | ||
56 | + prop="flightNo" | ||
57 | + label="航班号" | ||
58 | + width="80"> | ||
59 | + </el-table-column> | ||
60 | + <el-table-column | ||
61 | + prop="flightDate" | ||
62 | + label="航班日期" | ||
63 | + width="120"> | ||
64 | + </el-table-column> | ||
65 | + <el-table-column | ||
66 | + prop="aircraftNo" | ||
67 | + label="航空器注册编码" | ||
68 | + width="120"> | ||
69 | + </el-table-column> | ||
70 | + <el-table-column | ||
71 | + prop="departurePort" | ||
72 | + label="出发港" | ||
73 | + width="80"> | ||
74 | + </el-table-column> | ||
75 | + <el-table-column | ||
76 | + prop="arrivalPort" | ||
77 | + label="目的港" | ||
78 | + width="80"> | ||
79 | + </el-table-column> | ||
80 | + <el-table-column | ||
81 | + prop="customDistrictNo" | ||
82 | + label="关区代码" | ||
83 | + width="80"> | ||
84 | + </el-table-column> | ||
85 | + <el-table-column | ||
86 | + prop="transportflag" | ||
87 | + label="运输计划" | ||
88 | + width="150"> | ||
89 | + </el-table-column> | ||
90 | + <el-table-column | ||
91 | + prop="departuredatetime" | ||
92 | + label="离港时间" | ||
93 | + width="120"> | ||
94 | + </el-table-column> | ||
95 | + <el-table-column | ||
96 | + prop="statusMsg" | ||
97 | + label="海关回执" | ||
98 | + width="150"> | ||
99 | + </el-table-column> | ||
100 | + <el-table-column | ||
101 | + prop="" | ||
102 | + label="报文操作" | ||
103 | + width="150"> | ||
104 | + <template slot-scope="scope"> | ||
105 | + <el-button | ||
106 | + size="mini" | ||
107 | + type="success" | ||
108 | + @click="handleEdit(scope.$index, scope.row)">查看</el-button> | ||
109 | + </template> | ||
110 | + <template slot-scope="scope"> | ||
111 | + <el-button | ||
112 | + size="mini" | ||
113 | + type="danger" | ||
114 | + @click="handleDel(scope.$index, scope.row)">删除</el-button> | ||
115 | + </template> | ||
116 | + </el-table-column> | ||
117 | + </el-table> | ||
118 | + </el-row> | ||
119 | + <el-row> | ||
120 | + <div class="block"> | ||
121 | + <el-pagination | ||
122 | + @size-change="handleSizeChange" | ||
123 | + @current-change="handleCurrentChange" | ||
124 | + :current-page="currentPage" | ||
125 | + :page-sizes="[100, 200, 300, 400]" | ||
126 | + :page-size="100" | ||
127 | + layout="total, sizes, prev, pager, next, jumper" | ||
128 | + :total="400"> | ||
129 | + </el-pagination> | ||
130 | + </div> | ||
131 | + </el-row> | ||
132 | + </el-main> | ||
133 | + </el-container> | ||
134 | +</template> | ||
135 | +<style scoped> | ||
136 | + .grid-content { | ||
137 | + height: 36px; | ||
138 | + line-height: 36px; | ||
139 | + } | ||
140 | + .el-dialog__body{text-align: center} | ||
141 | + .content { | ||
142 | + border-left: 4px #409EFF solid; | ||
143 | + padding-left: 10px; | ||
144 | + background-color: #f9fafc; | ||
145 | + margin-bottom: 2px | ||
146 | + } | ||
147 | + | ||
148 | + .row-bg{ | ||
149 | + background-color: white; | ||
150 | + } | ||
151 | + | ||
152 | +</style> | ||
153 | +<script> | ||
154 | + export default { | ||
155 | + data(){ | ||
156 | + return{ | ||
157 | + queryDeparture:{ | ||
158 | + awcd:undefined, | ||
159 | + flightNo:undefined, | ||
160 | + flightDate:undefined, | ||
161 | + }, | ||
162 | + rules:{ | ||
163 | + awcd: [ | ||
164 | + {required: true, message: '请输入', trigger: 'blur'} | ||
165 | + ], | ||
166 | + flightNo: [ | ||
167 | + {required: true, message: '请输入', trigger: 'blur'} | ||
168 | + ], | ||
169 | + flightDate: [ | ||
170 | + {required: true, message: '请选择', trigger: 'change'} | ||
171 | + ], | ||
172 | + }, | ||
173 | + labelPosition:'left', | ||
174 | + currentPage: 4, | ||
175 | + tableData:[] | ||
176 | + } | ||
177 | + }, | ||
178 | + methods: { | ||
179 | + handleSizeChange(val) { | ||
180 | + console.log(`每页 ${val} 条`); | ||
181 | + }, | ||
182 | + handleCurrentChange(val) { | ||
183 | + console.log(`当前页: ${val}`); | ||
184 | + } | ||
185 | + }, | ||
186 | + } | ||
187 | +</script> |
@@ -6,30 +6,31 @@ | @@ -6,30 +6,31 @@ | ||
6 | <div class="grid-content content">航班查询</div> | 6 | <div class="grid-content content">航班查询</div> |
7 | </el-col> | 7 | </el-col> |
8 | </el-row> | 8 | </el-row> |
9 | - <!-- 搜索区域--> | 9 | + <!--搜索区域--> |
10 | <el-row> | 10 | <el-row> |
11 | <el-form :label-position="labelPosition" :model="queryFlight" :rules="rules" ref="queryFlight" | 11 | <el-form :label-position="labelPosition" :model="queryFlight" :rules="rules" ref="queryFlight" |
12 | label-width="130px" class="demo-ruleForm"> | 12 | label-width="130px" class="demo-ruleForm"> |
13 | - <el-col :span="8"> | ||
14 | - <el-form-item label="航空公司代码:" prop="flightNo" label-width="110px"> | ||
15 | - <el-input v-model="queryFlight.flightNo" style="width:190px"></el-input> | 13 | + <el-col :span="6"> |
14 | + <el-form-item label="航空公司代码:" prop="aircraftNo" label-width="110px"> | ||
15 | + <el-input v-model="queryFlight.aircraftNo"></el-input> | ||
16 | </el-form-item> | 16 | </el-form-item> |
17 | </el-col> | 17 | </el-col> |
18 | - <el-col :span="8" > | ||
19 | - <el-form-item label="航班号:" prop="aircraftNo" label-width="80px"> | ||
20 | - <el-input v-model="queryFlight.aircraftNo" style="width:190px"></el-input> | 18 | + <el-col :span="6"> |
19 | + <el-form-item label="航班号:" prop="flightNo" label-width="70px"> | ||
20 | + <el-input v-model="queryFlight.flightNo"></el-input> | ||
21 | </el-form-item> | 21 | </el-form-item> |
22 | </el-col> | 22 | </el-col> |
23 | - <el-col :span="6" > | 23 | + <el-col :span="3"> |
24 | <el-button type="primary" @click="submitForm('queryFlight')">查询</el-button> | 24 | <el-button type="primary" @click="submitForm('queryFlight')">查询</el-button> |
25 | </el-col> | 25 | </el-col> |
26 | </el-form> | 26 | </el-form> |
27 | </el-row> | 27 | </el-row> |
28 | - <!-- 表单区域--> | 28 | + <!--表单区域--> |
29 | <el-row> | 29 | <el-row> |
30 | <el-table | 30 | <el-table |
31 | :data="tableData" | 31 | :data="tableData" |
32 | border | 32 | border |
33 | + v-loading="tableloading" | ||
33 | style="width: 100%;margin-bottom: 10px"> | 34 | style="width: 100%;margin-bottom: 10px"> |
34 | <el-table-column | 35 | <el-table-column |
35 | fixed="left" | 36 | fixed="left" |
@@ -43,72 +44,51 @@ | @@ -43,72 +44,51 @@ | ||
43 | </template> | 44 | </template> |
44 | </el-table-column> | 45 | </el-table-column> |
45 | <el-table-column | 46 | <el-table-column |
46 | - fixed | ||
47 | prop="flightNo" | 47 | prop="flightNo" |
48 | - label="航班号" | ||
49 | - width="80"> | 48 | + label="航班号"> |
50 | </el-table-column> | 49 | </el-table-column> |
51 | <el-table-column | 50 | <el-table-column |
52 | - fixed | ||
53 | prop="airwayCode" | 51 | prop="airwayCode" |
54 | - label="航空公司代码" | ||
55 | - width="120"> | 52 | + label="航空公司代码"> |
56 | </el-table-column> | 53 | </el-table-column> |
57 | - | ||
58 | <el-table-column | 54 | <el-table-column |
59 | - fixed | ||
60 | prop="flightDate" | 55 | prop="flightDate" |
61 | - label="航空公司中文" | ||
62 | - width="150"> | 56 | + label="航空公司中文"> |
63 | </el-table-column> | 57 | </el-table-column> |
64 | <el-table-column | 58 | <el-table-column |
65 | - fixed | ||
66 | prop="transportAgentCode" | 59 | prop="transportAgentCode" |
67 | - label="传输代理人" | ||
68 | - width="120"> | 60 | + label="传输代理人"> |
69 | </el-table-column> | 61 | </el-table-column> |
70 | <el-table-column | 62 | <el-table-column |
71 | - fixed | ||
72 | prop="groundAgentCode" | 63 | prop="groundAgentCode" |
73 | - label="地面代理人" | ||
74 | - width="120"> | 64 | + label="地面代理人"> |
75 | </el-table-column> | 65 | </el-table-column> |
76 | <el-table-column | 66 | <el-table-column |
77 | - fixed | ||
78 | - prop="departuredatetime" | ||
79 | - label="运输计划" | ||
80 | - width="150"> | 67 | + prop="linesType" |
68 | + label="运输计划"> | ||
81 | </el-table-column> | 69 | </el-table-column> |
82 | <el-table-column | 70 | <el-table-column |
83 | - fixed | ||
84 | prop="flightType" | 71 | prop="flightType" |
85 | - label="航班性质" | ||
86 | - width="80"> | 72 | + label="航班性质"> |
87 | </el-table-column> | 73 | </el-table-column> |
88 | <el-table-column | 74 | <el-table-column |
89 | - fixed | ||
90 | prop="shareFlightNo" | 75 | prop="shareFlightNo" |
91 | - label="共享航班号" | ||
92 | - width="150"> | 76 | + label="共享航班号"> |
93 | </el-table-column> | 77 | </el-table-column> |
94 | <el-table-column | 78 | <el-table-column |
95 | - fixed | ||
96 | prop="statusMsg" | 79 | prop="statusMsg" |
97 | label="海关回执" | 80 | label="海关回执" |
98 | - width="150"> | 81 | + width="180"> |
99 | </el-table-column> | 82 | </el-table-column> |
100 | <el-table-column | 83 | <el-table-column |
101 | - fixed | ||
102 | - prop="" | 84 | + fixed="right" |
103 | label="报文操作" | 85 | label="报文操作" |
104 | - width="150"> | 86 | + width="200"> |
105 | <template slot-scope="scope"> | 87 | <template slot-scope="scope"> |
106 | <el-button | 88 | <el-button |
107 | size="mini" | 89 | size="mini" |
108 | type="success" | 90 | type="success" |
109 | @click="handleEdit(scope.$index, scope.row)">查看</el-button> | 91 | @click="handleEdit(scope.$index, scope.row)">查看</el-button> |
110 | - </template> | ||
111 | - <template slot-scope="scope"> | ||
112 | <el-button | 92 | <el-button |
113 | size="mini" | 93 | size="mini" |
114 | type="danger" | 94 | type="danger" |
@@ -123,10 +103,10 @@ | @@ -123,10 +103,10 @@ | ||
123 | @size-change="handleSizeChange" | 103 | @size-change="handleSizeChange" |
124 | @current-change="handleCurrentChange" | 104 | @current-change="handleCurrentChange" |
125 | :current-page="currentPage" | 105 | :current-page="currentPage" |
126 | - :page-sizes="[100, 200, 300, 400]" | ||
127 | - :page-size="100" | 106 | + :page-sizes="[10, 20, 30, 40]" |
107 | + :page-size="pageSize" | ||
128 | layout="total, sizes, prev, pager, next, jumper" | 108 | layout="total, sizes, prev, pager, next, jumper" |
129 | - :total="400"> | 109 | + :total="total"> |
130 | </el-pagination> | 110 | </el-pagination> |
131 | </div> | 111 | </div> |
132 | </el-row> | 112 | </el-row> |
@@ -149,9 +129,10 @@ | @@ -149,9 +129,10 @@ | ||
149 | .row-bg{ | 129 | .row-bg{ |
150 | background-color: white; | 130 | background-color: white; |
151 | } | 131 | } |
152 | - | ||
153 | </style> | 132 | </style> |
154 | <script> | 133 | <script> |
134 | + import {editFlight, selectFlight} from "../../api/transport"; | ||
135 | + | ||
155 | export default { | 136 | export default { |
156 | data(){ | 137 | data(){ |
157 | return{ | 138 | return{ |
@@ -159,19 +140,79 @@ | @@ -159,19 +140,79 @@ | ||
159 | flightNo:undefined, | 140 | flightNo:undefined, |
160 | aircraftNo:undefined, | 141 | aircraftNo:undefined, |
161 | }, | 142 | }, |
162 | - rules:{}, | 143 | + rules:{ |
144 | + | ||
145 | + }, | ||
163 | labelPosition:'left', | 146 | labelPosition:'left', |
164 | - currentPage: 4, | ||
165 | - tableData:[] | 147 | + currentPage: 1, |
148 | + pageSize:10, | ||
149 | + total:0, | ||
150 | + tableData:[], | ||
151 | + tableloading:false | ||
152 | + | ||
166 | } | 153 | } |
167 | }, | 154 | }, |
168 | methods: { | 155 | methods: { |
156 | + //分页方法 | ||
169 | handleSizeChange(val) { | 157 | handleSizeChange(val) { |
170 | - console.log(`每页 ${val} 条`); | 158 | + this.pageSize=val; |
171 | }, | 159 | }, |
172 | handleCurrentChange(val) { | 160 | handleCurrentChange(val) { |
173 | - console.log(`当前页: ${val}`); | 161 | + this.currentPage=val; |
162 | + this.submitForm(); | ||
163 | + }, | ||
164 | + //获取航班列表 | ||
165 | + submitForm(){ | ||
166 | + let params={currentPage:this.currentPage,pageSize:this.pageSize,flightNo:this.queryFlight.flightNo,aircraftNo:this.queryFlight.aircraftNo}; | ||
167 | + this.tableloading=true; | ||
168 | + selectFlight(params).then(res=>{ | ||
169 | + let response=res.data.data; | ||
170 | + this.tableData=response.list; | ||
171 | + this.tableloading=false; | ||
172 | + this.total=response.total; | ||
173 | + }); | ||
174 | + }, | ||
175 | + //编辑航班查询功能 | ||
176 | + handleEdit(index,row){ | ||
177 | + this.$router.push({path:'/flights',query:row}) | ||
178 | + }, | ||
179 | + //获取默认值 | ||
180 | + defaultData(){ | ||
181 | + Object.assign(this.queryFlight, this.$route.query); | ||
182 | + }, | ||
183 | + //列表删除功能 | ||
184 | + handleDel(index,row){ | ||
185 | + this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', { | ||
186 | + confirmButtonText: '确定', | ||
187 | + cancelButtonText: '取消', | ||
188 | + type: 'warning' | ||
189 | + }).then(() => { | ||
190 | + editFlight(row).then(res=>{ | ||
191 | + let response=res.data; | ||
192 | + if(response.code=='200'){ | ||
193 | + this.$message({ | ||
194 | + type: 'info', | ||
195 | + message: '删除成功' | ||
196 | + }); | ||
197 | + this.submitForm(); | ||
198 | + }else{ | ||
199 | + this.$message({ | ||
200 | + type: 'info', | ||
201 | + message: '删除失败' | ||
202 | + }); } | ||
203 | + }); | ||
204 | + }).catch(() => { | ||
205 | + this.$message({ | ||
206 | + type: 'info', | ||
207 | + message: '已取消删除' | ||
208 | + }); | ||
209 | + }); | ||
174 | } | 210 | } |
175 | }, | 211 | }, |
212 | + //渲染方法 | ||
213 | + mounted(){ | ||
214 | + this.defaultData(); | ||
215 | + this.submitForm(); | ||
216 | + } | ||
176 | } | 217 | } |
177 | </script> | 218 | </script> |
1 | +<template> | ||
2 | + <el-container> | ||
3 | + <el-main> | ||
4 | + <el-row class="row-bg"> | ||
5 | + <el-col :span="24"> | ||
6 | + <div class="grid-content content">出港航班配置查询</div> | ||
7 | + </el-col> | ||
8 | + </el-row> | ||
9 | + <!-- 搜索区域--> | ||
10 | + <el-row> | ||
11 | + <el-form :label-position="labelPosition" :model="queryFlightConfigure" :rules="rules" ref="queryFlight" | ||
12 | + label-width="130px" class="demo-ruleForm"> | ||
13 | + | ||
14 | + <el-col :span="6" > | ||
15 | + <el-form-item label="航班号:" prop="flightNo" label-width="80px"> | ||
16 | + <el-input v-model="queryFlightConfigure.flightNo" style="width:190px"></el-input> | ||
17 | + </el-form-item> | ||
18 | + </el-col> | ||
19 | + <el-col :span="5" > | ||
20 | + <el-button type="primary" @click="submitForm('queryFlightConfigure')">查询</el-button> | ||
21 | + </el-col> | ||
22 | + </el-form> | ||
23 | + </el-row> | ||
24 | + <!-- 表单区域--> | ||
25 | + <el-row> | ||
26 | + <el-table | ||
27 | + :data="tableData" | ||
28 | + border | ||
29 | + style="width: 100%;margin-bottom: 10px"> | ||
30 | + <el-table-column | ||
31 | + fixed="left" | ||
32 | + label="操作" | ||
33 | + width="100"> | ||
34 | + <template slot-scope="scope"> | ||
35 | + <el-button | ||
36 | + size="mini" | ||
37 | + type="primary" | ||
38 | + @click="handleEdit(scope.$index, scope.row)">编辑</el-button> | ||
39 | + </template> | ||
40 | + </el-table-column> | ||
41 | + <el-table-column | ||
42 | + prop="username" | ||
43 | + label="用户名" | ||
44 | + width="120"> | ||
45 | + </el-table-column> | ||
46 | + <el-table-column | ||
47 | + prop="flightno" | ||
48 | + label="航班号" | ||
49 | + width="80"> | ||
50 | + </el-table-column> | ||
51 | + <el-table-column | ||
52 | + prop="ietype" | ||
53 | + label="进出港" | ||
54 | + width="80"> | ||
55 | + </el-table-column> | ||
56 | + <el-table-column | ||
57 | + prop="createby" | ||
58 | + label="创建人" | ||
59 | + width="120"> | ||
60 | + </el-table-column> | ||
61 | + <el-table-column | ||
62 | + prop="createtime" | ||
63 | + label="创建时间" | ||
64 | + width="120"> | ||
65 | + </el-table-column> | ||
66 | + <el-table-column | ||
67 | + prop="updateby" | ||
68 | + label="更新人" | ||
69 | + width="120"> | ||
70 | + </el-table-column> | ||
71 | + <el-table-column | ||
72 | + prop="updatetime" | ||
73 | + label="更新时间" | ||
74 | + width="120"> | ||
75 | + </el-table-column> | ||
76 | + <el-table-column | ||
77 | + prop="" | ||
78 | + label="报文操作" | ||
79 | + width="150"> | ||
80 | + <template slot-scope="scope"> | ||
81 | + <el-button | ||
82 | + size="mini" | ||
83 | + type="success" | ||
84 | + @click="handleEdit(scope.$index, scope.row)">查看</el-button> | ||
85 | + </template> | ||
86 | + <template slot-scope="scope"> | ||
87 | + <el-button | ||
88 | + size="mini" | ||
89 | + type="danger" | ||
90 | + @click="handleDel(scope.$index, scope.row)">删除</el-button> | ||
91 | + </template> | ||
92 | + </el-table-column> | ||
93 | + </el-table> | ||
94 | + </el-row> | ||
95 | + <el-row> | ||
96 | + <div class="block"> | ||
97 | + <el-pagination | ||
98 | + @size-change="handleSizeChange" | ||
99 | + @current-change="handleCurrentChange" | ||
100 | + :current-page="currentPage" | ||
101 | + :page-sizes="[100, 200, 300, 400]" | ||
102 | + :page-size="100" | ||
103 | + layout="total, sizes, prev, pager, next, jumper" | ||
104 | + :total="400"> | ||
105 | + </el-pagination> | ||
106 | + </div> | ||
107 | + </el-row> | ||
108 | + </el-main> | ||
109 | + </el-container> | ||
110 | +</template> | ||
111 | +<style scoped> | ||
112 | + .grid-content { | ||
113 | + height: 36px; | ||
114 | + line-height: 36px; | ||
115 | + } | ||
116 | + .el-dialog__body{text-align: center} | ||
117 | + .content { | ||
118 | + border-left: 4px #409EFF solid; | ||
119 | + padding-left: 10px; | ||
120 | + background-color: #f9fafc; | ||
121 | + margin-bottom: 2px | ||
122 | + } | ||
123 | + | ||
124 | + .row-bg{ | ||
125 | + background-color: white; | ||
126 | + } | ||
127 | + | ||
128 | +</style> | ||
129 | +<script> | ||
130 | + export default { | ||
131 | + data(){ | ||
132 | + return{ | ||
133 | + queryFlightConfigure:{ | ||
134 | + flightNo:undefined, | ||
135 | + }, | ||
136 | + rules:{ | ||
137 | + flightNo: [ | ||
138 | + {required: true, message: '请输入', trigger: 'blur'} | ||
139 | + ], | ||
140 | + }, | ||
141 | + labelPosition:'left', | ||
142 | + currentPage: 4, | ||
143 | + tableData:[] | ||
144 | + } | ||
145 | + }, | ||
146 | + methods: { | ||
147 | + handleSizeChange(val) { | ||
148 | + console.log(`每页 ${val} 条`); | ||
149 | + }, | ||
150 | + handleCurrentChange(val) { | ||
151 | + console.log(`当前页: ${val}`); | ||
152 | + } | ||
153 | + }, | ||
154 | + } | ||
155 | +</script> |
@@ -26,6 +26,7 @@ | @@ -26,6 +26,7 @@ | ||
26 | <el-date-picker | 26 | <el-date-picker |
27 | v-model="queryFlightplan.flightDate" | 27 | v-model="queryFlightplan.flightDate" |
28 | type="date" | 28 | type="date" |
29 | + format="yyyyMMdd" | ||
29 | style="width:190px" | 30 | style="width:190px" |
30 | placeholder="选择日期"> | 31 | placeholder="选择日期"> |
31 | </el-date-picker> | 32 | </el-date-picker> |
@@ -54,73 +55,61 @@ | @@ -54,73 +55,61 @@ | ||
54 | </template> | 55 | </template> |
55 | </el-table-column> | 56 | </el-table-column> |
56 | <el-table-column | 57 | <el-table-column |
57 | - fixed | ||
58 | prop="flightNo" | 58 | prop="flightNo" |
59 | label="航班号" | 59 | label="航班号" |
60 | width="80"> | 60 | width="80"> |
61 | </el-table-column> | 61 | </el-table-column> |
62 | <el-table-column | 62 | <el-table-column |
63 | - fixed | ||
64 | prop="flightDate" | 63 | prop="flightDate" |
65 | label="航班日期" | 64 | label="航班日期" |
66 | width="150"> | 65 | width="150"> |
67 | </el-table-column> | 66 | </el-table-column> |
68 | <el-table-column | 67 | <el-table-column |
69 | - fixed | ||
70 | prop="departurePort" | 68 | prop="departurePort" |
71 | label="出发港" | 69 | label="出发港" |
72 | width="80"> | 70 | width="80"> |
73 | </el-table-column> | 71 | </el-table-column> |
74 | <el-table-column | 72 | <el-table-column |
75 | - fixed | ||
76 | prop="departureCustomNo" | 73 | prop="departureCustomNo" |
77 | label="关区代码" | 74 | label="关区代码" |
78 | width="80"> | 75 | width="80"> |
79 | </el-table-column> | 76 | </el-table-column> |
80 | <el-table-column | 77 | <el-table-column |
81 | - fixed | ||
82 | prop="arrivalPort" | 78 | prop="arrivalPort" |
83 | label="目的港" | 79 | label="目的港" |
84 | width="80"> | 80 | width="80"> |
85 | </el-table-column> | 81 | </el-table-column> |
86 | <el-table-column | 82 | <el-table-column |
87 | - fixed | ||
88 | prop="arrivalCustomNo" | 83 | prop="arrivalCustomNo" |
89 | label="关区代码" | 84 | label="关区代码" |
90 | width="80"> | 85 | width="80"> |
91 | </el-table-column> | 86 | </el-table-column> |
92 | <el-table-column | 87 | <el-table-column |
93 | - fixed | ||
94 | prop="currentTakeoffTime" | 88 | prop="currentTakeoffTime" |
95 | label="离港时间" | 89 | label="离港时间" |
96 | width="150"> | 90 | width="150"> |
97 | </el-table-column> | 91 | </el-table-column> |
98 | <el-table-column | 92 | <el-table-column |
99 | - fixed | ||
100 | prop="currentLandingTime" | 93 | prop="currentLandingTime" |
101 | label="抵港时间" | 94 | label="抵港时间" |
102 | width="150"> | 95 | width="150"> |
103 | </el-table-column> | 96 | </el-table-column> |
104 | <el-table-column | 97 | <el-table-column |
105 | - fixed | ||
106 | prop="transportflag" | 98 | prop="transportflag" |
107 | label="进出港" | 99 | label="进出港" |
108 | width="80"> | 100 | width="80"> |
109 | </el-table-column> | 101 | </el-table-column> |
110 | <el-table-column | 102 | <el-table-column |
111 | - fixed | ||
112 | prop="linesType" | 103 | prop="linesType" |
113 | label="执行任务类型" | 104 | label="执行任务类型" |
114 | width="150"> | 105 | width="150"> |
115 | </el-table-column> | 106 | </el-table-column> |
116 | <el-table-column | 107 | <el-table-column |
117 | - fixed | ||
118 | prop="statusMsg" | 108 | prop="statusMsg" |
119 | label="海关回执" | 109 | label="海关回执" |
120 | width="150"> | 110 | width="150"> |
121 | </el-table-column> | 111 | </el-table-column> |
122 | <el-table-column | 112 | <el-table-column |
123 | - fixed | ||
124 | prop="" | 113 | prop="" |
125 | label="报文操作" | 114 | label="报文操作" |
126 | width="150"> | 115 | width="150"> |
@@ -145,10 +134,10 @@ | @@ -145,10 +134,10 @@ | ||
145 | @size-change="handleSizeChange" | 134 | @size-change="handleSizeChange" |
146 | @current-change="handleCurrentChange" | 135 | @current-change="handleCurrentChange" |
147 | :current-page="currentPage" | 136 | :current-page="currentPage" |
148 | - :page-sizes="[100, 200, 300, 400]" | ||
149 | - :page-size="100" | 137 | + :page-sizes="[10, 20, 30, 40]" |
138 | + :page-size="pageSize" | ||
150 | layout="total, sizes, prev, pager, next, jumper" | 139 | layout="total, sizes, prev, pager, next, jumper" |
151 | - :total="400"> | 140 | + :total="total"> |
152 | </el-pagination> | 141 | </el-pagination> |
153 | </div> | 142 | </div> |
154 | </el-row> | 143 | </el-row> |
@@ -174,6 +163,7 @@ | @@ -174,6 +163,7 @@ | ||
174 | 163 | ||
175 | </style> | 164 | </style> |
176 | <script> | 165 | <script> |
166 | + import {selectFlightPlan, editFlightPlan} from "../../api/transport"; | ||
177 | export default { | 167 | export default { |
178 | data(){ | 168 | data(){ |
179 | return{ | 169 | return{ |
@@ -184,17 +174,81 @@ | @@ -184,17 +174,81 @@ | ||
184 | }, | 174 | }, |
185 | rules:{}, | 175 | rules:{}, |
186 | labelPosition:'left', | 176 | labelPosition:'left', |
187 | - currentPage: 4, | ||
188 | - tableData:[] | 177 | + currentPage: 1, |
178 | + pageSize:10, | ||
179 | + total:0, | ||
180 | + tableData: [], | ||
181 | + tableloading:false | ||
182 | + | ||
189 | } | 183 | } |
190 | }, | 184 | }, |
191 | methods: { | 185 | methods: { |
186 | + //分页 | ||
192 | handleSizeChange(val) { | 187 | handleSizeChange(val) { |
193 | - console.log(`每页 ${val} 条`); | 188 | + this.pageSize=val; |
194 | }, | 189 | }, |
195 | handleCurrentChange(val) { | 190 | handleCurrentChange(val) { |
196 | - console.log(`当前页: ${val}`); | ||
197 | - } | 191 | + this.currentPage=val; |
192 | + this.submitForm(); | ||
193 | + }, | ||
194 | + //获取当日飞行计划列表 | ||
195 | + submitForm() { | ||
196 | + let params = { | ||
197 | + currentPage: this.currentPage, pageSize: this.pageSize, flightNo: this.queryFlightplan.flightNo, | ||
198 | + aircraftNo: this.queryFlightplan.aircraftNo, flightDate: this.queryFlightplan.flightDate | ||
199 | + }; | ||
200 | + this.tableloading = true; | ||
201 | + selectFlightPlan(params).then(res => { | ||
202 | + let response = res.data.data; | ||
203 | + this.tableData = response.list; | ||
204 | + this.tableloading = false; | ||
205 | + this.total = response.total; | ||
206 | + }); | ||
207 | + }, | ||
208 | + //列表删除功能 | ||
209 | + handleDel(index, row) { | ||
210 | + this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', { | ||
211 | + confirmButtonText: '确定', | ||
212 | + cancelButtonText: '取消', | ||
213 | + type: 'warning' | ||
214 | + }).then(() => { | ||
215 | + editFlightPlan(row).then(res => { | ||
216 | + let response = res.data; | ||
217 | + if (response.code == '200') { | ||
218 | + this.$message({ | ||
219 | + type: 'info', | ||
220 | + message: '删除成功' | ||
221 | + }); | ||
222 | + this.submitForm(); | ||
223 | + } else { | ||
224 | + this.$message({ | ||
225 | + type: 'info', | ||
226 | + message: '删除失败' | ||
227 | + }); | ||
228 | + } | ||
229 | + }); | ||
230 | + }).catch(() => { | ||
231 | + this.$message({ | ||
232 | + type: 'info', | ||
233 | + message: '已取消删除' | ||
234 | + }); | ||
235 | + }); | ||
236 | + }, | ||
237 | + //获取默认值 | ||
238 | + defaultData() { | ||
239 | + this.flightNo = JSON.parse(this.$route.query.flightNo); | ||
240 | + this.flightDate = JSON.parse(this.$route.query.flightDate); | ||
241 | + this.aircraftNo = JSON.parse(this.$route.query.aircraftNo); | ||
242 | + }, | ||
243 | + //编辑当日飞行计划 | ||
244 | + handleEdit(index,row){ | ||
245 | + this.$router.push({path:'/flightplan',query: row}) | ||
198 | }, | 246 | }, |
247 | + //渲染方法 | ||
248 | + mounted(){ | ||
249 | + this.defaultData(); | ||
250 | + this.submitForm(); | ||
251 | + } | ||
252 | + } | ||
199 | } | 253 | } |
200 | </script> | 254 | </script> |
@@ -7,20 +7,24 @@ | @@ -7,20 +7,24 @@ | ||
7 | </el-col> | 7 | </el-col> |
8 | </el-row> | 8 | </el-row> |
9 | <el-row> | 9 | <el-row> |
10 | - <el-form :label-position="labelPosition" :model="queryRoute" :rules="rules" ref="queryRoute" label-width="130px" class="demo-ruleForm"> | ||
11 | - <el-col :span="6"> | ||
12 | - <el-form-item label="航线序号" prop="seqNo" label-width="70px"> | ||
13 | - <el-input v-model="queryRoute.seqNo"></el-input> | ||
14 | - </el-form-item> | ||
15 | - </el-col> | ||
16 | - <el-col :span="3"> <el-button type="primary" @click="submitForm('queryRoute')">保 存</el-button></el-col> | ||
17 | - </el-form> | 10 | + <el-form :model="queryRoute" ref="serialNo" label-width="130px" > |
11 | + <el-col :span="6"> | ||
12 | + <el-form-item label="航线序号" prop="serialNo" label-width="80px"> | ||
13 | + <el-input v-model="queryRoute.serialNo" placeholder="请输入"></el-input> | ||
14 | + </el-form-item> | ||
15 | + </el-col> | ||
16 | + <el-col :span="3"> <el-button type="primary" @click="submitForm()">查 询</el-button></el-col> | ||
17 | + | ||
18 | + </el-form> | ||
19 | + | ||
18 | </el-row> | 20 | </el-row> |
19 | <el-row> | 21 | <el-row> |
22 | + <el-col :span="24"> | ||
20 | <el-table | 23 | <el-table |
21 | :data="tableData" | 24 | :data="tableData" |
22 | border | 25 | border |
23 | - style="width: 100%;margin-bottom: 10px"> | 26 | + v-loading="tableloading" |
27 | + style="width:100%;margin-bottom: 10px"> | ||
24 | <el-table-column | 28 | <el-table-column |
25 | fixed="left" | 29 | fixed="left" |
26 | label="操作" | 30 | label="操作" |
@@ -29,82 +33,77 @@ | @@ -29,82 +33,77 @@ | ||
29 | <el-button | 33 | <el-button |
30 | size="mini" | 34 | size="mini" |
31 | type="primary" | 35 | type="primary" |
32 | - @click="handleEdit(scope.$index, scope.row)">选择</el-button> | 36 | + @click="handleEdit(scope.$index, scope.row)">编辑</el-button> |
33 | </template> | 37 | </template> |
34 | </el-table-column> | 38 | </el-table-column> |
35 | <el-table-column | 39 | <el-table-column |
36 | - fixed | ||
37 | prop="serialNo" | 40 | prop="serialNo" |
38 | label="航线序号" | 41 | label="航线序号" |
39 | width="80"> | 42 | width="80"> |
40 | </el-table-column> | 43 | </el-table-column> |
41 | <el-table-column | 44 | <el-table-column |
42 | - fixed | ||
43 | prop="departurePort" | 45 | prop="departurePort" |
44 | label="出发港" | 46 | label="出发港" |
45 | width="80"> | 47 | width="80"> |
46 | </el-table-column> | 48 | </el-table-column> |
47 | <el-table-column | 49 | <el-table-column |
48 | - fixed | ||
49 | prop="departureCustomNo" | 50 | prop="departureCustomNo" |
50 | label="出发港关区代码" | 51 | label="出发港关区代码" |
51 | width="150"> | 52 | width="150"> |
52 | </el-table-column> | 53 | </el-table-column> |
53 | <el-table-column | 54 | <el-table-column |
54 | - fixed | ||
55 | prop="arrivalPort" | 55 | prop="arrivalPort" |
56 | label="目的港" | 56 | label="目的港" |
57 | width="80"> | 57 | width="80"> |
58 | </el-table-column> | 58 | </el-table-column> |
59 | <el-table-column | 59 | <el-table-column |
60 | - fixed | ||
61 | prop="arrivalCustomNo" | 60 | prop="arrivalCustomNo" |
62 | label="目的港关区代码" | 61 | label="目的港关区代码" |
63 | width="150"> | 62 | width="150"> |
64 | </el-table-column> | 63 | </el-table-column> |
65 | <el-table-column | 64 | <el-table-column |
66 | - fixed | ||
67 | prop="std" | 65 | prop="std" |
68 | label="长期离港时间" | 66 | label="长期离港时间" |
69 | width="150"> | 67 | width="150"> |
70 | </el-table-column> | 68 | </el-table-column> |
71 | <el-table-column | 69 | <el-table-column |
72 | - fixed | ||
73 | prop="sta" | 70 | prop="sta" |
74 | label="长期抵港时间" | 71 | label="长期抵港时间" |
75 | width="150"> | 72 | width="150"> |
76 | </el-table-column> | 73 | </el-table-column> |
77 | <el-table-column | 74 | <el-table-column |
78 | - fixed | ||
79 | prop="effStartdate" | 75 | prop="effStartdate" |
80 | label="有效期起始时间" | 76 | label="有效期起始时间" |
81 | width="150"> | 77 | width="150"> |
82 | </el-table-column> | 78 | </el-table-column> |
83 | <el-table-column | 79 | <el-table-column |
84 | - fixed | ||
85 | prop="effEnddate" | 80 | prop="effEnddate" |
86 | label="有效期结束时间" | 81 | label="有效期结束时间" |
87 | width="150"> | 82 | width="150"> |
88 | </el-table-column> | 83 | </el-table-column> |
89 | <el-table-column | 84 | <el-table-column |
90 | - fixed | ||
91 | prop="plan" | 85 | prop="plan" |
92 | label="每周执行情况" | 86 | label="每周执行情况" |
93 | width="150"> | 87 | width="150"> |
94 | </el-table-column> | 88 | </el-table-column> |
95 | <el-table-column | 89 | <el-table-column |
96 | - fixed | 90 | + |
97 | prop="remark" | 91 | prop="remark" |
98 | label="报文操作" | 92 | label="报文操作" |
99 | - width="150"> | 93 | + width="250"> |
100 | <template slot-scope="scope"> | 94 | <template slot-scope="scope"> |
101 | <el-button | 95 | <el-button |
102 | size="mini" | 96 | size="mini" |
103 | type="primary" | 97 | type="primary" |
104 | - @click="handleEdit(scope.$index, scope.row)">选择</el-button> | 98 | + @click="handleDetail(scope.$index, scope.row)">查看明细</el-button> |
99 | + <el-button | ||
100 | + size="mini" | ||
101 | + type="primary" | ||
102 | + @click="handleDelete(scope.$index, scope.row)">删除</el-button> | ||
105 | </template> | 103 | </template> |
106 | </el-table-column> | 104 | </el-table-column> |
107 | </el-table> | 105 | </el-table> |
106 | + </el-col> | ||
108 | </el-row> | 107 | </el-row> |
109 | <el-row> | 108 | <el-row> |
110 | <div class="block"> | 109 | <div class="block"> |
@@ -112,10 +111,10 @@ | @@ -112,10 +111,10 @@ | ||
112 | @size-change="handleSizeChange" | 111 | @size-change="handleSizeChange" |
113 | @current-change="handleCurrentChange" | 112 | @current-change="handleCurrentChange" |
114 | :current-page="currentPage" | 113 | :current-page="currentPage" |
115 | - :page-sizes="[100, 200, 300, 400]" | ||
116 | - :page-size="100" | 114 | + :page-sizes="[10, 20, 30, 40]" |
115 | + :page-size="pageSize" | ||
117 | layout="total, sizes, prev, pager, next, jumper" | 116 | layout="total, sizes, prev, pager, next, jumper" |
118 | - :total="400"> | 117 | + :total="total"> |
119 | </el-pagination> | 118 | </el-pagination> |
120 | </div> | 119 | </div> |
121 | </el-row> | 120 | </el-row> |
@@ -140,27 +139,83 @@ | @@ -140,27 +139,83 @@ | ||
140 | } | 139 | } |
141 | </style> | 140 | </style> |
142 | <script> | 141 | <script> |
142 | + import {editRoute, selectRoute} from "../../api/transport"; | ||
143 | + | ||
143 | export default { | 144 | export default { |
144 | data(){ | 145 | data(){ |
145 | return{ | 146 | return{ |
146 | queryRoute:{ | 147 | queryRoute:{ |
147 | - seqNo:undefined | 148 | + serialNo:undefined, |
148 | }, | 149 | }, |
149 | - | ||
150 | - rules:{}, | ||
151 | labelPosition:'left', | 150 | labelPosition:'left', |
152 | - currentPage: 4, | ||
153 | - tableData:[] | ||
154 | - | 151 | + currentPage: 1, |
152 | + pageSize:10, | ||
153 | + total:0, | ||
154 | + tableData:[], | ||
155 | + tableloading:false, | ||
155 | } | 156 | } |
156 | }, | 157 | }, |
157 | methods: { | 158 | methods: { |
159 | + //分页方法 | ||
158 | handleSizeChange(val) { | 160 | handleSizeChange(val) { |
159 | - console.log(`每页 ${val} 条`); | 161 | + this.pageSize=val; |
160 | }, | 162 | }, |
161 | handleCurrentChange(val) { | 163 | handleCurrentChange(val) { |
162 | - console.log(`当前页: ${val}`); | 164 | + this.currentPage=val; |
165 | + this.submitForm(); | ||
166 | + }, | ||
167 | + //获取航线列表 | ||
168 | + submitForm(){ | ||
169 | + let params={currentPage:this.currentPage,pageSize:this.pageSize,serialNo:this.queryRoute.serialNo}; | ||
170 | + this.tableloading=true; | ||
171 | + selectRoute(params).then(res=>{ | ||
172 | + let response=res.data.data; | ||
173 | + this.tableData=response.list; | ||
174 | + this.tableloading=false; | ||
175 | + this.total=response.total; | ||
176 | + }); | ||
177 | + }, | ||
178 | + //编辑航线功能 | ||
179 | + handleEdit(index,row){ | ||
180 | + this.$router.push({path:'/route',query:row}) | ||
181 | + }, | ||
182 | + //获取默认值 | ||
183 | + defaultData(){ | ||
184 | + Object.assign(this.queryRoute, this.$route.query); | ||
185 | + }, | ||
186 | + //列表删除功能 | ||
187 | + handleDelete(index,row){ | ||
188 | + this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', { | ||
189 | + confirmButtonText: '确定', | ||
190 | + cancelButtonText: '取消', | ||
191 | + type: 'warning' | ||
192 | + }).then(() => { | ||
193 | + editRoute(row).then(res=>{ | ||
194 | + let response=res.data; | ||
195 | + if(response.code=='200'){ | ||
196 | + this.$message({ | ||
197 | + type: 'info', | ||
198 | + message: '删除成功' | ||
199 | + }); | ||
200 | + this.submitForm(); | ||
201 | + }else{ | ||
202 | + this.$message({ | ||
203 | + type: 'info', | ||
204 | + message: '删除失败' | ||
205 | + }); } | ||
206 | + }); | ||
207 | + }).catch(() => { | ||
208 | + this.$message({ | ||
209 | + type: 'info', | ||
210 | + message: '已取消删除' | ||
211 | + }); | ||
212 | + }); | ||
163 | } | 213 | } |
164 | }, | 214 | }, |
215 | + //渲染方法 | ||
216 | + mounted(){ | ||
217 | + this.defaultData(); | ||
218 | + this.submitForm(); | ||
219 | + } | ||
165 | } | 220 | } |
166 | </script> | 221 | </script> |
@@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
8 | </el-row> | 8 | </el-row> |
9 | <!-- 搜索区域--> | 9 | <!-- 搜索区域--> |
10 | <el-row> | 10 | <el-row> |
11 | - <el-form :label-position="labelPosition" :model="queryRouteaircraft" :rules="rules" ref="queryAircraft" | 11 | + <el-form :label-position="labelPosition" :model="queryRouteaircraft" :rules="rules" ref="queryRouteaircraft" |
12 | label-width="130px" class="demo-ruleForm"> | 12 | label-width="130px" class="demo-ruleForm"> |
13 | <el-col :span="8"> | 13 | <el-col :span="8"> |
14 | <el-form-item label="航空器所有人代码:" prop="airwayCode" label-width="130px"> | 14 | <el-form-item label="航空器所有人代码:" prop="airwayCode" label-width="130px"> |
@@ -21,7 +21,7 @@ | @@ -21,7 +21,7 @@ | ||
21 | </el-form-item> | 21 | </el-form-item> |
22 | </el-col> | 22 | </el-col> |
23 | <el-col :span="6" > | 23 | <el-col :span="6" > |
24 | - <el-button type="primary" @click="submitForm('queryBill')">查询</el-button> | 24 | + <el-button type="primary" @click="submitForm('queryRouteaircraft')">查询</el-button> |
25 | </el-col> | 25 | </el-col> |
26 | </el-form> | 26 | </el-form> |
27 | </el-row> | 27 | </el-row> |
@@ -30,6 +30,7 @@ | @@ -30,6 +30,7 @@ | ||
30 | <el-table | 30 | <el-table |
31 | :data="tableData" | 31 | :data="tableData" |
32 | border | 32 | border |
33 | + v-loading="tableloading" | ||
33 | style="width: 100%;margin-bottom: 10px"> | 34 | style="width: 100%;margin-bottom: 10px"> |
34 | <el-table-column | 35 | <el-table-column |
35 | fixed="left" | 36 | fixed="left" |
@@ -43,73 +44,61 @@ | @@ -43,73 +44,61 @@ | ||
43 | </template> | 44 | </template> |
44 | </el-table-column> | 45 | </el-table-column> |
45 | <el-table-column | 46 | <el-table-column |
46 | - fixed | ||
47 | prop=ownerCo" | 47 | prop=ownerCo" |
48 | label="航空器所有人代码" | 48 | label="航空器所有人代码" |
49 | width="120"> | 49 | width="120"> |
50 | </el-table-column> | 50 | </el-table-column> |
51 | <el-table-column | 51 | <el-table-column |
52 | - fixed | ||
53 | prop="airwayNameEn" | 52 | prop="airwayNameEn" |
54 | label="所有人英文名称" | 53 | label="所有人英文名称" |
55 | width="120"> | 54 | width="120"> |
56 | </el-table-column> | 55 | </el-table-column> |
57 | <el-table-column | 56 | <el-table-column |
58 | - fixed | ||
59 | prop="airwayNameCn" | 57 | prop="airwayNameCn" |
60 | label="所有人中文名称" | 58 | label="所有人中文名称" |
61 | width="150"> | 59 | width="150"> |
62 | </el-table-column> | 60 | </el-table-column> |
63 | <el-table-column | 61 | <el-table-column |
64 | - fixed | ||
65 | prop="aircraftNo" | 62 | prop="aircraftNo" |
66 | label="航空器注册编号" | 63 | label="航空器注册编号" |
67 | width="120"> | 64 | width="120"> |
68 | </el-table-column> | 65 | </el-table-column> |
69 | <el-table-column | 66 | <el-table-column |
70 | - fixed | ||
71 | prop="certNo" | 67 | prop="certNo" |
72 | label="国际证书编号" | 68 | label="国际证书编号" |
73 | width="120"> | 69 | width="120"> |
74 | </el-table-column> | 70 | </el-table-column> |
75 | <el-table-column | 71 | <el-table-column |
76 | - fixed | ||
77 | prop="owner" | 72 | prop="owner" |
78 | label="航空器所有人" | 73 | label="航空器所有人" |
79 | width="120"> | 74 | width="120"> |
80 | </el-table-column> | 75 | </el-table-column> |
81 | <el-table-column | 76 | <el-table-column |
82 | - fixed | ||
83 | prop="areoNationality" | 77 | prop="areoNationality" |
84 | label="国籍" | 78 | label="国籍" |
85 | width="80"> | 79 | width="80"> |
86 | </el-table-column> | 80 | </el-table-column> |
87 | <el-table-column | 81 | <el-table-column |
88 | - fixed | ||
89 | prop="areoModel" | 82 | prop="areoModel" |
90 | label="机型" | 83 | label="机型" |
91 | width="80"> | 84 | width="80"> |
92 | </el-table-column> | 85 | </el-table-column> |
93 | <el-table-column | 86 | <el-table-column |
94 | - fixed | ||
95 | prop="deliverDate" | 87 | prop="deliverDate" |
96 | label="交付日期" | 88 | label="交付日期" |
97 | width="120"> | 89 | width="120"> |
98 | </el-table-column> | 90 | </el-table-column> |
99 | <el-table-column | 91 | <el-table-column |
100 | - fixed | ||
101 | prop="statusMsg" | 92 | prop="statusMsg" |
102 | label="海关回执" | 93 | label="海关回执" |
103 | width="120"> | 94 | width="120"> |
104 | </el-table-column> | 95 | </el-table-column> |
105 | <el-table-column | 96 | <el-table-column |
106 | - fixed | ||
107 | prop="supervisoryProperty" | 97 | prop="supervisoryProperty" |
108 | label="所有权监管" | 98 | label="所有权监管" |
109 | width="120"> | 99 | width="120"> |
110 | </el-table-column> | 100 | </el-table-column> |
111 | <el-table-column | 101 | <el-table-column |
112 | - fixed | ||
113 | prop="" | 102 | prop="" |
114 | label="报文操作" | 103 | label="报文操作" |
115 | width="150"> | 104 | width="150"> |
@@ -134,10 +123,10 @@ | @@ -134,10 +123,10 @@ | ||
134 | @size-change="handleSizeChange" | 123 | @size-change="handleSizeChange" |
135 | @current-change="handleCurrentChange" | 124 | @current-change="handleCurrentChange" |
136 | :current-page="currentPage" | 125 | :current-page="currentPage" |
137 | - :page-sizes="[100, 200, 300, 400]" | ||
138 | - :page-size="100" | 126 | + :page-sizes="[10, 20, 30, 40]" |
127 | + :page-size="pageSize" | ||
139 | layout="total, sizes, prev, pager, next, jumper" | 128 | layout="total, sizes, prev, pager, next, jumper" |
140 | - :total="400"> | 129 | + :total="total"> |
141 | </el-pagination> | 130 | </el-pagination> |
142 | </div> | 131 | </div> |
143 | </el-row> | 132 | </el-row> |
@@ -163,28 +152,90 @@ | @@ -163,28 +152,90 @@ | ||
163 | 152 | ||
164 | </style> | 153 | </style> |
165 | <script> | 154 | <script> |
155 | + import {editAirLineAircraft, selectAirLineAircraft} from "../../api/transport"; | ||
156 | + | ||
166 | export default { | 157 | export default { |
167 | data(){ | 158 | data(){ |
168 | return{ | 159 | return{ |
169 | queryRouteaircraft:{ | 160 | queryRouteaircraft:{ |
170 | - flightNo:undefined, | 161 | + airwayCode:undefined, |
171 | aircraftNo:undefined, | 162 | aircraftNo:undefined, |
172 | - flightDate:undefined, | ||
173 | - accessFlag:undefined, | ||
174 | }, | 163 | }, |
175 | - rules:{}, | ||
176 | labelPosition:'left', | 164 | labelPosition:'left', |
177 | - currentPage: 4, | ||
178 | - tableData:[] | 165 | + currentPage: 1, |
166 | + pageSize:10, | ||
167 | + total:0, | ||
168 | + tableData:[], | ||
169 | + tableloading:false | ||
179 | } | 170 | } |
180 | }, | 171 | }, |
181 | methods: { | 172 | methods: { |
173 | + //分页 | ||
182 | handleSizeChange(val) { | 174 | handleSizeChange(val) { |
183 | - console.log(`每页 ${val} 条`); | 175 | + this.pageSize=val; |
184 | }, | 176 | }, |
185 | handleCurrentChange(val) { | 177 | handleCurrentChange(val) { |
186 | - console.log(`当前页: ${val}`); | 178 | + this.currentPage=val; |
179 | + this.submitForm(); | ||
180 | + }, | ||
181 | + //获取航线航空器列表 | ||
182 | + submitForm() { | ||
183 | + let params = { | ||
184 | + currentPage: this.currentPage, pageSize: this.pageSize, airwayCode: this.queryRouteaircraft.airwayCode, | ||
185 | + aircraftNo: this.queryRouteaircraft.aircraftNo | ||
186 | + }; | ||
187 | + this.tableloading = true; | ||
188 | + selectAirLineAircraft(params).then(res => { | ||
189 | + let response = res.data.data; | ||
190 | + this.tableData = response.list; | ||
191 | + this.tableloading = false; | ||
192 | + this.total = response.total; | ||
193 | + }); | ||
194 | + }, | ||
195 | + //列表删除功能 | ||
196 | + handleDel(index, row) { | ||
197 | + this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', { | ||
198 | + confirmButtonText: '确定', | ||
199 | + cancelButtonText: '取消', | ||
200 | + type: 'warning' | ||
201 | + }).then(() => { | ||
202 | + editAirLineAircraft(row).then(res => { | ||
203 | + let response = res.data; | ||
204 | + if (response.code == '200') { | ||
205 | + this.$message({ | ||
206 | + type: 'info', | ||
207 | + message: '删除成功' | ||
208 | + }); | ||
209 | + this.submitForm(); | ||
210 | + } else { | ||
211 | + this.$message({ | ||
212 | + type: 'info', | ||
213 | + message: '删除失败' | ||
214 | + }); | ||
215 | + } | ||
216 | + }); | ||
217 | + }).catch(() => { | ||
218 | + this.$message({ | ||
219 | + type: 'info', | ||
220 | + message: '已取消删除' | ||
221 | + }); | ||
222 | + }); | ||
223 | + }, | ||
224 | + //获取默认值 | ||
225 | + defaultData() { | ||
226 | + this.airwayCode = JSON.parse(this.$route.query.airwayCode); | ||
227 | + this.aircraftNo = JSON.parse(this.$route.query.aircraftNo); | ||
228 | + }, | ||
229 | + //编辑航线航空器 | ||
230 | + handleEdit(index,row){ | ||
231 | + this.$router.push({path:'/routeaircraft',query: row}) | ||
232 | + }, | ||
233 | + //渲染方法 | ||
234 | + mounted(){ | ||
235 | + this.defaultData(); | ||
236 | + this.submitForm(); | ||
187 | } | 237 | } |
188 | - }, | 238 | + } |
239 | + | ||
189 | } | 240 | } |
190 | </script> | 241 | </script> |
@@ -9,23 +9,27 @@ | @@ -9,23 +9,27 @@ | ||
9 | <el-row> | 9 | <el-row> |
10 | <el-form :model="airline" :rules="rules" ref="airline" label-width="100px" class="demo-ruleForm"> | 10 | <el-form :model="airline" :rules="rules" ref="airline" label-width="100px" class="demo-ruleForm"> |
11 | <el-col :span="6"> | 11 | <el-col :span="6"> |
12 | - <el-form-item label="出发港" prop="departurePort" label-width="120px"> | ||
13 | - <el-input v-model="airline.departurePort"></el-input> | 12 | + <el-form-item label="出发港" prop="departurePort" label-width="120px"> |
13 | + <el-input @input="e => airline.departurePort=inputMe(e)" v-model="airline.departurePort" | ||
14 | + maxLength='3' ></el-input> | ||
14 | </el-form-item> | 15 | </el-form-item> |
15 | </el-col> | 16 | </el-col> |
16 | <el-col :span="6"> | 17 | <el-col :span="6"> |
17 | <el-form-item label="出发港关区" prop="departureCustomNo" label-width="120px"> | 18 | <el-form-item label="出发港关区" prop="departureCustomNo" label-width="120px"> |
18 | - <el-input v-model="airline.departureCustomNo"></el-input> | 19 | + <el-input v-model="airline.departureCustomNo" oninput="value=value.replace(/[^\d]/g,'')" |
20 | + maxLength='4'></el-input> | ||
19 | </el-form-item> | 21 | </el-form-item> |
20 | </el-col> | 22 | </el-col> |
21 | <el-col :span="6"> | 23 | <el-col :span="6"> |
22 | <el-form-item label="目的港" prop="arrivalPort" label-width="120px"> | 24 | <el-form-item label="目的港" prop="arrivalPort" label-width="120px"> |
23 | - <el-input v-model="airline.arrivalPort"></el-input> | 25 | + <el-input @input="e => airline.arrivalPort=inputMe(e)" v-model="airline.arrivalPort" |
26 | + maxLength='3'></el-input> | ||
24 | </el-form-item> | 27 | </el-form-item> |
25 | </el-col> | 28 | </el-col> |
26 | <el-col :span="6"> | 29 | <el-col :span="6"> |
27 | <el-form-item label="目的港关区" prop="arrivalCustomNo" label-width="120px"> | 30 | <el-form-item label="目的港关区" prop="arrivalCustomNo" label-width="120px"> |
28 | - <el-input v-model="airline.arrivalCustomNo"></el-input> | 31 | + <el-input v-model="airline.arrivalCustomNo" oninput="value=value.replace(/[^\d]/g,'')" |
32 | + maxLength='4'></el-input> | ||
29 | </el-form-item> | 33 | </el-form-item> |
30 | </el-col> | 34 | </el-col> |
31 | <el-col :span="24"> | 35 | <el-col :span="24"> |
@@ -40,7 +44,7 @@ | @@ -40,7 +44,7 @@ | ||
40 | </el-col> | 44 | </el-col> |
41 | <el-col :span="24" style="margin-bottom: 20px"> | 45 | <el-col :span="24" style="margin-bottom: 20px"> |
42 | <el-col :span="24"> | 46 | <el-col :span="24"> |
43 | - <div class="grid-content content">长期飞行计划<el-button type="primary" size="mini" @click="dialogTableVisible = true" style="margin-left:25px">长期飞行计划查询</el-button></div> | 47 | + <div class="grid-content content">长期飞行计划<el-button type="primary" size="mini" @click="selectLongplan()" style="margin-left:25px">长期飞行计划查询</el-button></div> |
44 | </el-col> | 48 | </el-col> |
45 | </el-col> | 49 | </el-col> |
46 | <el-col :span="8"> | 50 | <el-col :span="8"> |
@@ -55,6 +59,7 @@ | @@ -55,6 +59,7 @@ | ||
55 | :picker-options="{ | 59 | :picker-options="{ |
56 | selectableRange: '00:00:00 - 23:59:59' | 60 | selectableRange: '00:00:00 - 23:59:59' |
57 | }" | 61 | }" |
62 | + format="HHmmss" | ||
58 | style="width:100%" | 63 | style="width:100%" |
59 | placeholder="任意时间点"> | 64 | placeholder="任意时间点"> |
60 | </el-time-picker> | 65 | </el-time-picker> |
@@ -67,6 +72,7 @@ | @@ -67,6 +72,7 @@ | ||
67 | :picker-options="{ | 72 | :picker-options="{ |
68 | selectableRange: '00:00:00 - 23:59:59' | 73 | selectableRange: '00:00:00 - 23:59:59' |
69 | }" | 74 | }" |
75 | + format="HHmmss" | ||
70 | style="width:100%" | 76 | style="width:100%" |
71 | placeholder="任意时间点"> | 77 | placeholder="任意时间点"> |
72 | </el-time-picker> | 78 | </el-time-picker> |
@@ -77,6 +83,8 @@ | @@ -77,6 +83,8 @@ | ||
77 | <el-date-picker | 83 | <el-date-picker |
78 | v-model="airline.effStartdate" | 84 | v-model="airline.effStartdate" |
79 | type="date" | 85 | type="date" |
86 | + value-format="yyyyMMdd" | ||
87 | + format="yyyyMMdd" | ||
80 | style="width:100%" | 88 | style="width:100%" |
81 | placeholder="选择日期"> | 89 | placeholder="选择日期"> |
82 | </el-date-picker> | 90 | </el-date-picker> |
@@ -87,6 +95,8 @@ | @@ -87,6 +95,8 @@ | ||
87 | <el-date-picker | 95 | <el-date-picker |
88 | v-model="airline.effEnddate" | 96 | v-model="airline.effEnddate" |
89 | type="date" | 97 | type="date" |
98 | + value-format="yyyyMMdd" | ||
99 | + format="yyyyMMdd" | ||
90 | style="width:100%" | 100 | style="width:100%" |
91 | placeholder="选择日期"> | 101 | placeholder="选择日期"> |
92 | </el-date-picker> | 102 | </el-date-picker> |
@@ -108,6 +118,7 @@ | @@ -108,6 +118,7 @@ | ||
108 | <el-table | 118 | <el-table |
109 | :data="tableData" | 119 | :data="tableData" |
110 | border | 120 | border |
121 | + v-loading="tableloading" | ||
111 | style="width: 100%;margin-bottom: 10px"> | 122 | style="width: 100%;margin-bottom: 10px"> |
112 | <el-table-column | 123 | <el-table-column |
113 | fixed="left" | 124 | fixed="left" |
@@ -121,25 +132,21 @@ | @@ -121,25 +132,21 @@ | ||
121 | </template> | 132 | </template> |
122 | </el-table-column> | 133 | </el-table-column> |
123 | <el-table-column | 134 | <el-table-column |
124 | - fixed | ||
125 | prop="std" | 135 | prop="std" |
126 | label="长期离港时间" | 136 | label="长期离港时间" |
127 | width="150"> | 137 | width="150"> |
128 | </el-table-column> | 138 | </el-table-column> |
129 | <el-table-column | 139 | <el-table-column |
130 | - fixed | ||
131 | prop="sta" | 140 | prop="sta" |
132 | label="长期抵港时间" | 141 | label="长期抵港时间" |
133 | width="150"> | 142 | width="150"> |
134 | </el-table-column> | 143 | </el-table-column> |
135 | <el-table-column | 144 | <el-table-column |
136 | - fixed | ||
137 | prop="effStartdate" | 145 | prop="effStartdate" |
138 | label="有效起始日期" | 146 | label="有效起始日期" |
139 | width="180"> | 147 | width="180"> |
140 | </el-table-column> | 148 | </el-table-column> |
141 | <el-table-column | 149 | <el-table-column |
142 | - fixed | ||
143 | prop="effEnddate" | 150 | prop="effEnddate" |
144 | label="有效结束日期" | 151 | label="有效结束日期" |
145 | width="180"> | 152 | width="180"> |
@@ -150,12 +157,26 @@ | @@ -150,12 +157,26 @@ | ||
150 | @current-change="handleCurrentChange" | 157 | @current-change="handleCurrentChange" |
151 | :current-page="currentPage4" | 158 | :current-page="currentPage4" |
152 | :page-sizes="[10, 20, 30, 40]" | 159 | :page-sizes="[10, 20, 30, 40]" |
153 | - :page-size="100" | 160 | + :page-size="pageSize" |
154 | layout="total, sizes, prev, pager, next, jumper" | 161 | layout="total, sizes, prev, pager, next, jumper" |
155 | - :total="100"> | 162 | + :total="total"> |
156 | </el-pagination> | 163 | </el-pagination> |
157 | </el-dialog> | 164 | </el-dialog> |
158 | </el-row> | 165 | </el-row> |
166 | + <!--对话提示框--> | ||
167 | + <el-row> | ||
168 | + <el-dialog | ||
169 | + title="系统提示" | ||
170 | + :visible.sync="centerDialogVisible" | ||
171 | + width="30%" | ||
172 | + center> | ||
173 | + <span>{{msg}}</span> | ||
174 | + <span slot="footer" class="dialog-footer"> | ||
175 | + <el-button @click="centerDialogVisible = false">取 消</el-button> | ||
176 | + <el-button type="primary" @click="centerDialogVisible = false">确 定</el-button> | ||
177 | + </span> | ||
178 | + </el-dialog> | ||
179 | + </el-row> | ||
159 | </el-main> | 180 | </el-main> |
160 | </el-container> | 181 | </el-container> |
161 | </template> | 182 | </template> |
@@ -178,6 +199,9 @@ | @@ -178,6 +199,9 @@ | ||
178 | .el-col{margin-right: 0px;} | 199 | .el-col{margin-right: 0px;} |
179 | </style> | 200 | </style> |
180 | <script> | 201 | <script> |
202 | + const fecha = require('fecha'); | ||
203 | + import {addRoute,selectLongTimePlan} from '../../api/transport' | ||
204 | + import loginUserInfo from '../../api/base' | ||
181 | export default { | 205 | export default { |
182 | data(){ | 206 | data(){ |
183 | return{ | 207 | return{ |
@@ -198,54 +222,132 @@ | @@ -198,54 +222,132 @@ | ||
198 | plan:undefined, | 222 | plan:undefined, |
199 | remark:undefined, | 223 | remark:undefined, |
200 | createTime:undefined, | 224 | createTime:undefined, |
201 | - createBy:undefined, | 225 | + createBy:loginUserInfo.username, |
202 | updateTime:undefined, | 226 | updateTime:undefined, |
203 | - updateBy:undefined, | ||
204 | - isDelete:undefined | 227 | + updateBy:loginUserInfo.username, |
228 | + isDelete:undefined, | ||
229 | + }, | ||
230 | + longtimeplan:{ | ||
231 | + createBy:loginUserInfo.username | ||
205 | }, | 232 | }, |
206 | rules: { | 233 | rules: { |
207 | departurePort: [ | 234 | departurePort: [ |
235 | + //{ min: 3, max: 3, message: '长度在3个字符', trigger: 'blur'}, | ||
208 | {required: true, message: '请输入(三字码)', trigger: 'blur'}, | 236 | {required: true, message: '请输入(三字码)', trigger: 'blur'}, |
209 | - {min: 3, max: 3, message: '长度在 3 个字符', trigger: 'blur'} | ||
210 | ], | 237 | ], |
211 | departureCustomNo: [ | 238 | departureCustomNo: [ |
212 | - {required: true, message: '请输入关区代码', trigger: 'blur'} | 239 | + {required: true, message: '请输入四位(数字)关区代码', trigger: 'blur'} |
213 | ], | 240 | ], |
214 | arrivalPort: [ | 241 | arrivalPort: [ |
215 | {required: true, message: '请输入(三字码)', trigger: 'blur'}, | 242 | {required: true, message: '请输入(三字码)', trigger: 'blur'}, |
216 | - {min: 3, max: 3, message: '长度在 3 个字符', trigger: 'blur'} | ||
217 | ], | 243 | ], |
218 | arrivalCustomNo: [ | 244 | arrivalCustomNo: [ |
219 | - {required: true, message: '请输入关区代码', trigger: 'blur'} | 245 | + {required: true, message: '请输入四位(数字)关区代码', trigger: 'blur'} |
246 | + ], | ||
247 | + serialNo:[ | ||
248 | + {required: true, message: '请输入航线序号', trigger: 'blur'} | ||
249 | + ], | ||
250 | + plan: [ | ||
251 | + {required: true, message: '请输入', trigger: 'blur'}, | ||
220 | ], | 252 | ], |
253 | + std: [ | ||
254 | + {required: true, message: '请选择时间', trigger: 'blur'} | ||
255 | + ], | ||
256 | + sta: [ | ||
257 | + {required: true, message: '请选择时间', trigger: 'blur'}, | ||
258 | + ], | ||
259 | + effStartdate: [ | ||
260 | + {required: true, message: '请选择时间', trigger: 'blur'} | ||
261 | + ], | ||
262 | + effEnddate:[ | ||
263 | + {required: true, message: '请选择时间', trigger: 'blur'} | ||
264 | + ] | ||
221 | }, | 265 | }, |
222 | - tableData: [{ | ||
223 | - std: '16:11:46', | ||
224 | - sta: '16:11:46', | ||
225 | - effStartdate: '2016-05-02', | ||
226 | - effEnddate: '2016-05-02' | ||
227 | - }], | 266 | + tableData: [], |
267 | + //长期飞行计划弹框 | ||
228 | dialogTableVisible:false, | 268 | dialogTableVisible:false, |
229 | - currentPage4:4, | 269 | + //系统提示框 |
270 | + centerDialogVisible:false, | ||
271 | + currentPage4:1, | ||
272 | + pageSize:10, | ||
273 | + total:0, | ||
274 | + msg:undefined, | ||
275 | + tableloading:false | ||
230 | } | 276 | } |
231 | }, | 277 | }, |
232 | methods:{ | 278 | methods:{ |
279 | + //查询长期飞行计划列表 | ||
280 | + selectLongplan(){ | ||
281 | + this.dialogTableVisible=true; | ||
282 | + this.tableloading=true; | ||
283 | + selectLongTimePlan(this.longtimeplan).then(res=>{ | ||
284 | + let response=res.data.data; | ||
285 | + this.tableData=response.list; | ||
286 | + this.tableloading=false; | ||
287 | + this.total=response.total; | ||
288 | + }); | ||
289 | + }, | ||
290 | + //新增航线方法(保存按钮) | ||
233 | submitForm(formName) { | 291 | submitForm(formName) { |
292 | + //重新定义范围域 | ||
234 | this.$refs[formName].validate((valid) => { | 293 | this.$refs[formName].validate((valid) => { |
235 | if (valid) { | 294 | if (valid) { |
236 | - alert('submit!'); | 295 | + //重新定义airline |
296 | + addRoute(this.airline).then(res=>{ | ||
297 | + let response=res.data; | ||
298 | + if(response.code=='200'){ | ||
299 | + this.centerDialogVisible=true; | ||
300 | + this.msg=response.msg; | ||
301 | + this.$router.push({path:'/queryRoute',query:{serialNo:this.airline.serialNo}}); | ||
302 | + this.centerDialogVisible=false; | ||
303 | + }else{ | ||
304 | + this.centerDialogVisible=true; | ||
305 | + this.msg=response.msg; | ||
306 | + } | ||
307 | + }); | ||
237 | } else { | 308 | } else { |
238 | console.log('error submit!!'); | 309 | console.log('error submit!!'); |
239 | return false; | 310 | return false; |
240 | } | 311 | } |
241 | }); | 312 | }); |
242 | }, | 313 | }, |
314 | + //分页方法 | ||
243 | handleSizeChange(val) { | 315 | handleSizeChange(val) { |
244 | - console.log(`每页 ${val} 条`); | 316 | + this.pageSize=val; |
245 | }, | 317 | }, |
246 | handleCurrentChange(val) { | 318 | handleCurrentChange(val) { |
247 | - console.log(`当前页: ${val}`); | 319 | + this.currentPage=val; |
320 | + this.selectLongtimeplan(); | ||
321 | + }, | ||
322 | + //长期飞行计划选择功能 | ||
323 | + handleEdit(index,row){ | ||
324 | + this.airline.std=fecha.parse(row.std,'HHmmss'); | ||
325 | + this.airline.sta=fecha.parse(row.sta,'HHmmss'); | ||
326 | + this.airline.effStartdate=row.effStartdate; | ||
327 | + this.airline.effEnddate=row.effEnddate; | ||
328 | + this.dialogTableVisible=false; | ||
329 | + }, | ||
330 | + //加载默认值 | ||
331 | + defaultData(){ | ||
332 | + if(this.$route.query.uuid!=null){ | ||
333 | + let ob=Object.assign(this.airline, this.$route.query); | ||
334 | + if(ob.sta!=null && ob.sta!=undefined && ob.sta!=""){ | ||
335 | + this.airline.sta=fecha.parse(ob.sta,'HHmmss'); | ||
336 | + } | ||
337 | + if(ob.std!=null && ob.std!=undefined && ob.std!=""){ | ||
338 | + this.airline.std=fecha.parse(ob.std,'HHmmss'); | ||
339 | + } | ||
340 | + } | ||
341 | + }, | ||
342 | + // 过滤中英文 | ||
343 | + inputMe(e){ | ||
344 | + return e.replace(/[^a-zA-Z]/g,'').toUpperCase(); | ||
248 | } | 345 | } |
346 | + }, | ||
347 | + | ||
348 | + //渲染方法 | ||
349 | + mounted(){ | ||
350 | + this.defaultData(); | ||
249 | } | 351 | } |
250 | } | 352 | } |
251 | </script> | 353 | </script> |
@@ -14,12 +14,12 @@ | @@ -14,12 +14,12 @@ | ||
14 | </el-form-item> | 14 | </el-form-item> |
15 | </el-col> | 15 | </el-col> |
16 | <el-col :span="6"> | 16 | <el-col :span="6"> |
17 | - <el-form-item label="航空公司英文名称" prop="airwayNameEn" label-width="130px"> | 17 | + <el-form-item label="航空公司英文名称" prop="airwayNameEn" label-width="140px"> |
18 | <el-input v-model="aircraft.airwayNameEn" placeholder="请输入"></el-input> | 18 | <el-input v-model="aircraft.airwayNameEn" placeholder="请输入"></el-input> |
19 | </el-form-item> | 19 | </el-form-item> |
20 | </el-col> | 20 | </el-col> |
21 | <el-col :span="6"> | 21 | <el-col :span="6"> |
22 | - <el-form-item label="航空公司中文名称" prop="airwayNameCn" label-width="130px"> | 22 | + <el-form-item label="航空公司中文名称" prop="airwayNameCn" label-width="140px"> |
23 | <el-input v-model="aircraft.airwayNameCn" placeholder="请输入"></el-input> | 23 | <el-input v-model="aircraft.airwayNameCn" placeholder="请输入"></el-input> |
24 | </el-form-item> | 24 | </el-form-item> |
25 | </el-col> | 25 | </el-col> |
@@ -52,12 +52,12 @@ | @@ -52,12 +52,12 @@ | ||
52 | </el-col> | 52 | </el-col> |
53 | <el-col :span="6"> | 53 | <el-col :span="6"> |
54 | <el-form-item label="最大起飞重量" prop="grossWeight" label-width="130px"> | 54 | <el-form-item label="最大起飞重量" prop="grossWeight" label-width="130px"> |
55 | - <el-input v-model="aircraft.grossWeight" placeholder="请输入重量(单位:KG)"></el-input> | 55 | + <el-input v-model="aircraft.grossWeight" placeholder="请输入重量(单位:KG)" oninput="value=value.replace(/[^\d]/g,'')"></el-input> |
56 | </el-form-item> | 56 | </el-form-item> |
57 | </el-col> | 57 | </el-col> |
58 | <el-col :span="6"> | 58 | <el-col :span="6"> |
59 | <el-form-item label="标客舱载客人数" prop="passengerLimit" label-width="130px"> | 59 | <el-form-item label="标客舱载客人数" prop="passengerLimit" label-width="130px"> |
60 | - <el-input v-model="aircraft.passengerLimit" placeholder="请输入数量(单位:人)"></el-input> | 60 | + <el-input v-model="aircraft.passengerLimit" placeholder="请输入数量(单位:人)" oninput="value=value.replace(/[^\d]/g,'')"></el-input> |
61 | </el-form-item> | 61 | </el-form-item> |
62 | </el-col> | 62 | </el-col> |
63 | <el-col :span="6"> | 63 | <el-col :span="6"> |
@@ -66,8 +66,8 @@ | @@ -66,8 +66,8 @@ | ||
66 | </el-form-item> | 66 | </el-form-item> |
67 | </el-col> | 67 | </el-col> |
68 | <el-col :span="6"> | 68 | <el-col :span="6"> |
69 | - <el-form-item label="航空器所有人代码" prop="ownerCo" label-width="130px"> | ||
70 | - <el-input v-model="aircraft.ownerCo" placeholder="请输入数量(单位:人)"></el-input> | 69 | + <el-form-item label="航空器所有人代码" prop="ownerCo" label-width="140px"> |
70 | + <el-input v-model="aircraft.ownerCo" placeholder="请输入" ></el-input> | ||
71 | </el-form-item> | 71 | </el-form-item> |
72 | </el-col> | 72 | </el-col> |
73 | <el-col :span="6"> | 73 | <el-col :span="6"> |
@@ -80,6 +80,8 @@ | @@ -80,6 +80,8 @@ | ||
80 | <el-date-picker | 80 | <el-date-picker |
81 | v-model="aircraft.deliverDate" | 81 | v-model="aircraft.deliverDate" |
82 | type="date" | 82 | type="date" |
83 | + value-format="yyyyMMdd" | ||
84 | + format="yyyyMMdd" | ||
83 | style="width:100%" | 85 | style="width:100%" |
84 | placeholder="选择日期"> | 86 | placeholder="选择日期"> |
85 | </el-date-picker> | 87 | </el-date-picker> |
@@ -96,6 +98,20 @@ | @@ -96,6 +98,20 @@ | ||
96 | <el-col :span="24"> <el-button type="primary" @click="submitForm('aircraft')">保 存</el-button> | 98 | <el-col :span="24"> <el-button type="primary" @click="submitForm('aircraft')">保 存</el-button> |
97 | <el-button type="success">保存并发送</el-button></el-col> | 99 | <el-button type="success">保存并发送</el-button></el-col> |
98 | </el-row> | 100 | </el-row> |
101 | + <!--对话提示框--> | ||
102 | + <el-row> | ||
103 | + <el-dialog | ||
104 | + title="系统提示" | ||
105 | + :visible.sync="centerDialogVisible" | ||
106 | + width="30%" | ||
107 | + center> | ||
108 | + <span>{{msg}}</span> | ||
109 | + <span slot="footer" class="dialog-footer"> | ||
110 | + <el-button @click="centerDialogVisible = false">取 消</el-button> | ||
111 | + <el-button type="primary" @click="centerDialogVisible = false">确 定</el-button> | ||
112 | + </span> | ||
113 | + </el-dialog> | ||
114 | + </el-row> | ||
99 | </el-main> | 115 | </el-main> |
100 | </el-container> | 116 | </el-container> |
101 | </template> | 117 | </template> |
@@ -118,6 +134,8 @@ | @@ -118,6 +134,8 @@ | ||
118 | .el-col{margin-right: 0px;} | 134 | .el-col{margin-right: 0px;} |
119 | </style> | 135 | </style> |
120 | <script> | 136 | <script> |
137 | + import {addFlightPlan} from "../../api/transport"; | ||
138 | + | ||
121 | export default { | 139 | export default { |
122 | data(){ | 140 | data(){ |
123 | return{ | 141 | return{ |
@@ -148,10 +166,82 @@ | @@ -148,10 +166,82 @@ | ||
148 | messageid:undefined | 166 | messageid:undefined |
149 | }, | 167 | }, |
150 | rules:{ | 168 | rules:{ |
151 | - | 169 | + airwayCode: [ |
170 | + {required: true, message: '请输入', trigger: 'blur'} | ||
171 | + ], | ||
172 | + airwayNameEn: [ | ||
173 | + {required: true, message: '请输入', trigger: 'blur'} | ||
174 | + ], | ||
175 | + airwayNameCn: [ | ||
176 | + {required: true, message: '请输入', trigger: 'blur'} | ||
177 | + ], | ||
178 | + areoNationality: [ | ||
179 | + {required: true, message: '请输入', trigger: 'blur'} | ||
180 | + ], | ||
181 | + aircraftNo: [ | ||
182 | + {required: true, message: '请输入', trigger: 'blur'} | ||
183 | + ], | ||
184 | + credentialType: [ | ||
185 | + {required: true, message: '请输入', trigger: 'blur'} | ||
186 | + ], | ||
187 | + credentialNo: [ | ||
188 | + {required: true, message: '请输入', trigger: 'blur'} | ||
189 | + ], | ||
190 | + areoModel: [ | ||
191 | + {required: true, message: '请输入', trigger: 'blur'} | ||
192 | + ], | ||
193 | + grossWeight: [ | ||
194 | + {required: true, message: '请输入', trigger: 'blur'} | ||
195 | + ], | ||
196 | + passengerLimit: [ | ||
197 | + {required: true, message: '请输入', trigger: 'blur'} | ||
198 | + ], | ||
199 | + useRelation: [ | ||
200 | + {required: true, message: '请输入', trigger: 'blur'} | ||
201 | + ], | ||
202 | + ownerCo: [ | ||
203 | + {required: true, message: '请输入', trigger: 'blur'} | ||
204 | + ], | ||
205 | + certNo: [ | ||
206 | + {required: true, message: '请输入', trigger: 'blur'} | ||
207 | + ], | ||
208 | + deliverDate: [ | ||
209 | + {required: true, message: '请输入', trigger: 'blur'} | ||
210 | + ], | ||
152 | }, | 211 | }, |
212 | + centerDialogVisible:false, | ||
153 | } | 213 | } |
154 | }, | 214 | }, |
155 | - methods(){} | 215 | + methods:{ |
216 | + //新增航线航空器(保存按钮) | ||
217 | + submitForm(formName) { | ||
218 | + this.$refs[formName].validate((valid) => { | ||
219 | + if (valid) { | ||
220 | + addFlightPlan(this.aircraft).then(res=>{ | ||
221 | + let response=res.data; | ||
222 | + if(response.code=='200'){ | ||
223 | + this.centerDialogVisible=true; | ||
224 | + this.msg=response.msg; | ||
225 | + this.$router.push({path:'/queryRouteaircraft',query:{airwayCode:JSON.stringify(this.aircraft.airwayCode)},}); | ||
226 | + }else{ | ||
227 | + this.msg=response.msg; | ||
228 | + } | ||
229 | + }); | ||
230 | + } else { | ||
231 | + console.log('error submit!!'); | ||
232 | + return false; | ||
233 | + } | ||
234 | + }); | ||
235 | + }, | ||
236 | + //加载默认值 | ||
237 | + defaultData(){ | ||
238 | + if(this.$route.query!=null){ | ||
239 | + let ob=Object.assign(this.airwayCode, this.$route.query); | ||
240 | + } | ||
241 | + }, | ||
242 | + }, | ||
243 | + mounted(){ | ||
244 | + this.defaultData(); | ||
245 | + } | ||
156 | } | 246 | } |
157 | </script> | 247 | </script> |
@@ -246,7 +246,6 @@ | @@ -246,7 +246,6 @@ | ||
246 | this.listLoading = false; | 246 | this.listLoading = false; |
247 | //NProgress.done(); | 247 | //NProgress.done(); |
248 | }).catch((error) => { | 248 | }).catch((error) => { |
249 | - | ||
250 | this.listLoading = false; | 249 | this.listLoading = false; |
251 | if(null!= error.response && error.response!==undefined){ | 250 | if(null!= error.response && error.response!==undefined){ |
252 | let status= error.response.status; | 251 | let status= error.response.status; |
@@ -264,7 +263,7 @@ | @@ -264,7 +263,7 @@ | ||
264 | getPermList() { | 263 | getPermList() { |
265 | let para = { | 264 | let para = { |
266 | pageNum: 1, | 265 | pageNum: 1, |
267 | - pageSize: 200 | 266 | + pageSize: 500 |
268 | }; | 267 | }; |
269 | NProgress.start(); | 268 | NProgress.start(); |
270 | permList(para).then((res) => { | 269 | permList(para).then((res) => { |
-
请 注册 或 登录 后发表评论