mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-19 21:05:06 +09:00
Merge remote-tracking branch 'origin/main'
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user