fix : 취소버튼 이벤트 추가

This commit is contained in:
Yesol Choi
2025-06-02 15:56:54 +09:00
parent 2a7df4f4bf
commit bcdf54d1ed

View File

@@ -1,5 +1,30 @@
<script setup lang="ts">
import { getSlipDetail } from "/@src/service/slipApi.ts";
onBeforeMount(async ()=>{
const result = await getSlipDetail(history.state.key)
getDetailList(result)
})
const getDetailList = (item) => {
console.log("getDetailList",item)
affiliationCode.value = item.trtGubun//소속
params.title = item.bktxt //계약명
params.regNm = item.lifnr //계약상대자
params.place = ''// 업체명
formattedNumber.value = '' //공급가액
taxCode.value= item.mwskz //세금코드 ->세금계산서랑 같이 ?
currencyCode.value = item.banks //통화
params.regSdt = '' //증빙일
params.regSdt2 = ''//전기일
taxInvoiceCode.value = item.mwskz //세금계산서
accountSubjectCode.value = item.mwskz //예산관리
selectCostCode.value = ''//코스트센터
//코드
//첨부파일
}
const affiliationCode = ref()
const taxCode = ref('')
const currencyCode = ref('KRW')
@@ -16,8 +41,11 @@ const params = reactive({
contStat: '',
regsabun: '',
regNm: '',
place: '',
regDt: '',
reason: '',
regSdt: '',
regSdt2: '',
page: 1,
row: 10,
flexColumn: [],
@@ -35,6 +63,10 @@ const selectCostCodeOptions = [
{ text: '코스트센터', value: '코스트센터' },
{ text: 'WBS', value: 'WBS'}
]
const router = useRouter()
const cancel = () => {
router.push('/app/contractManagement')
}
</script>
@@ -99,7 +131,7 @@ const selectCostCodeOptions = [
<VField>
<VControl>
<input
v-model="params.title"
v-model="params.place"
class="input custom-text-filter"
placeholder="업체명"
>
@@ -311,7 +343,7 @@ const selectCostCodeOptions = [
</table>
<div class="bottom-button">
<VButton> </VButton>
<VButton> </VButton>
<VButton @click="cancel"> </VButton>
</div>
</div>
</div>