feat(delivery): let customers read and download signed receipts
This commit is contained in:
@@ -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'
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user