mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 01:02:19 +09:00
fix : 취소버튼 이벤트 추가
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user