mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 01:22:33 +09:00
fix : 전표폼 로드시, 첫번째값 선택되서 보이도록 세팅
This commit is contained in:
@@ -16,9 +16,12 @@ onBeforeMount(async ()=>{
|
||||
result = await getSlipDetail(props.apprNo)
|
||||
}
|
||||
getDetailList(result)
|
||||
apprLine.value = result.zwf0011t.apprs
|
||||
selectedTab.value = apprLine.value[0].value
|
||||
})
|
||||
|
||||
const notyf = useNotyf()
|
||||
const apprLine = ref<VTabsItem[]>([])
|
||||
const getDetailList = (item) => {
|
||||
console.log("getDetailList",item)
|
||||
params.contNo = item.contNo
|
||||
|
||||
@@ -11,6 +11,8 @@ onBeforeMount(async ()=>{
|
||||
const result = await getBeforeSlipDetail(history.state.key)
|
||||
// 대금지급 전 slip api 에서 결재선까지 받아옴
|
||||
getDetailList(result)
|
||||
apprLine.value = result.zwf0011t.apprs
|
||||
selectedTab.value = apprLine.value[0].value
|
||||
})
|
||||
const notyf = useNotyf()
|
||||
|
||||
@@ -261,7 +263,7 @@ watch(
|
||||
{ deep: true }
|
||||
)
|
||||
|
||||
const onPriceDelete = (index: number) => {
|
||||
const onDocDelete = (index: number) => {
|
||||
|
||||
if(apprLine.value.length-1 !== params.flexColumn.length
|
||||
|| (params.flexColumn.length == 8 && apprLine.value.length-1 == params.flexColumn.length))
|
||||
@@ -646,7 +648,7 @@ const moveDown = (index: number) => {
|
||||
<span v-else-if="column.key === 'actions'" class="flex gap-1">
|
||||
<VCustomButton v-if="index != 1" @click="moveUp(index)" icon="lucide:arrow-up" />
|
||||
<VCustomButton @click="moveDown(index)" icon="lucide:arrow-down" />
|
||||
<VCustomButton @click="onPriceDelete(index)">{{"삭제"}}</VCustomButton>
|
||||
<VCustomButton @click="onDocDelete(index)">{{"삭제"}}</VCustomButton>
|
||||
</span>
|
||||
</template>
|
||||
</ComVFlexTable>
|
||||
|
||||
Reference in New Issue
Block a user