采购件,半成品,产品页面初步完成

This commit is contained in:
dxc
2026-01-29 09:27:56 +08:00
parent b0df5c7458
commit 06ba2d7563
11 changed files with 836 additions and 244 deletions

View File

@ -1,22 +1,14 @@
from flask import Blueprint
# 1. 导入子模块蓝图
# 注意:确保 .buy, .semi, .base 文件在同级目录下真实存在
from .buy import inbound_buy_bp
from .semi import inbound_semi_bp
# 如果你还有 base.py 文件,就取消注释下面这行
from .base import inbound_base_bp
# 导入 product
from .product import inbound_product_bp
# 2. 创建父级聚合蓝图
inbound_bp = Blueprint('inbound', __name__)
# 3. 挂载子蓝图
# 访问地址: /api/v1/inbound/buy/list
inbound_bp.register_blueprint(inbound_buy_bp, url_prefix='/buy')
# 访问地址: /api/v1/inbound/semi/list
inbound_bp.register_blueprint(inbound_semi_bp, url_prefix='/semi')
# 如果有 base
inbound_bp.register_blueprint(inbound_base_bp, url_prefix='/base')
inbound_bp.register_blueprint(inbound_base_bp, url_prefix='/base')
# 挂载 product前缀改为 /product
inbound_bp.register_blueprint(inbound_product_bp, url_prefix='/product')