fix: 사업자번호 가져오기 기능 보강

This commit is contained in:
Kasi
2025-06-05 14:26:19 +09:00
parent 37ec33d865
commit 6cb781a26c

View File

@@ -305,12 +305,20 @@ const showReasonError = computed(() =>
(!completedPriceDataParams.reason || !completedPriceDataParams.reason.trim()) (!completedPriceDataParams.reason || !completedPriceDataParams.reason.trim())
) )
const estimateBizNoOptions = computed(() =>
completedPriceDataParams.estimates.map(est => ({ const estimateBizNoOptions = computed(() => {
value: est.bizNo, if (completedPriceDataParams.compNm) {
text: est.bizNo return [{
})) value: completedPriceDataParams.bizNo,
) text: completedPriceDataParams.bizNo
}]
}
return completedPriceDataParams.estimates.map(est => ({
value: est.bizNo,
text: est.bizNo
}))
})
function onBizNoChange() { function onBizNoChange() {
const selected = completedPriceDataParams.estimates.find(est => est.bizNo === completedPriceDataParams.bizNo) const selected = completedPriceDataParams.estimates.find(est => est.bizNo === completedPriceDataParams.bizNo)