| | |
| | | isDetail: { |
| | | type: Boolean, |
| | | default: false |
| | | }, |
| | | followRecord: { |
| | | type: Array, |
| | | default: () => [] |
| | | }, |
| | | addConfig: { |
| | | type: Object, |
| | | default: () => { |
| | | return { |
| | | sales_leads_name: "" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | mixins: [pageMixin], |
| | |
| | | }, |
| | | created() { |
| | | this.setTable() |
| | | this.getData() |
| | | if (!this.isDetail) { |
| | | this.getData() |
| | | } else { |
| | | this.tableList.tableInfomation = this.followRecord |
| | | } |
| | | }, |
| | | methods: { |
| | | setTable() { |
| | |
| | | addBtnClick() { |
| | | this.editConfig.visible = true |
| | | this.editConfig.title = "新建" |
| | | this.editConfig.infomation = {} |
| | | this.editConfig.infomation = { ...this.addConfig } |
| | | }, |
| | | // 编辑 |
| | | handleClick(row) { |
| | |
| | | selContactsClick(row) { |
| | | console.log(row) |
| | | this.contactsDeail.visible = true |
| | | this.contactsDeail.infomation = { ...row.contact, Client: { name: row.client_name } } |
| | | this.contactsDeail.infomation = { |
| | | ...row.contact, |
| | | Client: { name: row.client_name, client_status_id: row.client.client_status_id }, |
| | | client_name: row.client_name |
| | | } |
| | | }, |
| | | // 客户名称详情 |
| | | selClientClick(row) { |
| | |
| | | ...row.client, |
| | | client_name: row.client.name, |
| | | client_level: row.client.client_level.name, |
| | | client_status: row.client.client_status.name |
| | | client_status: row.client.client_status.name, |
| | | contact_name: row.contact_name |
| | | } |
| | | } |
| | | } |