Elements-SY

modify

......@@ -188,25 +188,26 @@ export const inputBlurValidate = {
this.$refs.minWeight.innerHTML = "";
}
}
} else {
if (value.length) {
if (Number(value) > 34) {
if (Array.isArray(this.$refs.minWeight)) {
this.validateForm = false;
this.msgError("最大重量不能大于34KG");
} else {
this.validateForm = false;
this.$refs.minWeight.innerHTML = "";
this.$refs.minWeight.innerHTML = "最大重量不能大于34KG";
}
} else {
if (!Array.isArray(this.$refs.minWeight)) {
this.validateForm = true;
this.$refs.minWeight.innerHTML = "";
}
}
}
}
// else {
// if (value.length) {
// if (Number(value) > 34) {
// if (Array.isArray(this.$refs.minWeight)) {
// this.validateForm = false;
// this.msgError("最大重量不能大于34KG");
// } else {
// this.validateForm = false;
// this.$refs.minWeight.innerHTML = "";
// this.$refs.minWeight.innerHTML = "最大重量不能大于34KG";
// }
// } else {
// if (!Array.isArray(this.$refs.minWeight)) {
// this.validateForm = true;
// this.$refs.minWeight.innerHTML = "";
// }
// }
// }
// }
} else {
if (Array.isArray(this.$refs.minWeight)) {
this.validateForm = false;
......@@ -262,6 +263,14 @@ export const inputBlurValidate = {
this.$refs[coin[customVal]].innerHTML = "";
this.validateForm = true;
}
// 如果人民币其中任何一个有值,去判断美元是否有值,如果有值把美元值清空
if (this.minCNYCustomVal || this.maxCNYCustomVal) {
if (this.minSUDCustomVal || this.maxSUDCustomVal) {
this.$refs.minSUDCustomVal.innerHTML = "";
this.validateForm = true;
this.minSUDCustomVal = this.maxSUDCustomVal = "";
}
}
}
// 其中一个有值的情况下美元
if (
......@@ -280,8 +289,16 @@ export const inputBlurValidate = {
this.validateForm = true;
}
} else {
this.validateForm = true;
this.$refs[coin[customVal]].innerHTML = "";
this.validateForm = true;
}
// 如果美元其中任何一个有值,去判断人民币是否有值,如果有值把人民币值清空
if (this.minSUDCustomVal || this.maxSUDCustomVal) {
if (this.minCNYCustomVal || this.maxCNYCustomVal) {
this.$refs.minCNYCustomVal.innerHTML = "";
this.validateForm = true;
this.minCNYCustomVal = this.maxCNYCustomVal = "";
}
}
}
} else {
......
......@@ -725,7 +725,7 @@ export default {
this.queryForm.minCustomVal = this.minSUDCustomVal;
this.queryForm.maxCustomVal = this.maxSUDCustomVal;
} else {
this.queryForm.currencyCd = "CNY";
this.queryForm.currencyCd = null;
}
let fltNo = this.tableData.some((item) => item.flightNo == ""); // 通过遍历判断航班顺位列表有没有填写的航班号
let fltNoRoute = this.tableData.some(
......