mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 03:12:27 +09:00
style : input box 스타일 변경 완료
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
import {deletePrcsFile, getPrcsFileDown, savePrice} from '/src/service/priceApi'
|
import {deletePrcsFile, getPrcsFileDown, savePrice} from '/src/service/priceApi'
|
||||||
import {type iPbAtt, Person} from '/@src/utils/types'
|
import {type iPbAtt, Person} from '/@src/utils/types'
|
||||||
import {formatBizNum,formatDatefromString} from "/@src/utils/common/comfunc.ts";
|
import {formatBizNum,formatDatefromString} from "/@src/utils/common/comfunc.ts";
|
||||||
|
import Control from "/@src/pages/components/forms/control.vue";
|
||||||
|
|
||||||
const notyf = useNotyf()
|
const notyf = useNotyf()
|
||||||
const showTable = ref(false)
|
const showTable = ref(false)
|
||||||
@@ -204,11 +205,13 @@ const onFileChange = (e: any) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const onFilDelete = async ( index: number, fileOrd: number) => {
|
const onFilDelete = async ( index: number, fileOrd: number) => {
|
||||||
notyf.dismissAll()
|
const confirmed = confirm('삭제하시겠습니까?')
|
||||||
if (index) {
|
if (index) {
|
||||||
|
if (confirmed){
|
||||||
pbAtts.value.splice(index, 1)
|
pbAtts.value.splice(index, 1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function onInput(row, column){
|
function onInput(row, column){
|
||||||
if (column.key === 'bizNo') {
|
if (column.key === 'bizNo') {
|
||||||
@@ -308,7 +311,7 @@ function onInput(row, column){
|
|||||||
<VControl>
|
<VControl>
|
||||||
<input
|
<input
|
||||||
v-model="row[column.key]"
|
v-model="row[column.key]"
|
||||||
class="editable-input"
|
class="input custom-text-filter"
|
||||||
ref="prcsBizsRef"
|
ref="prcsBizsRef"
|
||||||
@blur="onInput(row, column)"
|
@blur="onInput(row, column)"
|
||||||
/>
|
/>
|
||||||
@@ -353,7 +356,9 @@ function onInput(row, column){
|
|||||||
@close="detailActionsOpen = false"
|
@close="detailActionsOpen = false"
|
||||||
>
|
>
|
||||||
<template #content>
|
<template #content>
|
||||||
|
<div class="form-label">
|
||||||
<VButton color="success">일괄업로드</VButton>
|
<VButton color="success">일괄업로드</VButton>
|
||||||
|
</div>
|
||||||
<ComVFlexTable
|
<ComVFlexTable
|
||||||
:key="params.dtlSpecs.length"
|
:key="params.dtlSpecs.length"
|
||||||
:data="params.dtlSpecs"
|
:data="params.dtlSpecs"
|
||||||
@@ -368,7 +373,7 @@ function onInput(row, column){
|
|||||||
<input
|
<input
|
||||||
v-if="column.editable"
|
v-if="column.editable"
|
||||||
v-model="row[column.key]"
|
v-model="row[column.key]"
|
||||||
class="editable-input"
|
class="input custom-text-filter"
|
||||||
/>
|
/>
|
||||||
<span v-else-if="column.key=='num'">{{index+1}}</span>
|
<span v-else-if="column.key=='num'">{{index+1}}</span>
|
||||||
<span v-else-if="column.key=='delete'" class="lnil lnil-close"
|
<span v-else-if="column.key=='delete'" class="lnil lnil-close"
|
||||||
|
|||||||
@@ -222,17 +222,23 @@ const onFileChange = (e: any) => {
|
|||||||
|
|
||||||
const onFilDelete = async (prcsNo: string, index: number, fileOrd: number) => {
|
const onFilDelete = async (prcsNo: string, index: number, fileOrd: number) => {
|
||||||
notyf.dismissAll()
|
notyf.dismissAll()
|
||||||
console.log(prcsNo)
|
const confirmed = confirm('삭제하시겠습니까?')
|
||||||
if (prcsNo === undefined || prcsNo === null) {
|
if (!prcsNo) {
|
||||||
|
if (confirmed){
|
||||||
pbAtts.value.splice(index, 1)
|
pbAtts.value.splice(index, 1)
|
||||||
}
|
}
|
||||||
else {
|
} else {
|
||||||
await deletePrcsFile(params.prcsNo, fileOrd).then((res: string) => {
|
if (confirmed) {
|
||||||
|
await deletePrcsFile(prcsNo, fileOrd).then((res: string) => {
|
||||||
notyf.success(res)
|
notyf.success(res)
|
||||||
pbAtts.value.splice(index, 1)
|
pbAtts.value.splice(index, 1)
|
||||||
|
}).catch((err) => {
|
||||||
|
notyf.error('삭제 중 오류가 발생했습니다.')
|
||||||
|
console.error(err)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const onPrcsFileDownload = async (prcsNo: string, fileOrd: number, logiFnm: string) => {
|
const onPrcsFileDownload = async (prcsNo: string, fileOrd: number, logiFnm: string) => {
|
||||||
const link = document.createElement('a')
|
const link = document.createElement('a')
|
||||||
@@ -334,7 +340,7 @@ const onPrcsFileDownload = async (prcsNo: string, fileOrd: number, logiFnm: stri
|
|||||||
<input
|
<input
|
||||||
v-if="column.editable"
|
v-if="column.editable"
|
||||||
v-model="row[column.key]"
|
v-model="row[column.key]"
|
||||||
class="input editable-input"
|
class="input custom-text-filter"
|
||||||
@blur="onInput(row, column)"
|
@blur="onInput(row, column)"
|
||||||
/>
|
/>
|
||||||
<span v-else-if="column.key=='num'">{{index + 1}}</span>
|
<span v-else-if="column.key=='num'">{{index + 1}}</span>
|
||||||
@@ -377,7 +383,9 @@ const onPrcsFileDownload = async (prcsNo: string, fileOrd: number, logiFnm: stri
|
|||||||
@close="detailActionsOpen = false"
|
@close="detailActionsOpen = false"
|
||||||
>
|
>
|
||||||
<template #content>
|
<template #content>
|
||||||
|
<div class="form-label">
|
||||||
<VButton color="success">일괄업로드</VButton>
|
<VButton color="success">일괄업로드</VButton>
|
||||||
|
</div>
|
||||||
<ComVFlexTable
|
<ComVFlexTable
|
||||||
:key="params.dtlSpecs.length"
|
:key="params.dtlSpecs.length"
|
||||||
:data="params.dtlSpecs"
|
:data="params.dtlSpecs"
|
||||||
@@ -391,7 +399,7 @@ const onPrcsFileDownload = async (prcsNo: string, fileOrd: number, logiFnm: stri
|
|||||||
<input
|
<input
|
||||||
v-if="column.editable"
|
v-if="column.editable"
|
||||||
v-model="row[column.key]"
|
v-model="row[column.key]"
|
||||||
class="editable-input input"
|
class="input custom-text-filter"
|
||||||
/>
|
/>
|
||||||
<span v-else-if="column.key=='num'">{{index+1}}</span>
|
<span v-else-if="column.key=='num'">{{index+1}}</span>
|
||||||
<span v-else-if="column.key=='delete'" class="lnil lnil-close"
|
<span v-else-if="column.key=='delete'" class="lnil lnil-close"
|
||||||
@@ -514,9 +522,12 @@ const onPrcsFileDownload = async (prcsNo: string, fileOrd: number, logiFnm: stri
|
|||||||
<div class="estimate-file-name">
|
<div class="estimate-file-name">
|
||||||
{{ f.logiFnm }}{{" ("}}{{Math.ceil(f.size / 1024)}}kb{{")"}}
|
{{ f.logiFnm }}{{" ("}}{{Math.ceil(f.size / 1024)}}kb{{")"}}
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<span>
|
||||||
<i class="fa fa-download estimate-file-download" @click="onPrcsFileDownload(f.prcsNo, f.fileOrd, f.logiFnm)" />
|
<i class="fa fa-download estimate-file-download" @click="onPrcsFileDownload(f.prcsNo, f.fileOrd, f.logiFnm)" />
|
||||||
</div>
|
</span>
|
||||||
|
<span>
|
||||||
|
<i class="fa fa-trash estimate-file-delete" @click="onFilDelete(f.prcsNo, i, f.fileOrd)" />
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</VControl>
|
</VControl>
|
||||||
</VField>
|
</VField>
|
||||||
@@ -557,6 +568,9 @@ const onPrcsFileDownload = async (prcsNo: string, fileOrd: number, logiFnm: stri
|
|||||||
placeholder="재중"
|
placeholder="재중"
|
||||||
cd_grp=6
|
cd_grp=6
|
||||||
v-model="row.attendCd">
|
v-model="row.attendCd">
|
||||||
|
<!-- <template #code>-->
|
||||||
|
<!-- <span v-if="!row.attendCd">{{"재중"}}</span>-->
|
||||||
|
<!-- </template>-->
|
||||||
</VCodeSelect>
|
</VCodeSelect>
|
||||||
</VField>
|
</VField>
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user