| | |
| | | } |
| | | }, |
| | | handleSelectClient(value, item) { |
| | | console.log(value) |
| | | console.log(item,'item') |
| | | if (value === "client") { |
| | | this.clientId = item.id |
| | | this.editConfig.infomation.client_name = item.name |
| | | this.getSaleChanceList(item) |
| | | } else if (value === "chance") { |
| | | this.saleChanceId = item.id |
| | | this.editConfig.infomation.sale_chance_name = item.name |
| | | this.editConfig.infomation.client_name = item.client.name |
| | | this.clientId = item.client.id |
| | | this.getSaleChanceList({id:this.clientId}) |
| | | this.productTableList.tableData = item.products ? item.products : [] |
| | | this.tableData = item.products ? item.products : [] |
| | | } else { |
| | |
| | | if (value === "client") { |
| | | this.editConfig.infomation.client_name = "" |
| | | this.clientId = 0 |
| | | this.getSaleChanceList() |
| | | } else if (value === "chance") { |
| | | this.editConfig.infomation.sale_chance_name = "" |
| | | this.saleChanceId = 0 |
| | | this.getSaleChanceList({id:this.clientId}) |
| | | } else { |
| | | this.editConfig.infomation.contact_name = "" |
| | | this.contactId = 0 |
| | | } |
| | | |
| | | this.productTableList.tableData = [] |
| | | this.tableData = [] |
| | | this.refresh() |
| | |
| | | let params={} |
| | | if(item){ |
| | | params={ |
| | | page: 1, |
| | | pageSize: 15, |
| | | page: 0, |
| | | pageSize: 0, |
| | | } |
| | | params.search_map={ |
| | | client_id: item.id |