""" 物料信息数据模型 定义物料信息的数据结构 """ from dataclasses import dataclass from typing import Optional @dataclass class MaterialInfo: """物料信息""" serial_number: int # 序号 code: str # 物料编码 name: str # 物料名称 pending_quantity: str # 累计待发数量 shipped_quantity: str # 累计出库数量 should_delete: bool = False # 是否需要删除