login画面追加

This commit is contained in:
admin
2026-02-07 14:25:28 +09:00
parent 9d1ad5594d
commit 331953bb7f
22 changed files with 763 additions and 135 deletions

View File

@@ -1,7 +1,8 @@
<!DOCTYPE html>
<!doctype html>
<html lang="ja">
<head>
<meta charset="UTF-8" />
<script src="js/auth.js"></script>
<title>仕訳一覧</title>
<style>
body {
@@ -63,7 +64,7 @@
fromDate: from,
toDate: to,
keyword: key,
})
}),
);
const qs = new URLSearchParams();
@@ -106,7 +107,7 @@
async function reverseAndEdit(id) {
if (
!confirm(
"この仕訳の逆仕訳を作成し、修正仕訳入力画面を開きます。よろしいですか?"
"この仕訳の逆仕訳を作成し、修正仕訳入力画面を開きます。よろしいですか?",
)
)
return;
@@ -120,14 +121,14 @@
if (!res.ok) {
const data = await res.json().catch(() => ({}));
alert(
data.detail || `逆仕訳の作成に失敗しました (HTTP ${res.status})`
data.detail || `逆仕訳の作成に失敗しました (HTTP ${res.status})`,
);
return;
}
const data = await res.json();
alert(
`逆仕訳を作成しましたID: ${data.reversed_journal_entry_id}`
`逆仕訳を作成しましたID: ${data.reversed_journal_entry_id}`,
);
// ② 元仕訳内容を取得して修正画面へ遷移