|
@@ -126,10 +126,10 @@
|
|
|
<el-descriptions :column="2" border>
|
|
<el-descriptions :column="2" border>
|
|
|
<el-descriptions-item label="姓名">{{ currentUser.name }}</el-descriptions-item>
|
|
<el-descriptions-item label="姓名">{{ currentUser.name }}</el-descriptions-item>
|
|
|
<el-descriptions-item label="电话">{{ currentUser.phone }}</el-descriptions-item>
|
|
<el-descriptions-item label="电话">{{ currentUser.phone }}</el-descriptions-item>
|
|
|
- <el-descriptions-item label="所属区域">{{ currentUser.area || '-' }}</el-descriptions-item>
|
|
|
|
|
- <el-descriptions-item label="所属站点">{{ currentUser.station || '-' }}</el-descriptions-item>
|
|
|
|
|
- <el-descriptions-item label="录入来源">{{ currentUser.source }}</el-descriptions-item>
|
|
|
|
|
- <el-descriptions-item label="录入时间">{{ currentUser.entryTime }}</el-descriptions-item>
|
|
|
|
|
|
|
+ <el-descriptions-item label="所属区域">{{ currentUser.areaName || '-' }}</el-descriptions-item>
|
|
|
|
|
+ <el-descriptions-item label="所属站点">{{ currentUser.stationName || '-' }}</el-descriptions-item>
|
|
|
|
|
+ <el-descriptions-item label="录入来源">{{ currentUser.source || '-' }}</el-descriptions-item>
|
|
|
|
|
+ <el-descriptions-item label="录入时间">{{ currentUser.createTime || '-' }}</el-descriptions-item>
|
|
|
</el-descriptions>
|
|
</el-descriptions>
|
|
|
|
|
|
|
|
<div class="section-title" style="margin-top: 20px">居住信息</div>
|
|
<div class="section-title" style="margin-top: 20px">居住信息</div>
|
|
@@ -758,7 +758,22 @@ const handleEdit = (row) => {
|
|
|
|
|
|
|
|
const handleDetail = (row) => {
|
|
const handleDetail = (row) => {
|
|
|
getCustomer(row.id).then((res) => {
|
|
getCustomer(row.id).then((res) => {
|
|
|
- currentUser.value = res.data
|
|
|
|
|
|
|
+ const data = res.data
|
|
|
|
|
+ // Convert areaId to area name
|
|
|
|
|
+ if (data.areaId) {
|
|
|
|
|
+ const area = allNodes.value.find(n => n.id === data.areaId)
|
|
|
|
|
+ data.areaName = area ? area.name : '-'
|
|
|
|
|
+ } else {
|
|
|
|
|
+ data.areaName = '-'
|
|
|
|
|
+ }
|
|
|
|
|
+ // Convert stationId to station name
|
|
|
|
|
+ if (data.stationId) {
|
|
|
|
|
+ const station = allNodes.value.find(n => n.id === data.stationId)
|
|
|
|
|
+ data.stationName = station ? station.name : '-'
|
|
|
|
|
+ } else {
|
|
|
|
|
+ data.stationName = '-'
|
|
|
|
|
+ }
|
|
|
|
|
+ currentUser.value = data
|
|
|
detailActiveTab.value = 'info'
|
|
detailActiveTab.value = 'info'
|
|
|
loadDetailPets(row.id)
|
|
loadDetailPets(row.id)
|
|
|
loadDetailLogs(row.id, 'customer')
|
|
loadDetailLogs(row.id, 'customer')
|