| | |
| | | provinceOptions: [], // 省份 |
| | | cityOptions: [], // 城市 |
| | | regionOptions: [], // 区域 |
| | | approvalWorkflowOptions: [] // 审批流程 |
| | | approvalWorkflowOptions: [], // 审批流程 |
| | | clientName: this.editClientManageConfig.infomation.name |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | }, |
| | | // 查重 |
| | | async checkNameClient(rule, value, callback) { |
| | | if (this.editConfig.title === "新建") { |
| | | if (this.editConfig.title === "新建" || this.clientName !== this.editConfig.infomation.name) { |
| | | await checkNameClient({ name: value }).then((res) => { |
| | | if (res.data.code === 700001) { |
| | | return callback(new Error("客户名称重复")) |