From 4898b385886794bf0663ec2d883ea808b78ae522 Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期三, 19 七月 2023 11:37:25 +0800 Subject: [PATCH] 接口联调相关api添加 --- src/views/client/followupRecords/index.vue | 63 +++++++++++++++---------------- 1 files changed, 31 insertions(+), 32 deletions(-) diff --git a/src/views/custom/followupRecords/index.vue b/src/views/client/followupRecords/index.vue similarity index 82% rename from src/views/custom/followupRecords/index.vue rename to src/views/client/followupRecords/index.vue index a73057c..264d9e0 100644 --- a/src/views/custom/followupRecords/index.vue +++ b/src/views/client/followupRecords/index.vue @@ -20,8 +20,8 @@ </template> <script> -import AddFollowupRecordsDialog from "@/views/custom/followupRecords/AddFollowupRecordsDialog" -import { getFollowRecordList } from "@/api/custom/followupRecords.js" +import AddFollowupRecordsDialog from "@/views/client/followupRecords/AddFollowupRecordsDialog" +import { getFollowRecordList } from "@/api/client/followupRecords.js" import { dateFormat } from "@/common/config/index" export default { @@ -101,15 +101,13 @@ if (res.data.list && res.data.list.length > 0) { const list = res.data.list.map((item) => { return { - topic: item.topic, + ...item, client_name: item.client.name, contact_name: item.contact.name, client_status_id: item.client.client_status_id, phone: item.contact.phone, follow_time: dateFormat("YYYY-mm-dd HH:MM", item.follow_time), - next_follow_time: dateFormat("YYYY-mm-dd HH:MM", item.next_follow_time), - member_id: item.member_id, - record: item.record + next_follow_time: dateFormat("YYYY-mm-dd HH:MM", item.next_follow_time) } }) this.tableList.tableInfomation = list || [] @@ -132,19 +130,19 @@ this.editConfig.visible = true this.editConfig.title = "鏂板缓" this.editConfig.infomation = { - customName: "", - followupRecordsNumber: "LEA50", - customStatus: "", - contactName: "", - owner: "", - theme: "", - followupRecords: "", + client_id: "", + number: "", + client_status_id: "", + contact_id: "", + member_id: "", + topic: "", + record: "", phoneNumber: "", - salesOpportunity: "", - salesClue: "", - contactDate: "", - nextFollowupDate: "", - visitPurpose: "", + sale_chance_id: "", + sales_leads_id: "", + follow_time: "", + next_follow_time: "", + purpose: "", content: "" } }, @@ -154,20 +152,21 @@ this.editConfig.visible = true this.editConfig.title = "缂栬緫" this.editConfig.infomation = { - customName: row.customName, - followupRecordsNumber: "LEA50", - customStatus: row.customStatus, - contactName: row.contactName, - owner: row.owner, - theme: row.theme, - followupRecords: row.followupRecords, - phoneNumber: row.phoneNumber, - salesOpportunity: "", - salesClue: "", - contactDate: row.contactDate, - nextFollowupDate: row.nextFollowupDate, - visitPurpose: "", - content: "" + id: row.id, + client_id: row.client_id, + number: row.number, + client_status_id: row.client_status_id, + contact_id: row.contact_id, + member_id: row.member_id, + topic: row.topic, + record: row.record, + phoneNumber: "", + sale_chance_id: row.sale_chance_id, + sales_leads_id: row.sales_leads_id, + follow_time: row.follow_time, + next_follow_time: row.next_follow_time, + purpose: row.purpose, + content: row.content } } } -- Gitblit v1.8.0