修复发件箱部分投递状态显示

This commit is contained in:
xuans committed 2026-09-30 23:25:57 +08:00
1 parent fc0c550ab5
commit 8235ed537b
3 files changed
+26

No files matched your search

+6
View File
@@ -298,6 +298,11 @@ export function usePage() {
errorDialogVisible.value = true
}
const isPartialDelivery = function (row) {
if (row?.status !== 2) return false
return /^投递未全部完成;已接收\s*[1-9]\d*,失败\s*[1-9]\d*/.test(String(row.error || ''))
}
return {
EpArrowDownBold,
Delete,
@@ -341,6 +346,7 @@ export function usePage() {
isOutbox,
trustSender,
showError,
isPartialDelivery,
errorDialogVisible,
currentErrorMsg,
isRefreshing,
+6
View File
@@ -92,6 +92,11 @@
<el-icon><Warning /></el-icon> 投递结果待核对
</el-tag>
</el-tooltip>
<el-tooltip :content="scope.row.error" placement="top" v-else-if="isPartialDelivery(scope.row)">
<el-tag type="warning" effect="light" size="small" class="clickable-tag" @click.stop="showError(scope.row)">
<el-icon><Warning /></el-icon> 部分成功 (查看详情)
</el-tag>
</el-tooltip>
<el-tag type="success" effect="light" size="small" v-else-if="scope.row.status === 1 && !scope.row.error">
<el-icon><Check /></el-icon> 发送成功
</el-tag>
@@ -164,6 +169,7 @@ const {
isOutbox,
trustSender,
showError,
isPartialDelivery,
errorDialogVisible,
currentErrorMsg,
isRefreshing,