From d8fbc16fd77ecf5ffad6bbc4449a61552f598201 Mon Sep 17 00:00:00 2001 From: ouyangxq <775153912@qq.com> Date: Wed, 21 Oct 2026 21:11:44 +0800 Subject: [PATCH] fix(dispatch): unify loading document tabs and remove duplicate photo prompt --- .../components/DeliveryDocumentsDialog.vue | 4 ++-- .../components/DispatchDocumentsDialog.test.ts | 4 +++- .../components/DispatchDocumentsDialog.vue | 5 +++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/modules/overseas-warehouse/components/DeliveryDocumentsDialog.vue b/src/modules/overseas-warehouse/components/DeliveryDocumentsDialog.vue index 9ed27a5a..d0b47456 100644 --- a/src/modules/overseas-warehouse/components/DeliveryDocumentsDialog.vue +++ b/src/modules/overseas-warehouse/components/DeliveryDocumentsDialog.vue @@ -28,7 +28,7 @@ const error = ref(null) const conflict = ref(false) const canEdit = computed(() => access.can(permission.deliveryDocuments) && Boolean(snapshot.value?.allowedActions.includes('MANAGE_DOCUMENTS'))) const busy = computed(() => saving.value || uploading.value) -const uploadedCount = computed(() => draft.value.filter(item => item.files.length > 0).length) +const uploadedCount = computed(() => visibleGroups.value.filter(item => item.files.length > 0).length) const visibleGroups = computed(() => draft.value.filter(item => !props.categories || props.categories.includes(item.category))) const dirty = computed(() => Boolean(snapshot.value) && (bolNo.value !== (snapshot.value?.bolNo || '') || draft.value.some(group => JSON.stringify(group.files.map(file => file.fileId)) !== JSON.stringify(snapshot.value?.categories.find(item => item.category === group.category)?.files.map(file => file.fileId) || [])))) defineExpose({ busy, dirty, canEdit, loading, conflict, save }) @@ -118,7 +118,7 @@ async function save() {
-

资料核对

派送单号{{ deliveryNo || '—' }}资料类别{{ snapshot ? uploadedCount + '/3 已上传' : loading ? '正在读取…' : '资料未返回' }}

{{ canEdit ? '上传、替换和删除将在保存资料后生效;关闭将放弃未保存修改。' : '当前账号仅可查看已保存资料。' }}

+

资料核对

派送单号{{ deliveryNo || '—' }}资料类别{{ snapshot ? uploadedCount + '/' + visibleGroups.length + ' 已上传' : loading ? '正在读取…' : '资料未返回' }}

{{ canEdit ? '上传、替换和删除将在保存资料后生效;关闭将放弃未保存修改。' : '当前账号仅可查看已保存资料。' }}