盘库操作初设计

This commit is contained in:
dxc
2026-02-06 10:16:37 +08:00
parent c1ddb8093f
commit e027ebd4a9
15 changed files with 1227 additions and 30 deletions

View File

@ -2,18 +2,19 @@ from flask import Blueprint
from .buy import inbound_buy_bp
from .semi import inbound_semi_bp
from .base import inbound_base_bp
# 导入 product
from .product import inbound_product_bp
# ★ [新增] 导入 summary
from .inbound_summary import bp as inbound_summary_bp
# ★ [新增] 导入 stock 模块
from .stock import bp as stock_bp
inbound_bp = Blueprint('inbound', __name__)
inbound_bp.register_blueprint(inbound_buy_bp, url_prefix='/buy')
inbound_bp.register_blueprint(inbound_semi_bp, url_prefix='/semi')
inbound_bp.register_blueprint(inbound_base_bp, url_prefix='/base')
# 挂载 product前缀改为 /product
inbound_bp.register_blueprint(inbound_product_bp, url_prefix='/product')
inbound_bp.register_blueprint(inbound_summary_bp, url_prefix='/summary')
# ★ [新增] 挂载 summary, url 变成 /api/v1/inbound/summary/list
inbound_bp.register_blueprint(inbound_summary_bp, url_prefix='/summary')
# ★ [新增] 挂载 stock 模块,路径前缀为 /stock
# 最终访问路径例:/api/v1/inbound/stock/all
inbound_bp.register_blueprint(stock_bp, url_prefix='/stock')