|
|
@ -500,10 +500,18 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
submit() { |
|
|
|
if (this.formobj.custName === '') { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '姓名不能为空' }) |
|
|
|
return |
|
|
|
} |
|
|
|
this.$refs['form_obj'].validate((valid) => { |
|
|
|
if (valid) { |
|
|
|
this.submitdisabled = true |
|
|
|
this.getUrl() |
|
|
|
if (this.formobj.comFkFiles.length === 0) { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '请上传公司要求材料附件' }) |
|
|
|
return |
|
|
|
} |
|
|
|
req.submitSave(this.formobj).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.$message({ showClose: true, type: 'success', message: '操作成功' }) |
|
|
|