mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 07:23:50 +09:00
fix : 견적사입력 사업자번호 format 설정
This commit is contained in:
@@ -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 출력 -->
|
||||
|
||||
Reference in New Issue
Block a user