Commit e793f7b6 by 杨北旺

修复bug

1 parent 370396e9
...@@ -1331,7 +1331,7 @@ export default { ...@@ -1331,7 +1331,7 @@ export default {
} }
} else if (e.attributeName === 'gearbox') { } else if (e.attributeName === 'gearbox') {
e.optionList = this.gearboxOptions e.optionList = this.gearboxOptions
}else if (e.attributeName==='vehicle_nature'){ } else if (e.attributeName === 'vehicle_nature') {
e.optionList = this.operationalOptions e.optionList = this.operationalOptions
this.$set(this.productModal[item.idName], `${e.attributeName}`, e.optionList[0].value) this.$set(this.productModal[item.idName], `${e.attributeName}`, e.optionList[0].value)
} }
...@@ -1912,6 +1912,7 @@ export default { ...@@ -1912,6 +1912,7 @@ export default {
} }
}, },
handleConfirm() { handleConfirm() {
try {
this.vaildGlassParams() this.vaildGlassParams()
const vaidObj = this.equityRadio == 1 ? this.formatProduct : this.autoFormatProduct const vaidObj = this.equityRadio == 1 ? this.formatProduct : this.autoFormatProduct
const isEmptyObj = JSON.stringify(vaidObj) == '{}' const isEmptyObj = JSON.stringify(vaidObj) == '{}'
...@@ -1988,6 +1989,10 @@ export default { ...@@ -1988,6 +1989,10 @@ export default {
}) })
} }
}) })
} catch (error) {
console.log(error)
this.submit = false
}
}, },
handleReset() { handleReset() {
this.editForm = { this.editForm = {
...@@ -2056,9 +2061,12 @@ export default { ...@@ -2056,9 +2061,12 @@ export default {
let _code = [], let _code = [],
_typeCode = ['YB0001', 'YB0002', 'YB0003', 'YB0004'], _typeCode = ['YB0001', 'YB0002', 'YB0003', 'YB0004'],
flag = false flag = false
if((!this.attachmentList || !this.attachmentList.length)&&this.attachmentListQuery.length){ if ((!this.attachmentList || !this.attachmentList.length) && this.attachmentListQuery.length) {
this.attachmentList = this.attachmentListQuery || [] this.attachmentList = this.attachmentListQuery || []
} }
if (!this.attachmentList) {
this.attachmentList = []
}
this.attachmentList.forEach(el => { this.attachmentList.forEach(el => {
if (_typeCode.includes(el.attachmentCode)) { if (_typeCode.includes(el.attachmentCode)) {
_code.push(el.attachmentCode) _code.push(el.attachmentCode)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!