// cremation-permit-system — 画面固有設定（app-core.js が window.SYSTEM_CONFIG を読む）
window.SYSTEM_CONFIG = {
  domains: [
  { id: "cremation-permits", label: "火葬許可証", endpoint: "/api/cremation-permits",
    cols: [{ key: "permitNumber", label: "許可証番号" }, { key: "deceasedName", label: "故人氏名" }, { key: "deathDate", label: "死亡日" }, { key: "applicantName", label: "申請者氏名" }, { key: "status", label: "状態", badge: true }],
    createFields: [{ name: "deceasedName", label: "故人氏名", required: true, placeholder: "山田 太郎" }, { name: "deceasedBirthDate", label: "故人生年月日", required: true, type: "date" }, { name: "deathDate", label: "死亡日", required: true, type: "date" }, { name: "applicantName", label: "申請者氏名", required: true, placeholder: "山田 花子" }] },
],
  calc: { title: "火葬 手数料・使用料の試算", endpoint: "/api/cremation/fee", primary: { key: "total", label: "合計", format: "yen" }, fields: [ { key: "permitType", label: "許可種別", type: "select", options: ["死体火葬許可","死体埋葬許可","死胎火葬許可","死胎埋葬許可"] }, { key: "residency", label: "住所区分", type: "select", options: [ { value: "resident", label: "市内" }, { value: "nonResident", label: "市外" } ] }, { key: "bodyClass", label: "区分", type: "select", options: ["大人","小人","死産児"] } ] },
};
