Commit c3aed586 by zhangquan

bug修复

1 parent da427a08
......@@ -2090,22 +2090,28 @@ export default {
},
// 检查轮胎信息是否已填
checkTDOTableDataFn() {
const allPageCodeList = this.equityRadio == 1 ? this.packageCodeList : this.autoPackageCodeList
console.log(allPageCodeList, this.TDOTableData)
let isEmpty = false
try {
this.packageCodeList.forEach(item => {
for (let key in this.TDOTableData[item]['tireDTONew']) {
if (!this.TDOTableData[item]['tireDTONew'][key]) {
throw new Error(true)
allPageCodeList.forEach(item => {
if (this.TDOTableData[item]) {
for (let key in this.TDOTableData[item]['tireDTONew']) {
if (!this.TDOTableData[item]['tireDTONew'][key]) {
throw new Error(true)
}
}
}
for (let key in this.TDOTableData[item]['tireBatchNew']) {
if (!this.TDOTableData[item]['tireBatchNew'][key]) {
throw new Error(true)
for (let key in this.TDOTableData[item]['tireBatchNew']) {
if (!this.TDOTableData[item]['tireBatchNew'][key]) {
throw new Error(true)
}
}
} else {
throw new Error(false)
}
})
} catch (error) {
isEmpty = true
isEmpty = error.message == 'true'
}
return isEmpty
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!