|
|
@@ -84,8 +84,6 @@
|
|
|
<div class="b-tags">
|
|
|
<el-tag size="small" type="info">{{ order.petAge || '-' }}</el-tag>
|
|
|
<el-tag size="small" type="info">{{ order.petWeight || '-' }}</el-tag>
|
|
|
- <el-tag size="small" type="info">{{ order.petAge || '-' }}</el-tag>
|
|
|
- <el-tag size="small" type="info">{{ order.petWeight || '-' }}</el-tag>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -94,8 +92,6 @@
|
|
|
}}</el-descriptions-item>
|
|
|
<el-descriptions-item label="疫苗状态"><span style="color:#67c23a">{{ order.petVaccine || '-'
|
|
|
}}</span></el-descriptions-item>
|
|
|
- <el-descriptions-item label="性格特点">{{ order.petCharacter || '-' }}</el-descriptions-item>
|
|
|
- <el-descriptions-item label="健康状况">{{ order.petHealth || '-' }}</el-descriptions-item>
|
|
|
<el-descriptions-item label="性格特点">{{ order.petPersonality || order.petCharacter || '-'
|
|
|
}}</el-descriptions-item>
|
|
|
<el-descriptions-item label="健康状况">{{ order.petHealth || '-' }}</el-descriptions-item>
|
|
|
@@ -558,6 +554,9 @@ const loadPetAndCustomer = async (order) => {
|
|
|
if (orderRes.data.price != null) {
|
|
|
next.fulfillerFee = (orderRes.data.price / 100).toFixed(2)
|
|
|
}
|
|
|
+ if (orderRes.data.orderCommission != null) {
|
|
|
+ next.orderCommission = (orderRes.data.orderCommission / 100).toFixed(2)
|
|
|
+ }
|
|
|
}
|
|
|
} catch (e) {
|
|
|
console.error('获取订单详细信息失败', e)
|
|
|
@@ -569,9 +568,10 @@ const loadPetAndCustomer = async (order) => {
|
|
|
try {
|
|
|
const res = await getPet(petId)
|
|
|
const pet = res?.data
|
|
|
+ console.log('Web管理端 - 宠物详情:', pet)
|
|
|
if (pet) {
|
|
|
next.petName = pet.name ?? next.petName
|
|
|
- next.petAvatar = pet.avatarUrl ?? next.petAvatar
|
|
|
+ next.petAvatar = pet.avatarUrl || pet.avatar || next.petAvatar
|
|
|
next.petGender = pet.gender ?? next.petGender
|
|
|
next.petAge = (pet.age !== undefined && pet.age !== null) ? `${pet.age}岁` : next.petAge
|
|
|
next.petWeight = (pet.weight !== undefined && pet.weight !== null) ? `${pet.weight}kg` : next.petWeight
|
|
|
@@ -580,7 +580,7 @@ const loadPetAndCustomer = async (order) => {
|
|
|
? (Number(pet.isSterilized) === 1)
|
|
|
: next.petSterilized
|
|
|
next.petVaccine = pet.vaccineStatus ?? next.petVaccine
|
|
|
- next.petPersonality = pet.personality ?? next.petPersonality
|
|
|
+ next.petPersonality = (pet.cutePersonality || pet.personality) ?? next.petPersonality
|
|
|
next.petHealth = pet.healthStatus ?? next.petHealth
|
|
|
}
|
|
|
} catch {
|
|
|
@@ -592,9 +592,10 @@ const loadPetAndCustomer = async (order) => {
|
|
|
try {
|
|
|
const res = await getCustomer(customerId)
|
|
|
const customer = res?.data
|
|
|
+ console.log('Web管理端 - 客户详情:', customer)
|
|
|
if (customer) {
|
|
|
next.userName = customer.name ?? next.userName
|
|
|
- next.userAvatar = customer.avatarUrl ?? next.userAvatar
|
|
|
+ next.userAvatar = customer.avatarUrl || customer.avatar || next.userAvatar
|
|
|
next.contactPhone = customer.phone ?? next.contactPhone
|
|
|
next.city = customer.areaName ?? next.city
|
|
|
next.address = customer.address ?? next.address
|
|
|
@@ -608,7 +609,9 @@ const loadPetAndCustomer = async (order) => {
|
|
|
try {
|
|
|
const fRes = await getFulfiller(fulfillerId)
|
|
|
const fulfiller = fRes?.data
|
|
|
+ console.log('Web管理端 - 履约者详情:', fulfiller)
|
|
|
if (fulfiller) {
|
|
|
+ next.fulfillerAvatar = fulfiller.avatarUrl || fulfiller.avatar || next.fulfillerAvatar
|
|
|
next.fulfillerStation = fulfiller.stationName ?? next.fulfillerStation
|
|
|
next.fulfillerLevelName = fulfiller.levelName ?? next.fulfillerLevelName
|
|
|
}
|