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) => {