From 854c18e2e9394257ad0d1c0a90ae703e6732e6a4 Mon Sep 17 00:00:00 2001 From: Yesol Choi Date: Fri, 30 May 2025 15:17:05 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20=EC=95=84=EC=9D=B4=EC=BD=98=20?= =?UTF-8?q?=EB=B6=99=EC=9D=B4=EA=B8=B0=20=EB=B0=8F=20pdf=20=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=EB=A7=8C=20=EC=97=85=EB=A1=9C=EB=93=9C=20=EB=90=98?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95,=20=EB=8B=A4=EA=B1=B4?= =?UTF-8?q?=20=ED=8C=8C=EC=9D=BC=20=EC=97=85=EB=A1=9C=EB=93=9C=20=EC=9D=BC?= =?UTF-8?q?=EC=8B=9C=20=ED=99=95=EC=9D=B8=20=ED=95=84=EC=9A=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/app/PriceInsert.vue | 7 ++++++- src/pages/app/priceUpdate.vue | 15 +++++++++------ 2 files changed, 15 insertions(+), 7 deletions(-) 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) => { - + {{"삭제"}}