commit
This commit is contained in:
@@ -735,51 +735,14 @@
|
|||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.$refs['bzzqyjForm'].validate((valid) => {
|
this.$refs['bzzqyjForm'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
let num1 = 0, num2 = 0, num3 = 0, num4 = 0, num5 = 0, num6 = 0
|
let num3 = 0
|
||||||
for (let a = 0; a < this.itemList.length; a++) {
|
for (let a = 0; a < this.itemList.length; a++) {
|
||||||
if (!this.itemList[a].technicalRequir) {
|
|
||||||
num1++
|
|
||||||
}
|
|
||||||
if (!this.itemList[a].changePoint) {
|
|
||||||
num2++
|
|
||||||
}
|
|
||||||
if (!this.itemList[a].complianceRequir) {
|
if (!this.itemList[a].complianceRequir) {
|
||||||
num3++
|
num3++
|
||||||
}
|
}
|
||||||
if (!this.itemList[a].newData) {
|
|
||||||
num4++
|
|
||||||
}
|
|
||||||
if (!this.itemList[a].onlineData) {
|
|
||||||
num5++
|
|
||||||
}
|
|
||||||
if (!this.itemList[a].applyArctic) {
|
|
||||||
num6++
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (!this.form.itemsNum1) {
|
|
||||||
if (num1 > 0) {
|
|
||||||
this.$message.warning('请输入核心技术要求')
|
|
||||||
return
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if (num2 > 0) {
|
|
||||||
if (this.sarType === 'INLAND') {
|
|
||||||
this.$message.warning('请输入国内标准的差异点')
|
|
||||||
return
|
|
||||||
} else {
|
|
||||||
this.$message.warning('请输入基于上一版本差异')
|
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (num3 > 0) {
|
if (num3 > 0) {
|
||||||
this.$message.warning('请输入符合性要求')
|
this.$message.warning('请输入符合性要求')
|
||||||
} else if (num4 > 0) {
|
|
||||||
this.$message.warning('请输入新车型实施日期')
|
|
||||||
} else if (num5 > 0) {
|
|
||||||
this.$message.warning('请输入在产车实施日期')
|
|
||||||
} else if (num6 > 0) {
|
|
||||||
this.$message.warning('请选择适用车型')
|
|
||||||
} else {
|
} else {
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
var json = this.json
|
var json = this.json
|
||||||
|
|||||||
Reference in New Issue
Block a user