better customer photo selector

This commit is contained in:
Timi
2026-08-20 13:12:04 +08:00
parent 805e8ecb84
commit aea71aafd5
5 changed files with 404 additions and 202 deletions
+7
View File
@@ -30,6 +30,7 @@
<template #title>
<photo-scroller
:model-value="photoList"
:photo-items="photoItemList"
:show-add="false"
:show-remove="false"
title="照片列表"
@@ -227,6 +228,12 @@ const ageText = computed(() => customer.value?.age === undefined || customer.val
const photoList = computed(() => (customer.value?.attachmentList || [])
.filter(item => !!item.id)
.map(item => AttachmentAPI.getReadURL(item.id || "")));
const photoItemList = computed(() => (customer.value?.attachmentList || [])
.filter(item => !!item.id)
.map(item => ({
attachType: item.attachType || "PHOTO",
url: AttachmentAPI.getReadURL(item.id || "")
})));
const selectedAreas = computed<BodyAreaValue>({
get() {
return normalizeBodyAreaValue(customer.value?.conditioningPart);