diff --git a/src/pages/app/PriceInsert.vue b/src/pages/app/PriceInsert.vue
index 4805829..80b34f0 100644
--- a/src/pages/app/PriceInsert.vue
+++ b/src/pages/app/PriceInsert.vue
@@ -196,7 +196,12 @@ const onFileChange = (e: any) => {
size: file.size,
data: result.split(',')[1],
}
- pbAtts.value.push(pbAtt)
+ notyf.dismissAll()
+ if(pbAtt.logiFnm.includes('.pdf')) {
+ pbAtts.value.push(pbAtt)
+ }else{
+ notyf.error("pdf 파일만 업로드 가능합니다.")
+ }
}
reader.readAsDataURL(file)
diff --git a/src/pages/app/priceUpdate.vue b/src/pages/app/priceUpdate.vue
index 29a410c..e34dd19 100644
--- a/src/pages/app/priceUpdate.vue
+++ b/src/pages/app/priceUpdate.vue
@@ -111,9 +111,10 @@ const validation = () => {
return false
}
- const resultGu = apprLine.value.filter((item)=> !item.gubunCd)
+ const resultGu = apprLine.value.filter((item,index)=> index != 0 && !item.gubunCd)
if(resultGu.length > 0){
+ console.log("resultGu",resultGu)
notyf.error("결재선 구분값을 입력해주세요")
return false
}
@@ -182,7 +183,6 @@ const updatePriceOne = async () => {
})), //결재선 데이터
}
res = await updatePrice(paramsPrice)
- console.log("update res",res)
notyf.dismissAll()
if(res.request.status == '200'){
notyf.primary('수정 되었습니다.')
@@ -266,7 +266,12 @@ const onFileChange = (e: any) => {
size: file.size,
data: result.split(',')[1],
}
- pbAtts.value.push(pbAtt)
+ notyf.dismissAll()
+ if(pbAtt.logiFnm.includes('.pdf')) { //todo 여러개 올릴 때 이슈 발생 확인 필요
+ pbAtts.value.push(pbAtt)
+ }else{
+ notyf.error("pdf 파일만 업로드 가능합니다.")
+ }
}
reader.readAsDataURL(file)
@@ -590,8 +595,6 @@ const moveDown = (index: number) => {
-
-
@@ -648,7 +651,7 @@ const moveDown = (index: number) => {
-
+
{{"삭제"}}