/
ImportCSV-GIFI.vue
54 lines (48 loc) · 1.25 KB
/
ImportCSV-GIFI.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<script>
import ImportCSVBase from "@/components/ImportCSV-Base";
export default {
components: {
"import-csv": ImportCSVBase
},
emits: [ "upload-success", "upload-error" ],
data() {
return {
};
},
};
</script>
<template>
<div id="import-gifi">
<import-csv type="gifi"
:heading="false"
:transactionFields="false"
@upload-success="$emit('upload-success')"
@upload-error="$emit('upload-error')">
<template #title>Import
<abbr
title="General Index of Financial Information">GIFI</abbr> codes
</template>
<template #info>
The uploaded file contains one GIFI code per line.
</template>
<template #default>
The following fields are expected (in this order):
<dl>
<dt>accno</dt>
<dd></dd>
<dt>description</dt>
<dd></dd>
</dl>
</template>
</import-csv>
</div>
</template>
<style scoped>
dl > dt {
font-weight: bold;
margin-left: 2em;
}
dl > dd {
margin-left: 4em;
}
</style>