|
@@ -202,12 +202,9 @@ export default {
|
|
|
dataContent: [],
|
|
|
rules: {
|
|
|
// 机器信息表单验证
|
|
|
- time: [
|
|
|
- { type: 'date', required: true, message: '请选择有效时间', trigger: 'change' }
|
|
|
- ],
|
|
|
- flightNumber: [
|
|
|
- { required: true, message: "请输入有效航班号", trigger: "blur" },
|
|
|
- ],
|
|
|
+ // flightNumber: [
|
|
|
+ // { required: true, message: "请输入有效航班号", trigger: "blur" },
|
|
|
+ // ],
|
|
|
},
|
|
|
}
|
|
|
},
|
|
@@ -269,17 +266,16 @@ export default {
|
|
|
//高级查询-确定
|
|
|
onCheckGj () {
|
|
|
//参数顺序 【航班开始日期,航班结束日期,航班号,航班号,行李牌号,行李牌号,起飞站,起飞站,目的站,目的站,特殊行李类型,特殊 行李类型,旅客姓名大写拼音,旅客姓名大写拼音,pnr,pnr,值机号,值机号】
|
|
|
- this.$refs["form"].validate((valid) => {
|
|
|
- if (valid) {
|
|
|
- this.dataContent = [];
|
|
|
- const { time, status, flightNumber, destination, station, grade, type, container, name, pnr, check } = this.form
|
|
|
- if (time && time.length) {
|
|
|
- this.dataContent.push(time[0]);
|
|
|
- this.dataContent.push(time[1]);
|
|
|
- } else {
|
|
|
- this.dataContent.push(null);
|
|
|
- this.dataContent.push(null);
|
|
|
- }
|
|
|
+ this.dataContent = [];
|
|
|
+ this.dataContent = [];
|
|
|
+ const { time, status, flightNumber, destination, station, grade, type, container, name, pnr, check } = this.form
|
|
|
+ if (time && time.length) {
|
|
|
+ this.dataContent.push(time[0]);
|
|
|
+ this.dataContent.push(time[1]);
|
|
|
+ if (status==""&flightNumber==""&&destination==""&&station==""&&grade==""&&type==""&&container==""&&name==""&&pnr==""&&check=="") {
|
|
|
+ this.$message.error('请先输入查询信息');
|
|
|
+ }
|
|
|
+ else{
|
|
|
this.setDataContent(status);
|
|
|
this.setDataContent(flightNumber);
|
|
|
this.setDataContent(grade);
|
|
@@ -292,7 +288,9 @@ export default {
|
|
|
this.statItemsQueryByStatMain(this.dataContent);
|
|
|
this.gjFlag = false;
|
|
|
}
|
|
|
- })
|
|
|
+ } else {
|
|
|
+ this.$message.error('请先选择要查询的时间');
|
|
|
+ }
|
|
|
},
|
|
|
closeCheckGj(){
|
|
|
this.form = {}
|