| | |
| | | created() { |
| | | this.setTable() |
| | | if (!this.isDetail) { |
| | | this.getData() |
| | | this.search_map = {} |
| | | } else { |
| | | this.tableList.tableInfomation = this.followRecord |
| | | this.search_map = { |
| | | [this.addConfig.id_name]: this.addConfig.id |
| | | } |
| | | } |
| | | this.getData(this.search_map) |
| | | }, |
| | | methods: { |
| | | setTable() { |
| | |
| | | { label: "联系方式", prop: "phone", min: 100 }, // 联系方式 |
| | | { label: "联系人日期", prop: "follow_time", isTime: true, min: 130 }, // 联系人日期 |
| | | { label: "下次回访日期", prop: "next_follow_time", isTime: true, min: 130 }, // 下次回访日期 |
| | | { label: "负责人", prop: "member_id", min: 110 }, // 负责人 |
| | | { label: "负责人", prop: "member_name", min: 110 }, // 负责人 |
| | | { label: "跟进记录", prop: "record", min: 130 } // 跟进记录 |
| | | ] |
| | | } |
| | |
| | | client_name: item.client.name, |
| | | contact_name: item.contact.name, |
| | | client_status_id: item.client.client_status_id, |
| | | phone: item.contact.phone |
| | | phone: item.contact.phone, |
| | | member_name: item.member.username |
| | | } |
| | | }) |
| | | this.tableList.tableInfomation = list || [] |