From 46ed69e3b72658140a40127f4bae16bef9a02d56 Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期一, 21 八月 2023 11:23:34 +0800 Subject: [PATCH] bug修复 --- src/views/client/contacts/DetailContacts.vue | 87 +++++++++++++++++++++++-------------------- 1 files changed, 46 insertions(+), 41 deletions(-) diff --git a/src/views/client/contacts/DetailContacts.vue b/src/views/client/contacts/DetailContacts.vue index 18907ff..b375e17 100644 --- a/src/views/client/contacts/DetailContacts.vue +++ b/src/views/client/contacts/DetailContacts.vue @@ -39,11 +39,11 @@ <li v-for="(item, i) in basicInfoList" :key="i"> <div class="left"> <div class="content-title">{{ item.leftStr + "锛�" }}</div> - <div class="content-data">{{ item.leftValue }}</div> + <div class="content-data">{{ item.leftValue ? item.leftValue : "--" }}</div> </div> - <div class="right"> - <div class="content-title">{{ item.rightStr }}</div> - <div class="content-data">{{ item.rightValue }}</div> + <div v-if="item.rightStr" class="right"> + <div class="content-title">{{ item.rightStr + "锛�" }}</div> + <div class="content-data">{{ item.rightValue ? item.rightValue : "--" }}</div> </div> </li> </ul> @@ -61,11 +61,11 @@ <li v-for="(item, i) in addressInfoList" :key="i"> <div class="left"> <div class="content-title">{{ item.leftStr + "锛�" }}</div> - <div class="content-data">{{ item.leftValue }}</div> + <div class="content-data">{{ item.leftValue ? item.leftValue : "--" }}</div> </div> - <div class="right"> - <div class="content-title">{{ item.rightStr }}</div> - <div class="content-data">{{ item.rightValue }}</div> + <div v-if="item.rightStr" class="right"> + <div class="content-title">{{ item.rightStr + "锛�" }}</div> + <div class="content-data">{{ item.rightValue ? item.rightValue : "--" }}</div> </div> </li> </ul> @@ -83,14 +83,14 @@ <li> <div class="left remark"> <div class="content-title">{{ "澶囨敞锛�" }}</div> - <div class="content-data">{{ "澶囨敞鍐呭" }}</div> + <div class="content-data">{{ detailConfig.infomation.desc }}</div> </div> </li> </ul> </div> </div> <!-- 闄勪欢淇℃伅 --> - <div class="basic-info"> + <!-- <div class="basic-info"> <div class="basic-info-label" @click="expandClick('annex')"> <i v-if="isAnnexExpand" class="el-icon-arrow-down"></i> <i v-else class="el-icon-arrow-up"></i> @@ -106,10 +106,10 @@ </li> </ul> </div> - </div> + </div> --> </div> <div v-if="activeName === 'second'" class="second"> - <FollowupRecords :isDetail="true" /> + <FollowupRecords :isDetail="true" :add-config="addConfig" /> </div> <div v-if="activeName === 'detail'" class="second"> <SalesDetails :isDetail="true" /> @@ -150,75 +150,80 @@ isAddressExpand: true, // 鍦板潃淇℃伅 addressInfoList: [], isRemarkExpand: true, // 澶囨敞淇℃伅 - isAnnexExpand: true // 闄勪欢淇℃伅 + isAnnexExpand: true, // 闄勪欢淇℃伅 + addConfig: {} } }, created() { - this.setData() + this.setData(this.detailConfig.infomation) + this.addConfig = { + id_name: "contact_name", + id: this.detailConfig.infomation.id, + common_name: this.detailConfig.infomation.name, + client_name: this.detailConfig.infomation.client_name, + contact_name: this.detailConfig.infomation.name, + client_status_id: this.detailConfig.infomation.Client.client_status_id, + contact_id: this.detailConfig.infomation.id, + client_id: this.detailConfig.infomation.client_id + } }, mounted() {}, methods: { - setData() { + setData(item) { this.basicInfoList = [ { leftStr: "鑱旂郴浜哄鍚�", - leftValue: "", + leftValue: item.name, rightStr: "鑱旂郴浜虹紪鍙�", - rightValue: "" + rightValue: item.number }, { leftStr: "瀹㈡埛鍚嶇О", - leftValue: "", + leftValue: item.Client.name, rightStr: "鎵嬫満", - rightValue: "" + rightValue: item.phone }, { leftStr: "鑱屽姟", - leftValue: "", + leftValue: item.position, rightStr: "閿�鍞礋璐d汉", - rightValue: "" + rightValue: item.member.username }, { leftStr: "棣栬鑱旂郴浜�", - leftValue: "", + leftValue: item.is_first ? "鏄�" : "鍚�", rightStr: "寰俊鍙�", - rightValue: "" + rightValue: item.wechat }, { leftStr: "鐢熸棩", - leftValue: "", + leftValue: item.birthday, rightStr: "鑱旂郴浜篍mail", + rightValue: item.email + }, + { + leftStr: "涓嬫鍥炶鏃ユ湡", + leftValue: item.Client.next_visit_time, + rightStr: "鏈�鏂拌仈绯绘棩鏈�", rightValue: "" }, { - leftStr: "绛惧埌", + leftStr: "鏈仈绯诲ぉ鏁�", leftValue: "", - rightStr: "涓嬫鍥炶鏃ユ湡", - rightValue: "" - }, - { - leftStr: "鏈�鏂拌仈绯绘棩鏈�", - leftValue: "", - rightStr: "鏈仈绯诲ぉ鏁�", + rightStr: "", rightValue: "" } ] this.addressInfoList = [ { leftStr: "鍥藉", - leftValue: "", + leftValue: "涓浗", rightStr: "鐪佷唤", - rightValue: "" + rightValue: item.Province.name }, { leftStr: "鍩庡競", - leftValue: "", - rightStr: "鍖哄煙", - rightValue: "" - }, - { - leftStr: "閭紪", - leftValue: "", + leftValue: item.City.name, rightStr: "", rightValue: "" } -- Gitblit v1.8.0