From 78cf30802189becef2725af73f37b5d2cb28600f Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期五, 11 八月 2023 10:57:48 +0800 Subject: [PATCH] 新建跟进记录入参修改 --- src/views/client/followupRecords/index.vue | 29 +++++++++++++++++++++++++---- 1 files changed, 25 insertions(+), 4 deletions(-) diff --git a/src/views/client/followupRecords/index.vue b/src/views/client/followupRecords/index.vue index 3572cff..bb04e8b 100644 --- a/src/views/client/followupRecords/index.vue +++ b/src/views/client/followupRecords/index.vue @@ -56,6 +56,18 @@ isDetail: { type: Boolean, default: false + }, + followRecord: { + type: Array, + default: () => [] + }, + addConfig: { + type: Object, + default: () => { + return { + sales_leads_name: "" + } + } } }, mixins: [pageMixin], @@ -116,7 +128,11 @@ }, created() { this.setTable() - this.getData() + if (!this.isDetail) { + this.getData() + } else { + this.tableList.tableInfomation = this.followRecord + } }, methods: { setTable() { @@ -194,7 +210,7 @@ addBtnClick() { this.editConfig.visible = true this.editConfig.title = "鏂板缓" - this.editConfig.infomation = {} + this.editConfig.infomation = { ...this.addConfig } }, // 缂栬緫 handleClick(row) { @@ -238,7 +254,11 @@ 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) { @@ -248,7 +268,8 @@ ...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 } } } -- Gitblit v1.8.0