feat(delivery): let customers read and download signed receipts

This commit is contained in:
2026-09-30 12:09:22 +08:00
parent fa9bfd5f97
commit 6abb8b7388
4 changed files with 127 additions and 12 deletions
@@ -21,10 +21,12 @@ const filters = reactive({ documentNo: '', dispatchNo: '', waybillNo: '', status
const canCreate = computed(() => auth.hasPermission('merchant:warehouse:delivery:create'))
const statusOptions = [
{ value: 'PENDING', label: '待派送' },
{ value: 'IN_TRANSIT', label: '派送中' },
{ value: 'DELIVERED', label: '已送达' },
{ value: 'SIGNED', label: '已签收' },
{ value: 'WAIT_DELIVERY', label: '待派送' },
{ value: 'DELIVERING', label: '派送中' },
{ value: 'DELIVERED', label: '已签收' },
{ value: 'REJECTED', label: '已拒收' },
{ value: 'RETURN_PENDING', label: '待退回' },
{ value: 'RETURNED', label: '已退回' },
{ value: 'CANCELLED', label: '已取消' },
]
@@ -60,9 +62,10 @@ function statusLabel(status: string) {
}
function statusType(status: string) {
if (status === 'DELIVERED' || status === 'SIGNED') return 'success'
if (status === 'DELIVERED') return 'success'
if (status === 'CANCELLED') return 'info'
if (status === 'IN_TRANSIT') return 'warning'
if (status === 'DELIVERING' || status === 'RETURN_PENDING') return 'warning'
if (status === 'REJECTED') return 'danger'
return 'primary'
}