From c1adf27fbabbff1d76b60993521c765ef1ed79ef Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期二, 15 八月 2023 20:03:21 +0800 Subject: [PATCH] 新建客户管理 客户名称查重 --- src/views/sales/salesOpportunity/index.vue | 24 ++++++++++++++++-------- 1 files changed, 16 insertions(+), 8 deletions(-) diff --git a/src/views/sales/salesOpportunity/index.vue b/src/views/sales/salesOpportunity/index.vue index 277db73..ea1c62a 100644 --- a/src/views/sales/salesOpportunity/index.vue +++ b/src/views/sales/salesOpportunity/index.vue @@ -14,7 +14,6 @@ /> <div class="btn-pager"> <PublicFunctionBtnView - :duplicate-check="true" :statistics="true" :custom-funnel="true" :operates-list="operatesList" @@ -64,6 +63,12 @@ isDetail: { type: Boolean, default: false + }, + addConfig: { + type: Object, + default: () => { + return {} + } } }, mixins: [pageMixin], @@ -73,11 +78,7 @@ DetailContacts: () => import("@/views/client/contacts/DetailContacts"), DetailClientManage: () => import("@/views/client/client/DetailClientManage") }, - computed: { - searchCommonHeight() { - return this.$refs.searchCommonView.offsetHeight - } - }, + computed: {}, data() { return { tableList: {}, @@ -130,7 +131,14 @@ }, created() { this.setTable() - this.getData() + if (!this.isDetail) { + this.search_map = {} + } else { + this.search_map = { + [this.addConfig.id_name]: this.addConfig.client_name + } + } + this.getData(this.search_map) }, methods: { setTable() { @@ -208,7 +216,7 @@ addBtnClick() { this.editConfig.visible = true this.editConfig.title = "鏂板缓" - this.editConfig.infomation = { city_id: 0 } + this.editConfig.infomation = { city_id: 0, ...this.addConfig } }, // 缂栬緫 handleClick(row) { -- Gitblit v1.8.0