feat: 新增收集式校验错误弹窗及工位报警语音播报

新增 ErrorListDialog 组件用于统一展示结构化校验错误信息,实现报错一次收全;新增工位报警语音播报功能,通过浏览器 SpeechSynthesis 播放本工位相关报警;调整物料类别及序列号字段文案,移除「其他」类别;新增工单实际开始字段及采集方式配置;优化 AGV 及 PlcSend 页签刷新逻辑;新增看板物料追溯及工位报警接口;删除 PLC 强制写 M 位及相关测试代码;同步数据库字段注释及补丁。
This commit is contained in:
SunYF
2026-10-20 16:36:26 +08:00
parent f743cf21fb
commit b0c048d9aa
126 changed files with 4603 additions and 1639 deletions
+445 -401
View File
@@ -1,402 +1,446 @@
table_name column_name data_type col_comment
alert id bigint
alert rule_id bigint
alert type character varying
alert title character varying
alert content character varying
alert ref_type character varying
alert ref_id character varying
alert order_no character varying
alert status character varying
alert receiver character varying
alert created_at timestamp with time zone
alert_rule id bigint
alert_rule name character varying
alert_rule type character varying
alert_rule threshold double precision
alert_rule receiver character varying
alert_rule enabled boolean
alert_rule created_by character varying
alert_rule created_at timestamp with time zone
association_trace id bigint
association_trace finished_sn character varying
association_trace order_no character varying
association_trace process_code character varying
association_trace batch_items jsonb
association_trace serial_items jsonb
association_trace operator character varying
association_trace created_at timestamp with time zone
attachment id bigint
attachment biz_type character varying
attachment biz_id character varying
attachment file_name character varying
attachment file_path character varying
attachment file_size bigint
attachment uploader character varying
attachment created_at timestamp with time zone
attachment file_type character varying
attachment file_ext character varying
attachment file_md5 character varying
attachment mime_type character varying
attachment archived boolean
attachment archived_at bigint
attachment deleted boolean
attachment deleted_at bigint
attachment deleted_by character varying
daily_plan id bigint
daily_plan order_no character varying
daily_plan plan_date character varying
daily_plan plan_qty bigint
daily_plan completed_qty bigint
daily_plan station_plan_qty jsonb
daily_plan status character varying
daily_plan operator character varying
daily_plan created_at timestamp with time zone
daily_plan updated_at timestamp with time zone
dock id bigint
dock dock_code character varying
dock name character varying
dock dock_type character varying
dock station_no bigint
dock has_pallet boolean
dock pallet_ref character varying
dock status character varying
dock created_at timestamp with time zone
event_log id bigint
event_log event_type character varying
event_log work_order_no character varying
event_log operator character varying
event_log entity_type character varying
event_log entity_id character varying
event_log description text
event_log payload jsonb
event_log created_at timestamp with time zone
flow_material id bigint
flow_material flow_id bigint
flow_material material_code character varying
flow_material material_name character varying
flow_material spec character varying
flow_material unit character varying
flow_material unit_qty double precision
flow_material loss_rate double precision
flow_material created_at timestamp with time zone
flow_material sn_mode bigint
inspection_record id bigint
inspection_record category character varying
inspection_record station_no character varying
inspection_record shift character varying
inspection_record order_no character varying
inspection_record sn character varying
inspection_record result character varying
inspection_record items jsonb
inspection_record photo character varying
inspection_record remark character varying
inspection_record operator character varying
inspection_record process_code bigint
inspection_record step_id bigint
inspection_record step_name character varying
inspection_record measured_value character varying
inspection_record report_no character varying
inspection_record material_code character varying
inspection_record material_name character varying
inspection_record manufacturer character varying
inspection_record inspection_no character varying
inspection_record attachment_ids character varying
inspection_record disposal_type character varying
inspection_record disposal_remark character varying
inspection_record created_at timestamp with time zone
inspection_record batch_sn character varying
inspection_record related_standard character varying
inspection_record test_record_no character varying
line_point id bigint
line_point point_type character varying
line_point point_no character varying
line_point label character varying
line_point seq bigint
line_point station_no bigint
line_point current_sn character varying
line_point order_no character varying
line_point occupied boolean
line_point updated_at timestamp with time zone
material_qty_report id bigint
material_qty_report station_no bigint
material_qty_report order_no character varying
material_qty_report sn character varying
material_qty_report material_code character varying
material_qty_report material_name character varying
material_qty_report plan_qty bigint
material_qty_report actual_qty bigint
material_qty_report diff_qty bigint
material_qty_report cause character varying
material_qty_report status character varying
material_qty_report handle_type character varying
material_qty_report handle_doc_no character varying
material_qty_report handle_note character varying
material_qty_report handled_by character varying
material_qty_report handled_at bigint
material_qty_report operator character varying
material_qty_report created_at timestamp with time zone
material_qty_report resolved_at timestamp with time zone
material_request id bigint
material_request request_no character varying
material_request order_no character varying
material_request plan_date character varying
material_request material_code character varying
material_request material_name character varying
material_request unit character varying
material_request req_qty double precision
material_request status character varying
material_request target_dock character varying
material_request station_no bigint
material_request flow_id bigint
material_request sent_qty double precision
material_request received_qty double precision
material_request received_at bigint
material_request receive_by character varying
material_request source character varying
material_request over_qty double precision
material_request over_reason character varying
material_request ref_report_no character varying
material_request need_agv boolean
material_request batch_no character varying
material_request operator character varying
material_request created_at timestamp with time zone
material_request updated_at timestamp with time zone
material_request sn_mode bigint
materials id bigint
materials code character varying
materials name character varying
materials spec character varying
materials unit character varying
materials description character varying
materials item_type bigint
materials manage_mode bigint
materials template_code character varying
materials safety_stock bigint
materials is_active boolean
materials sync_pending boolean
materials created_at timestamp with time zone
materials updated_at timestamp with time zone
materials sn_mode bigint
permission id bigint
permission code character varying
permission name character varying
permission type character varying
permission parent_code character varying
permission path character varying
permission icon character varying
permission sort bigint
permission remark character varying
permission created_at timestamp with time zone
plc_move_cmd id bigint
plc_move_cmd cmd_no character varying
plc_move_cmd sn character varying
plc_move_cmd order_no character varying
plc_move_cmd from_point character varying
plc_move_cmd to_point character varying
plc_move_cmd status character varying
plc_move_cmd operator character varying
plc_move_cmd message character varying
plc_move_cmd created_at timestamp with time zone
plc_move_cmd updated_at timestamp with time zone
plc_send_log id bigint
plc_send_log order_no character varying
plc_send_log sn character varying
plc_send_log station_no bigint
plc_send_log process_combination character varying
plc_send_log process_codes jsonb
plc_send_log status character varying
plc_send_log send_time timestamp with time zone
plc_send_log done_time timestamp with time zone
plc_send_log ack boolean
plc_send_log remark character varying
plc_send_log operator character varying
plc_send_log created_at timestamp with time zone
process_flow id bigint
process_flow name character varying
process_flow pdf_file character varying
process_flow status character varying
process_flow remark character varying
process_flow created_at timestamp with time zone
process_flow updated_at timestamp with time zone
process_step id bigint
process_step flow_id bigint
process_step seq bigint
process_step name character varying
process_step collect_type character varying
process_step is_torque boolean
process_step need_check boolean
process_step attachment jsonb
process_step remark character varying
process_step created_at timestamp with time zone
process_step need_operator_sign boolean
process_step need_inspector_sign boolean
role id bigint
role name character varying
role code character varying
role remark character varying
role permission_codes jsonb
role created_at timestamp with time zone
semi_flow id bigint
semi_flow sn character varying
semi_flow order_no character varying
semi_flow done_process_codes jsonb
semi_flow completed_text character varying
semi_flow action character varying
semi_flow target_dock character varying
semi_flow operator character varying
semi_flow created_at timestamp with time zone
station id bigint
station station_no bigint
station name character varying
station flow_id bigint
station station_type character varying
station status character varying
station is_builtin boolean
station has_dock boolean
station dock_code character varying
station visible_tabs jsonb
station created_at timestamp with time zone
station_state id bigint
station_state station_no bigint
station_state date character varying
station_state paused boolean
station_state reason character varying
station_state operator character varying
station_state created_at timestamp with time zone
station_state updated_at timestamp with time zone
step_criterion id bigint
step_criterion step_id bigint
step_criterion name character varying
step_criterion unit character varying
step_criterion logic character varying
step_criterion target double precision
step_criterion min double precision
step_criterion max double precision
step_criterion created_at timestamp with time zone
step_data id bigint
step_data sn character varying
step_data process_id bigint
step_data step_id bigint
step_data step_name character varying
step_data criterion_id bigint
step_data criterion_name character varying
step_data criterion_logic character varying
step_data value double precision
step_data value_text character varying
step_data is_ok boolean
step_data operator character varying
step_data created_at timestamp with time zone
step_sign_record id bigint
step_sign_record sn character varying
step_sign_record order_no character varying
step_sign_record flow_id bigint
step_sign_record station_no character varying
step_sign_record step_id bigint
step_sign_record step_name character varying
step_sign_record sign_role character varying
step_sign_record result character varying
step_sign_record signed_by character varying
step_sign_record signed_at timestamp with time zone
step_sign_record round bigint
step_sign_record source character varying
step_sign_record remark character varying
step_sign_record revoked boolean
step_sign_record revoked_by character varying
step_sign_record revoked_at timestamp with time zone
step_sign_record revoke_reason character varying
step_sign_record created_at timestamp with time zone
sys_config id bigint
sys_config key character varying
sys_config value character varying
sys_config remark character varying
torque_record id bigint
torque_record work_order_no character varying
torque_record sn character varying
torque_record screw_no character varying
torque_record strain double precision
torque_record torque double precision
torque_record angle double precision
torque_record result character varying
torque_record operator character varying
torque_record station_no character varying
torque_record time timestamp with time zone
torque_record created_at timestamp with time zone
torque_record operator_id bigint
user id bigint
user username character varying
user password character varying
user name character varying
user role_id bigint
user can_login_workstation boolean
user workstation_password character varying
user status character varying
user last_login_at bigint
user created_at timestamp with time zone
user updated_at timestamp with time zone
user_station id bigint
user_station user_id bigint
user_station station_no bigint
user_station created_at timestamp with time zone
work_order id bigint
work_order work_order_no character varying
work_order product_type_id bigint
work_order product_code character varying
work_order product_name character varying
work_order quantity bigint
work_order finished_num bigint
work_order fail_num bigint
work_order contract_no character varying
work_order project_no character varying
work_order product_serial character varying
work_order created_by character varying
work_order due_date timestamp with time zone
work_order flow_combination jsonb
work_order status character varying
work_order plan_start timestamp with time zone
work_order plan_end timestamp with time zone
work_order context jsonb
work_order completed_at timestamp with time zone
work_order created_at timestamp with time zone
work_order updated_at timestamp with time zone
work_order ownership_type character varying
workpiece id bigint
workpiece sn character varying
workpiece order_no character varying
workpiece work_order_id bigint
workpiece current_station_no bigint
workpiece status character varying
workpiece online_at timestamp with time zone
workpiece done_at timestamp with time zone
workpiece created_at timestamp with time zone
workpiece updated_at timestamp with time zone
workpiece_bind id bigint
workpiece_bind sn character varying
workpiece_bind order_no character varying
workpiece_bind flow_id bigint
workpiece_bind station_no character varying
workpiece_bind material_code character varying
workpiece_bind material_name character varying
workpiece_bind spec character varying
workpiece_bind unit character varying
workpiece_bind bind_value character varying
workpiece_bind bind_type character varying
workpiece_bind operator character varying
workpiece_bind created_at timestamp with time zone
workpiece_bind sn_mode bigint
workpiece_process id bigint
workpiece_process sn character varying
workpiece_process flow_id bigint
workpiece_process station_no character varying
workpiece_process order_no character varying
workpiece_process process_name character varying
workpiece_process status character varying
workpiece_process operator character varying
workpiece_process result character varying
workpiece_process started_at timestamp with time zone
workpiece_process ended_at timestamp with time zone
workpiece_process duration_sec bigint
workpiece_process remark character varying
workpiece_process created_at timestamp with time zone
workpiece_process operator_id bigint
(400 rows)
agv_tasks id bigint ""
agv_tasks task_no character varying 我方任务号(内部)
agv_tasks hik_task_code character varying RCS-Lite 任务单号(即我方 task_no,下发时透传 taskCode)
agv_tasks source_dock character varying 起点接驳台(常为 DOCK21 库房)
agv_tasks target_dock character varying 终点接驳台 DOCK01..20
agv_tasks materials_json character varying 物料清单 JSON
agv_tasks related_request_no character varying 关联叫料单号(MES material_request.requestNo)
agv_tasks related_outbound_no character varying 关联出库单号(可选, WMS 回传)
agv_tasks status character varying PENDING/FAILED/1已创建/2执行中/5已取消/9已结束
agv_tasks operator character varying 下发人
agv_tasks dispatched_at bigint 下发时间 unix秒
agv_tasks arrived_at bigint 到位时间 unix秒
agv_tasks remark character varying 备注/失败原因
agv_tasks created_at bigint 创建时间
alert id bigint ""
alert rule_id bigint 关联规则ID,0=手动触发
alert type character varying 预警类型
alert level character varying 级别:信息/警告/严重(空=历史数据未分级)
alert target character varying 目标对象(工位/库房/SN 等)
alert title character varying(255) 标题
alert content character varying 内容
alert ref_type character varying 关联业务类型
alert ref_id character varying 关联业务ID
alert order_no character varying 关联工单号(按工单号查询用)
alert status character varying UNREAD/READ
alert receiver character varying 接收人
alert resolved_at timestamp with time zone 处置时间(resolve 时写入,未处置为空)
alert resolved_by character varying 处置人(resolve 时写入)
alert created_at timestamp with time zone ""
alert_rule id bigint ""
alert_rule name character varying 规则名称
alert_rule type character varying 预警类型 torque_ng/inspection_ng/inventory_low/task_overdue
alert_rule threshold double precision 阈值(不同类含义不同)
alert_rule enabled boolean 是否启用
alert_rule notify_channels character varying 通知渠道(BOM 即物料清单无关;本字段为预警通知方式占位,逗号分隔,空=仅预警中心收件箱)
alert_rule created_by character varying 创建人
alert_rule created_at timestamp with time zone ""
association_trace id bigint ""
association_trace finished_sn character varying 成品SN(主件)
association_trace order_no character varying ""
association_trace process_code character varying 成品的工序组合
association_trace batch_items jsonb 结构件批次号列表
association_trace serial_items jsonb 电气件SN码列表
association_trace operator character varying 完工关联登记人
association_trace created_at timestamp with time zone ""
attachment id bigint ""
attachment biz_type character varying 业务类型 work_order/material/process_flow/inspection
attachment biz_id character varying 业务ID
attachment file_name character varying 原始文件名
attachment file_path character varying 上传目录相对路径
attachment file_size bigint 字节数
attachment uploader character varying 上传人
attachment created_at timestamp with time zone ""
attachment file_type character varying 文件类型 大写枚举 PROCESS_PDF/INSPECTION_PHOTO/...
attachment file_ext character varying 扩展名(小写,不含点)
attachment file_md5 character varying 文件MD5(秒传/去重)
attachment mime_type character varying MIME类型
attachment archived boolean 是否已归档
attachment archived_at bigint 归档时间(unix秒)
attachment deleted boolean 逻辑删除
attachment deleted_at bigint 删除时间(unix秒)
attachment deleted_by character varying 删除人
call_pool id bigint ""
call_pool station_no bigint 工位号
call_pool material_code character varying 物料编码(图号)
call_pool material_name character varying ""
call_pool unit character varying ""
call_pool sn_mode bigint ""
call_pool req_qty bigint 需求量(启用排产派生,逐行向上取整后合计)
call_pool adj_qty bigint 人工调整量(可正可负;改动留痕 event_log)
call_pool sent_qty bigint 已发净额(完成备料实发累加;退库收回扣减回补)
call_pool reserved_qty bigint 占用中(待备料叫料单请求量合计)
call_pool cross_day boolean 是否含非今日排产(跨日叫料预警/仓库驳回异常标记)
call_pool plan_dates character varying 派生快照:贡献需求的排产日期(逗号分隔,可空)
call_pool created_at timestamp with time zone ""
call_pool updated_at timestamp with time zone ""
daily_plan id bigint ""
daily_plan order_no character varying 工单号
daily_plan plan_date character varying 排产日期 yyyy-MM-dd
daily_plan plan_qty bigint 计划数量
daily_plan completed_qty bigint 已完成数量
daily_plan station_plan_qty jsonb 各工位产量分配 stationNo→计划产量
daily_plan status character varying ""
daily_plan operator character varying ""
daily_plan created_at timestamp with time zone ""
daily_plan updated_at timestamp with time zone ""
dock id bigint ""
dock dock_code character varying 接驳台编码 DOCK01..21
dock name character varying 接驳台名称
dock dock_type character varying 类型 line产线/store库房/other其他
dock station_no bigint 关联工位号(与工位1:1,非产线为0)
dock has_pallet boolean 当前是否有托盘
dock pallet_ref character varying 托盘关联(出库单号/备料单号)
dock status character varying ""
dock created_at timestamp with time zone ""
event_log id bigint ""
event_log event_type character varying 事件类型,如 work.order.create
event_log work_order_no character varying 关联工单号
event_log operator character varying 操作人
event_log entity_type character varying 实体类型
event_log entity_id character varying 实体标识
event_log description text 描述
event_log payload jsonb 载荷
event_log created_at timestamp with time zone 创建时间
flow_material id bigint ""
flow_material flow_id bigint 所属工艺ID
flow_material material_code character varying 物料编码
flow_material material_name character varying ""
flow_material spec character varying ""
flow_material unit character varying ""
flow_material sn_mode bigint ""
flow_material unit_qty double precision 单台用量
flow_material loss_rate double precision 损耗率%
flow_material created_at timestamp with time zone ""
inspection_record id bigint ""
inspection_record category character varying 记录类型 CHECKIN/POINT/PROCESS/DONE/ALARM/INCOMING/FINAL/QC_PROCESS
inspection_record station_no character varying 工位号
inspection_record shift character varying 班次 早/中/晚
inspection_record order_no character varying 工单号
inspection_record sn character varying 工件SN
inspection_record result character varying 结论
inspection_record items jsonb 点检项/异常类型列表
inspection_record photo character varying 拍照文件名
inspection_record remark character varying 文字描述/签字
inspection_record operator character varying 操作人
inspection_record process_code bigint 所属工位号(过程巡检所在工位)
inspection_record step_id bigint 工艺步骤ID(过程巡检逐条关联)
inspection_record step_name character varying 工艺步骤名称
inspection_record measured_value character varying 实测值(过程巡检录入)
inspection_record report_no character varying 报检单号
inspection_record material_code character varying 物料编码(图号)
inspection_record material_name character varying 物料名称
inspection_record manufacturer character varying 生产厂家
inspection_record inspection_no character varying 检验单号
inspection_record attachment_ids character varying 附件ID,逗号分隔(关联 attachment 表)
inspection_record disposal_type character varying 处置类型 退货/返修/退换/报废
inspection_record disposal_remark character varying 处置说明
inspection_record batch_sn character varying 批次号/SN(联动 WMS 在库处置:序列号=是=SN 序列号=否=批次)
inspection_record related_standard character varying 相关标准/试验方案号(完工检用,随成品回流 WMS)
inspection_record test_record_no character varying 试验记录单号(完工检用,随成品回流 WMS)
inspection_record created_at timestamp with time zone ""
line_point id bigint ""
line_point point_type character varying FEED上料位/STATION工位/CACHE缓存位/DOCK接驳台/END末端
line_point point_no character varying 点位编号:IN上料位 / 1~10工位 / C1~C8缓存位 / 1-R1接驳台 / END-U上排末端 / END-D下排末端
line_point label character varying 点位名称
line_point seq bigint 传送带顺序(上料位→工位→末端,用于相邻缓存位判定)
line_point station_no bigint 所属工位号(DOCK/CACHE 归属;0=无)
line_point current_sn character varying 当前存放工件SN(空=空闲)
line_point order_no character varying 当前工件所属工单号
line_point occupied boolean 是否占用
line_point updated_at timestamp with time zone ""
material_qty_report id bigint ""
material_qty_report station_no bigint 工位号
material_qty_report order_no character varying 工单号
material_qty_report sn character varying 工件SN
material_qty_report material_code character varying 物料编码
material_qty_report material_name character varying 物料名称
material_qty_report plan_qty bigint 应发数量
material_qty_report actual_qty bigint 实收数量
material_qty_report diff_qty bigint 差异=应发-实收
material_qty_report cause character varying 差异原因
material_qty_report status character varying PENDING/PROCESSING/REPLENISHED/RETURNED/ADJUSTED/CLOSED
material_qty_report handle_type character varying 处理方式 REPLENISH补发/RETURN退库/ADJUST调整
material_qty_report handle_doc_no character varying 处理生成的单据号(补料单号/退库单号)
material_qty_report handle_note character varying 处理说明
material_qty_report handled_by character varying 处理人
material_qty_report handled_at bigint 处理时间(unix 秒)
material_qty_report operator character varying 上报人
material_qty_report created_at timestamp with time zone ""
material_qty_report resolved_at timestamp with time zone ""
material_request id bigint ""
material_request request_no character varying 叫料单号
material_request material_code character varying 物料编码
material_request material_name character varying ""
material_request unit character varying ""
material_request sn_mode bigint ""
material_request req_qty double precision 请求量(发起时占用叫料池可用量)
material_request status character varying ""
material_request target_dock character varying 目标接驳台(GxR1/GxR2,一单一个托盘)
material_request station_no bigint 目标工位号
material_request sent_qty double precision 实发量(仓库完成备料时确定,禁单内分批)
material_request returned_qty double precision 退库量(整单退;仓库确认收回后叫料池额度回补)
material_request source character varying 来源 CALL/REFILL
material_request ref_report_no character varying 关联数量不符单号
material_request need_agv boolean 是否需要AGV配送到接驳台
material_request agv_task_no character varying AGV 任务号(派车成功后回写)
material_request cross_day boolean 跨日标记:叫料池行含非今日排产(工位预警+仓库可驳回异常)
material_request outbound_no character varying WMS 出库单号(完成备料回写,多个逗号分隔)
material_request reject_reason character varying 驳回理由(仓库拒发时必填)
material_request operator character varying ""
material_request created_at timestamp with time zone ""
material_request updated_at timestamp with time zone ""
materials id bigint ""
materials code character varying 物料编码(图号),两库同步唯一业务键
materials name character varying 物料名称
materials spec character varying 规格型号
materials unit character varying 计量单位
materials description character varying 说明
materials item_type bigint 物料类别 1原材料/3成品(半成品不是物料类别,「其他」已移除)
materials manage_mode bigint 类型 1结构件/2电气件/3其他(仅分类,不决定SN行为)
materials sn_mode bigint 是否逐件SN管理 0未选择(必填)/1序列号=是(录SN)/2序列号=否(不录SN)
materials template_code character varying 模板编码
materials safety_stock bigint 安全库存(低于触发缺货预警)
materials is_active boolean 启用/停用(两库均不物理删除)
materials sync_pending boolean 推送WMS失败标记,列表请求时异步重推
materials created_at timestamp with time zone ""
materials updated_at timestamp with time zone ""
permission id bigint ""
permission code character varying 权限编码
permission name character varying 名称
permission type character varying ""
permission parent_code character varying 所属菜单权限码(按钮必填)
permission path character varying 前端路由
permission icon character varying ""
permission sort bigint ""
permission remark character varying ""
permission created_at timestamp with time zone ""
plc_send_log id bigint ""
plc_send_log order_no character varying 工单号
plc_send_log sn character varying 工件SN
plc_send_log station_no bigint 工位号
plc_send_log process_combination character varying 工序组合,如 135
plc_send_log process_codes jsonb 工序码表
plc_send_log status character varying ""
plc_send_log send_time timestamp with time zone 下发时间
plc_send_log done_time timestamp with time zone 收到完成信号时间
plc_send_log ack boolean 是否收到完成信号
plc_send_log remark character varying ""
plc_send_log operator character varying ""
plc_send_log created_at timestamp with time zone ""
process_flow id bigint ""
process_flow name character varying 流程名称,如 3号工位装配流程
process_flow pdf_file character varying 工艺图纸文件名
process_flow status character varying ""
process_flow remark character varying ""
process_flow created_at timestamp with time zone ""
process_flow updated_at timestamp with time zone ""
process_step id bigint ""
process_step flow_id bigint 所属工艺流程图ID
process_step seq bigint 步骤序号
process_step name character varying 步骤名称
process_step collect_type character varying 采集方式 AUTO(拧紧枪自动)/MANUAL(手填)/SCAN(扫码,与手填等价采一串字符串)/NONE(仅记录)
process_step need_check boolean 是否需要检测确认(报工前须检验通过)
process_step need_operator_sign boolean 是否需要操作工签字(报工前须签字确认)
process_step need_inspector_sign boolean 是否需要检验员签字(审核通过并签字后放行)
process_step need_audit boolean 是否需要审核人复核签字(审核通过后放行)
process_step audit_role character varying 审核角色(如班组长/工艺员),具该角色的人员可签
process_step attachment jsonb 本步骤图纸/附件列表 [{name,url}]
process_step remark character varying ""
process_step created_at timestamp with time zone ""
product_process id bigint ""
product_process product_code character varying 产品编码(WMS 物料档案 item_type=3 图号)
product_process product_name character varying 产品名称(快照,WMS 改名不回写)
product_process name character varying 产品工艺名称,如 DX100常规
product_process status character varying ""
product_process remark character varying ""
product_process created_at timestamp with time zone ""
product_process_item id bigint ""
product_process_item product_process_id bigint 所属产品工艺ID
product_process_item seq bigint 顺序号(从1严格递增,即执行顺序)
product_process_item flow_id bigint 工艺ID(process_flow)
product_process_item created_at timestamp with time zone ""
role id bigint ""
role name character varying 角色名称
role code character varying 角色编码
role remark character varying ""
role permission_codes jsonb 权限编码列表,如 produce.workorder:view
role created_at timestamp with time zone ""
semi_flow id bigint ""
semi_flow sn character varying 工件SN
semi_flow order_no character varying ""
semi_flow done_process_codes jsonb 已完成工序码(已废除,历史数据保留)
semi_flow completed_text character varying 完成至工位快照(如:已完成至工位3;空=尚未报工)
semi_flow action character varying ""
semi_flow target_dock character varying ""
semi_flow operator character varying ""
semi_flow created_at timestamp with time zone ""
station id bigint ""
station station_no bigint 工位号 1..12
station name character varying 工位名称
station flow_id bigint 绑定工艺流程图ID
station station_type character varying 工位类型 LINE/OFFLINE
station status character varying ""
station is_builtin boolean 内置工位:不可改类型/不可删除
station visible_tabs jsonb ""
station created_at timestamp with time zone ""
station_state id bigint ""
station_state station_no bigint 工位号
station_state date character varying 生效日期 yyyy-MM-dd(只认当天)
station_state paused boolean 是否停止接单
station_state reason character varying 停单原因(缺料/故障/其他)
station_state operator character varying 操作人
station_state created_at timestamp with time zone ""
station_state updated_at timestamp with time zone ""
step_criterion id bigint ""
step_criterion step_id bigint 步骤ID
step_criterion name character varying 指标名,如 扭矩/角度
step_criterion unit character varying ""
step_criterion logic character varying ""
step_criterion target double precision 目标值
step_criterion min double precision 范围下限
step_criterion max double precision 范围上限
step_criterion created_at timestamp with time zone ""
step_data id bigint ""
step_data sn character varying 工件SN
step_data process_id bigint 工件工序实绩ID
step_data step_id bigint 步骤ID
step_data step_name character varying ""
step_data criterion_id bigint 考核标准ID
step_data criterion_name character varying ""
step_data criterion_logic character varying ""
step_data value double precision 实际测量值
step_data value_text character varying 文本值(OK/NG/钢印号)
step_data is_ok boolean 是否合格(可人工修正)
step_data operator character varying ""
step_data created_at timestamp with time zone ""
step_sign_record id bigint ""
step_sign_record sn character varying 工件SN
step_sign_record order_no character varying 工单号
step_sign_record flow_id bigint 工艺流程ID
step_sign_record station_no character varying 工位号
step_sign_record step_id bigint 工艺步骤ID
step_sign_record step_name character varying 步骤名称
step_sign_record sign_role character varying 签字角色 OPERATOR/INSPECTOR
step_sign_record result character varying 签字时点的结论 OK/NG
step_sign_record signed_by character varying 签字人(登录账号)
step_sign_record signed_at timestamp with time zone 签字时间
step_sign_record round bigint 返修重做轮次(1=首做)
step_sign_record source character varying 签字来源 station/inspect/migrate
step_sign_record remark character varying 签字备注(签字弹框选填)
step_sign_record revoked boolean 是否已撤销
step_sign_record revoked_by character varying 撤销人
step_sign_record revoked_at timestamp with time zone 撤销时间
step_sign_record revoke_reason character varying 撤销原因
step_sign_record created_at timestamp with time zone ""
sys_config id bigint ""
sys_config key character varying 配置键,如 wms.base_url
sys_config value character varying 配置值
sys_config remark character varying 说明
torque_record id bigint ""
torque_record work_order_no character varying workOrder 工单号
torque_record sn character varying 工件SN
torque_record screw_no character varying 螺丝编号 S1..Sn
torque_record strain double precision 扭矩 Nm
torque_record torque double precision 扭矩别名,与 strain 一致
torque_record angle double precision 角度 °
torque_record result character varying ""
torque_record operator character varying 操作人
torque_record operator_id bigint 操作人用户ID(0=未采集:虚拟工位/PLC路径或历史数据)
torque_record station_no character varying 工位
torque_record time timestamp with time zone 采集时间
torque_record created_at timestamp with time zone ""
user id bigint ""
user username character varying 登录名
user password character varying bcrypt 密码
user name character varying 姓名/显示名
user role_id bigint 角色ID
user can_login_workstation boolean 是否允许登录工位终端
user workstation_password character varying 工位终端密码(bcrypt)
user status character varying ""
user last_login_at bigint 最近登录时间(unix秒,后台登录更新;工位终端登录不计)
user created_at timestamp with time zone ""
user updated_at timestamp with time zone ""
user_station id bigint ""
user_station user_id bigint 用户ID
user_station station_no bigint 工位号 1..12
user_station created_at timestamp with time zone ""
work_order id bigint ""
work_order work_order_no character varying 工单号
work_order product_type_id bigint 产品类型ID
work_order product_code character varying 产品编码
work_order product_name character varying ""
work_order quantity bigint 工件数量
work_order finished_num bigint 完成数量
work_order fail_num bigint NG数量
work_order contract_no character varying 归属编号(合同号或科技项目号,随归属类型二选一)
work_order ownership_type character varying 归属类型:workorder=合同号/project=科技项目号/other=其他
work_order project_no character varying 工程编号(已废弃,保留防历史数据迁移)
work_order product_serial character varying 产品序号(工单内每台产品的序号)
work_order created_by character varying 创建人
work_order due_date timestamp with time zone 完成日期(必填)
work_order flow_combination jsonb 工艺组合 [{flowId,stationNo}] 按工位号升序
work_order product_process_id bigint 来源产品工艺ID(0=无来源)
work_order status character varying ""
work_order plan_start timestamp with time zone 计划开始
work_order plan_end timestamp with time zone 计划结束
work_order context jsonb 扩展字段
work_order completed_at timestamp with time zone ""
work_order created_at timestamp with time zone ""
work_order updated_at timestamp with time zone ""
workpiece id bigint ""
workpiece sn character varying 工件唯一SN
workpiece order_no character varying 所属工单
workpiece work_order_id bigint 工单ID
workpiece current_station_no bigint 业务位置:最后完成报工的工位号(0=未报任何工艺;下一道=工艺组合中工位号更大的下一条)
workpiece at_station_no bigint 物理位置:工件当前实际所在工位号(0=未在工位;建档/到达即写,完工/入库清空)
workpiece status character varying ""
workpiece online_at timestamp with time zone 进线时间
workpiece done_at timestamp with time zone 完工时间
workpiece created_at timestamp with time zone ""
workpiece updated_at timestamp with time zone ""
workpiece torque_ng_pending boolean 拧紧扭矩不合格待人工处置标记
workpiece torque_ng_at timestamp with time zone 拧紧不合格标记时间
workpiece torque_ng_by character varying 拧紧不合格标记操作人
workpiece_bind id bigint ""
workpiece_bind sn character varying 工件SN
workpiece_bind order_no character varying 工单号
workpiece_bind flow_id bigint 装配工艺ID
workpiece_bind station_no character varying 绑定工位
workpiece_bind material_code character varying 物料编码
workpiece_bind material_name character varying 物料名称
workpiece_bind spec character varying 规格
workpiece_bind unit character varying 单位
workpiece_bind sn_mode bigint ""
workpiece_bind bind_value character varying 绑定值:批次号 或 SN
workpiece_bind bind_type character varying ""
workpiece_bind operator character varying 操作人
workpiece_bind created_at timestamp with time zone 绑定时间
workpiece_lifecycle_log id bigint ""
workpiece_lifecycle_log sn character varying 工件SN
workpiece_lifecycle_log work_order_no character varying 所属工单
workpiece_lifecycle_log action character varying 状态动作:NEW/ONLINE/REPORT/SEMI_IN/SEMI_OUT/DONE/SCRAPPED
workpiece_lifecycle_log from_status character varying 变更前状态
workpiece_lifecycle_log to_status character varying 变更后状态
workpiece_lifecycle_log station_no bigint 关联工位号
workpiece_lifecycle_log flow_seq bigint 工艺序号(工序顺序)
workpiece_lifecycle_log operator character varying 操作人
workpiece_lifecycle_log source character varying 来源:workstation/mes/admin/reconcile
workpiece_lifecycle_log remark character varying 备注
workpiece_lifecycle_log created_at timestamp with time zone ""
workpiece_process id bigint ""
workpiece_process sn character varying 工件SN
workpiece_process flow_id bigint 完成的工艺ID
workpiece_process station_no character varying 工位号
workpiece_process order_no character varying ""
workpiece_process process_name character varying ""
workpiece_process status character varying ""
workpiece_process operator character varying ""
workpiece_process operator_id bigint 操作人用户ID(0=未采集:虚拟工位/PLC路径或历史数据)
workpiece_process result character varying 总判定 OK/NG
workpiece_process started_at timestamp with time zone ""
workpiece_process ended_at timestamp with time zone ""
workpiece_process duration_sec bigint 作业时长(秒)=endedAt-startedAt
workpiece_process remark character varying ""
workpiece_process created_at timestamp with time zone ""
1 table_name column_name data_type col_comment
2 alert agv_tasks id bigint
3 alert agv_tasks rule_id task_no bigint character varying 我方任务号(内部)
4 alert agv_tasks type hik_task_code character varying RCS-Lite 任务单号(即我方 task_no,下发时透传 taskCode)
5 alert agv_tasks title source_dock character varying 起点接驳台(常为 DOCK21 库房)
6 alert agv_tasks content target_dock character varying 终点接驳台 DOCK01..20
7 alert agv_tasks ref_type materials_json character varying 物料清单 JSON
8 alert agv_tasks ref_id related_request_no character varying 关联叫料单号(MES material_request.requestNo)
9 alert agv_tasks order_no related_outbound_no character varying 关联出库单号(可选, WMS 回传)
10 alert agv_tasks status character varying PENDING/FAILED/1已创建/2执行中/5已取消/9已结束
11 alert agv_tasks receiver operator character varying 下发人
12 alert agv_tasks created_at dispatched_at timestamp with time zone bigint 下发时间 unix秒
13 alert_rule agv_tasks id arrived_at bigint 到位时间 unix秒
14 alert_rule agv_tasks name remark character varying 备注/失败原因
15 alert_rule agv_tasks type created_at character varying bigint 创建时间
16 alert_rule alert threshold id double precision bigint
17 alert_rule alert receiver rule_id character varying bigint 关联规则ID,0=手动触发
18 alert_rule alert enabled type boolean character varying 预警类型
19 alert_rule alert created_by level character varying 级别:信息/警告/严重(空=历史数据未分级)
20 alert_rule alert created_at target timestamp with time zone character varying 目标对象(工位/库房/SN 等)
21 association_trace alert id title bigint character varying(255) 标题
22 association_trace alert finished_sn content character varying 内容
23 association_trace alert order_no ref_type character varying 关联业务类型
24 association_trace alert process_code ref_id character varying 关联业务ID
25 association_trace alert batch_items order_no jsonb character varying 关联工单号(按工单号查询用)
26 association_trace alert serial_items status jsonb character varying UNREAD/READ
27 association_trace alert operator receiver character varying 接收人
28 association_trace alert created_at resolved_at timestamp with time zone 处置时间(resolve 时写入,未处置为空)
29 attachment alert id resolved_by bigint character varying 处置人(resolve 时写入)
30 attachment alert biz_type created_at character varying timestamp with time zone
31 attachment alert_rule biz_id id character varying bigint
32 attachment alert_rule file_name name character varying 规则名称
33 attachment alert_rule file_path type character varying 预警类型 torque_ng/inspection_ng/inventory_low/task_overdue
34 attachment alert_rule file_size threshold bigint double precision 阈值(不同类含义不同)
35 attachment alert_rule uploader enabled character varying boolean 是否启用
36 attachment alert_rule created_at notify_channels timestamp with time zone character varying 通知渠道(BOM 即物料清单无关;本字段为预警通知方式占位,逗号分隔,空=仅预警中心收件箱)
37 attachment alert_rule file_type created_by character varying 创建人
38 attachment alert_rule file_ext created_at character varying timestamp with time zone
39 attachment association_trace file_md5 id character varying bigint
40 attachment association_trace mime_type finished_sn character varying 成品SN(主件)
41 attachment association_trace archived order_no boolean character varying
42 attachment association_trace archived_at process_code bigint character varying 成品的工序组合
43 attachment association_trace deleted batch_items boolean jsonb 结构件批次号列表
44 attachment association_trace deleted_at serial_items bigint jsonb 电气件SN码列表
45 attachment association_trace deleted_by operator character varying 完工关联登记人
46 daily_plan association_trace id created_at bigint timestamp with time zone
47 daily_plan attachment order_no id character varying bigint
48 daily_plan attachment plan_date biz_type character varying 业务类型 work_order/material/process_flow/inspection
49 daily_plan attachment plan_qty biz_id bigint character varying 业务ID
50 daily_plan attachment completed_qty file_name bigint character varying 原始文件名
51 daily_plan attachment station_plan_qty file_path jsonb character varying 上传目录相对路径
52 daily_plan attachment status file_size character varying bigint 字节数
53 daily_plan attachment operator uploader character varying 上传人
54 daily_plan attachment created_at timestamp with time zone
55 daily_plan attachment updated_at file_type timestamp with time zone character varying 文件类型 大写枚举 PROCESS_PDF/INSPECTION_PHOTO/...
56 dock attachment id file_ext bigint character varying 扩展名(小写,不含点)
57 dock attachment dock_code file_md5 character varying 文件MD5(秒传/去重)
58 dock attachment name mime_type character varying MIME类型
59 dock attachment dock_type archived character varying boolean 是否已归档
60 dock attachment station_no archived_at bigint 归档时间(unix秒)
61 dock attachment has_pallet deleted boolean 逻辑删除
62 dock attachment pallet_ref deleted_at character varying bigint 删除时间(unix秒)
63 dock attachment status deleted_by character varying 删除人
64 dock call_pool created_at id timestamp with time zone bigint
65 event_log call_pool id station_no bigint 工位号
66 event_log call_pool event_type material_code character varying 物料编码(图号)
67 event_log call_pool work_order_no material_name character varying
68 event_log call_pool operator unit character varying
69 event_log call_pool entity_type sn_mode character varying bigint
70 event_log call_pool entity_id req_qty character varying bigint 需求量(启用排产派生,逐行向上取整后合计)
71 event_log call_pool description adj_qty text bigint 人工调整量(可正可负;改动留痕 event_log)
72 event_log call_pool payload sent_qty jsonb bigint 已发净额(完成备料实发累加;退库收回扣减回补)
73 event_log call_pool created_at reserved_qty timestamp with time zone bigint 占用中(待备料叫料单请求量合计)
74 flow_material call_pool id cross_day bigint boolean 是否含非今日排产(跨日叫料预警/仓库驳回异常标记)
75 flow_material call_pool flow_id plan_dates bigint character varying 派生快照:贡献需求的排产日期(逗号分隔,可空)
76 flow_material call_pool material_code created_at character varying timestamp with time zone
77 flow_material call_pool material_name updated_at character varying timestamp with time zone
78 flow_material daily_plan spec id character varying bigint
79 flow_material daily_plan unit order_no character varying 工单号
80 flow_material daily_plan unit_qty plan_date double precision character varying 排产日期 yyyy-MM-dd
81 flow_material daily_plan loss_rate plan_qty double precision bigint 计划数量
82 flow_material daily_plan created_at completed_qty timestamp with time zone bigint 已完成数量
83 flow_material daily_plan sn_mode station_plan_qty bigint jsonb 各工位产量分配 stationNo→计划产量
84 inspection_record daily_plan id status bigint character varying
85 inspection_record daily_plan category operator character varying
86 inspection_record daily_plan station_no created_at character varying timestamp with time zone
87 inspection_record daily_plan shift updated_at character varying timestamp with time zone
88 inspection_record dock order_no id character varying bigint
89 inspection_record dock sn dock_code character varying 接驳台编码 DOCK01..21
90 inspection_record dock result name character varying 接驳台名称
91 inspection_record dock items dock_type jsonb character varying 类型 line产线/store库房/other其他
92 inspection_record dock photo station_no character varying bigint 关联工位号(与工位1:1,非产线为0)
93 inspection_record dock remark has_pallet character varying boolean 当前是否有托盘
94 inspection_record dock operator pallet_ref character varying 托盘关联(出库单号/备料单号)
95 inspection_record dock process_code status bigint character varying
96 inspection_record dock step_id created_at bigint timestamp with time zone
97 inspection_record event_log step_name id character varying bigint
98 inspection_record event_log measured_value event_type character varying 事件类型,如 work.order.create
99 inspection_record event_log report_no work_order_no character varying 关联工单号
100 inspection_record event_log material_code operator character varying 操作人
101 inspection_record event_log material_name entity_type character varying 实体类型
102 inspection_record event_log manufacturer entity_id character varying 实体标识
103 inspection_record event_log inspection_no description character varying text 描述
104 inspection_record event_log attachment_ids payload character varying jsonb 载荷
105 inspection_record event_log disposal_type created_at character varying timestamp with time zone 创建时间
106 inspection_record flow_material disposal_remark id character varying bigint
107 inspection_record flow_material created_at flow_id timestamp with time zone bigint 所属工艺ID
108 inspection_record flow_material batch_sn material_code character varying 物料编码
109 inspection_record flow_material related_standard material_name character varying
110 inspection_record flow_material test_record_no spec character varying
111 line_point flow_material id unit bigint character varying
112 line_point flow_material point_type sn_mode character varying bigint
113 line_point flow_material point_no unit_qty character varying double precision 单台用量
114 line_point flow_material label loss_rate character varying double precision 损耗率%
115 line_point flow_material seq created_at bigint timestamp with time zone
116 line_point inspection_record station_no id bigint
117 line_point inspection_record current_sn category character varying 记录类型 CHECKIN/POINT/PROCESS/DONE/ALARM/INCOMING/FINAL/QC_PROCESS
118 line_point inspection_record order_no station_no character varying 工位号
119 line_point inspection_record occupied shift boolean character varying 班次 早/中/晚
120 line_point inspection_record updated_at order_no timestamp with time zone character varying 工单号
121 material_qty_report inspection_record id sn bigint character varying 工件SN
122 material_qty_report inspection_record station_no result bigint character varying 结论
123 material_qty_report inspection_record order_no items character varying jsonb 点检项/异常类型列表
124 material_qty_report inspection_record sn photo character varying 拍照文件名
125 material_qty_report inspection_record material_code remark character varying 文字描述/签字
126 material_qty_report inspection_record material_name operator character varying 操作人
127 material_qty_report inspection_record plan_qty process_code bigint 所属工位号(过程巡检所在工位)
128 material_qty_report inspection_record actual_qty step_id bigint 工艺步骤ID(过程巡检逐条关联)
129 material_qty_report inspection_record diff_qty step_name bigint character varying 工艺步骤名称
130 material_qty_report inspection_record cause measured_value character varying 实测值(过程巡检录入)
131 material_qty_report inspection_record status report_no character varying 报检单号
132 material_qty_report inspection_record handle_type material_code character varying 物料编码(图号)
133 material_qty_report inspection_record handle_doc_no material_name character varying 物料名称
134 material_qty_report inspection_record handle_note manufacturer character varying 生产厂家
135 material_qty_report inspection_record handled_by inspection_no character varying 检验单号
136 material_qty_report inspection_record handled_at attachment_ids bigint character varying 附件ID,逗号分隔(关联 attachment 表)
137 material_qty_report inspection_record operator disposal_type character varying 处置类型 退货/返修/退换/报废
138 material_qty_report inspection_record created_at disposal_remark timestamp with time zone character varying 处置说明
139 material_qty_report inspection_record resolved_at batch_sn timestamp with time zone character varying 批次号/SN(联动 WMS 在库处置:序列号=是=SN 序列号=否=批次)
140 material_request inspection_record id related_standard bigint character varying 相关标准/试验方案号(完工检用,随成品回流 WMS)
141 material_request inspection_record request_no test_record_no character varying 试验记录单号(完工检用,随成品回流 WMS)
142 material_request inspection_record order_no created_at character varying timestamp with time zone
143 material_request line_point plan_date id character varying bigint
144 material_request line_point material_code point_type character varying FEED上料位/STATION工位/CACHE缓存位/DOCK接驳台/END末端
145 material_request line_point material_name point_no character varying 点位编号:IN上料位 / 1~10工位 / C1~C8缓存位 / 1-R1接驳台 / END-U上排末端 / END-D下排末端
146 material_request line_point unit label character varying 点位名称
147 material_request line_point req_qty seq double precision bigint 传送带顺序(上料位→工位→末端,用于相邻缓存位判定)
148 material_request line_point status station_no character varying bigint 所属工位号(DOCK/CACHE 归属;0=无)
149 material_request line_point target_dock current_sn character varying 当前存放工件SN(空=空闲)
150 material_request line_point station_no order_no bigint character varying 当前工件所属工单号
151 material_request line_point flow_id occupied bigint boolean 是否占用
152 material_request line_point sent_qty updated_at double precision timestamp with time zone
153 material_request material_qty_report received_qty id double precision bigint
154 material_request material_qty_report received_at station_no bigint 工位号
155 material_request material_qty_report receive_by order_no character varying 工单号
156 material_request material_qty_report source sn character varying 工件SN
157 material_request material_qty_report over_qty material_code double precision character varying 物料编码
158 material_request material_qty_report over_reason material_name character varying 物料名称
159 material_request material_qty_report ref_report_no plan_qty character varying bigint 应发数量
160 material_request material_qty_report need_agv actual_qty boolean bigint 实收数量
161 material_request material_qty_report batch_no diff_qty character varying bigint 差异=应发-实收
162 material_request material_qty_report operator cause character varying 差异原因
163 material_request material_qty_report created_at status timestamp with time zone character varying PENDING/PROCESSING/REPLENISHED/RETURNED/ADJUSTED/CLOSED
164 material_request material_qty_report updated_at handle_type timestamp with time zone character varying 处理方式 REPLENISH补发/RETURN退库/ADJUST调整
165 material_request material_qty_report sn_mode handle_doc_no bigint character varying 处理生成的单据号(补料单号/退库单号)
166 materials material_qty_report id handle_note bigint character varying 处理说明
167 materials material_qty_report code handled_by character varying 处理人
168 materials material_qty_report name handled_at character varying bigint 处理时间(unix 秒)
169 materials material_qty_report spec operator character varying 上报人
170 materials material_qty_report unit created_at character varying timestamp with time zone
171 materials material_qty_report description resolved_at character varying timestamp with time zone
172 materials material_request item_type id bigint
173 materials material_request manage_mode request_no bigint character varying 叫料单号
174 materials material_request template_code material_code character varying 物料编码
175 materials material_request safety_stock material_name bigint character varying
176 materials material_request is_active unit boolean character varying
177 materials material_request sync_pending sn_mode boolean bigint
178 materials material_request created_at req_qty timestamp with time zone double precision 请求量(发起时占用叫料池可用量)
179 materials material_request updated_at status timestamp with time zone character varying
180 materials material_request sn_mode target_dock bigint character varying 目标接驳台(GxR1/GxR2,一单一个托盘)
181 permission material_request id station_no bigint 目标工位号
182 permission material_request code sent_qty character varying double precision 实发量(仓库完成备料时确定,禁单内分批)
183 permission material_request name returned_qty character varying double precision 退库量(整单退;仓库确认收回后叫料池额度回补)
184 permission material_request type source character varying 来源 CALL/REFILL
185 permission material_request parent_code ref_report_no character varying 关联数量不符单号
186 permission material_request path need_agv character varying boolean 是否需要AGV配送到接驳台
187 permission material_request icon agv_task_no character varying AGV 任务号(派车成功后回写)
188 permission material_request sort cross_day bigint boolean 跨日标记:叫料池行含非今日排产(工位预警+仓库可驳回异常)
189 permission material_request remark outbound_no character varying WMS 出库单号(完成备料回写,多个逗号分隔)
190 permission material_request created_at reject_reason timestamp with time zone character varying 驳回理由(仓库拒发时必填)
191 plc_move_cmd material_request id operator bigint character varying
192 plc_move_cmd material_request cmd_no created_at character varying timestamp with time zone
193 plc_move_cmd material_request sn updated_at character varying timestamp with time zone
194 plc_move_cmd materials order_no id character varying bigint
195 plc_move_cmd materials from_point code character varying 物料编码(图号),两库同步唯一业务键
196 plc_move_cmd materials to_point name character varying 物料名称
197 plc_move_cmd materials status spec character varying 规格型号
198 plc_move_cmd materials operator unit character varying 计量单位
199 plc_move_cmd materials message description character varying 说明
200 plc_move_cmd materials created_at item_type timestamp with time zone bigint 物料类别 1原材料/3成品(半成品不是物料类别,「其他」已移除)
201 plc_move_cmd materials updated_at manage_mode timestamp with time zone bigint 类型 1结构件/2电气件/3其他(仅分类,不决定SN行为)
202 plc_send_log materials id sn_mode bigint 是否逐件SN管理 0未选择(必填)/1序列号=是(录SN)/2序列号=否(不录SN)
203 plc_send_log materials order_no template_code character varying 模板编码
204 plc_send_log materials sn safety_stock character varying bigint 安全库存(低于触发缺货预警)
205 plc_send_log materials station_no is_active bigint boolean 启用/停用(两库均不物理删除)
206 plc_send_log materials process_combination sync_pending character varying boolean 推送WMS失败标记,列表请求时异步重推
207 plc_send_log materials process_codes created_at jsonb timestamp with time zone
208 plc_send_log materials status updated_at character varying timestamp with time zone
209 plc_send_log permission send_time id timestamp with time zone bigint
210 plc_send_log permission done_time code timestamp with time zone character varying 权限编码
211 plc_send_log permission ack name boolean character varying 名称
212 plc_send_log permission remark type character varying
213 plc_send_log permission operator parent_code character varying 所属菜单权限码(按钮必填)
214 plc_send_log permission created_at path timestamp with time zone character varying 前端路由
215 process_flow permission id icon bigint character varying
216 process_flow permission name sort character varying bigint
217 process_flow permission pdf_file remark character varying
218 process_flow permission status created_at character varying timestamp with time zone
219 process_flow plc_send_log remark id character varying bigint
220 process_flow plc_send_log created_at order_no timestamp with time zone character varying 工单号
221 process_flow plc_send_log updated_at sn timestamp with time zone character varying 工件SN
222 process_step plc_send_log id station_no bigint 工位号
223 process_step plc_send_log flow_id process_combination bigint character varying 工序组合,如 135
224 process_step plc_send_log seq process_codes bigint jsonb 工序码表
225 process_step plc_send_log name status character varying
226 process_step plc_send_log collect_type send_time character varying timestamp with time zone 下发时间
227 process_step plc_send_log is_torque done_time boolean timestamp with time zone 收到完成信号时间
228 process_step plc_send_log need_check ack boolean 是否收到完成信号
229 process_step plc_send_log attachment remark jsonb character varying
230 process_step plc_send_log remark operator character varying
231 process_step plc_send_log created_at timestamp with time zone
232 process_step process_flow need_operator_sign id boolean bigint
233 process_step process_flow need_inspector_sign name boolean character varying 流程名称,如 3号工位装配流程
234 role process_flow id pdf_file bigint character varying 工艺图纸文件名
235 role process_flow name status character varying
236 role process_flow code remark character varying
237 role process_flow remark created_at character varying timestamp with time zone
238 role process_flow permission_codes updated_at jsonb timestamp with time zone
239 role process_step created_at id timestamp with time zone bigint
240 semi_flow process_step id flow_id bigint 所属工艺流程图ID
241 semi_flow process_step sn seq character varying bigint 步骤序号
242 semi_flow process_step order_no name character varying 步骤名称
243 semi_flow process_step done_process_codes collect_type jsonb character varying 采集方式 AUTO(拧紧枪自动)/MANUAL(手填)/SCAN(扫码,与手填等价采一串字符串)/NONE(仅记录)
244 semi_flow process_step completed_text need_check character varying boolean 是否需要检测确认(报工前须检验通过)
245 semi_flow process_step action need_operator_sign character varying boolean 是否需要操作工签字(报工前须签字确认)
246 semi_flow process_step target_dock need_inspector_sign character varying boolean 是否需要检验员签字(审核通过并签字后放行)
247 semi_flow process_step operator need_audit character varying boolean 是否需要审核人复核签字(审核通过后放行)
248 semi_flow process_step created_at audit_role timestamp with time zone character varying 审核角色(如班组长/工艺员),具该角色的人员可签
249 station process_step id attachment bigint jsonb 本步骤图纸/附件列表 [{name,url}]
250 station process_step station_no remark bigint character varying
251 station process_step name created_at character varying timestamp with time zone
252 station product_process flow_id id bigint
253 station product_process station_type product_code character varying 产品编码(WMS 物料档案 item_type=3 图号)
254 station product_process status product_name character varying 产品名称(快照,WMS 改名不回写)
255 station product_process is_builtin name boolean character varying 产品工艺名称,如 DX100常规
256 station product_process has_dock status boolean character varying
257 station product_process dock_code remark character varying
258 station product_process visible_tabs created_at jsonb timestamp with time zone
259 station product_process_item created_at id timestamp with time zone bigint
260 station_state product_process_item id product_process_id bigint 所属产品工艺ID
261 station_state product_process_item station_no seq bigint 顺序号(从1严格递增,即执行顺序)
262 station_state product_process_item date flow_id character varying bigint 工艺ID(process_flow)
263 station_state product_process_item paused created_at boolean timestamp with time zone
264 station_state role reason id character varying bigint
265 station_state role operator name character varying 角色名称
266 station_state role created_at code timestamp with time zone character varying 角色编码
267 station_state role updated_at remark timestamp with time zone character varying
268 step_criterion role id permission_codes bigint jsonb 权限编码列表,如 produce.workorder:view
269 step_criterion role step_id created_at bigint timestamp with time zone
270 step_criterion semi_flow name id character varying bigint
271 step_criterion semi_flow unit sn character varying 工件SN
272 step_criterion semi_flow logic order_no character varying
273 step_criterion semi_flow target done_process_codes double precision jsonb 已完成工序码(已废除,历史数据保留)
274 step_criterion semi_flow min completed_text double precision character varying 完成至工位快照(如:已完成至工位3;空=尚未报工)
275 step_criterion semi_flow max action double precision character varying
276 step_criterion semi_flow created_at target_dock timestamp with time zone character varying
277 step_data semi_flow id operator bigint character varying
278 step_data semi_flow sn created_at character varying timestamp with time zone
279 step_data station process_id id bigint
280 step_data station step_id station_no bigint 工位号 1..12
281 step_data station step_name name character varying 工位名称
282 step_data station criterion_id flow_id bigint 绑定工艺流程图ID
283 step_data station criterion_name station_type character varying 工位类型 LINE/OFFLINE
284 step_data station criterion_logic status character varying
285 step_data station value is_builtin double precision boolean 内置工位:不可改类型/不可删除
286 step_data station value_text visible_tabs character varying jsonb
287 step_data station is_ok created_at boolean timestamp with time zone
288 step_data station_state operator id character varying bigint
289 step_data station_state created_at station_no timestamp with time zone bigint 工位号
290 step_sign_record station_state id date bigint character varying 生效日期 yyyy-MM-dd(只认当天)
291 step_sign_record station_state sn paused character varying boolean 是否停止接单
292 step_sign_record station_state order_no reason character varying 停单原因(缺料/故障/其他)
293 step_sign_record station_state flow_id operator bigint character varying 操作人
294 step_sign_record station_state station_no created_at character varying timestamp with time zone
295 step_sign_record station_state step_id updated_at bigint timestamp with time zone
296 step_sign_record step_criterion step_name id character varying bigint
297 step_sign_record step_criterion sign_role step_id character varying bigint 步骤ID
298 step_sign_record step_criterion result name character varying 指标名,如 扭矩/角度
299 step_sign_record step_criterion signed_by unit character varying
300 step_sign_record step_criterion signed_at logic timestamp with time zone character varying
301 step_sign_record step_criterion round target bigint double precision 目标值
302 step_sign_record step_criterion source min character varying double precision 范围下限
303 step_sign_record step_criterion remark max character varying double precision 范围上限
304 step_sign_record step_criterion revoked created_at boolean timestamp with time zone
305 step_sign_record step_data revoked_by id character varying bigint
306 step_sign_record step_data revoked_at sn timestamp with time zone character varying 工件SN
307 step_sign_record step_data revoke_reason process_id character varying bigint 工件工序实绩ID
308 step_sign_record step_data created_at step_id timestamp with time zone bigint 步骤ID
309 sys_config step_data id step_name bigint character varying
310 sys_config step_data key criterion_id character varying bigint 考核标准ID
311 sys_config step_data value criterion_name character varying
312 sys_config step_data remark criterion_logic character varying
313 torque_record step_data id value bigint double precision 实际测量值
314 torque_record step_data work_order_no value_text character varying 文本值(OK/NG/钢印号)
315 torque_record step_data sn is_ok character varying boolean 是否合格(可人工修正)
316 torque_record step_data screw_no operator character varying
317 torque_record step_data strain created_at double precision timestamp with time zone
318 torque_record step_sign_record torque id double precision bigint
319 torque_record step_sign_record angle sn double precision character varying 工件SN
320 torque_record step_sign_record result order_no character varying 工单号
321 torque_record step_sign_record operator flow_id character varying bigint 工艺流程ID
322 torque_record step_sign_record station_no character varying 工位号
323 torque_record step_sign_record time step_id timestamp with time zone bigint 工艺步骤ID
324 torque_record step_sign_record created_at step_name timestamp with time zone character varying 步骤名称
325 torque_record step_sign_record operator_id sign_role bigint character varying 签字角色 OPERATOR/INSPECTOR
326 user step_sign_record id result bigint character varying 签字时点的结论 OK/NG
327 user step_sign_record username signed_by character varying 签字人(登录账号)
328 user step_sign_record password signed_at character varying timestamp with time zone 签字时间
329 user step_sign_record name round character varying bigint 返修重做轮次(1=首做)
330 user step_sign_record role_id source bigint character varying 签字来源 station/inspect/migrate
331 user step_sign_record can_login_workstation remark boolean character varying 签字备注(签字弹框选填)
332 user step_sign_record workstation_password revoked character varying boolean 是否已撤销
333 user step_sign_record status revoked_by character varying 撤销人
334 user step_sign_record last_login_at revoked_at bigint timestamp with time zone 撤销时间
335 user step_sign_record created_at revoke_reason timestamp with time zone character varying 撤销原因
336 user step_sign_record updated_at created_at timestamp with time zone
337 user_station sys_config id bigint
338 user_station sys_config user_id key bigint character varying 配置键,如 wms.base_url
339 user_station sys_config station_no value bigint character varying 配置值
340 user_station sys_config created_at remark timestamp with time zone character varying 说明
341 work_order torque_record id bigint
342 work_order torque_record work_order_no character varying workOrder 工单号
343 work_order torque_record product_type_id sn bigint character varying 工件SN
344 work_order torque_record product_code screw_no character varying 螺丝编号 S1..Sn
345 work_order torque_record product_name strain character varying double precision 扭矩 Nm
346 work_order torque_record quantity torque bigint double precision 扭矩别名,与 strain 一致
347 work_order torque_record finished_num angle bigint double precision 角度 °
348 work_order torque_record fail_num result bigint character varying
349 work_order torque_record contract_no operator character varying 操作人
350 work_order torque_record project_no operator_id character varying bigint 操作人用户ID(0=未采集:虚拟工位/PLC路径或历史数据)
351 work_order torque_record product_serial station_no character varying 工位
352 work_order torque_record created_by time character varying timestamp with time zone 采集时间
353 work_order torque_record due_date created_at timestamp with time zone
354 work_order user flow_combination id jsonb bigint
355 work_order user status username character varying 登录名
356 work_order user plan_start password timestamp with time zone character varying bcrypt 密码
357 work_order user plan_end name timestamp with time zone character varying 姓名/显示名
358 work_order user context role_id jsonb bigint 角色ID
359 work_order user completed_at can_login_workstation timestamp with time zone boolean 是否允许登录工位终端
360 work_order user created_at workstation_password timestamp with time zone character varying 工位终端密码(bcrypt)
361 work_order user updated_at status timestamp with time zone character varying
362 work_order user ownership_type last_login_at character varying bigint 最近登录时间(unix秒,后台登录更新;工位终端登录不计)
363 workpiece user id created_at bigint timestamp with time zone
364 workpiece user sn updated_at character varying timestamp with time zone
365 workpiece user_station order_no id character varying bigint
366 workpiece user_station work_order_id user_id bigint 用户ID
367 workpiece user_station current_station_no station_no bigint 工位号 1..12
368 workpiece user_station status created_at character varying timestamp with time zone
369 workpiece work_order online_at id timestamp with time zone bigint
370 workpiece work_order done_at work_order_no timestamp with time zone character varying 工单号
371 workpiece work_order created_at product_type_id timestamp with time zone bigint 产品类型ID
372 workpiece work_order updated_at product_code timestamp with time zone character varying 产品编码
373 workpiece_bind work_order id product_name bigint character varying
374 workpiece_bind work_order sn quantity character varying bigint 工件数量
375 workpiece_bind work_order order_no finished_num character varying bigint 完成数量
376 workpiece_bind work_order flow_id fail_num bigint NG数量
377 workpiece_bind work_order station_no contract_no character varying 归属编号(合同号或科技项目号,随归属类型二选一)
378 workpiece_bind work_order material_code ownership_type character varying 归属类型:workorder=合同号/project=科技项目号/other=其他
379 workpiece_bind work_order material_name project_no character varying 工程编号(已废弃,保留防历史数据迁移)
380 workpiece_bind work_order spec product_serial character varying 产品序号(工单内每台产品的序号)
381 workpiece_bind work_order unit created_by character varying 创建人
382 workpiece_bind work_order bind_value due_date character varying timestamp with time zone 完成日期(必填)
383 workpiece_bind work_order bind_type flow_combination character varying jsonb 工艺组合 [{flowId,stationNo}] 按工位号升序
384 workpiece_bind work_order operator product_process_id character varying bigint 来源产品工艺ID(0=无来源)
385 workpiece_bind work_order created_at status timestamp with time zone character varying
386 workpiece_bind work_order sn_mode plan_start bigint timestamp with time zone 计划开始
387 workpiece_process work_order id plan_end bigint timestamp with time zone 计划结束
388 workpiece_process work_order sn context character varying jsonb 扩展字段
389 workpiece_process work_order flow_id completed_at bigint timestamp with time zone
390 workpiece_process work_order station_no created_at character varying timestamp with time zone
391 workpiece_process work_order order_no updated_at character varying timestamp with time zone
392 workpiece_process workpiece process_name id character varying bigint
393 workpiece_process workpiece status sn character varying 工件唯一SN
394 workpiece_process workpiece operator order_no character varying 所属工单
395 workpiece_process workpiece result work_order_id character varying bigint 工单ID
396 workpiece_process workpiece started_at current_station_no timestamp with time zone bigint 业务位置:最后完成报工的工位号(0=未报任何工艺;下一道=工艺组合中工位号更大的下一条)
397 workpiece_process workpiece ended_at at_station_no timestamp with time zone bigint 物理位置:工件当前实际所在工位号(0=未在工位;建档/到达即写,完工/入库清空)
398 workpiece_process workpiece duration_sec status bigint character varying
399 workpiece_process workpiece remark online_at character varying timestamp with time zone 进线时间
400 workpiece_process workpiece created_at done_at timestamp with time zone 完工时间
401 workpiece_process workpiece operator_id created_at bigint timestamp with time zone
402 (400 rows) workpiece updated_at timestamp with time zone
403 workpiece torque_ng_pending boolean 拧紧扭矩不合格待人工处置标记
404 workpiece torque_ng_at timestamp with time zone 拧紧不合格标记时间
405 workpiece torque_ng_by character varying 拧紧不合格标记操作人
406 workpiece_bind id bigint
407 workpiece_bind sn character varying 工件SN
408 workpiece_bind order_no character varying 工单号
409 workpiece_bind flow_id bigint 装配工艺ID
410 workpiece_bind station_no character varying 绑定工位
411 workpiece_bind material_code character varying 物料编码
412 workpiece_bind material_name character varying 物料名称
413 workpiece_bind spec character varying 规格
414 workpiece_bind unit character varying 单位
415 workpiece_bind sn_mode bigint
416 workpiece_bind bind_value character varying 绑定值:批次号 或 SN
417 workpiece_bind bind_type character varying
418 workpiece_bind operator character varying 操作人
419 workpiece_bind created_at timestamp with time zone 绑定时间
420 workpiece_lifecycle_log id bigint
421 workpiece_lifecycle_log sn character varying 工件SN
422 workpiece_lifecycle_log work_order_no character varying 所属工单
423 workpiece_lifecycle_log action character varying 状态动作:NEW/ONLINE/REPORT/SEMI_IN/SEMI_OUT/DONE/SCRAPPED
424 workpiece_lifecycle_log from_status character varying 变更前状态
425 workpiece_lifecycle_log to_status character varying 变更后状态
426 workpiece_lifecycle_log station_no bigint 关联工位号
427 workpiece_lifecycle_log flow_seq bigint 工艺序号(工序顺序)
428 workpiece_lifecycle_log operator character varying 操作人
429 workpiece_lifecycle_log source character varying 来源:workstation/mes/admin/reconcile
430 workpiece_lifecycle_log remark character varying 备注
431 workpiece_lifecycle_log created_at timestamp with time zone
432 workpiece_process id bigint
433 workpiece_process sn character varying 工件SN
434 workpiece_process flow_id bigint 完成的工艺ID
435 workpiece_process station_no character varying 工位号
436 workpiece_process order_no character varying
437 workpiece_process process_name character varying
438 workpiece_process status character varying
439 workpiece_process operator character varying
440 workpiece_process operator_id bigint 操作人用户ID(0=未采集:虚拟工位/PLC路径或历史数据)
441 workpiece_process result character varying 总判定 OK/NG
442 workpiece_process started_at timestamp with time zone
443 workpiece_process ended_at timestamp with time zone
444 workpiece_process duration_sec bigint 作业时长(秒)=endedAt-startedAt
445 workpiece_process remark character varying
446 workpiece_process created_at timestamp with time zone