From 17816296ced79718931ae694b0e635f278495229 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期二, 27 二月 2024 17:18:37 +0800 Subject: [PATCH] 销售报价单列表增加报价名称,客户名称,业务机会,报价单状态,合计 --- src/views/client/client/DetailClientManage.vue | 60 +++++++++++++++++++++++++++++++++++++++++++----------------- 1 files changed, 43 insertions(+), 17 deletions(-) diff --git a/src/views/client/client/DetailClientManage.vue b/src/views/client/client/DetailClientManage.vue index ac60d6b..2b89beb 100644 --- a/src/views/client/client/DetailClientManage.vue +++ b/src/views/client/client/DetailClientManage.vue @@ -225,6 +225,7 @@ import SubOrder from "@/views/sales/subOrder" import SalesDetails from "@/views/sales/salesDetails" import Receipt from "@/views/other/payment/receipt" +import { getContactList } from "@/api/client/contacts" export default { name: "DetailClientManage", props: { @@ -256,13 +257,19 @@ addressInfoList: [], isRemarkExpand: true, // 澶囨敞淇℃伅 isAnnexExpand: true, // 闄勪欢淇℃伅 - addConfig: {} + addConfig: {}, + contact_name: "", + contact_phone: "", + contact_position: "", + contact_wechat: "", + contact_email: "" } }, created() { + this.getContactList() this.setData(this.detailConfig.infomation) this.addConfig = { - id_name: "client_name", + id_name: "client_id", keywordType: "瀹㈡埛鍚嶇О", keyword: this.detailConfig.infomation.name, id: this.detailConfig.infomation.id, @@ -271,7 +278,8 @@ contact_name: this.detailConfig.infomation.contact_name, client_status_id: this.detailConfig.infomation.client_status_id, client_id: this.detailConfig.infomation.id, - contact_id: this.detailConfig.infomation.contact_id + contact_id: this.detailConfig.infomation.contact_id, + sourceType:1, } }, mounted() {}, @@ -306,11 +314,11 @@ leftStr: "鎵�灞炲叕娴�", leftValue: "", rightStr: "涓嬫鍥炶鏃ユ湡", - rightValue: this.processTime(item.next_visit_time) + rightValue: item.next_visit_time }, { leftStr: "鏈�鏅氭湇鍔″埌鏈熸棩", - leftValue: this.processTime(item.latest_service_time), + leftValue: item.latest_service_time, rightStr: "鍒涘缓鏃堕棿", rightValue: "" }, @@ -324,19 +332,19 @@ this.contactList = [ { leftStr: "鑱旂郴浜哄鍚�", - leftValue: item.contact_name, + leftValue: this.contact_name, rightStr: "鑱旂郴浜烘墜鏈�", - rightValue: item.contact_phone + rightValue: this.contact_phone }, { leftStr: "鑱旂郴浜鸿亴鍔�", - leftValue: "", + leftValue: this.contact_position, rightStr: "鑱旂郴浜哄井淇�", - rightValue: "" + rightValue: this.contact_wechat }, { leftStr: "鑱旂郴浜篍mail", - leftValue: "", + leftValue: this.contact_email, rightStr: "", rightValue: "" } @@ -364,7 +372,7 @@ }, { leftStr: "娉ㄥ唽鏃堕棿", - leftValue: this.processTime(item.registration_time), + leftValue: item.registration_time, rightStr: "娉ㄥ唽璧勯噾", rightValue: item.RegisteredCapital.name }, @@ -422,12 +430,6 @@ this.isAnnexExpand = !this.isAnnexExpand } }, - // 澶勭悊鏃堕棿 - processTime(dateTime) { - return this.dateFormat("YYYY-mm-dd HH:MM:SS", dateTime) === "1900-01-01 08:00:00" - ? "--" - : this.dateFormat("YYYY-mm-dd HH:MM:SS", dateTime) - }, // 鏃堕棿鏄剧ず dateFormat(fmt, date) { let ret = "" @@ -448,6 +450,29 @@ } } return fmt + }, + getContactList() { + getContactList({ + search_map: { + client_id: this.clientManageDetail.infomation.id + }, + page: 0, + pageSize: 0 + }).then((res) => { + if (res.code === 200) { + console.log(res.data.list) + if (res.data.list && res.data.list.length > 0) { + let data = res.data.list[0] + console.log(data) + this.contact_name = data.name + this.contact_phone = data.phone + this.contact_position = data.position + this.contact_wechat = data.wechat + this.contact_email = data.email + } + } + this.setData(this.detailConfig.infomation) + }) } } } @@ -573,6 +598,7 @@ } } .second { + height: calc(100vh - 111px); background: #fff; .followup-records { .table-view { -- Gitblit v1.8.0