From 1249ca8ff44f8de7992fdb5866eae19613d606c3 Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期三, 16 八月 2023 19:37:49 +0800 Subject: [PATCH] 详情页联调 --- src/views/sales/salesOpportunity/index.vue | 31 ++++++++++++++++++++++++++----- 1 files changed, 26 insertions(+), 5 deletions(-) diff --git a/src/views/sales/salesOpportunity/index.vue b/src/views/sales/salesOpportunity/index.vue index 839f2a4..7d04bf4 100644 --- a/src/views/sales/salesOpportunity/index.vue +++ b/src/views/sales/salesOpportunity/index.vue @@ -31,10 +31,10 @@ @getSelectArray="getSelectArray" > <template slot="tableButton"> - <el-table-column label="鎿嶄綔" width="120"> + <el-table-column label="鎿嶄綔" width="100"> <template slot-scope="scope"> <el-button @click="handleClick(scope.row)" type="text" size="small">缂栬緫</el-button> - <el-button type="text" size="small">璺熻繘</el-button> + <el-button @click="followupClick(scope.row)" type="text" size="small">璺熻繘</el-button> <!-- <el-button @click="delClick(scope.row.id)" type="text" size="small">鍒犻櫎</el-button> --> </template> </el-table-column> @@ -48,6 +48,8 @@ <DetailClientManage v-if="clientDeail.visible" :client-manage-detail="clientDeail" /> <!-- 鑱旂郴浜鸿鎯� --> <DetailContacts v-if="contactsDeail.visible" :contacts-detail="contactsDeail" /> + <!-- 鏂板缓/缂栬緫璺熻繘璁板綍 --> + <AddFollowupRecordsDialog v-if="editFollowupConfig.visible" :edit-contacts-config="editFollowupConfig" /> </div> </template> @@ -56,6 +58,7 @@ import { getSaleChanceList, getDelSaleChance } from "@/api/sales/salesOpportunity" import pageMixin from "@/components/makepager/pager/mixin/pageMixin" import DetailOpportunity from "@/views/sales/salesOpportunity/DetailOpportunity" +import AddFollowupRecordsDialog from "@/views/client/followupRecords/AddFollowupRecordsDialog" export default { name: "SalesOpportunity", @@ -76,7 +79,8 @@ AddSalesOpportunityDialog, DetailOpportunity, DetailContacts: () => import("@/views/client/contacts/DetailContacts"), - DetailClientManage: () => import("@/views/client/client/DetailClientManage") + DetailClientManage: () => import("@/views/client/client/DetailClientManage"), + AddFollowupRecordsDialog }, computed: {}, data() { @@ -126,7 +130,12 @@ infomation: {} }, search_map: {}, - selValueList: [] + selValueList: [], + editFollowupConfig: { + visible: false, + title: "鏂板缓", + infomation: {} + } } }, created() { @@ -272,13 +281,25 @@ selContactsClick(row) { console.log(row) this.contactsDeail.visible = true - this.contactsDeail.infomation = { ...row.contact } + this.contactsDeail.infomation = { ...row.contact, sale_chance_name: row.name, sale_chance_id: row.id } }, // 鏈轰細鍚嶇О璇︽儏 selCommonClick(row) { console.log(row) this.opportunityDeail.visible = true this.opportunityDeail.infomation = { ...row } + }, + // 璺熻繘 + followupClick(row) { + console.log(row) + this.editFollowupConfig.visible = true + this.editFollowupConfig.title = "鏂板缓" + this.editFollowupConfig.infomation = { + ...row, + number: "", + sale_chance_name: row.name, + sale_chance_id: row.id + } } } } -- Gitblit v1.8.0