From 801663b7431d82086af6d9edd3a5aab1efae7c92 Mon Sep 17 00:00:00 2001 From: Yesol Choi Date: Fri, 30 May 2025 11:34:29 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EA=B2=B0=EC=9E=AC=EC=84=A0=20=EB=A7=88?= =?UTF-8?q?=EC=A7=80=EB=A7=89=20=EC=B2=B4=ED=81=AC=20=EB=A1=9C=EC=A7=81=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/app/priceUpdate.vue | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/pages/app/priceUpdate.vue b/src/pages/app/priceUpdate.vue index 58d8035..177f008 100644 --- a/src/pages/app/priceUpdate.vue +++ b/src/pages/app/priceUpdate.vue @@ -69,6 +69,7 @@ const params = reactive({ const pbAtts = ref(params.prcsAtts) function getDetailList(arg){ + console.log("arg res",arg) params.prcsNo = arg.prcsNo params.stCd = arg.stCd params.cateSelect = arg.cateCd @@ -83,6 +84,7 @@ function getDetailList(arg){ generalParams.regEdat = arg.regEdat apprLine.value = arg.apprMst.apprReqs.map(req => ({ gubunCd: req.gubunCd, + gubunNm: req.gubunNm, deptCd: req.deptCd, deptNm: req.deptNm, sabun: req.sabun, @@ -117,7 +119,7 @@ const validation = () => { } if(apprLine.value.length < 2){ - notyf.error("결재선은 두 명이상 입력해주세요.") + notyf.error("결재선은 본인 외 2명이상 필수입니다.") return false } const result = apprLine.value.filter((item)=> item.gubunCd === '0200' ) @@ -126,6 +128,11 @@ const validation = () => { notyf.error("결재는 한 명입니다.") return false } + const resultLastItem = apprLine.value[apprLine.value.length-1].gubunCd + if(resultLastItem != '0200'){ + notyf.error("결재선의 마지막은 결재자이어야 함") + return false + } return true } @@ -175,6 +182,7 @@ const updatePriceOne = async () => { })), //결재선 데이터 } res = await updatePrice(paramsPrice) + console.log("update res",res) notyf.dismissAll() if(res.request.status == '200'){ notyf.primary('수정 되었습니다.') @@ -614,7 +622,16 @@ const moveDown = (index: number) => {