oda-framework
Version:
33 lines (30 loc) • 1.78 kB
HTML
<meta charset="UTF-8">
<title>oda-docx-fill</title>
<script type="module" src="../../../oda.js"></script>
<script type="module" src="./docx-fill.js"></script>
<input id="btn" type="button" style="width: 140px; position: fixed; padding: 4px; margin: 2px; right: 4px; top: 4px; z-index: 9; border: 1px solid gray; cursor: pointer" value="Заполнить шаблон" />
<oda-docx-fill id="docx_viewer" src="./details.docx"></oda-docx-fill>
<script>
btn.addEventListener("click", ev => {
docx_viewer.fill();
})
docx_viewer.fillData = {
orgName: 'ООО "БИС"',
orgFullName: '"ОБЩЕСТВО С ОГРАНИЧЕННОЙ ОТВЕТСТВЕННОСТЬЮ "БИЗНЕСИНТЕРСОФТ"',
orgShortName: 'ООО "БИС"',
orgUridAddress: '390000, Рязанская область, город Рязань, ул. Ленина, д. 47, этаж/пом 2/9',
orgFactAddress: '390000, Рязанская область, город Рязань, ул. Ленина, д. 47, этаж/пом 2/9',
orgPostAddress: '390000, Рязанская область, город Рязань, ул. Ленина, д. 47, этаж/пом 2/9',
orgOGRN: '1076234013712',
orgINN: '6234049193',
orgKPP: '623401001',
orgDirector: 'Перепелкин Роман Александрович',
orgRasChet: '...',
orgPhone: '+7 (4912) 75-76-59, +7 (4912) 44-74-12, +7 (4912) 28-28-68, +7 (910) 642-39-14',
orgMail: 'support@oda.su',
orgSite: 'https://odant.org/',
orgOKWD: '...',
orgOKPO: '83612976',
currDate: new Date().toLocaleString('ru', { year: 'numeric', month: 'long', day: 'numeric' })
}
</script>