modify: erp模板
This commit is contained in:
+22
-3
@@ -27,22 +27,41 @@ pool_timeout = 30
|
||||
job_store_path = "scheduler_jobs.db"
|
||||
|
||||
[cache]
|
||||
cache_store_path = "./"
|
||||
cache_store_path = "./cache_data"
|
||||
|
||||
[security]
|
||||
access_token_expire_minutes = 30
|
||||
access_token_expire_minutes = 1440
|
||||
algorithm = "HS256"
|
||||
max_sessions_per_user = 5
|
||||
refresh_token_expire_days = 7
|
||||
secret_key = "your-secret-key-change-in-production"
|
||||
|
||||
# ============================================
|
||||
# 订单号自动生成规则配置
|
||||
# 每种订单类型可以独立配置生成规则
|
||||
# 格式: {prefix}{date}{seq} 例如 PO202405080001
|
||||
# prefix: 订单前缀
|
||||
# date_format: 日期格式(Python strftime 格式)
|
||||
# seq_width: 序号位数(自动补零)
|
||||
# separator: 各部分之间的分隔符(可选)
|
||||
# ============================================
|
||||
[order_no]
|
||||
# 采购订单: PO202405080001
|
||||
purchase_order = { prefix = "PO", date_format = "%Y%m%d", seq_width = 4, separator = "" }
|
||||
# 销售订单: SO202405080001
|
||||
sales_order = { prefix = "SO", date_format = "%Y%m%d", seq_width = 4, separator = "" }
|
||||
# 采购入库单: PI202405080001
|
||||
purchase_inbound = { prefix = "PI", date_format = "%Y%m%d", seq_width = 4, separator = "" }
|
||||
# 销售出库单: DO202405080001
|
||||
sales_outbound = { prefix = "DO", date_format = "%Y%m%d", seq_width = 4, separator = "" }
|
||||
|
||||
[development]
|
||||
debug = true
|
||||
env = "development"
|
||||
|
||||
[development.server]
|
||||
access_log = false
|
||||
host = "127.0.0.1"
|
||||
host = "0.0.0.0"
|
||||
port = 8000
|
||||
reload = true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user