diff --git a/src/components/app-vuero/VUser.vue b/src/components/app-vuero/VUser.vue index ee847f4..883dec8 100644 --- a/src/components/app-vuero/VUser.vue +++ b/src/components/app-vuero/VUser.vue @@ -8,19 +8,6 @@ const dataUser = reactive({ userSession: null, }) -// onBeforeMount(() => { -// dataUser.userSession = userSession.user.data -// const sessioinData = [{ -// gubunCd: '0000', //구분 -// gubunNm: '입안', -// deptNm: dataUser.userSession.dept.deptNm, -// sabun: dataUser.userSession.sabun, -// name: dataUser.userSession.name, -// attendCd: '', // 비고 -// -// }] -// model.value = sessioinData -// }) const initiator = ref(null) const approvers = ref([]) @@ -69,27 +56,6 @@ const onKeyup = async (e: any) => { const res = await getUserList({params:{name : e.target.value}}) if (res.length > 0) { - // res.forEach(u => { 2명으로 제한 로직 풀기 25.05.29 - // if (model.value?.length > 0) { - // const ignore = model.value.reduce((a: Person, b: Person) => { - // console.log("aaaaa",a.sabun) - // console.log("bbbbbb",b.sabun) - // return a.sabun + '|' + b.sabun - // }) - // - // if (typeof ignore !== 'object') { - // if (ignore.includes(u.sabun)) { - // console.log("ignore 처리",u.sabun) - // u['disabled'] = true - // } - // } else { - // if (ignore.sabun.includes(u.sabun)) { - // console.log("ignore 처리222",u.sabun) - // u['disabled'] = true - // } - // } - // } - // }) tagsOptions.value = res } } catch (e) { diff --git a/src/components/app-vuero/VUserTemp.vue b/src/components/app-vuero/VUserTemp.vue index fb85ea1..e92ebcc 100644 --- a/src/components/app-vuero/VUserTemp.vue +++ b/src/components/app-vuero/VUserTemp.vue @@ -1,40 +1,6 @@ diff --git a/src/pages/app/priceUpdate.vue b/src/pages/app/priceUpdate.vue index d421913..6c676b0 100644 --- a/src/pages/app/priceUpdate.vue +++ b/src/pages/app/priceUpdate.vue @@ -114,12 +114,11 @@ const validation = () => { const resultGu = apprLine.value.filter((item,index)=> index != 0 && !item.gubunCd) if(resultGu.length > 0){ - console.log("resultGu",resultGu) notyf.error("결재선 구분값을 입력해주세요") return false } - if(apprLine.value.length < 2){ + if(apprLine.value.length <= 2){ notyf.error("결재선은 본인 외 2명이상 필수입니다.") return false } @@ -210,6 +209,7 @@ const onDelete = (index: number) => { if(params.prcsBizs.length-1 !== params.prcsBizsColumn.length || (params.prcsBizsColumn.length == 4 && params.prcsBizs.length-1 == params.prcsBizsColumn.length)) { + params.prcsBizs.splice(index, 1) } } @@ -239,6 +239,9 @@ const onPriceDelete = (index: number) => { if(apprLine.value.length-1 !== params.felxColumn.length || (params.felxColumn.length == 8 && apprLine.value.length-1 == params.felxColumn.length)) { + console.log("index 삭제",index) + console.log("params.felxColumn.length",params.felxColumn.length) + console.log("params.felxColumn.length",apprLine.value.length) apprLine.value.splice(index, 1) } } diff --git a/src/utils/types.ts b/src/utils/types.ts index 26eb0a7..69c47cf 100644 --- a/src/utils/types.ts +++ b/src/utils/types.ts @@ -13,7 +13,7 @@ export type Person = { attend_nm: string attend_sta_ymd: string attend_end_ymd: string - gubun_cd: string + gubunCd: string } export type SapPerson = {