mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 09:13:30 +09:00
fix : 코드 정리 및 함수 변경하기
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import {getDetailPrcs, updatePrice, getPrcsFileDown, deletePrcsFile} from '/src/service/priceApi'
|
||||
import {type iPbAtt, type Person} from '/@src/utils/types'
|
||||
import {formatBizNum, formatDate} from "/@src/utils/common/comfunc.ts";
|
||||
import {formatBizNum, formatDatefromString} from "/@src/utils/common/comfunc.ts";
|
||||
const notyf = useNotyf()
|
||||
const loading = ref(false)
|
||||
const router = useRouter()
|
||||
@@ -47,14 +47,7 @@ const params = reactive({
|
||||
prcsBizsColumn: [ //견적사 입력
|
||||
{ key: 'num', label: '구분', width: '10%' },
|
||||
{ key: 'email', label: '이메일', editable: true, width: '50px' },
|
||||
{ key: 'bizNo', label: '사업자번호', editable: true,
|
||||
format: (value: string) => {
|
||||
// '1234567890' -> '123-45-67890'
|
||||
console.log("value",value)
|
||||
if (!value) return ''
|
||||
return formatBizNum(value)
|
||||
}
|
||||
},
|
||||
{ key: 'bizNo', label: '사업자번호', editable: true},
|
||||
{ key: 'actions', label: '동작', width: '100px'}
|
||||
],
|
||||
prcsBizs: [], //견적사 입력 데이터
|
||||
@@ -131,8 +124,8 @@ const updatePriceOne = async () => {
|
||||
cateCd : params.cateSelect,
|
||||
title: generalParams.title,
|
||||
content: generalParams.content,
|
||||
regSdat: formatDate(generalParams.regSdat),
|
||||
regEdat: formatDate(generalParams.regEdat),
|
||||
regSdat: formatDatefromString(generalParams.regSdat),
|
||||
regEdat: formatDatefromString(generalParams.regEdat),
|
||||
prvYn: false,
|
||||
prvRsn : "",
|
||||
prvPwd : "",
|
||||
@@ -373,7 +366,7 @@ const onPrcsFileDownload = async (prcsNo: string, fileOrd: number, logiFnm: stri
|
||||
@click="detailActionsOpen = true"
|
||||
style="width: 100%;"
|
||||
>
|
||||
<span v-if="params.btnChangeFlag == false"> 상세 규격 입력</span>
|
||||
<span v-if="!params.btnChangeFlag"> 상세 규격 입력</span>
|
||||
<span v-else-if="params.btnChangeFlag"> 상세 규격 등록 완료</span>
|
||||
</VButton>
|
||||
<VModal
|
||||
|
||||
Reference in New Issue
Block a user