| | |
| | | // 保存 |
| | | saveClick(formName) { |
| | | this.$refs[formName].validate((valid) => { |
| | | this.validateFormNumber() |
| | | if (valid) { |
| | | const params = this.saveParams() |
| | | if (this.editConfig.title === "新建") { |
| | |
| | | }, |
| | | async handleSelectClient(value, item) { |
| | | if (value === "client") { |
| | | console.log(item, "item") |
| | | this.editConfig.infomation.contact_name = "" |
| | | this.editConfig.infomation.sales_leads_name="" |
| | | this.editConfig.infomation.sale_chance_name="" |
| | | this.editSelectContactConfig.search_map.client_id = item.id |
| | | this.editSelectChanceConfig.search_map.client_id = item.id |
| | | this.editSelectLeadConfig.search_map.name = item.name |
| | |
| | | this.editConfig.infomation.contact_name = row.name |
| | | this.contactId = row.id |
| | | } else if (value === "client") { |
| | | // this.editConfig.infomation.client_name = row.name; |
| | | // this.clientId = row.id; |
| | | // this.isChance = false; |
| | | this.editConfig.infomation.contact_name = "" |
| | | this.editConfig.infomation.sales_leads_name="" |
| | | this.editConfig.infomation.sale_chance_name="" |
| | | this.editSelectContactConfig.search_map.client_id = row.id |
| | | this.editSelectChanceConfig.search_map.client_id = row.id |
| | | this.editSelectLeadConfig.search_map.name = row.name |
| | |
| | | // 清除已选择用户 |
| | | clearupClient(value) { |
| | | if (value === "client") { |
| | | this.editConfig.infomation.contact_name = "" |
| | | this.editConfig.infomation.sales_leads_name="" |
| | | this.editConfig.infomation.sale_chance_name="" |
| | | this.editConfig.infomation.client_name = "" |
| | | this.clientId = 0 |
| | | this.isChance = true |