feat(client): show actionable customs count on sidebar

This commit is contained in:
2026-10-09 18:14:19 +08:00
parent 639b1ae22c
commit c0b151bc15
10 changed files with 136 additions and 2 deletions
@@ -22,6 +22,9 @@ import {
type MerchantClearanceResult,
} from '@/modules/first-leg/api/customs'
import { useCustomsPendingStore } from '../store/customsPending'
const customsPending = useCustomsPendingStore()
const props = defineProps<{
modelValue: boolean
orderId: string
@@ -104,6 +107,7 @@ async function retryClearanceResults() {
async function loadDetail() {
if (disposed || !props.modelValue || !props.orderId) return
void customsPending.refresh(true)
const request = ++detailRequest
resetClearanceResults()
const orderId = props.orderId