Synaplan
Open-source AI platform for companies: self-hosted AI agents, GDPR-compliant chatbot widget, RAG knowledge base, WhatsApp and Outlook AI, MCP, multi-model routing. Docker, Kubernetes or hosted in Germ
自動值班排班表:房仲門市、小店用,純網頁免安裝,規則可調、請假、列印與匯出 Excel
Translation pending
BusinessJavaScript · CSSGitHub @LarryveryhandsomeOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
The maker's introduction consists of the line above. Read the repository README for more details. Repository README ↗
Loading the full README.
Read the full README ↗給台灣的房仲門市、小店、診所櫃台、社團用的值班排班表。打開網頁、勾一勾規則、按一下就排好整個月,可以列印或匯出 Excel。
index.html 就能用,沒有網路也能用。線上試用:https://larryveryhandsome.github.io/tw-duty-roster/
| 情境 | 用哪個範本 |
|---|---|
| 門市每天要有 1 個人留守(例如房仲店的值班、櫃台輪值) | 門市每日值班 |
| 只有週末要排人,平日不用(例如週五六固定一人、週日兩人輪流) | 週末三人輪班 |
| 其他情況 | 選一個最像的範本,再在網頁上改人員和規則 |
index.html,用 Chrome、Edge 或 Safari 打開。網頁上改的設定會自動記在這台電腦的瀏覽器裡,下次打開還在。 換電腦或清除瀏覽器資料後會回到預設範本。
每一天依序:
同樣的設定每次排出來都一樣(不靠亂數),方便大家對照。
網頁上能改的東西都可以直接在網頁改。想改「預設範本」(例如發給分店用),打開 config.js:
window.ROSTER_CONFIG = {
title: '示範不動產 值班表', // 網頁和列印的標題
noteLabel: '店長的話', // 表格下方備註欄的名稱
defaultPreset: 'daily',
presets: {
daily: {
label: '門市每日值班',
rules: { dutyDays: [0,1,2,3,4,5,6], slotsPerDay: 1, weekStartsOn: 1, avoidConsecutive: true, relaxWhenShort: true },
staff: [
{ id: 'manager', name: '店長', color: '#2563eb', days: [0,1,2,3,4,5,6], fixedDays: [0], maxPerWeek: 2 },
// …
],
},
},
};
星期代號:0=日、1=一 …… 6=六。各欄位說明寫在 config.js 檔案最上面。
改完存檔,在網頁上選範本,按「套用範本」。
不需要。 不用註冊任何帳號、不用 API 金鑰,也不連任何外部服務;資料只存在你自己的瀏覽器。
index.html 畫面
css/style.css 樣式(含列印、深色模式)
config.js 範本設定
js/scheduler.js 排班引擎:純函式,瀏覽器和 Node 都能用
js/app.js 畫面邏輯、存到 localStorage
tests/ 單元測試(node:test,不用裝任何套件)
跑測試(需要 Node.js 18 以上):
npm test
scheduler.js 主要函式:
| 函式 | 用途 |
|---|---|
generate({start, end, staff, rules, leaves, locked}) | 自動排班,回傳 {plan, warnings, counts} |
check({start, end, staff, rules, leaves, plan}) | 檢查任何一份班表(手動改過的也行) |
toCSV({start, end, staff, leaves, plan}) | 匯出 CSV(含 BOM,Excel 直接開不亂碼) |
完整的發布前檢查(八道閘門)見 RELEASE_CHECK.md。
這個工具是開源的,可以免費使用。如果你想要:
歡迎加 LINE 跟我們聊。我們會依需求的範圍與複雜度報價,原則上以實際報價單為準。