Browse Source

完善客户管理

master
yunuo970428 11 months ago
parent
commit
efbfc1e552
  1. 4
      yxt-as-ui/src/views/client/customermanagement/customermanagementAdd.vue

4
yxt-as-ui/src/views/client/customermanagement/customermanagementAdd.vue

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

Loading…
Cancel
Save