|
@@ -332,7 +332,7 @@ const rules = {
|
|
|
flightDate: [{ required: true, message: '请选择航班日期', trigger: 'blur' }],
|
|
|
company: [
|
|
|
{
|
|
|
- pattern: /^[A-Za-z0-9][A-Za-z]$/,
|
|
|
+ pattern: /^[A-Za-z0-9][A-Za-z0-9]$/,
|
|
|
message: '请输入正确的航司',
|
|
|
trigger: 'blur',
|
|
|
},
|
|
@@ -433,14 +433,14 @@ const cellClickHandler = (row, column, cell, event) => {
|
|
|
case 'flight': {
|
|
|
switch (column.property) {
|
|
|
case 'flightNO': {
|
|
|
- if (
|
|
|
- !row.flightAllNO ||
|
|
|
- !row.flightDate ||
|
|
|
- !['INT', 'DOM'].includes(row.DIType)
|
|
|
- ) {
|
|
|
+ if (!row.flightAllNO || !row.flightDate) {
|
|
|
ElMessage.error('航班信息缺失!')
|
|
|
return
|
|
|
}
|
|
|
+ if (!['INT', 'DOM'].includes(row.DIType)) {
|
|
|
+ ElMessage.error('航班类型无法识别!')
|
|
|
+ return
|
|
|
+ }
|
|
|
const viewName = `${row.DIType === 'DOM' ? '' : 'International'}${
|
|
|
row.departureAirport === 'SZX' ||
|
|
|
(!row.departureAirport && row.arriveAirport !== 'SZX')
|