func : 가격조사 상세폼 양식추가

- 이메일, 사업자번호, 금액, 전송여부, 재전송여부
This commit is contained in:
Kasi
2025-05-28 17:14:56 +09:00
parent 09ecb0e978
commit a70bfa10aa
2 changed files with 38 additions and 10 deletions

View File

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

View File

@@ -59,9 +59,11 @@ const params = reactive({
], ],
priceData:[], priceData:[],
prcsBizsColumn: [ //견적사 입력 prcsBizsColumn: [ //견적사 입력
{ key: 'num', label: '구분', width: '10%' }, { key: 'email', label: '이메일', editable: true },
{ key: 'email', label: '이메일', editable: true, width: '50px' }, { key: 'bizNo', label: '사업자번호', editable: true},
{ key: 'bizNo', label: '사업자번호', editable: true, width: '50px'}, { 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: [], //견적사 입력 데이터 prcsBizs: [], //견적사 입력 데이터
dtlSpecsColumn: [ dtlSpecsColumn: [
@@ -86,13 +88,12 @@ function getDetailList(arg){
params.cateSelect = arg.cateNm params.cateSelect = arg.cateNm
generalParams.title = arg.title generalParams.title = arg.title
generalParams.content = arg.content generalParams.content = arg.content
params.prcsBizs = arg.prcsBizs.map(req => ({ params.prcsBizs = arg.prcsBizs
bizNo: req.bizNo, console.log(params.prcsBizs)
email: req.email,
}))
params.dtlSpecs = arg.dtlSpecs params.dtlSpecs = arg.dtlSpecs
generalParams.regSdat = formatDatefromString(arg.regSdat) generalParams.regSdat = formatDatefromString(arg.regSdat)
generalParams.regEdat = formatDatefromString(arg.regEdat) generalParams.regEdat = formatDatefromString(arg.regEdat)
apprLine.value = arg.apprMst.apprReqs.map(req => ({ apprLine.value = arg.apprMst.apprReqs.map(req => ({
gubunNm: req.gubunNm, gubunNm: req.gubunNm,
deptCd: req.deptCd, deptCd: req.deptCd,
@@ -153,6 +154,8 @@ const onPrcsFileDownload = async (prcsNo: string, fileOrd: number, logiFnm: stri
document.body.appendChild(link) document.body.appendChild(link)
link.click() link.click()
} }
</script> </script>
<template> <template>
@@ -344,10 +347,35 @@ const onPrcsFileDownload = async (prcsNo: string, fileOrd: number, logiFnm: stri
:compact="true" :compact="true"
:separators="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> <div>
<span v-if="column.key=='num'">{{index + 1}}</span> <span v-if="column.key=='num'">{{index + 1}}</span>
<!-- readonly 출력 -->
<span v-else>{{ value }}</span> <span v-else>{{ value }}</span>
</div> </div>
</template> </template>