跳至主要內容

数据模型

chanchaw大约 1 分钟染厂项目web

基础资料

品种类别: dye_category 品名: greyfabrictype greyfabric 染料助剂: dyetype goodsdye 五金: metal_category metaltype 缸号: vattype 废布原因: defectivegoods 染色工序: paintingprocess 机架号: machine_frame 磁棒: magnetic_bar

工序: process 规格: specificationtype 工艺: craftmain process craftdetail 单据类别: billtype 生产类型: producetype 包装方式: packagetype 着色方式: tintingtype 收付款项目: cash_category_detail 机台设置: mchedepartment machinetype 机台类别: machine_category

计量单位: unittype 颜色: color 往来单位: ContactCompany ContactCompanyCategory 部门员工: department employee 车牌号; platepricetype 单价模板: pricetype 仓库: storage 单价套用: editprice editpricedetail 色号: increase_price 客户工艺: client_craft

责任部门: dutydepartment 质检原因: g_cppjdes 细码单样式: g_jrkxmdys 标签样式: g_jbcpset 微信推送设置: sys_wechatuserauth contactcompany 染色小工序: g_yrprocess 班组: class 车号: g_cartextile

系统设置

  • 染厂名称表:g_printingdyeingname

订单与计划

  • plan - 计划单表 - 缸单表
    • fid:对应订单明细表主键,billorderdetail.sId
    • pId:对应所属计划单的主键,说明本缸单是回修单
  • craftdetail_plan - 缸单工序表
  • plan_main 2022.5.20第一次为白玉兰制作批量生成计划单时添加该表,每执行一次批量生成计划单的操作在该表中新增一行,记录使用的白坯批次的数量以及本次生成的缸单数量(总车数/总缸数)。主键 = plan.mainid,关联到生成的具体的计划单(缸单)

白坯相关

  • bpbilldetail - 白坯单据明细表
    • id:主键字段
    • pId:本行如果是核销领料单,本字段则保存对应的入库单主键
    • vId:本行如果是核销领料单,本字段则保存计划单主键
    • billCode:单据编号
    • billtypeId:单据类型的主键 - 单据类型表是 billtype

染料仓库

  • goodsdyebillmain - 染料主表
  • goodsdyebilldetail - 染料明细表

染色领料

craftprintlog,craftprintlog_dtl