This commit is contained in:
2026-09-09 10:18:12 +08:00
parent e643e43828
commit 1249263b94
12 changed files with 164 additions and 28 deletions
@@ -17,7 +17,8 @@ const props = withDefaults(defineProps<{
containerBookingId: string
customers: Array<{ accountId: string; customerName: string | null }>
businessReferences: Array<{ accountId: string; customerName: string | null; orderId: string; orderNo: string; inboundId: string | null; inboundCode: string | null }>
}>(), { title: '柜次费用' })
readonly?: boolean
}>(), { title: '柜次费用', readonly: false })
const access = useAccessPreviewStore()
const accountId = ref('')
const fees = ref<ContainerFeeResource[]>([])
@@ -56,8 +57,8 @@ let loadSequence = 0
let supplierLoadSequence = 0
const canView = computed(() => access.can('firstleg:inbound:fee-detail:view'))
const canEdit = computed(() => access.can('firstleg:inbound:fee-detail:edit'))
const canReview = computed(() => access.can('firstleg:inbound:fee-detail:review'))
const canEdit = computed(() => !props.readonly && access.can('firstleg:inbound:fee-detail:edit'))
const canReview = computed(() => !props.readonly && access.can('firstleg:inbound:fee-detail:review'))
const canViewFeeItems = computed(() => access.can('firstleg:fee-item:view'))
const canViewSuppliers = computed(() => access.can('platform:supplier:list'))
const customerOptions = computed(() => {