견적서 주택PKGASP

This commit is contained in:
basssy 2024-12-09 15:06:13 +09:00
parent 396d01f288
commit 63a7c90f92

View File

@ -59,7 +59,14 @@ export const useEstimateController = (planNo) => {
item.delFlg = '0' item.delFlg = '0'
}) })
} }
if (res.data.pkgAsp === null || res.data.pkgAsp == undefined) {
res.data.pkgAsp = '0.00'
} else {
const number = parseFloat(res.data.pkgAsp)
const roundedNumber = isNaN(number) ? '0.00' : number.toFixed(2)
res.data.pkgAsp = roundedNumber.toString()
}
setEstimateContextState(res.data) setEstimateContextState(res.data)
} }
} }