Merge remote-tracking branch 'origin/main'

This commit is contained in:
Yesol Choi
2025-05-28 17:19:49 +09:00
2 changed files with 38 additions and 10 deletions

View File

@@ -225,7 +225,7 @@ const columns = computed(() => {
>
<VFlexTableCell :column="column">
<slot
name="body-cell"
:name="`body-cell-${column.key}`"
:row="row"
:column="column"
:index="index"

View File

@@ -59,9 +59,11 @@ const params = reactive({
],
priceData:[],
prcsBizsColumn: [ //견적사 입력
{ key: 'num', label: '구분', width: '10%' },
{ key: 'email', label: '이메일', editable: true, width: '50px' },
{ key: 'bizNo', label: '사업자번호', editable: true, width: '50px'},
{ key: 'email', label: '이메일', editable: true },
{ key: 'bizNo', label: '사업자번호', editable: true},
{ key: 'totAmt', label: '금액', editable: true},
{ key: 'sendYn', label: '전송여부', editable: true, cellClass: 'is-justify-content-center'},
{ key: 'retransmitYn', label: '재전송여부', editable: true, cellClass: 'is-justify-content-center'},
],
prcsBizs: [], //견적사 입력 데이터
dtlSpecsColumn: [
@@ -86,13 +88,12 @@ function getDetailList(arg){
params.cateSelect = arg.cateNm
generalParams.title = arg.title
generalParams.content = arg.content
params.prcsBizs = arg.prcsBizs.map(req => ({
bizNo: req.bizNo,
email: req.email,
}))
params.prcsBizs = arg.prcsBizs
console.log(params.prcsBizs)
params.dtlSpecs = arg.dtlSpecs
generalParams.regSdat = formatDatefromString(arg.regSdat)
generalParams.regEdat = formatDatefromString(arg.regEdat)
apprLine.value = arg.apprMst.apprReqs.map(req => ({
gubunNm: req.gubunNm,
deptCd: req.deptCd,
@@ -153,6 +154,8 @@ const onPrcsFileDownload = async (prcsNo: string, fileOrd: number, logiFnm: stri
document.body.appendChild(link)
link.click()
}
</script>
<template>
@@ -344,10 +347,35 @@ const onPrcsFileDownload = async (prcsNo: string, fileOrd: number, logiFnm: stri
:compact="true"
:separators="true"
>
<template #body-cell="{ column, index, value }">
<!-- sendYn 컬럼 커스텀 렌더링 -->
<template #body-cell-sendYn="{ row }">
<div>
<VButton
v-if="!row.sendYn"
color="validation"
size="small"
>
미전송
</VButton>
<span v-else>전송완료</span>
</div>
</template>
<template #body-cell-retransmitYn="{ row }">
<div>
<VButton
v-if="!row.sendYn"
color="info"
size="small"
>
재전송
</VButton>
</div>
</template>
<!-- 나머지 컬럼만 슬롯 사용 -->
<template #body-cell="{ column, index, value, row }">
<pre>{{ row.sendYn }}</pre>
<div>
<span v-if="column.key=='num'">{{index + 1}}</span>
<!-- readonly 출력 -->
<span v-else>{{ value }}</span>
</div>
</template>