正在显示
13 个修改的文件
包含
88 行增加
和
60 行删除
@@ -10,7 +10,7 @@ | @@ -10,7 +10,7 @@ | ||
10 | <el-form :model="aircraft" :rules="rules" ref="aircraft" label-width="130px" class="demo-ruleForm"> | 10 | <el-form :model="aircraft" :rules="rules" ref="aircraft" label-width="130px" class="demo-ruleForm"> |
11 | <el-col :span="6"> | 11 | <el-col :span="6"> |
12 | <el-form-item label="航空公司代码" prop="airwayCode" label-width="130px"> | 12 | <el-form-item label="航空公司代码" prop="airwayCode" label-width="130px"> |
13 | - <el-input v-model="aircraft.airwayCode" placeholder="请输入"></el-input> | 13 | + <el-input v-model="aircraft.airwayCode" placeholder="请输入" @input="e => aircraft.airwayCode=inputMe(e)" maxLength='2'></el-input> |
14 | </el-form-item> | 14 | </el-form-item> |
15 | </el-col> | 15 | </el-col> |
16 | <el-col :span="6"> | 16 | <el-col :span="6"> |
@@ -26,12 +26,12 @@ | @@ -26,12 +26,12 @@ | ||
26 | <el-col :span="12"></el-col> | 26 | <el-col :span="12"></el-col> |
27 | <el-col :span="6"> | 27 | <el-col :span="6"> |
28 | <el-form-item label="航空器注册编号" prop="aircraftNo" label-width="130px"> | 28 | <el-form-item label="航空器注册编号" prop="aircraftNo" label-width="130px"> |
29 | - <el-input v-model="aircraft.aircraftNo" placeholder="请输入"></el-input> | 29 | + <el-input v-model.trim="aircraft.aircraftNo" placeholder="请输入" @input="e => aircraft.aircraftNo=inputMe(e)"></el-input> |
30 | </el-form-item> | 30 | </el-form-item> |
31 | </el-col> | 31 | </el-col> |
32 | <el-col :span="6"> | 32 | <el-col :span="6"> |
33 | <el-form-item label="航空器国籍" prop="areoNationality" label-width="130px"> | 33 | <el-form-item label="航空器国籍" prop="areoNationality" label-width="130px"> |
34 | - <el-input v-model="aircraft.areoNationality" placeholder="请输入"></el-input> | 34 | + <el-input v-model="aircraft.areoNationality" placeholder="请输入" maxLength='2' @input="e => aircraft.areoNationality=inputMe(e)"></el-input> |
35 | </el-form-item> | 35 | </el-form-item> |
36 | </el-col> | 36 | </el-col> |
37 | <el-col :span="6"> | 37 | <el-col :span="6"> |
@@ -67,7 +67,7 @@ | @@ -67,7 +67,7 @@ | ||
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="140px"> | 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="请输入数量(单位:人)" oninput="value=value.replace(/[^\d]/g,'')"></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"> |
@@ -264,6 +264,10 @@ | @@ -264,6 +264,10 @@ | ||
264 | this.flight.currentTakeoffTime=fecha.parse(ob.currentTakeoffTime,'yyyyMMddHHmm');*/ | 264 | this.flight.currentTakeoffTime=fecha.parse(ob.currentTakeoffTime,'yyyyMMddHHmm');*/ |
265 | } | 265 | } |
266 | }, | 266 | }, |
267 | + // 过滤中英文 | ||
268 | + inputMe(e){ | ||
269 | + return e.replace(/[^a-zA-Z0-9.-]/g,'').toUpperCase(); | ||
270 | + } | ||
267 | }, | 271 | }, |
268 | mounted(){ | 272 | mounted(){ |
269 | this.defaultData(); | 273 | this.defaultData(); |
@@ -10,12 +10,12 @@ | @@ -10,12 +10,12 @@ | ||
10 | <el-form :model="arrival" :rules="rules" ref="arrival" label-width="100%" class="demo-ruleForm"> | 10 | <el-form :model="arrival" :rules="rules" ref="arrival" 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="arrival.aircraftNo"></el-input> | 13 | + <el-input v-model.trim="arrival.aircraftNo" @input="e => arrival.aircraftNo=inputMe(e)"></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="arrival.flightNo"></el-input> | 18 | + <el-input v-model="arrival.flightNo" @input="e => arrival.flightNo=inputMe(e)"></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"> |
@@ -32,14 +32,12 @@ | @@ -32,14 +32,12 @@ | ||
32 | </el-col> | 32 | </el-col> |
33 | <el-col :span="8"> | 33 | <el-col :span="8"> |
34 | <el-form-item label="出发港" prop="departurePort" label-width="120px"> | 34 | <el-form-item label="出发港" prop="departurePort" label-width="120px"> |
35 | - <el-input v-model="arrival.departurePort" @input="e => arrival.departurePort=inputMe(e)" | ||
36 | - maxLength='3'></el-input> | 35 | + <el-input v-model="arrival.departurePort" @input="e => arrival.departurePort=inputMe(e)" maxLength='3'></el-input> |
37 | </el-form-item> | 36 | </el-form-item> |
38 | </el-col> | 37 | </el-col> |
39 | <el-col :span="8"> | 38 | <el-col :span="8"> |
40 | <el-form-item label="目的港" prop="arrivalPort" label-width="120px"> | 39 | <el-form-item label="目的港" prop="arrivalPort" label-width="120px"> |
41 | - <el-input v-model="arrival.arrivalPort" @input="e => arrival.arrivalPort=inputMe(e)" | ||
42 | - maxLength='3'></el-input> | 40 | + <el-input v-model="arrival.arrivalPort" @input="e => arrival.arrivalPort=inputMe(e)" maxLength='3'></el-input> |
43 | </el-form-item> | 41 | </el-form-item> |
44 | </el-col> | 42 | </el-col> |
45 | <el-col :span="8"> | 43 | <el-col :span="8"> |
@@ -62,7 +60,8 @@ | @@ -62,7 +60,8 @@ | ||
62 | </el-col> | 60 | </el-col> |
63 | <el-col :span="6"> | 61 | <el-col :span="6"> |
64 | <el-form-item label="停靠机坪" prop="stayid" label-width="120px"> | 62 | <el-form-item label="停靠机坪" prop="stayid" label-width="120px"> |
65 | - <el-input v-model="arrival.stayid"></el-input> | 63 | + <el-input v-model="arrival.stayid" oninput="value=value.replace(/[^\d]/g,'')" |
64 | + maxLength='7'></el-input> | ||
66 | </el-form-item> | 65 | </el-form-item> |
67 | </el-col> | 66 | </el-col> |
68 | <el-col :span="6"> | 67 | <el-col :span="6"> |
@@ -167,23 +166,26 @@ | @@ -167,23 +166,26 @@ | ||
167 | ], | 166 | ], |
168 | departurePort: [ | 167 | departurePort: [ |
169 | {required: true, message: '请输入(三字码)', trigger: 'blur'}, | 168 | {required: true, message: '请输入(三字码)', trigger: 'blur'}, |
170 | - {min: 3, max: 3, message: '长度在 3 个字符', trigger: 'blur'} | 169 | + { pattern: /^[A-Z]{3}$/, message: '请输入(三字码)', trigger: 'blur' } |
170 | + | ||
171 | ], | 171 | ], |
172 | arrivalPort: [ | 172 | arrivalPort: [ |
173 | {required: true, message: '请输入(三字码)', trigger: 'blur'}, | 173 | {required: true, message: '请输入(三字码)', trigger: 'blur'}, |
174 | - {min: 3, max: 3, message: '长度在 3 个字符', trigger: 'blur'} | 174 | + { pattern: /^[A-Z]{3}$/, message: '请输入(三字码)', trigger: 'blur' } |
175 | ], | 175 | ], |
176 | customDistrictNo: [ | 176 | customDistrictNo: [ |
177 | - {required: true, message: '请选择', trigger: 'blur'} | 177 | + {required: true, message: '请输入', trigger: 'blur'}, |
178 | + { pattern: /^[0-9]{4}$/, message: '请输入正确关区', trigger: 'blur' } | ||
178 | ], | 179 | ], |
179 | departuredatetime: [ | 180 | departuredatetime: [ |
180 | {required: true, message: '请选择', trigger: 'change'} | 181 | {required: true, message: '请选择', trigger: 'change'} |
181 | ], | 182 | ], |
182 | stayid: [ | 183 | stayid: [ |
183 | - {required: true, message: '请输入', trigger: 'blur'} | 184 | + {required: true, message: '请输入', trigger: 'blur'}, |
185 | + { pattern: /^[0-9]{6}$/, message: '请输入正确机坪号码', trigger: 'blur' } | ||
184 | ], | 186 | ], |
185 | dischargecompleteddatetime: [ | 187 | dischargecompleteddatetime: [ |
186 | - {required: true, message: '请输入', trigger: 'blur'} | 188 | + {required: true, message: '请选择', trigger: 'blur'} |
187 | ], | 189 | ], |
188 | arrivaldatetime: [ | 190 | arrivaldatetime: [ |
189 | {required: true, message: '请选择', trigger: 'blur'} | 191 | {required: true, message: '请选择', trigger: 'blur'} |
@@ -243,7 +245,7 @@ | @@ -243,7 +245,7 @@ | ||
243 | }, | 245 | }, |
244 | // 过滤中英文 | 246 | // 过滤中英文 |
245 | inputMe(e){ | 247 | inputMe(e){ |
246 | - return e.replace(/[^a-zA-Z]/g,'').toUpperCase(); | 248 | + return e.replace(/[^a-zA-Z0-9.-]/g,'').toUpperCase(); |
247 | } | 249 | } |
248 | }, | 250 | }, |
249 | mounted(){ | 251 | mounted(){ |
@@ -10,12 +10,12 @@ | @@ -10,12 +10,12 @@ | ||
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" placeholder="请输入"></el-input> | 13 | + <el-input v-model.trim="bill.aircraftNo" placeholder="请输入" @input="e => bill.aircraftNo=inputMe(e)"></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" placeholder="请输入"></el-input> | 18 | + <el-input v-model="bill.flightNo" placeholder="请输入" @input="e => bill.flightNo=inputMe(e)"></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"> |
@@ -32,7 +32,7 @@ | @@ -32,7 +32,7 @@ | ||
32 | </el-col> | 32 | </el-col> |
33 | <el-col :span="6"> | 33 | <el-col :span="6"> |
34 | <el-form-item label="进出港标识" prop="accessFlag" label-width="120px"> | 34 | <el-form-item label="进出港标识" prop="accessFlag" label-width="120px"> |
35 | - <el-input v-model="bill.accessFlag" placeholder="A/D"></el-input> | 35 | + <el-input v-model="bill.accessFlag" placeholder="A/D" @input="e => bill.accessFlag=inputMe(e)"></el-input> |
36 | </el-form-item> | 36 | </el-form-item> |
37 | </el-col> | 37 | </el-col> |
38 | <el-col :span="6"> | 38 | <el-col :span="6"> |
@@ -72,7 +72,7 @@ | @@ -72,7 +72,7 @@ | ||
72 | </el-col> | 72 | </el-col> |
73 | <el-col :span="8"> | 73 | <el-col :span="8"> |
74 | <el-form-item label="抵达港口" prop="arrivalAirport" label-width="120px" > | 74 | <el-form-item label="抵达港口" prop="arrivalAirport" label-width="120px" > |
75 | - <el-input v-model="bill.arrivalAirport" placeholder="请输入"></el-input> | 75 | + <el-input v-model="bill.arrivalAirport" placeholder="请输入" maxLength='3' @input="e => bill.arrivalAirport=inputMe(e)"></el-input> |
76 | </el-form-item> | 76 | </el-form-item> |
77 | </el-col> | 77 | </el-col> |
78 | <el-col :span="8"> | 78 | <el-col :span="8"> |
@@ -93,7 +93,7 @@ | @@ -93,7 +93,7 @@ | ||
93 | </el-col> | 93 | </el-col> |
94 | <el-col :span="8"> | 94 | <el-col :span="8"> |
95 | <el-form-item label="驶离港口" prop="departureAirport" label-width="120px"> | 95 | <el-form-item label="驶离港口" prop="departureAirport" label-width="120px"> |
96 | - <el-input v-model="bill.departureAirport" placeholder="请输入"></el-input> | 96 | + <el-input v-model="bill.departureAirport" placeholder="请输入" maxLength='3' @input="e => bill.departureAirport=inputMe(e)"></el-input> |
97 | </el-form-item> | 97 | </el-form-item> |
98 | </el-col> | 98 | </el-col> |
99 | <el-col :span="8"> | 99 | <el-col :span="8"> |
@@ -134,7 +134,7 @@ | @@ -134,7 +134,7 @@ | ||
134 | </el-col> | 134 | </el-col> |
135 | <el-col :span="6"> | 135 | <el-col :span="6"> |
136 | <el-form-item label="停靠机位" prop="arrivalPosition" label-width="120px"> | 136 | <el-form-item label="停靠机位" prop="arrivalPosition" label-width="120px"> |
137 | - <el-input v-model="bill.arrivalPosition" placeholder="请输入"></el-input> | 137 | + <el-input v-model="bill.arrivalPosition" placeholder="请输入" oninput="value=value.replace(/[^\d]/g,'')" maxLength='7' ></el-input> |
138 | </el-form-item> | 138 | </el-form-item> |
139 | </el-col> | 139 | </el-col> |
140 | <el-col :span="18"> | 140 | <el-col :span="18"> |
@@ -355,6 +355,10 @@ background-color: white; | @@ -355,6 +355,10 @@ background-color: white; | ||
355 | handleCurrentChange(val) { | 355 | handleCurrentChange(val) { |
356 | this.currentPage=val; | 356 | this.currentPage=val; |
357 | this.submitForm(); | 357 | this.submitForm(); |
358 | + }, | ||
359 | + // 过滤中英文 | ||
360 | + inputMe(e){ | ||
361 | + return e.replace(/[^a-zA-Z0-9.-]/g,'').toUpperCase(); | ||
358 | } | 362 | } |
359 | }, | 363 | }, |
360 | mounted(){ | 364 | mounted(){ |
@@ -10,7 +10,7 @@ | @@ -10,7 +10,7 @@ | ||
10 | <el-form :model="configure" :rules="rules" ref="configure" label-width="100%" class="demo-ruleForm"> | 10 | <el-form :model="configure" :rules="rules" ref="configure" label-width="100%" class="demo-ruleForm"> |
11 | <el-col :span="8"> | 11 | <el-col :span="8"> |
12 | <el-form-item label="航班号" prop="flightNo" label-width="120px"> | 12 | <el-form-item label="航班号" prop="flightNo" label-width="120px"> |
13 | - <el-input v-model="configure.flightNo"></el-input> | 13 | + <el-input v-model="configure.flightNo" @input="e => configure.flightNo=inputMe(e)"></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"> |
@@ -130,6 +130,10 @@ | @@ -130,6 +130,10 @@ | ||
130 | Object.assign(this.configure, this.$route.query); | 130 | Object.assign(this.configure, this.$route.query); |
131 | } | 131 | } |
132 | }, | 132 | }, |
133 | + // 过滤中英文 | ||
134 | + inputMe(e){ | ||
135 | + return e.replace(/[^a-zA-Z0-9.-]/g,'').toUpperCase(); | ||
136 | + } | ||
133 | }, | 137 | }, |
134 | mounted(){ | 138 | mounted(){ |
135 | this.defaultData(); | 139 | this.defaultData(); |
@@ -10,12 +10,12 @@ | @@ -10,12 +10,12 @@ | ||
10 | <el-form :model="confirmatory" :rules="rules" ref="confirmatory" label-width="100%" class="demo-ruleForm"> | 10 | <el-form :model="confirmatory" :rules="rules" ref="confirmatory" 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="confirmatory.aircraftNo"></el-input> | 13 | + <el-input v-model.trim="confirmatory.aircraftNo" @input="e => confirmatory.aircraftNo=inputMe(e)"></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="confirmatory.flightNo"></el-input> | 18 | + <el-input v-model="confirmatory.flightNo" @input="e => confirmatory.flightNo=inputMe(e)"></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"> |
@@ -68,7 +68,8 @@ | @@ -68,7 +68,8 @@ | ||
68 | </el-col> | 68 | </el-col> |
69 | <el-col :span="8"> | 69 | <el-col :span="8"> |
70 | <el-form-item label="停靠机坪" prop="stayid" label-width="120px"> | 70 | <el-form-item label="停靠机坪" prop="stayid" label-width="120px"> |
71 | - <el-input v-model="confirmatory.stayid"></el-input> | 71 | + <el-input v-model="confirmatory.stayid" oninput="value=value.replace(/[^\d]/g,'')" |
72 | + maxLength='7'></el-input> | ||
72 | </el-form-item> | 73 | </el-form-item> |
73 | </el-col> | 74 | </el-col> |
74 | <el-col :span="24"> | 75 | <el-col :span="24"> |
@@ -150,16 +151,18 @@ | @@ -150,16 +151,18 @@ | ||
150 | ], | 151 | ], |
151 | arrivalPort: [ | 152 | arrivalPort: [ |
152 | {required: true, message: '请输入(三字码)', trigger: 'blur'}, | 153 | {required: true, message: '请输入(三字码)', trigger: 'blur'}, |
153 | - {min: 3, max: 3, message: '长度在 3 个字符', trigger: 'blur'} | 154 | + { pattern: /^[A-Z]{3}$/, message: '请输入(三字码)', trigger: 'blur' } |
154 | ], | 155 | ], |
155 | customDistrictNo: [ | 156 | customDistrictNo: [ |
156 | - {required: true, message: '请输入', trigger: 'blur'} | 157 | + {required: true, message: '请输入', trigger: 'blur'}, |
158 | + { pattern: /^[0-9]{4}$/, message: '请输入正确关区', trigger: 'blur' } | ||
157 | ], | 159 | ], |
158 | arrivaldatetime: [ | 160 | arrivaldatetime: [ |
159 | {required: true, message: '请选择', trigger: 'blur'} | 161 | {required: true, message: '请选择', trigger: 'blur'} |
160 | ], | 162 | ], |
161 | stayid: [ | 163 | stayid: [ |
162 | - {required: true, message: '请选择', trigger: 'blur'} | 164 | + {required: true, message: '请选择', trigger: 'blur'}, |
165 | + { pattern: /^[0-9]{6}$/, message: '请输入正确机坪号码', trigger: 'blur' } | ||
163 | ], | 166 | ], |
164 | }, | 167 | }, |
165 | tableData:[], | 168 | tableData:[], |
@@ -216,7 +219,7 @@ | @@ -216,7 +219,7 @@ | ||
216 | }, | 219 | }, |
217 | // 过滤中英文 | 220 | // 过滤中英文 |
218 | inputMe(e){ | 221 | inputMe(e){ |
219 | - return e.replace(/[^a-zA-Z]/g,'').toUpperCase(); | 222 | + return e.replace(/[^a-zA-Z0-9.-]/g,'').toUpperCase(); |
220 | } | 223 | } |
221 | }, | 224 | }, |
222 | mounted(){ | 225 | mounted(){ |
@@ -10,12 +10,12 @@ | @@ -10,12 +10,12 @@ | ||
10 | <el-form :model="declare" :rules="rules" ref="declare" label-width="100%" class="demo-ruleForm"> | 10 | <el-form :model="declare" :rules="rules" ref="declare" 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="declare.aircraftNo"></el-input> | 13 | + <el-input v-model.trim="declare.aircraftNo" @input="e => declare.aircraftNo=inputMe(e)"></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="declare.flightNo"></el-input> | 18 | + <el-input v-model="declare.flightNo" @input="e => declare.flightNo=inputMe(e)"></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"> |
@@ -190,7 +190,7 @@ | @@ -190,7 +190,7 @@ | ||
190 | }, | 190 | }, |
191 | // 过滤中英文 | 191 | // 过滤中英文 |
192 | inputMe(e){ | 192 | inputMe(e){ |
193 | - return e.replace(/[^a-zA-Z]/g,'').toUpperCase(); | 193 | + return e.replace(/[^a-zA-Z0-9.-]/g,'').toUpperCase(); |
194 | } | 194 | } |
195 | }, | 195 | }, |
196 | mounted(){ | 196 | mounted(){ |
@@ -10,12 +10,12 @@ | @@ -10,12 +10,12 @@ | ||
10 | <el-form :model="departure" :rules="rules" ref="departure" label-width="100%" class="demo-ruleForm"> | 10 | <el-form :model="departure" :rules="rules" ref="departure" 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="departure.aircraftNo"></el-input> | 13 | + <el-input v-model.trim="departure.aircraftNo" @input="e => departure.aircraftNo=inputMe(e)"></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="departure.flightNo"></el-input> | 18 | + <el-input v-model="departure.flightNo" @input="e => departure.flightNo=inputMe(e)"></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"> |
@@ -32,14 +32,12 @@ | @@ -32,14 +32,12 @@ | ||
32 | </el-col> | 32 | </el-col> |
33 | <el-col :span="8"> | 33 | <el-col :span="8"> |
34 | <el-form-item label="出发港" prop="departurePort" label-width="120px"> | 34 | <el-form-item label="出发港" prop="departurePort" label-width="120px"> |
35 | - <el-input v-model="departure.departurePort" @input="e => departure.departurePort=inputMe(e)" | ||
36 | - maxLength='3'></el-input> | 35 | + <el-input v-model="departure.departurePort" @input="e => departure.departurePort=inputMe(e)" maxLength='3'></el-input> |
37 | </el-form-item> | 36 | </el-form-item> |
38 | </el-col> | 37 | </el-col> |
39 | <el-col :span="8"> | 38 | <el-col :span="8"> |
40 | <el-form-item label="目的港" prop="arrivalPort" label-width="120px"> | 39 | <el-form-item label="目的港" prop="arrivalPort" label-width="120px"> |
41 | - <el-input v-model="departure.arrivalPort" @input="e => departure.arrivalPort=inputMe(e)" | ||
42 | - maxLength='3'></el-input> | 40 | + <el-input v-model="departure.arrivalPort" @input="e => departure.arrivalPort=inputMe(e)" maxLength='3'></el-input> |
43 | </el-form-item> | 41 | </el-form-item> |
44 | </el-col> | 42 | </el-col> |
45 | <el-col :span="8"> | 43 | <el-col :span="8"> |
@@ -60,7 +58,7 @@ | @@ -60,7 +58,7 @@ | ||
60 | </el-col> | 58 | </el-col> |
61 | <el-col :span="8"> | 59 | <el-col :span="8"> |
62 | <el-form-item label="停靠机坪" prop="stayid" label-width="120px"> | 60 | <el-form-item label="停靠机坪" prop="stayid" label-width="120px"> |
63 | - <el-input v-model="departure.stayid"></el-input> | 61 | + <el-input v-model="departure.stayid" oninput="value=value.replace(/[^\d]/g,'')"></el-input> |
64 | </el-form-item> | 62 | </el-form-item> |
65 | </el-col> | 63 | </el-col> |
66 | <el-col :span="24"> | 64 | <el-col :span="24"> |
@@ -139,20 +137,22 @@ | @@ -139,20 +137,22 @@ | ||
139 | ], | 137 | ], |
140 | departurePort: [ | 138 | departurePort: [ |
141 | {required: true, message: '请输入(三字码)', trigger: 'blur'}, | 139 | {required: true, message: '请输入(三字码)', trigger: 'blur'}, |
142 | - {min: 3, max: 3, message: '长度在 3 个字符', trigger: 'blur'} | 140 | + { pattern: /^[A-Z]{3}$/, message: '请输入(三字码)', trigger: 'blur' } |
143 | ], | 141 | ], |
144 | arrivalPort: [ | 142 | arrivalPort: [ |
145 | {required: true, message: '请输入(三字码)', trigger: 'blur'}, | 143 | {required: true, message: '请输入(三字码)', trigger: 'blur'}, |
146 | - {min: 3, max: 3, message: '长度在 3 个字符', trigger: 'blur'} | 144 | + { pattern: /^[A-Z]{3}$/, message: '请输入(三字码)', trigger: 'blur' } |
147 | ], | 145 | ], |
148 | customDistrictNo: [ | 146 | customDistrictNo: [ |
149 | - {required: true, message: '请选择', trigger: 'blur'} | 147 | + {required: true, message: '请选择', trigger: 'blur'}, |
148 | + { pattern: /^[0-9]{4}$/, message: '请输入正确关区', trigger: 'blur' } | ||
150 | ], | 149 | ], |
151 | departuredatetime: [ | 150 | departuredatetime: [ |
152 | {required: true, message: '请选择', trigger: 'blur'} | 151 | {required: true, message: '请选择', trigger: 'blur'} |
153 | ], | 152 | ], |
154 | stayid: [ | 153 | stayid: [ |
155 | - {required: true, message: '请输入', trigger: 'blur'} | 154 | + {required: true, message: '请输入', trigger: 'blur'}, |
155 | + { pattern: /^[0-9]{6}$/, message: '请输入正确机坪号码', trigger: 'blur' } | ||
156 | ], | 156 | ], |
157 | }, | 157 | }, |
158 | tableData:[], | 158 | tableData:[], |
@@ -209,7 +209,7 @@ | @@ -209,7 +209,7 @@ | ||
209 | }, | 209 | }, |
210 | // 过滤中英文 | 210 | // 过滤中英文 |
211 | inputMe(e){ | 211 | inputMe(e){ |
212 | - return e.replace(/[^a-zA-Z]/g,'').toUpperCase(); | 212 | + return e.replace(/[^a-zA-Z0-9.-]/g,'').toUpperCase(); |
213 | } | 213 | } |
214 | }, | 214 | }, |
215 | mounted(){ | 215 | mounted(){ |
@@ -10,12 +10,12 @@ | @@ -10,12 +10,12 @@ | ||
10 | <el-form :model="flight" :rules="rules" ref="flight" label-width="130px" class="demo-ruleForm"> | 10 | <el-form :model="flight" :rules="rules" ref="flight" label-width="130px" class="demo-ruleForm"> |
11 | <el-col :span="6"> | 11 | <el-col :span="6"> |
12 | <el-form-item label="航班号" prop="flightNo" label-width="120px"> | 12 | <el-form-item label="航班号" prop="flightNo" label-width="120px"> |
13 | - <el-input v-model="flight.flightNo"></el-input> | 13 | + <el-input v-model="flight.flightNo" @input="e => flight.flightNo=inputMe(e)"></el-input> |
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="airwayCode" label-width="120px"> | 17 | <el-form-item label="航空公司代码" prop="airwayCode" label-width="120px"> |
18 | - <el-input v-model="flight.airwayCode"></el-input> | 18 | + <el-input v-model="flight.airwayCode" @input="e => flight.airwayCode=inputMe(e)"></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"> |
@@ -58,7 +58,7 @@ | @@ -58,7 +58,7 @@ | ||
58 | 58 | ||
59 | <el-col :span="6"> | 59 | <el-col :span="6"> |
60 | <el-form-item label="共享航班号" prop="shareFlightNo" label-width="120px"> | 60 | <el-form-item label="共享航班号" prop="shareFlightNo" label-width="120px"> |
61 | - <el-input v-model="flight.shareFlightNo"></el-input> | 61 | + <el-input v-model="flight.shareFlightNo" @input="e => flight.shareFlightNo=inputMe(e)"></el-input> |
62 | </el-form-item> | 62 | </el-form-item> |
63 | </el-col> | 63 | </el-col> |
64 | <el-col :span="18"> | 64 | <el-col :span="18"> |
@@ -490,7 +490,7 @@ | @@ -490,7 +490,7 @@ | ||
490 | }, | 490 | }, |
491 | // 过滤中英文 | 491 | // 过滤中英文 |
492 | inputMe(e){ | 492 | inputMe(e){ |
493 | - return e.replace(/[^a-zA-Z]/g,'').toUpperCase(); | 493 | + return e.replace(/[^a-zA-Z0-9.-]/g,'').toUpperCase(); |
494 | } | 494 | } |
495 | }, | 495 | }, |
496 | //渲染方法 | 496 | //渲染方法 |
@@ -10,7 +10,7 @@ | @@ -10,7 +10,7 @@ | ||
10 | <el-form :model="flight" :rules="rules" ref="flight" label-width="100px" class="demo-ruleForm"> | 10 | <el-form :model="flight" :rules="rules" ref="flight" label-width="100px" class="demo-ruleForm"> |
11 | <el-col :span="12"> | 11 | <el-col :span="12"> |
12 | <el-form-item label="航班号" prop="flightNo" label-width="120px"> | 12 | <el-form-item label="航班号" prop="flightNo" label-width="120px"> |
13 | - <el-input v-model="flight.flightNo"></el-input> | 13 | + <el-input v-model="flight.flightNo" @input="e => flight.flightNo=inputMe(e)"></el-input> |
14 | </el-form-item> | 14 | </el-form-item> |
15 | </el-col> | 15 | </el-col> |
16 | <el-col :span="12"> | 16 | <el-col :span="12"> |
@@ -39,7 +39,7 @@ | @@ -39,7 +39,7 @@ | ||
39 | </el-col> | 39 | </el-col> |
40 | <el-col :span="12"> | 40 | <el-col :span="12"> |
41 | <el-form-item label="目的港" prop="arrivalPort" label-width="120px"> | 41 | <el-form-item label="目的港" prop="arrivalPort" label-width="120px"> |
42 | - <el-input v-model="flight.arrivalPort" @input="e => flight.departurePort=inputMe(e)" | 42 | + <el-input v-model="flight.arrivalPort" @input="e => flight.arrivalPort=inputMe(e)" |
43 | maxLength='3'></el-input> | 43 | maxLength='3'></el-input> |
44 | </el-form-item> | 44 | </el-form-item> |
45 | </el-col> | 45 | </el-col> |
@@ -247,11 +247,12 @@ | @@ -247,11 +247,12 @@ | ||
247 | this.flight.currentTakeoffTime=fecha.parse(ob.currentTakeoffTime,'yyyyMMddHHmm');*/ | 247 | this.flight.currentTakeoffTime=fecha.parse(ob.currentTakeoffTime,'yyyyMMddHHmm');*/ |
248 | } | 248 | } |
249 | }, | 249 | }, |
250 | - }, | ||
251 | // 过滤中英文 | 250 | // 过滤中英文 |
252 | inputMe(e){ | 251 | inputMe(e){ |
253 | - return e.replace(/[^a-zA-Z]/g,'').toUpperCase(); | 252 | + return e.replace(/[^a-zA-Z0-9.-]/g,'').toUpperCase(); |
253 | + }, | ||
254 | }, | 254 | }, |
255 | + | ||
255 | mounted(){ | 256 | mounted(){ |
256 | this.defaultData(); | 257 | this.defaultData(); |
257 | } | 258 | } |
@@ -10,7 +10,7 @@ | @@ -10,7 +10,7 @@ | ||
10 | <el-form :model="outConfigure" :rules="rules" ref="outConfigure" label-width="100%" class="demo-ruleForm"> | 10 | <el-form :model="outConfigure" :rules="rules" ref="outConfigure" label-width="100%" class="demo-ruleForm"> |
11 | <el-col :span="8"> | 11 | <el-col :span="8"> |
12 | <el-form-item label="航班号" prop="flightNo" label-width="120px"> | 12 | <el-form-item label="航班号" prop="flightNo" label-width="120px"> |
13 | - <el-input v-model="outConfigure.flightNo"></el-input> | 13 | + <el-input v-model="outConfigure.flightNo" @input="e => outConfigure.flightNo=inputMe(e)"></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"> |
@@ -84,7 +84,7 @@ | @@ -84,7 +84,7 @@ | ||
84 | {required: true, message: '请输入', trigger: 'blur'} | 84 | {required: true, message: '请输入', trigger: 'blur'} |
85 | ], | 85 | ], |
86 | ietype: [ | 86 | ietype: [ |
87 | - {required: true, message: '请输入', trigger: 'change'} | 87 | + {required: true, message: '请选择', trigger: 'change'} |
88 | ], | 88 | ], |
89 | }, | 89 | }, |
90 | linesTypes:[ | 90 | linesTypes:[ |
@@ -124,6 +124,10 @@ | @@ -124,6 +124,10 @@ | ||
124 | Object.assign(this.outConfigure, this.$route.query); | 124 | Object.assign(this.outConfigure, this.$route.query); |
125 | } | 125 | } |
126 | }, | 126 | }, |
127 | + // 过滤中英文 | ||
128 | + inputMe(e){ | ||
129 | + return e.replace(/[^a-zA-Z0-9.-]/g,'').toUpperCase(); | ||
130 | + } | ||
127 | }, | 131 | }, |
128 | mounted(){ | 132 | mounted(){ |
129 | this.defaultData(); | 133 | this.defaultData(); |
@@ -42,6 +42,7 @@ | @@ -42,6 +42,7 @@ | ||
42 | <el-table | 42 | <el-table |
43 | :data="tableData" | 43 | :data="tableData" |
44 | border | 44 | border |
45 | + height="500" | ||
45 | v-loading="tableloading" | 46 | v-loading="tableloading" |
46 | style="width: 100%;margin-bottom: 10px"> | 47 | style="width: 100%;margin-bottom: 10px"> |
47 | <el-table-column | 48 | <el-table-column |
@@ -10,7 +10,7 @@ | @@ -10,7 +10,7 @@ | ||
10 | <el-form :model="aircraft" :rules="rules" ref="aircraft" label-width="130px" class="demo-ruleForm"> | 10 | <el-form :model="aircraft" :rules="rules" ref="aircraft" label-width="130px" class="demo-ruleForm"> |
11 | <el-col :span="6"> | 11 | <el-col :span="6"> |
12 | <el-form-item label="航空公司代码" prop="airwayCode" label-width="130px"> | 12 | <el-form-item label="航空公司代码" prop="airwayCode" label-width="130px"> |
13 | - <el-input v-model="aircraft.airwayCode" placeholder="请输入"></el-input> | 13 | + <el-input v-model="aircraft.airwayCode" placeholder="请输入" @input="e => aircraft.airwayCode=inputMe(e)" maxLength='2'></el-input> |
14 | </el-form-item> | 14 | </el-form-item> |
15 | </el-col> | 15 | </el-col> |
16 | <el-col :span="6"> | 16 | <el-col :span="6"> |
@@ -26,12 +26,12 @@ | @@ -26,12 +26,12 @@ | ||
26 | <el-col :span="12"></el-col> | 26 | <el-col :span="12"></el-col> |
27 | <el-col :span="6"> | 27 | <el-col :span="6"> |
28 | <el-form-item label="航空器注册编号" prop="aircraftNo" label-width="130px"> | 28 | <el-form-item label="航空器注册编号" prop="aircraftNo" label-width="130px"> |
29 | - <el-input v-model="aircraft.aircraftNo" placeholder="请输入"></el-input> | 29 | + <el-input v-model.trim="aircraft.aircraftNo" placeholder="请输入" @input="e => aircraft.aircraftNo=inputMe(e)"></el-input> |
30 | </el-form-item> | 30 | </el-form-item> |
31 | </el-col> | 31 | </el-col> |
32 | <el-col :span="6"> | 32 | <el-col :span="6"> |
33 | <el-form-item label="航空器国籍" prop="aeroNationality" label-width="130px"> | 33 | <el-form-item label="航空器国籍" prop="aeroNationality" label-width="130px"> |
34 | - <el-input v-model="aircraft.aeroNationality" placeholder="请输入"></el-input> | 34 | + <el-input v-model="aircraft.aeroNationality" placeholder="请输入" maxLength='2' @input="e => aircraft.aeroNationality=inputMe(e)"></el-input> |
35 | </el-form-item> | 35 | </el-form-item> |
36 | </el-col> | 36 | </el-col> |
37 | <el-col :span="6"> | 37 | <el-col :span="6"> |
@@ -263,6 +263,11 @@ | @@ -263,6 +263,11 @@ | ||
263 | Object.assign(this.aircraft, this.$route.query); | 263 | Object.assign(this.aircraft, this.$route.query); |
264 | } | 264 | } |
265 | }, | 265 | }, |
266 | + // 过滤中英文 | ||
267 | + inputMe(e){ | ||
268 | + return e.replace(/[^a-zA-Z0-9.-]/g,'').toUpperCase(); | ||
269 | + } | ||
270 | + | ||
266 | }, | 271 | }, |
267 | mounted(){ | 272 | mounted(){ |
268 | this.defaultData(); | 273 | this.defaultData(); |
-
请 注册 或 登录 后发表评论