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/service/serviceFollowup/index.vue | 37 +++++++++++++++++++++++++++---------- 1 files changed, 27 insertions(+), 10 deletions(-) diff --git a/src/views/service/serviceFollowup/index.vue b/src/views/service/serviceFollowup/index.vue index d6f6588..04ab17e 100644 --- a/src/views/service/serviceFollowup/index.vue +++ b/src/views/service/serviceFollowup/index.vue @@ -62,6 +62,12 @@ isDetail: { type: Boolean, default: false + }, + addConfig: { + type: Object, + default: () => { + return {} + } } }, mixins: [pageMixin], @@ -117,11 +123,18 @@ value: "number", label: "鍥炶鍗曠紪鍙�" }, - selValueList: [] + selValueList: [], + keyword: "", + keywordType: "" } }, created() { this.setTable() + if (this.isDetail) { + console.log(this.addConfig) + this.keyword = this.addConfig.keyword + this.keywordType = this.addConfig.keywordType + } this.getData() }, methods: { @@ -133,8 +146,8 @@ { label: "瀹㈡埛鍚嶇О", prop: "client_name", min: 130, isClientClick: true }, // 瀹㈡埛鍚嶇О { label: "鑱旂郴浜哄鍚�", prop: "contact_name", isContactClick: true }, // 鑱旂郴浜哄鍚� { label: "瀹㈡埛鏈嶅姟鍗�", prop: "client_service_order", isServiceOrder: true }, // 瀹㈡埛鏈嶅姟鍗� - { label: "鍥炶浜�", prop: "isVisit" }, // 鍥炶浜� - { label: "婊℃剰搴�", prop: "satisfaction" } // 婊℃剰搴� + { label: "鍥炶浜�", prop: "member_name" }, // 鍥炶浜� + { label: "婊℃剰搴�", prop: "satisfaction_name" } // 婊℃剰搴� // { label: "淇敼鏃堕棿", prop: "modifyTime" } // 淇敼鏃堕棿 ] } @@ -146,11 +159,11 @@ } }, // 璇锋眰鏁版嵁 - async getData(keyword, keywordType) { + async getData() { this.loading = true await getServiceFollowupList({ - keyword: keyword, - keywordType: keywordType, + keyword: this.keyword, + keywordType: this.keywordType, page: this.pagerOptions.currPage, pageSize: this.pagerOptions.pageSize }) @@ -163,7 +176,9 @@ ...item, client_service_order: item.ServiceOrder.serviceNumber, client_name: item.client.name, - contact_name: item.contact.name + contact_name: item.contact.name, + member_name: item.Member.username, + satisfaction_name: item.satisfaction.name } }) this.tableList.tableInfomation = list || [] @@ -185,7 +200,9 @@ // 鎼滅储 searchClick(val, content) { console.log(val, content) - this.getData(content, val.label) + this.keyword = content + this.keywordType = val.label + this.getData() }, resetClick() { this.search_map = {} @@ -195,14 +212,14 @@ addBtnClick() { this.editConfig.visible = true this.editConfig.title = "鏂板缓" - this.editConfig.infomation = {} + this.editConfig.infomation = { ...this.addConfig } }, // 缂栬緫 handleClick(row) { console.log(row) this.editConfig.visible = true this.editConfig.title = "缂栬緫" - this.editConfig.infomation = { ...row } + this.editConfig.infomation = { ...row, service_number: row.ServiceOrder.serviceNumber } }, // 鍒犻櫎 delClick() { -- Gitblit v1.8.0