fix : 견적사입력 사업자번호 format 설정

This commit is contained in:
Yesol Choi
2025-05-26 10:47:02 +09:00
parent 0321821a0f
commit 2673aa7dc7
3 changed files with 43 additions and 14 deletions

View File

@@ -1,6 +1,7 @@
<script setup lang="ts">
import { savePrice } from '/src/service/priceApi'
import { Person } from '/@src/utils/types'
import {formatBizNum} from "/@src/utils/common/comfunc.ts";
const notyf = useNotyf()
const showTable = ref(false)
@@ -204,6 +205,13 @@ function onFileChange(event: Event) {
// 예: emit('file-selected', target.files[0])
}
}
function onInput(row, column){
if (column.key === 'bizNo') {
const raw =row[column.key].replace(/\D/g, '')
row[column.key] = formatBizNum(raw) // 실시간 포맷 적용
}
}
</script>
<template>
@@ -298,6 +306,7 @@ function onFileChange(event: Event) {
v-model="row[column.key]"
class="editable-input"
ref="prcsBizsRef"
@blur="onInput(row, column)"
/>
<span v-else-if="column.key=='num'">{{index + 1}}</span>
<!-- readonly 출력 -->