Commit c3aed586 by zhangquan

bug修复

1 parent da427a08
...@@ -2090,22 +2090,28 @@ export default { ...@@ -2090,22 +2090,28 @@ 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 => {
for (let key in this.TDOTableData[item]['tireDTONew']) { if (this.TDOTableData[item]) {
if (!this.TDOTableData[item]['tireDTONew'][key]) { for (let key in this.TDOTableData[item]['tireDTONew']) {
throw new Error(true) if (!this.TDOTableData[item]['tireDTONew'][key]) {
throw new Error(true)
}
} }
} for (let key in this.TDOTableData[item]['tireBatchNew']) {
for (let key in this.TDOTableData[item]['tireBatchNew']) { if (!this.TDOTableData[item]['tireBatchNew'][key]) {
if (!this.TDOTableData[item]['tireBatchNew'][key]) { 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!