优化
This commit is contained in:
@@ -41,7 +41,7 @@ const props = withDefaults(defineProps<{
|
||||
})
|
||||
const emit = defineEmits<{
|
||||
changed: []
|
||||
summaryChanged: [actualGrossWeightKg: number | null, actualNetWeightKg: number | null]
|
||||
summaryChanged: [actualGrossWeightKg: number | null, actualNetWeightKg: number | null, hasConfirmedWeight: boolean]
|
||||
}>()
|
||||
|
||||
const access = useAccessPreviewStore()
|
||||
@@ -213,7 +213,12 @@ function buildAdjustmentReason(row: WeightResultResource) {
|
||||
}
|
||||
|
||||
function emitWorkspaceChanged() {
|
||||
emit('summaryChanged', workspace.value?.actualGrossWeightKg ?? null, workspace.value?.actualNetWeightKg ?? null)
|
||||
emit(
|
||||
'summaryChanged',
|
||||
workspace.value?.actualGrossWeightKg ?? null,
|
||||
workspace.value?.actualNetWeightKg ?? null,
|
||||
workspace.value?.weightResults.some((item) => item.recognitionStatus === 'CONFIRMED') === true,
|
||||
)
|
||||
emit('changed')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user