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/client/client/index.vue | 29 ++++++++++++++++------------- 1 files changed, 16 insertions(+), 13 deletions(-) diff --git a/src/views/client/client/index.vue b/src/views/client/client/index.vue index 63111a9..4830133 100644 --- a/src/views/client/client/index.vue +++ b/src/views/client/client/index.vue @@ -2,11 +2,8 @@ <div class="custom-manage"> <div class="tab-view"> <el-tabs v-model="activeName" @tab-click="tabsClick"> - <el-tab-pane label="鍏ㄩ儴(鍚墍鏈夊叕娴�)" name="first" disabled></el-tab-pane> - <el-tab-pane label="鍏ㄩ儴(鍚叕娴�)" name="second" disabled></el-tab-pane> - <el-tab-pane label="鍏ㄩ儴(涓嶅惈鍏捣)" name="third" disabled></el-tab-pane> - <el-tab-pane label="鍏捣宸插垎閰�" name="fourth" disabled></el-tab-pane> - <el-tab-pane label="鍏湭鍒嗛厤" name="aaa" disabled></el-tab-pane> + <el-tab-pane label="鍏捣瀹㈡埛" name="first"></el-tab-pane> + <el-tab-pane label="鎴戠殑瀹㈡埛" name="second"></el-tab-pane> </el-tabs> <div class="sel-gonghai"> <el-select v-model="gonghaiValue" placeholder="璇烽�夋嫨" class="query-class-sel" size="mini" disabled> @@ -28,7 +25,6 @@ /> <div class="btn-pager"> <PublicFunctionBtnView - :duplicate-check="true" :list-button="true" :map-button="true" :statistics="true" @@ -145,11 +141,11 @@ { label: "瀹㈡埛鍚嶇О", prop: "name", min: 100, isClientClick: true }, // 瀹㈡埛鍚嶇О { label: "閿�鍞礋璐d汉", prop: "member_name" }, // 閿�鍞礋璐d汉 { label: "閲嶈绾у埆", prop: "client_level" }, // 閲嶈绾у埆 - { label: "涓嬫鍥炶鏃ユ湡", prop: "next_visit_time", isTime: true, min: 90 }, // 涓嬫鍥炶鏃ユ湡 + { label: "涓嬫鍥炶鏃ユ湡", prop: "next_visit_time", min: 90 }, // 涓嬫鍥炶鏃ユ湡 { label: "璇︾粏鍦板潃", prop: "detail_address", min: 200 }, // 璇︾粏鍦板潃 { label: "瀹㈡埛鐘舵��", prop: "client_status" }, // 瀹㈡埛鐘舵�� { label: "鑱旂郴浜哄鍚�", prop: "contact_name", isContactClick: true }, // 鑱旂郴浜哄鍚� - { label: "鎵嬫満鍙风爜", prop: "contact_phone" } // 鎵嬫満鍙风爜 + { label: "鑱旂郴浜烘墜鏈哄彿鐮�", prop: "contact_phone" } // 鎵嬫満鍙风爜 ] } this.searchOptions = [] @@ -174,11 +170,13 @@ const list = res.data.list.map((item) => { let contact_name = "" let contact_phone = "" + let contact_id = 0 if (item.contacts.length !== 0) { for (let i = 0; i < item.contacts.length; i++) { if (item.contacts[i].is_first) { contact_name = item.contacts[i].name contact_phone = item.contacts[i].phone + contact_id = item.contacts[i].id } } } @@ -187,7 +185,9 @@ contact_name: contact_name, contact_phone: contact_phone, client_level: item.client_level.name, - client_status: item.client_status.name + client_status: item.client_status.name, + contact_id: contact_id, + member_name: item.member.username } }) this.tableList.tableInfomation = list || [] @@ -213,7 +213,7 @@ searchClick(val, content) { console.log(val, content) this.search_map = { - [val]: content + [val.value]: content } this.getData() }, @@ -225,7 +225,7 @@ addBtnClick() { this.editConfig.visible = true this.editConfig.title = "鏂板缓" - this.editConfig.infomation = {} + this.editConfig.infomation = { city_id: 0 } }, // 缂栬緫 handleClick(row) { @@ -285,7 +285,6 @@ }, // 鑱旂郴浜鸿鎯� selContactsClick(row) { - console.log(row) this.contactsDeail.visible = true let contact = {} if (row.contacts.length !== 0) { @@ -295,7 +294,11 @@ } } } - this.contactsDeail.infomation = { ...contact, Client: { name: row.name } } + this.contactsDeail.infomation = { + ...contact, + Client: { name: row.name, client_status_id: row.client_status_id }, + client_name: row.name + } }, // 璺熻繘 followupClick(row) { -- Gitblit v1.8.0