Commit c3aed586 by zhangquan

bug修复

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