This commit is contained in:
zwgczx committed 2026-03-12 10:38:58 +08:00
1 parent cd107604a9
commit f4c768df29
6 files changed
+37 -25

No files matched your search

+3 -1
View File
@@ -167,9 +167,11 @@ const syncComputedValuesToRows = () => {
let hasValidRow = false
for (const row of detailRows.value) {
if (isSubtotalRow(row)) continue
const hasFeeItem = typeof row.feeItem === 'string' && row.feeItem.trim() !== ''
const hasUnit = typeof row.unit === 'string' && row.unit.trim() !== ''
const quantity = typeof row.quantity === 'number' && Number.isFinite(row.quantity) ? row.quantity : null
const unitPrice = typeof row.unitPrice === 'number' && Number.isFinite(row.unitPrice) ? row.unitPrice : null
if (quantity == null || unitPrice == null) {
if (!hasFeeItem || !hasUnit || quantity == null || unitPrice == null) {
row.budgetFee = null
continue
}