mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 12:53:43 +09:00
fix : 취소버튼 이벤트 추가
This commit is contained in:
@@ -1,5 +1,30 @@
|
|||||||
<script setup lang="ts">
|
<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 affiliationCode = ref()
|
||||||
const taxCode = ref('')
|
const taxCode = ref('')
|
||||||
const currencyCode = ref('KRW')
|
const currencyCode = ref('KRW')
|
||||||
@@ -16,8 +41,11 @@ const params = reactive({
|
|||||||
contStat: '',
|
contStat: '',
|
||||||
regsabun: '',
|
regsabun: '',
|
||||||
regNm: '',
|
regNm: '',
|
||||||
|
place: '',
|
||||||
regDt: '',
|
regDt: '',
|
||||||
reason: '',
|
reason: '',
|
||||||
|
regSdt: '',
|
||||||
|
regSdt2: '',
|
||||||
page: 1,
|
page: 1,
|
||||||
row: 10,
|
row: 10,
|
||||||
flexColumn: [],
|
flexColumn: [],
|
||||||
@@ -35,6 +63,10 @@ const selectCostCodeOptions = [
|
|||||||
{ text: '코스트센터', value: '코스트센터' },
|
{ text: '코스트센터', value: '코스트센터' },
|
||||||
{ text: 'WBS', value: 'WBS'}
|
{ text: 'WBS', value: 'WBS'}
|
||||||
]
|
]
|
||||||
|
const router = useRouter()
|
||||||
|
const cancel = () => {
|
||||||
|
router.push('/app/contractManagement')
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -99,7 +131,7 @@ const selectCostCodeOptions = [
|
|||||||
<VField>
|
<VField>
|
||||||
<VControl>
|
<VControl>
|
||||||
<input
|
<input
|
||||||
v-model="params.title"
|
v-model="params.place"
|
||||||
class="input custom-text-filter"
|
class="input custom-text-filter"
|
||||||
placeholder="업체명"
|
placeholder="업체명"
|
||||||
>
|
>
|
||||||
@@ -311,7 +343,7 @@ const selectCostCodeOptions = [
|
|||||||
</table>
|
</table>
|
||||||
<div class="bottom-button">
|
<div class="bottom-button">
|
||||||
<VButton>전 표 생 성</VButton>
|
<VButton>전 표 생 성</VButton>
|
||||||
<VButton>취 소</VButton>
|
<VButton @click="cancel">취 소</VButton>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user