Update followup-detail.vue

This commit is contained in:
huxuejian 2026-10-21 17:47:33 +08:00
parent 76b2187a64
commit b68e0f2a6e

View File

@ -315,8 +315,8 @@ async function getTodo() {
return; return;
} }
todo.value = res.data && typeof res.data === 'object' ? res.data : null; todo.value = res.data && typeof res.data === 'object' ? res.data : null;
if (todo.value.customerId && !customer.value) { if (todo.value.customerId) {
getCustomer(todo.value.customerId) await getCustomer(todo.value.customerId)
} }
await loadUserNameMap(String(todo.value?.executeTeamId || '')); await loadUserNameMap(String(todo.value?.executeTeamId || ''));
if (todo.value && todo.value.creatorUserId && !userNameMap.value[todo.value.creatorUserId]) { if (todo.value && todo.value.creatorUserId && !userNameMap.value[todo.value.creatorUserId]) {
@ -342,6 +342,9 @@ async function getCustomer(_id) {
const [data] = res && Array.isArray(res.data) ? res.data : []; const [data] = res && Array.isArray(res.data) ? res.data : [];
if (data) { if (data) {
customer.value = data customer.value = data
} else {
toast('获取客户信息失败')
uni.navigateBack()
} }
} }