This commit is contained in:
2025-02-11 13:41:32 +08:00
commit 1a99fa6ba3
20 changed files with 2960 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
(function () {
"use strict";
const APP_ENV = env["2歳以上日誌出力用"];
kintone.events.on("app.record.index.show", (event) => {
const headerSpace = getHeaderSpace('single-label-line');
const elements = createBtnGroupArea('extract-action-area', '日誌作成', handleButtonClick, {
btnElId: 'extract-btn',
yearElId: 'extract-year',
monthElId: 'extract-month',
dateElId: 'extract-date',
defaultThisMonth: true,
})
if (!elements) {
return;
}
headerSpace.appendChild(elements['extract-action-area']);
});
function handleButtonClick(e, { year, month, date }) {
const fileName = getExcelName(APP_ENV, year + month + date);
console.log(fileName);
}
})();