|
|
@ -405,7 +405,6 @@ export default { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '因客户类型为企业,客户名称的长度应不少于5个汉字' }) |
|
|
|
return |
|
|
|
} |
|
|
|
this.submitdisabled = true |
|
|
|
if (this.formobj.sid === '') { |
|
|
|
const tip = '客户名称、联系电话一经保存,无法修改,是否继续保存' |
|
|
|
this.$confirm(tip, '提示', { |
|
|
@ -413,7 +412,7 @@ export default { |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
console.log(this.formobj) |
|
|
|
this.submitdisabled = true |
|
|
|
req.save(this.formobj).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.$message({ showClose: true, type: 'success', message: '保存成功' }) |
|
|
@ -426,6 +425,7 @@ export default { |
|
|
|
}) |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.submitdisabled = true |
|
|
|
req.update(this.formobj).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.$message({ showClose: true, type: 'success', message: '保存成功' }) |
|
|
|