提交
This commit is contained in:
1 parent
6d9354a194
commit
aff71d296b
2759 files changed
+860425
-13211
No files matched your search
@@ -555,6 +555,118 @@ class PlTransportSiteLink(Base):
|
||||
del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记:0-正常 1-已删除")
|
||||
|
||||
|
||||
class PlInboundOrder(Base):
|
||||
"""运输计划-入库单 pl_inbound_order"""
|
||||
|
||||
__tablename__ = "pl_inbound_order"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
order_no = Column(String(32), nullable=False, comment="入库单号")
|
||||
plan_id = Column(String(64), nullable=False, comment="运输计划ID")
|
||||
transport_id = Column(String(64), nullable=False, comment="运输单ID")
|
||||
status = Column(String(20), nullable=False, default="in_progress", comment="in_progress/completed/voided")
|
||||
partner_company = Column(String(200), nullable=True, comment="往来单位快照")
|
||||
vehicle_no = Column(String(32), nullable=True, comment="车牌快照")
|
||||
plan_no = Column(String(64), nullable=True, comment="计划号快照")
|
||||
plan_date = Column(Date, nullable=True, comment="计划日期快照")
|
||||
site_access_token = Column(String(64), nullable=False, comment="现场免登录令牌")
|
||||
site_feedback_remark = Column(String(500), nullable=True, comment="现场备注")
|
||||
site_feedback_images = Column(Text, nullable=True, comment="现场附件URLs(JSON数组)")
|
||||
site_feedback_time = Column(DateTime, nullable=True, comment="最近现场提交时间")
|
||||
site_first_submitted_at = Column(DateTime, nullable=True, comment="首次现场提交时间")
|
||||
tenant_no = Column(String(64), nullable=False, default="shanxia2.0", comment="租户编号")
|
||||
order_num = Column(Integer, nullable=True, comment="排序号")
|
||||
remark = Column(String(512), nullable=True, comment="备注")
|
||||
create_by = Column(String(64), nullable=True, comment="创建人id")
|
||||
create_dept_id = Column(String(64), nullable=False, default="", comment="创建人部门ID")
|
||||
create_time = Column(DateTime, nullable=False, default=datetime.now, comment="创建时间")
|
||||
update_by = Column(String(64), nullable=True, comment="更新人id")
|
||||
update_time = Column(DateTime, nullable=False, default=datetime.now, onupdate=datetime.now, comment="更新时间")
|
||||
del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记:0-正常 1-已删除")
|
||||
|
||||
|
||||
class PlInboundOrderItem(Base):
|
||||
"""运输计划-入库单明细 pl_inbound_order_item"""
|
||||
|
||||
__tablename__ = "pl_inbound_order_item"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
order_id = Column(String(64), nullable=False, comment="入库单ID")
|
||||
plan_product_id = Column(String(64), nullable=False, comment="计划产品行ID")
|
||||
product_id = Column(String(64), nullable=True, comment="CRM产品ID")
|
||||
product_name = Column(String(200), nullable=True, comment="产品名称快照")
|
||||
specification = Column(String(200), nullable=True, comment="规格快照")
|
||||
unit = Column(String(32), nullable=True, comment="单位")
|
||||
plan_qty = Column(DECIMAL(15, 3), nullable=True, comment="计划数量")
|
||||
actual_qty = Column(DECIMAL(15, 3), nullable=True, comment="实际数量")
|
||||
qty_source = Column(String(20), nullable=True, default="plan", comment="plan/dibang/manual")
|
||||
tenant_no = Column(String(64), nullable=False, default="shanxia2.0", comment="租户编号")
|
||||
order_num = Column(Integer, nullable=True, comment="排序号")
|
||||
remark = Column(String(512), nullable=True, comment="备注")
|
||||
create_by = Column(String(64), nullable=True, comment="创建人id")
|
||||
create_dept_id = Column(String(64), nullable=False, default="", comment="创建人部门ID")
|
||||
create_time = Column(DateTime, nullable=False, default=datetime.now, comment="创建时间")
|
||||
update_by = Column(String(64), nullable=True, comment="更新人id")
|
||||
update_time = Column(DateTime, nullable=False, default=datetime.now, onupdate=datetime.now, comment="更新时间")
|
||||
del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记:0-正常 1-已删除")
|
||||
|
||||
|
||||
class PlOutboundOrder(Base):
|
||||
"""运输计划-出库单 pl_outbound_order"""
|
||||
|
||||
__tablename__ = "pl_outbound_order"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
order_no = Column(String(32), nullable=False, comment="出库单号")
|
||||
plan_id = Column(String(64), nullable=False, comment="运输计划ID")
|
||||
transport_id = Column(String(64), nullable=False, comment="运输单ID")
|
||||
status = Column(String(20), nullable=False, default="in_progress", comment="in_progress/completed/voided")
|
||||
partner_company = Column(String(200), nullable=True, comment="往来单位快照")
|
||||
vehicle_no = Column(String(32), nullable=True, comment="车牌快照")
|
||||
plan_no = Column(String(64), nullable=True, comment="计划号快照")
|
||||
plan_date = Column(Date, nullable=True, comment="计划日期快照")
|
||||
site_access_token = Column(String(64), nullable=False, comment="现场免登录令牌")
|
||||
site_feedback_remark = Column(String(500), nullable=True, comment="现场备注")
|
||||
site_feedback_images = Column(Text, nullable=True, comment="现场附件URLs(JSON数组)")
|
||||
site_feedback_time = Column(DateTime, nullable=True, comment="最近现场提交时间")
|
||||
site_first_submitted_at = Column(DateTime, nullable=True, comment="首次现场提交时间")
|
||||
tenant_no = Column(String(64), nullable=False, default="shanxia2.0", comment="租户编号")
|
||||
order_num = Column(Integer, nullable=True, comment="排序号")
|
||||
remark = Column(String(512), nullable=True, comment="备注")
|
||||
create_by = Column(String(64), nullable=True, comment="创建人id")
|
||||
create_dept_id = Column(String(64), nullable=False, default="", comment="创建人部门ID")
|
||||
create_time = Column(DateTime, nullable=False, default=datetime.now, comment="创建时间")
|
||||
update_by = Column(String(64), nullable=True, comment="更新人id")
|
||||
update_time = Column(DateTime, nullable=False, default=datetime.now, onupdate=datetime.now, comment="更新时间")
|
||||
del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记:0-正常 1-已删除")
|
||||
|
||||
|
||||
class PlOutboundOrderItem(Base):
|
||||
"""运输计划-出库单明细 pl_outbound_order_item"""
|
||||
|
||||
__tablename__ = "pl_outbound_order_item"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
order_id = Column(String(64), nullable=False, comment="出库单ID")
|
||||
plan_product_id = Column(String(64), nullable=False, comment="计划产品行ID")
|
||||
product_id = Column(String(64), nullable=True, comment="CRM产品ID")
|
||||
product_name = Column(String(200), nullable=True, comment="产品名称快照")
|
||||
specification = Column(String(200), nullable=True, comment="规格快照")
|
||||
unit = Column(String(32), nullable=True, comment="单位")
|
||||
plan_qty = Column(DECIMAL(15, 3), nullable=True, comment="计划数量")
|
||||
actual_qty = Column(DECIMAL(15, 3), nullable=True, comment="实际数量")
|
||||
qty_source = Column(String(20), nullable=True, default="plan", comment="plan/dibang/manual")
|
||||
tenant_no = Column(String(64), nullable=False, default="shanxia2.0", comment="租户编号")
|
||||
order_num = Column(Integer, nullable=True, comment="排序号")
|
||||
remark = Column(String(512), nullable=True, comment="备注")
|
||||
create_by = Column(String(64), nullable=True, comment="创建人id")
|
||||
create_dept_id = Column(String(64), nullable=False, default="", comment="创建人部门ID")
|
||||
create_time = Column(DateTime, nullable=False, default=datetime.now, comment="创建时间")
|
||||
update_by = Column(String(64), nullable=True, comment="更新人id")
|
||||
update_time = Column(DateTime, nullable=False, default=datetime.now, onupdate=datetime.now, comment="更新时间")
|
||||
del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记:0-正常 1-已删除")
|
||||
|
||||
|
||||
class PlTransportApproval(Base):
|
||||
"""运输审批记录表 pl_transport_approval"""
|
||||
|
||||
|
||||
Reference in new issue
Block a user