|
|
@ -7,6 +7,8 @@ |
|
|
|
<div> |
|
|
|
<el-button type="primary" size="small" :disabled="submitdisabled" @click="handleSave()">保存 |
|
|
|
</el-button> |
|
|
|
<el-button type="primary" size="small" :disabled="submitdisabled" @click="handleSubmit()">确认 |
|
|
|
</el-button> |
|
|
|
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -170,7 +172,8 @@ export default { |
|
|
|
filePaths: [], |
|
|
|
bitlingFilePaths: [], |
|
|
|
certificatePaths: [], |
|
|
|
vinNo: '' |
|
|
|
vinNo: '', |
|
|
|
tempSave: '' |
|
|
|
}, |
|
|
|
rules: {} |
|
|
|
} |
|
|
@ -200,6 +203,7 @@ export default { |
|
|
|
if (valid) { |
|
|
|
this.getUrl() |
|
|
|
this.submitdisabled = true |
|
|
|
this.formobj.tempSave = true |
|
|
|
saveOrUpdate(this.formobj).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.$message({ showClose: true, type: 'success', message: '保存成功' }) |
|
|
@ -213,6 +217,25 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
handleSubmit() { |
|
|
|
this.$refs['form_obj'].validate((valid) => { |
|
|
|
if (valid) { |
|
|
|
this.getUrl() |
|
|
|
this.submitdisabled = true |
|
|
|
this.formobj.tempSave = false |
|
|
|
saveOrUpdate(this.formobj).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.$message({ showClose: true, type: 'success', message: '操作陈工' }) |
|
|
|
this.handleReturn('true') |
|
|
|
} else { |
|
|
|
this.submitdisabled = false |
|
|
|
} |
|
|
|
}).catch(() => { |
|
|
|
this.submitdisabled = false |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
getUrl() { |
|
|
|
if (this.diploma_list.length > 0) { |
|
|
|
const aa = [] |
|
|
@ -241,7 +264,8 @@ export default { |
|
|
|
invoiceNo: '', |
|
|
|
invoiceCode: '', |
|
|
|
filePaths: [], |
|
|
|
vinNo: '' |
|
|
|
vinNo: '', |
|
|
|
tempSave: '' |
|
|
|
} |
|
|
|
this.diploma_list = [] |
|
|
|
this.submitdisabled = false |
|
|
|