{ "crm_business": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "name", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "商机名称" }, { "Field": "customer_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "客户编号" }, { "Field": "follow_up_status", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "跟进状态" }, { "Field": "contact_last_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最后跟进时间" }, { "Field": "contact_next_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "下次联系时间" }, { "Field": "owner_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "负责人的用户编号" }, { "Field": "status_type_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "商机状态组编号" }, { "Field": "status_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "商机状态编号" }, { "Field": "end_status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "结束状态" }, { "Field": "end_remark", "Type": "varchar(500)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "结束时的备注" }, { "Field": "deal_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "预计成交日期" }, { "Field": "total_product_price", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产品总金额,单位:元" }, { "Field": "discount_percent", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "整单折扣,百分比" }, { "Field": "total_price", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "商机总金额,单位:元" }, { "Field": "order_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "关联 ERP 销售订单编号" }, { "Field": "order_no", "Type": "varchar(32)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "ERP 销售订单单号" }, { "Field": "remark", "Type": "varchar(500)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "最后更新时间" }, { "Field": "deleted", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 1156, "latest": [ { "id": 1156, "name": "青海爱嘉星际文化旅游有限公-商机-26000114", "customer_id": 1611, "follow_up_status": 0, "contact_last_time": null, "contact_next_time": null, "owner_user_id": 291, "status_type_id": 1, "status_id": 5, "end_status": 1, "end_remark": null, "deal_time": "2026-08-05 00:00:00", "total_product_price": null, "discount_percent": null, "total_price": "2990.010000", "order_id": null, "order_no": null, "remark": null, "creator": "291", "create_time": "2026-08-05 00:00:00", "updater": "291", "update_time": "2026-08-05 00:00:00", "deleted": 0 }, { "id": 1155, "name": "青海南玻新能源科技有限公司-商机-26000115", "customer_id": 1610, "follow_up_status": 0, "contact_last_time": null, "contact_next_time": null, "owner_user_id": 291, "status_type_id": 1, "status_id": 5, "end_status": 1, "end_remark": null, "deal_time": "2026-08-05 00:00:00", "total_product_price": null, "discount_percent": null, "total_price": "2580.000000", "order_id": null, "order_no": null, "remark": null, "creator": "291", "create_time": "2026-08-05 00:00:00", "updater": "291", "update_time": "2026-08-05 00:00:00", "deleted": 0 }, { "id": 1154, "name": "电商-商机-26000113", "customer_id": 1609, "follow_up_status": 0, "contact_last_time": null, "contact_next_time": null, "owner_user_id": 291, "status_type_id": 1, "status_id": 5, "end_status": 1, "end_remark": null, "deal_time": "2026-08-04 00:00:00", "total_product_price": null, "discount_percent": null, "total_price": "1800.000000", "order_id": null, "order_no": null, "remark": null, "creator": "291", "create_time": "2026-08-04 00:00:00", "updater": "291", "update_time": "2026-08-04 00:00:00", "deleted": 0 } ] }, "crm_business_product": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "主键" }, { "Field": "business_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "商机编号" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "MDM 物料编号" }, { "Field": "item_unit_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "计量单位编号" }, { "Field": "item_price", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料原价,单位:元" }, { "Field": "business_price", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "商机价格,单位:元" }, { "Field": "count", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数量" }, { "Field": "total_price", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "总计价格,单位:元" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "最后更新时间" }, { "Field": "deleted", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 42106, "latest": [ { "id": 84212, "business_id": 1138, "item_id": 559, "item_unit_id": 24, "item_price": "5280.000000", "business_price": "5280.000000", "count": "1.000000", "total_price": "5280.000000", "creator": "291", "create_time": "2026-09-18 17:59:33", "updater": "291", "update_time": "2026-09-20 16:58:50", "deleted": 0 }, { "id": 84211, "business_id": 1138, "item_id": 558, "item_unit_id": 24, "item_price": "4280.000000", "business_price": "4280.000000", "count": "2.000000", "total_price": "8560.000000", "creator": "291", "create_time": "2026-09-18 17:59:33", "updater": "291", "update_time": "2026-09-20 16:58:50", "deleted": 0 }, { "id": 84210, "business_id": 1138, "item_id": 557, "item_unit_id": 24, "item_price": "7680.000000", "business_price": "7680.000000", "count": "3.000000", "total_price": "23040.000000", "creator": "291", "create_time": "2026-09-18 17:59:33", "updater": "291", "update_time": "2026-09-20 16:58:50", "deleted": 0 } ] }, "crm_business_status": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "主键" }, { "Field": "type_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态类型编号" }, { "Field": "name", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态名" }, { "Field": "percent", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "赢单率,百分比" }, { "Field": "sort", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "排序" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "最后更新时间" }, { "Field": "deleted", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 11, "latest": [ { "id": 11, "type_id": 2, "name": "待签约", "percent": 90, "sort": 5, "creator": "291", "create_time": "2026-10-12 23:08:44", "updater": "291", "update_time": "2026-10-12 23:09:43", "deleted": 0 }, { "id": 10, "type_id": 2, "name": "商务谈判", "percent": 80, "sort": 4, "creator": "291", "create_time": "2026-10-12 23:08:44", "updater": "291", "update_time": "2026-10-12 23:09:43", "deleted": 0 }, { "id": 9, "type_id": 2, "name": "待现场洽谈", "percent": 60, "sort": 3, "creator": "291", "create_time": "2026-10-12 23:08:44", "updater": "291", "update_time": "2026-10-12 23:09:43", "deleted": 0 } ] }, "crm_business_status_type": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "主键" }, { "Field": "name", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态类型名" }, { "Field": "dept_ids", "Type": "varchar(2048)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "使用的部门编号" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "最后更新时间" }, { "Field": "deleted", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 2, "latest": [ { "id": 2, "name": "电销流程", "dept_ids": "121", "creator": "291", "create_time": "2026-10-12 23:08:44", "updater": "291", "update_time": "2026-10-12 23:09:43", "deleted": 0 }, { "id": 1, "name": "标准直销流程", "dept_ids": "121,124", "creator": "291", "create_time": "2026-10-12 16:45:06", "updater": "291", "update_time": "2026-10-12 16:45:31", "deleted": 0 } ] }, "crm_clue": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号,主键自增" }, { "Field": "name", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "线索名称" }, { "Field": "follow_up_status", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "跟进状态" }, { "Field": "contact_last_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最后跟进时间" }, { "Field": "contact_last_content", "Type": "varchar(500)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最后跟进内容" }, { "Field": "contact_next_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "下次联系时间" }, { "Field": "owner_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "负责人的用户编号" }, { "Field": "transform_status", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "转化状态" }, { "Field": "customer_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "客户编号" }, { "Field": "mobile", "Type": "varchar(20)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "手机号" }, { "Field": "telephone", "Type": "varchar(20)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "电话" }, { "Field": "qq", "Type": "varchar(20)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "QQ" }, { "Field": "wechat", "Type": "varchar(50)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "微信" }, { "Field": "email", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "邮箱" }, { "Field": "area_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "所在地" }, { "Field": "detail_address", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "详细地址" }, { "Field": "industry_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "所属行业" }, { "Field": "level", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "客户等级" }, { "Field": "source", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "客户来源" }, { "Field": "remark", "Type": "varchar(500)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "最后更新时间" }, { "Field": "deleted", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 1138, "latest": [ { "id": 1138, "name": "鸿清源(三明)医药有限公司", "follow_up_status": 1, "contact_last_time": "2026-10-13 11:29:32", "contact_last_content": "信息整理:已梳理线索【鸿清源(三明)医药有限公司】的现有业务档案。行业:商业服务;来源:邮件咨询。档案中已登记电话、邮箱。线索尚未转化,后续可核实需求、采购职责及合作条件,具备条件时再推进客户转化。本次完成资料梳理并记录待办处理结果。", "contact_next_time": "2026-10-30 17:38:05", "owner_user_id": 291, "transform_status": 0, "customer_id": null, "mobile": null, "telephone": "0591-7668062", "qq": null, "wechat": null, "email": "guojianbo1981@163.com", "area_id": 350400, "detail_address": "三明市明溪县三明医药集团公司", "industry_id": 4, "level": null, "source": 10, "remark": null, "creator": "291", "create_time": "2026-09-18 17:59:57", "updater": "0", "update_time": "2026-10-13 11:29:32", "deleted": 0 }, { "id": 1137, "name": "北京同仁堂商业投资集团有限公司 (32091东四药店)", "follow_up_status": 1, "contact_last_time": "2026-10-06 13:27:53", "contact_last_content": "邮件确认国庆档期订货量与到货时间", "contact_next_time": "2026-11-04 14:38:03", "owner_user_id": 291, "transform_status": 0, "customer_id": null, "mobile": null, "telephone": "010-57012849", "qq": null, "wechat": null, "email": "chengjunjie@foxmail.com", "area_id": 110100, "detail_address": "北京市东城区北京同仁堂(东四店)", "industry_id": 4, "level": 2, "source": 10, "remark": null, "creator": "291", "create_time": "2026-09-18 17:57:40", "updater": "291", "update_time": "2026-10-09 13:06:19", "deleted": 0 }, { "id": 1136, "name": "北京同仁堂商业投资集团有限公司 (32023梨园店)", "follow_up_status": 1, "contact_last_time": "2026-10-13 11:29:32", "contact_last_content": "资料跟进:已梳理线索【北京同仁堂商业投资集团有限公司 (32023梨园店)】的现有业务档案。行业:商业服务;级别:C (非优先客户);来源:邮件咨询。档案中已登记邮箱。线索尚未转化,后续可核实需求、采购职责及合作条件,具备条件时再推进客户转化。本次完成资料梳理并记录待办处理结果。", "contact_next_time": null, "owner_user_id": 291, "transform_status": 0, "customer_id": null, "mobile": null, "telephone": null, "qq": null, "wechat": null, "email": "zhouxiaofeng@163.com", "area_id": 110100, "detail_address": "北京市通州区北京同仁堂(梨园街药店)", "industry_id": 4, "level": 3, "source": 10, "remark": null, "creator": "291", "create_time": "2026-09-18 17:56:48", "updater": "0", "update_time": "2026-10-13 11:29:32", "deleted": 0 } ] }, "crm_contact": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "主键" }, { "Field": "name", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "联系人姓名" }, { "Field": "customer_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "客户编号" }, { "Field": "contact_last_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最后跟进时间" }, { "Field": "contact_last_content", "Type": "varchar(500)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最后跟进内容" }, { "Field": "contact_next_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "下次联系时间" }, { "Field": "owner_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "负责人用户编号" }, { "Field": "mobile", "Type": "varchar(20)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "手机号" }, { "Field": "telephone", "Type": "varchar(20)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "电话" }, { "Field": "email", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "电子邮箱" }, { "Field": "qq", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "QQ" }, { "Field": "wechat", "Type": "varchar(50)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "微信" }, { "Field": "area_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "所在地" }, { "Field": "detail_address", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "详细地址" }, { "Field": "sex", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "性别" }, { "Field": "master", "Type": "tinyint(1)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否关键决策人" }, { "Field": "post", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "职位" }, { "Field": "parent_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "直属上级" }, { "Field": "remark", "Type": "varchar(500)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "最后更新时间" }, { "Field": "deleted", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 247, "latest": [ { "id": 247, "name": "陆建平", "customer_id": 1054, "contact_last_time": "2026-10-04 11:10:38", "contact_last_content": "邮件发送新品报价单,等待内部评估", "contact_next_time": "2026-10-24 09:26:27", "owner_user_id": 291, "mobile": null, "telephone": null, "email": "lujianping1994@foxmail.com", "qq": null, "wechat": null, "area_id": 510100, "detail_address": null, "sex": 1, "master": 1, "post": "店长", "parent_id": null, "remark": "该客户采购由其一人拍板,注意日常维护", "creator": "291", "create_time": "2026-09-18 10:04:38", "updater": "291", "update_time": "2026-09-18 10:34:35", "deleted": 0 }, { "id": 246, "name": "高敏", "customer_id": 1050, "contact_last_time": "2026-10-09 20:45:52", "contact_last_content": "邮件发送新品报价单,等待内部评估", "contact_next_time": "2026-10-14 14:41:35", "owner_user_id": 291, "mobile": null, "telephone": null, "email": "gaomin_232@qq.com", "qq": 103238338, "wechat": null, "area_id": 310100, "detail_address": null, "sex": 2, "master": 0, "post": "办公室主任", "parent_id": null, "remark": "习惯邮件沟通,出差期间回复较慢", "creator": "291", "create_time": "2026-09-17 12:20:48", "updater": "291", "update_time": "2026-09-17 12:50:44", "deleted": 0 }, { "id": 245, "name": "高婉婷", "customer_id": 1050, "contact_last_time": "2026-10-01 18:01:10", "contact_last_content": "微信发送新品图片与报价,等待门店确认", "contact_next_time": "2026-10-28 09:57:28", "owner_user_id": 291, "mobile": "15977204586", "telephone": null, "email": null, "qq": null, "wechat": "15977204586", "area_id": 310100, "detail_address": null, "sex": 1, "master": 1, "post": "办公室主任", "parent_id": null, "remark": null, "creator": "291", "create_time": "2026-09-17 12:54:55", "updater": "291", "update_time": "2026-09-17 13:05:33", "deleted": 0 } ] }, "crm_contact_business": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "主键" }, { "Field": "contact_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "联系人编号" }, { "Field": "business_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "商机编号" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "最后更新时间" }, { "Field": "deleted", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "crm_contract": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "合同编号" }, { "Field": "name", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "合同名称" }, { "Field": "no", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "合同编号" }, { "Field": "customer_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "客户编号" }, { "Field": "business_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "商机编号" }, { "Field": "contact_last_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最后跟进时间" }, { "Field": "owner_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "负责人的用户编号" }, { "Field": "process_instance_id", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工作流编号" }, { "Field": "audit_status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "审批状态" }, { "Field": "order_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "下单日期" }, { "Field": "start_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "开始时间" }, { "Field": "end_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "结束时间" }, { "Field": "total_product_price", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产品总金额,单位:元" }, { "Field": "discount_percent", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "整单折扣" }, { "Field": "total_price", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "合同总金额,单位:分" }, { "Field": "deposit_price", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "定金金额,单位:元" }, { "Field": "order_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "关联 ERP 销售订单编号" }, { "Field": "order_no", "Type": "varchar(32)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "ERP 销售订单单号" }, { "Field": "sign_contact_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "客户签约人" }, { "Field": "sign_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "公司签约人" }, { "Field": "remark", "Type": "varchar(500)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "最后更新时间" }, { "Field": "deleted", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 22, "latest": [ { "id": 533, "name": "青海爱嘉星际文化旅游有限公-202609-L078", "no": "HT-202609-L078", "customer_id": 1611, "business_id": 1156, "contact_last_time": null, "owner_user_id": 291, "process_instance_id": null, "audit_status": 20, "order_date": "2026-09-28 00:00:00", "start_time": null, "end_time": null, "total_product_price": "2990.010000", "discount_percent": "0.000000", "total_price": "2990.010000", "deposit_price": "0.000000", "order_id": 1044, "order_no": "26000114", "sign_contact_id": null, "sign_user_id": null, "remark": "已回款(银行转账);(青海爱嘉星际文化旅游有限公)开专票两张,票号26632000000230691841、26632000000230838946", "creator": "291", "create_time": "2026-09-28 00:00:00", "updater": "291", "update_time": "2026-10-14 15:56:05", "deleted": 0 }, { "id": 532, "name": "青海南玻新能源科技有限公司-202609-L077", "no": "HT-202609-L077", "customer_id": 1610, "business_id": 1155, "contact_last_time": null, "owner_user_id": 291, "process_instance_id": null, "audit_status": 20, "order_date": "2026-09-28 00:00:00", "start_time": null, "end_time": null, "total_product_price": "2580.000000", "discount_percent": "0.000000", "total_price": "2580.000000", "deposit_price": "0.000000", "order_id": 1043, "order_no": "26000115", "sign_contact_id": null, "sign_user_id": null, "remark": "未回款;(青海南玻新能源科技有限公司0开专票一张,票号26632000000231150601", "creator": "291", "create_time": "2026-09-28 00:00:00", "updater": "291", "update_time": "2026-10-14 15:56:04", "deleted": 0 }, { "id": 531, "name": "电商-202609-L076", "no": "HT-202609-L076", "customer_id": 1609, "business_id": 1154, "contact_last_time": null, "owner_user_id": 291, "process_instance_id": null, "audit_status": 20, "order_date": "2026-09-11 00:00:00", "start_time": null, "end_time": null, "total_product_price": "1800.000000", "discount_percent": "0.000000", "total_price": "1800.000000", "deposit_price": "0.000000", "order_id": 1042, "order_no": "26000113", "sign_contact_id": null, "sign_user_id": null, "remark": "已回款(银行转账);2026.9.11杜亚楠销售,已确认无需开票", "creator": "291", "create_time": "2026-09-11 00:00:00", "updater": "291", "update_time": "2026-10-14 15:56:04", "deleted": 0 } ] }, "crm_contract_config": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "notify_enabled", "Type": "tinyint(1)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否开启提前提醒" }, { "Field": "notify_days", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "提前提醒天数" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "最后更新时间" }, { "Field": "deleted", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 1, "latest": [ { "id": 1, "notify_enabled": 1, "notify_days": 30, "creator": "291", "create_time": "2026-10-12 16:29:24", "updater": "291", "update_time": "2026-10-12 16:29:24", "deleted": 0 } ] }, "crm_contract_product": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "主键" }, { "Field": "contract_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "合同编号" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "MDM物料编号" }, { "Field": "item_unit_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "计量单位编号" }, { "Field": "item_price", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料原价(冗余)" }, { "Field": "contract_price", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "合同价格,单位:元" }, { "Field": "count", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数量" }, { "Field": "total_price", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "总计价格,单位:元" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "最后更新时间" }, { "Field": "deleted", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 76, "latest": [ { "id": 2123, "contract_id": 533, "item_id": 1118, "item_unit_id": 9, "item_price": "328.000580", "contract_price": "328.000580", "count": "5.000000", "total_price": "1640.000000", "creator": "291", "create_time": "2026-09-28 00:00:00", "updater": "291", "update_time": "2026-10-13 14:13:07", "deleted": 0 }, { "id": 2122, "contract_id": 533, "item_id": 509, "item_unit_id": 9, "item_price": "30.000473", "contract_price": "30.000473", "count": "11.000000", "total_price": "330.010000", "creator": "291", "create_time": "2026-09-28 00:00:00", "updater": "291", "update_time": "2026-10-13 14:13:07", "deleted": 0 }, { "id": 2121, "contract_id": 533, "item_id": 497, "item_unit_id": 9, "item_price": "19.999924", "contract_price": "19.999924", "count": "21.000000", "total_price": "420.000000", "creator": "291", "create_time": "2026-09-28 00:00:00", "updater": "291", "update_time": "2026-10-13 14:13:07", "deleted": 0 } ] }, "crm_customer": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "name", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "客户名称" }, { "Field": "follow_up_status", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "跟进状态" }, { "Field": "contact_last_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最后跟进时间" }, { "Field": "contact_last_content", "Type": "varchar(500)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最后跟进内容" }, { "Field": "contact_next_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "下次联系时间" }, { "Field": "owner_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "负责人的用户编号" }, { "Field": "owner_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "成为负责人的时间" }, { "Field": "lock_status", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "锁定状态" }, { "Field": "deal_status", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "成交状态" }, { "Field": "auto_pool_enabled", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'1'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否流入公海:关闭后禁止自动流入并取消公海可见度" }, { "Field": "mobile", "Type": "varchar(20)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "手机" }, { "Field": "telephone", "Type": "varchar(20)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "电话" }, { "Field": "qq", "Type": "varchar(20)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "QQ" }, { "Field": "wechat", "Type": "varchar(50)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "微信" }, { "Field": "email", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "邮箱" }, { "Field": "area_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "所在地" }, { "Field": "detail_address", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "详细地址" }, { "Field": "industry_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "所属行业" }, { "Field": "level", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "客户等级" }, { "Field": "source", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "客户来源" }, { "Field": "remark", "Type": "varchar(500)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "最后更新时间" }, { "Field": "deleted", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 1402, "latest": [ { "id": 1611, "name": "青海爱嘉星际文化旅游有限公", "follow_up_status": 1, "contact_last_time": "2026-10-14 08:58:38", "contact_last_content": "15号跟进", "contact_next_time": "2026-10-15 13:19:11", "owner_user_id": 291, "owner_time": "2026-10-13 12:33:03", "lock_status": 0, "deal_status": 1, "auto_pool_enabled": "b'\\x01'", "mobile": null, "telephone": null, "qq": null, "wechat": null, "email": null, "area_id": null, "detail_address": "青海省西宁市城西区五四大街33号(占位)", "industry_id": null, "level": 1, "source": null, "remark": "九月销售台账补录;来源客户号52321;原备注:已回款(银行转账);(青海爱嘉星际文化旅游有限公)开专票两张,票号26632000000230691841、26632000000230838946", "creator": "291", "create_time": "2026-10-13 12:33:03", "updater": "291", "update_time": "2026-10-14 17:29:58", "deleted": 0 }, { "id": 1610, "name": "青海南玻新能源科技有限公司", "follow_up_status": 1, "contact_last_time": "2026-10-14 10:17:13", "contact_last_content": "15号跟进", "contact_next_time": "2026-10-15 13:18:56", "owner_user_id": 291, "owner_time": "2026-10-13 12:33:03", "lock_status": 0, "deal_status": 1, "auto_pool_enabled": "b'\\x01'", "mobile": null, "telephone": null, "qq": null, "wechat": null, "email": null, "area_id": null, "detail_address": "青海省西宁市城中区南关街18号(占位)", "industry_id": null, "level": 1, "source": null, "remark": "九月销售台账补录;来源客户号52321;原备注:未回款;(青海南玻新能源科技有限公司0开专票一张,票号26632000000231150601", "creator": "291", "create_time": "2026-10-13 12:33:03", "updater": "291", "update_time": "2026-10-14 17:29:58", "deleted": 0 }, { "id": 1609, "name": "电商", "follow_up_status": 1, "contact_last_time": "2026-10-13 14:26:00", "contact_last_content": "15号跟进", "contact_next_time": "2026-10-15 13:18:40", "owner_user_id": 291, "owner_time": "2026-10-13 12:33:03", "lock_status": 0, "deal_status": 1, "auto_pool_enabled": "b'\\x01'", "mobile": null, "telephone": null, "qq": null, "wechat": null, "email": null, "area_id": null, "detail_address": "北京市朝阳区望京东园电商配送中心(占位)", "industry_id": null, "level": 1, "source": null, "remark": "九月销售台账补录;来源客户号50122;原备注:已回款(银行转账);2026.9.11杜亚楠销售,已确认无需开票", "creator": "291", "create_time": "2026-10-13 12:33:03", "updater": "291", "update_time": "2026-10-14 17:29:58", "deleted": 0 } ] }, "crm_customer_limit_config": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "type", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "规则类型" }, { "Field": "user_ids", "Type": "varchar(2048)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "规则适用人群" }, { "Field": "dept_ids", "Type": "varchar(2048)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "规则适用部门" }, { "Field": "max_count", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数量上限" }, { "Field": "deal_count_enabled", "Type": "tinyint(1)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "成交客户是否占有拥有客户数" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "最后更新时间" }, { "Field": "deleted", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "crm_customer_pool_config": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "enabled", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否启用客户公海" }, { "Field": "contact_expire_days", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "未跟进放入公海天数" }, { "Field": "deal_expire_days", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "未成交放入公海天数" }, { "Field": "notify_enabled", "Type": "tinyint(1)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否开启提前提醒" }, { "Field": "notify_days", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "提前提醒天数" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "最后更新时间" }, { "Field": "deleted", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "crm_follow_up_record": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "biz_type", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数据类型" }, { "Field": "biz_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数据编号" }, { "Field": "type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "跟进类型" }, { "Field": "content", "Type": "varchar(2000)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "跟进内容" }, { "Field": "next_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "下次联系时间" }, { "Field": "pic_urls", "Type": "varchar(2048)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "图片" }, { "Field": "business_ids", "Type": "varchar(2048)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "关联的商机编号数组" }, { "Field": "contact_ids", "Type": "varchar(2048)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "关联的联系人编号数组" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "最后更新时间" }, { "Field": "deleted", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 1780, "latest": [ { "id": 1780, "biz_type": 2, "biz_id": 1611, "type": 1, "content": "15号跟进", "next_time": "2026-10-15 13:19:11", "pic_urls": null, "business_ids": null, "contact_ids": null, "creator": "291", "create_time": "2026-10-14 08:58:38", "updater": "291", "update_time": "2026-10-14 08:58:38", "deleted": 0 }, { "id": 1779, "biz_type": 2, "biz_id": 1610, "type": 1, "content": "15号跟进", "next_time": "2026-10-15 13:18:56", "pic_urls": null, "business_ids": null, "contact_ids": null, "creator": "291", "create_time": "2026-10-14 10:17:13", "updater": "291", "update_time": "2026-10-14 10:17:13", "deleted": 0 }, { "id": 1778, "biz_type": 2, "biz_id": 1609, "type": 4, "content": "15号跟进", "next_time": "2026-10-15 13:18:40", "pic_urls": null, "business_ids": null, "contact_ids": null, "creator": "291", "create_time": "2026-10-13 14:26:00", "updater": "291", "update_time": "2026-10-13 14:26:00", "deleted": 0 } ] }, "crm_invoice": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "ID" }, { "Field": "no", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "开票编号" }, { "Field": "customer_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "客户编号" }, { "Field": "contract_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "合同编号" }, { "Field": "owner_user_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "负责人编号" }, { "Field": "invoice_type", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "发票类型(字典 crm_invoice_type)" }, { "Field": "invoice_no", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "发票号码" }, { "Field": "invoice_title", "Type": "varchar(255)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "发票抬头" }, { "Field": "price", "Type": "decimal(18,2)", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "开票金额(元)" }, { "Field": "invoice_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "开票日期" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "process_instance_id", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工作流编号" }, { "Field": "audit_status", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "审批状态(crm_audit_status)" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "最后更新时间" }, { "Field": "deleted", "Type": "tinyint", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 21, "latest": [ { "id": 21, "no": "KP-202609-L078", "customer_id": 1611, "contract_id": 533, "owner_user_id": 291, "invoice_type": 1, "invoice_no": "26632000000230691841/26632000000230838946", "invoice_title": "青海爱嘉星际文化旅游有限公", "price": "2990.01", "invoice_time": "2026-09-28 00:00:00", "remark": "九月台账202609-L078;原票据未提供附件。两张发票合并登记;只有合计金额,未分配单张金额,不代表单张发票。已回款(银行转账);(青海爱嘉星际文化旅游有限公)开专票两张,票号26632000000230691841、26632000000230838946", "process_instance_id": null, "audit_status": 20, "creator": "291", "create_time": "2026-09-28 00:00:00", "updater": "291", "update_time": "2026-10-13 14:13:07", "deleted": 0 }, { "id": 20, "no": "KP-202609-L077", "customer_id": 1610, "contract_id": 532, "owner_user_id": 291, "invoice_type": 1, "invoice_no": "26632000000231150601", "invoice_title": "青海南玻新能源科技有限公司", "price": "2580.00", "invoice_time": "2026-09-28 00:00:00", "remark": "九月台账202609-L077;原票据未提供附件。未回款;(青海南玻新能源科技有限公司0开专票一张,票号26632000000231150601", "process_instance_id": null, "audit_status": 20, "creator": "291", "create_time": "2026-09-28 00:00:00", "updater": "291", "update_time": "2026-10-13 14:13:07", "deleted": 0 }, { "id": 19, "no": "KP-202609-L074", "customer_id": 1608, "contract_id": 530, "owner_user_id": 291, "invoice_type": 1, "invoice_no": "26632000000224670586", "invoice_title": "广州北纬纯净食品有限公司", "price": "23999.99", "invoice_time": "2026-09-21 00:00:00", "remark": "九月台账202609-L074;原票据未提供附件。未回款;(广州北纬纯净食品有限公司)开专票一张,票号26632000000224670586", "process_instance_id": null, "audit_status": 20, "creator": "291", "create_time": "2026-09-21 00:00:00", "updater": "291", "update_time": "2026-10-13 14:13:07", "deleted": 0 } ] }, "crm_permission": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号,主键自增" }, { "Field": "biz_type", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数据类型" }, { "Field": "biz_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数据编号" }, { "Field": "user_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "用户编号" }, { "Field": "level", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "权限级别" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "最后更新时间" }, { "Field": "deleted", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 2802, "latest": [ { "id": 4078, "biz_type": 2, "biz_id": 1381, "user_id": 291, "level": 1, "creator": "291", "create_time": "2026-10-13 12:37:48", "updater": "291", "update_time": "2026-10-13 12:37:48", "deleted": 0 }, { "id": 4077, "biz_type": 2, "biz_id": 1359, "user_id": 291, "level": 1, "creator": "291", "create_time": "2026-10-13 12:37:48", "updater": "291", "update_time": "2026-10-13 12:37:48", "deleted": 0 }, { "id": 4076, "biz_type": 2, "biz_id": 1358, "user_id": 291, "level": 1, "creator": "291", "create_time": "2026-10-13 12:37:48", "updater": "291", "update_time": "2026-10-13 12:37:48", "deleted": 0 } ] }, "crm_receivable": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "ID" }, { "Field": "no", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "回款编号" }, { "Field": "plan_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "回款计划编号" }, { "Field": "customer_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "客户编号" }, { "Field": "contract_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "合同编号" }, { "Field": "invoice_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "关联的开票编号,关联 crm_invoice.id" }, { "Field": "owner_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "负责人编号" }, { "Field": "return_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "回款日期" }, { "Field": "return_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "回款方式" }, { "Field": "price", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "计划回款金额,单位:元" }, { "Field": "remark", "Type": "varchar(500)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "process_instance_id", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工作流编号" }, { "Field": "audit_status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "审批状态" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "最后更新时间" }, { "Field": "deleted", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 5, "latest": [ { "id": 5, "no": "HK-202609-L078", "plan_id": null, "customer_id": 1611, "contract_id": 533, "invoice_id": null, "owner_user_id": 291, "return_time": "2026-09-28 00:00:00", "return_type": 8, "price": "2990.010000", "remark": "九月台账202609-L078;已回款(银行转账);用户确认到账日期取开票日;无票电商取备注销售日。原票号26632000000230691841/26632000000230838946。暂无原票附件,按系统允许的未关联开票回款登记,合同已关联;到账方式保留原备注,未推断转账渠道。", "process_instance_id": null, "audit_status": 20, "creator": "291", "create_time": "2026-09-28 00:00:00", "updater": "291", "update_time": "2026-10-13 14:13:07", "deleted": 0 }, { "id": 4, "no": "HK-202609-L076", "plan_id": null, "customer_id": 1609, "contract_id": 531, "invoice_id": null, "owner_user_id": 291, "return_time": "2026-09-11 00:00:00", "return_type": 8, "price": "1800.000000", "remark": "九月台账202609-L076;已回款(银行转账);用户确认到账日期取开票日;无票电商取备注销售日。原票号无需开票。暂无原票附件,按系统允许的未关联开票回款登记,合同已关联;到账方式保留原备注,未推断转账渠道。", "process_instance_id": null, "audit_status": 20, "creator": "291", "create_time": "2026-09-11 00:00:00", "updater": "291", "update_time": "2026-10-13 14:13:07", "deleted": 0 }, { "id": 3, "no": "HK-202609-L073", "plan_id": null, "customer_id": 1608, "contract_id": 529, "invoice_id": null, "owner_user_id": 291, "return_time": "2026-09-21 00:00:00", "return_type": 8, "price": "12000.000000", "remark": "九月台账202609-L073;已回款(银行转账);用户确认到账日期取开票日;无票电商取备注销售日。原票号26632000000224525671。暂无原票附件,按系统允许的未关联开票回款登记,合同已关联;到账方式保留原备注,未推断转账渠道。", "process_instance_id": null, "audit_status": 20, "creator": "291", "create_time": "2026-09-21 00:00:00", "updater": "291", "update_time": "2026-10-13 14:13:07", "deleted": 0 } ] }, "crm_receivable_plan": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "period", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "期数" }, { "Field": "customer_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "客户编号" }, { "Field": "contract_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "合同编号" }, { "Field": "owner_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "负责人编号" }, { "Field": "return_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "计划回款日期" }, { "Field": "return_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "计划回款类型" }, { "Field": "price", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "计划回款金额,单位:元" }, { "Field": "receivable_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "回款编号" }, { "Field": "remind_days", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "提前几天提醒" }, { "Field": "remind_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "提醒日期" }, { "Field": "remark", "Type": "varchar(500)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "最后更新时间" }, { "Field": "deleted", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 18, "latest": [ { "id": 18, "period": 1, "customer_id": 1610, "contract_id": 532, "owner_user_id": 291, "return_time": "2026-10-28 00:00:00", "return_type": 8, "price": "2580.000000", "receivable_id": null, "remind_days": 3, "remind_time": "2026-10-25 00:00:00", "remark": "九月台账202609-L077;尚未回款余额2580.00元;已回款0元。日期按开票/销售日后30天补录测算,非约定账期;台账状态截至2026-09-29,实际到账另行核对。", "creator": "291", "create_time": "2026-09-28 00:00:00", "updater": "291", "update_time": "2026-09-28 00:00:00", "deleted": 0 }, { "id": 17, "period": 1, "customer_id": 1608, "contract_id": 530, "owner_user_id": 291, "return_time": "2026-10-21 00:00:00", "return_type": 8, "price": "23999.990000", "receivable_id": null, "remind_days": 3, "remind_time": "2026-10-18 00:00:00", "remark": "九月台账202609-L074;尚未回款余额23999.99元;已回款0元。日期按开票/销售日后30天补录测算,非约定账期;台账状态截至2026-09-29,实际到账另行核对。", "creator": "291", "create_time": "2026-09-21 00:00:00", "updater": "291", "update_time": "2026-09-21 00:00:00", "deleted": 0 }, { "id": 16, "period": 1, "customer_id": 1608, "contract_id": 528, "owner_user_id": 291, "return_time": "2026-10-15 00:00:00", "return_type": 8, "price": "5400.000000", "receivable_id": null, "remind_days": 3, "remind_time": "2026-10-12 00:00:00", "remark": "九月台账202609-L072;尚未回款余额5400.00元;已回款12600.00元。日期按开票/销售日后30天补录测算,非约定账期;台账状态截至2026-09-29,实际到账另行核对。", "creator": "291", "create_time": "2026-09-15 00:00:00", "updater": "291", "update_time": "2026-09-15 00:00:00", "deleted": 0 } ] }, "crm_sale_quotation": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "no", "Type": "varchar(32)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "UNI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "报价单号" }, { "Field": "name", "Type": "varchar(128)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "报价单名称" }, { "Field": "customer_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "客户编号" }, { "Field": "business_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "商机编号" }, { "Field": "contact_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "联系人编号" }, { "Field": "owner_user_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "负责人编号" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态(0草稿 10审批中 20已通过 30已拒绝 40已取消 50已转合同)" }, { "Field": "process_instance_id", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工作流编号" }, { "Field": "quotation_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "报价日期" }, { "Field": "valid_until", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "有效期至" }, { "Field": "total_product_price", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产品总金额" }, { "Field": "discount_percent", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "整单折扣(%)" }, { "Field": "discount_price", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.000000", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "优惠金额" }, { "Field": "total_price", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "报价总金额" }, { "Field": "tax_rate", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "税率(%)" }, { "Field": "tax_price", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "税额" }, { "Field": "contract_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "关联合同编号" }, { "Field": "contract_no", "Type": "varchar(32)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "关联合同单号" }, { "Field": "remark", "Type": "varchar(1024)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "tenant_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "租户编号" } ], "count": 22, "latest": [ { "id": 533, "no": "BJ-202609-L078", "name": "青海爱嘉星际文化旅游有限公-202609-L078", "customer_id": 1611, "business_id": null, "contact_id": null, "owner_user_id": 291, "status": 10, "process_instance_id": null, "quotation_time": "2026-09-28 00:00:00", "valid_until": "2027-09-28 00:00:00", "total_product_price": "2665.510000", "discount_percent": "0.00", "discount_price": "0.000000", "total_price": "2990.010000", "tax_rate": null, "tax_price": "324.500000", "contract_id": 533, "contract_no": "HT-202609-L078", "remark": "九月台账补录202609-L078,行78-81;原单26000114;报价和合同为反推,业务日期按开票/备注日期,非原签约日。含税合并金额2990.01;净税额与合并金额尾差0.00元,按台账合并金额登记。已回款(银行转账);(青海爱嘉星际文化旅游有限公)开专票两张,票号26632000000230691841、26632000000230838946", "creator": "291", "create_time": "2026-09-28 00:00:00", "updater": "291", "update_time": "2026-10-14 17:29:58", "deleted": "b'\\x00'", "tenant_id": 0 }, { "id": 532, "no": "BJ-202609-L077", "name": "青海南玻新能源科技有限公司-202609-L077", "customer_id": 1610, "business_id": null, "contact_id": null, "owner_user_id": 291, "status": 10, "process_instance_id": null, "quotation_time": "2026-09-28 00:00:00", "valid_until": "2027-09-28 00:00:00", "total_product_price": "2366.970000", "discount_percent": "0.00", "discount_price": "0.000000", "total_price": "2580.000000", "tax_rate": "9.00", "tax_price": "213.030000", "contract_id": 532, "contract_no": "HT-202609-L077", "remark": "九月台账补录202609-L077,行77-77;原单26000115;报价和合同为反推,业务日期按开票/备注日期,非原签约日。含税合并金额2580.00;净税额与合并金额尾差0.00元,按台账合并金额登记。未回款;(青海南玻新能源科技有限公司0开专票一张,票号26632000000231150601", "creator": "291", "create_time": "2026-09-28 00:00:00", "updater": "291", "update_time": "2026-10-14 17:29:58", "deleted": "b'\\x00'", "tenant_id": 0 }, { "id": 531, "no": "BJ-202609-L076", "name": "电商-202609-L076", "customer_id": 1609, "business_id": null, "contact_id": null, "owner_user_id": 291, "status": 10, "process_instance_id": null, "quotation_time": "2026-09-11 00:00:00", "valid_until": "2027-09-11 00:00:00", "total_product_price": "1800.000000", "discount_percent": "0.00", "discount_price": "0.000000", "total_price": "1800.000000", "tax_rate": "0.00", "tax_price": "0.000000", "contract_id": 531, "contract_no": "HT-202609-L076", "remark": "九月台账补录202609-L076,行76-76;原单26000113;报价和合同为反推,业务日期按开票/备注日期,非原签约日。含税合并金额1800.00;净税额与合并金额尾差0.00元,按台账合并金额登记。已回款(银行转账);2026.9.11杜亚楠销售,已确认无需开票", "creator": "291", "create_time": "2026-09-11 00:00:00", "updater": "291", "update_time": "2026-10-14 17:29:58", "deleted": "b'\\x00'", "tenant_id": 0 } ] }, "crm_sale_quotation_product": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "quotation_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "报价单编号" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "MDM物料编号" }, { "Field": "item_unit_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "计量单位编号" }, { "Field": "item_price", "Type": "decimal(24,6)", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料原价(冗余)" }, { "Field": "quotation_price", "Type": "decimal(24,6)", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "报价单价" }, { "Field": "count", "Type": "decimal(24,6)", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数量" }, { "Field": "total_price", "Type": "decimal(24,6)", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "小计金额" }, { "Field": "tax_percent", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "税率(%)" }, { "Field": "tax_price", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "税额" }, { "Field": "remark", "Type": "varchar(256)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "tenant_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "租户编号" } ], "count": 76, "latest": [ { "id": 2123, "quotation_id": 533, "item_id": 1118, "item_unit_id": 9, "item_price": "290.266000", "quotation_price": "290.266000", "count": "5.000000", "total_price": "1451.330000", "tax_percent": "13.00", "tax_price": "188.670000", "remark": "台账行81;原单26000114;原项目号74000484;原净额1451.33,税188.6729,含税1640.0029", "creator": "291", "create_time": "2026-09-28 00:00:00", "updater": "291", "update_time": "2026-10-13 14:13:07", "deleted": "b'\\x00'", "tenant_id": 0 }, { "id": 2122, "quotation_id": 533, "item_id": 509, "item_unit_id": 9, "item_price": "26.549091", "quotation_price": "26.549091", "count": "11.000000", "total_price": "292.040000", "tax_percent": "13.00", "tax_price": "37.970000", "remark": "台账行80;原单26000114;原项目号Q2100086;原净额292.04,税37.9652,含税330.0052", "creator": "291", "create_time": "2026-09-28 00:00:00", "updater": "291", "update_time": "2026-10-13 14:13:07", "deleted": "b'\\x00'", "tenant_id": 0 }, { "id": 2121, "quotation_id": 533, "item_id": 497, "item_unit_id": 9, "item_price": "17.699048", "quotation_price": "17.699048", "count": "21.000000", "total_price": "371.680000", "tax_percent": "13.00", "tax_price": "48.320000", "remark": "台账行79;原单26000114;原项目号Q2100080;原净额371.68,税48.3183999999999,含税419.9984", "creator": "291", "create_time": "2026-09-28 00:00:00", "updater": "291", "update_time": "2026-10-13 14:13:07", "deleted": "b'\\x00'", "tenant_id": 0 } ] }, "crm_sales_target": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "ID" }, { "Field": "name", "Type": "varchar(128)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "目标名称" }, { "Field": "period_type", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "周期类型(字典 crm_sales_target_period_type: 1年/2季度/3月)" }, { "Field": "period_value", "Type": "varchar(32)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "周期值,如 2026 / 2026-Q1 / 2026-07" }, { "Field": "start_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "周期开始时间(保存时由周期计算写入)" }, { "Field": "end_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "周期结束时间(保存时由周期计算写入)" }, { "Field": "target_dimension", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "目标维度(字典 crm_sales_target_dimension: 1个人/2部门/3产品)" }, { "Field": "target_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "目标用户编号(维度=个人)" }, { "Field": "target_dept_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "目标部门编号(维度=部门)" }, { "Field": "target_item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "目标物料编号(维度=产品,关联 MDM)" }, { "Field": "contract_target", "Type": "decimal(18,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "合同金额目标(元)" }, { "Field": "receivable_target", "Type": "decimal(18,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "回款金额目标(元)" }, { "Field": "business_target", "Type": "decimal(18,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "商机金额目标(元)" }, { "Field": "customer_target", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "新增客户数目标" }, { "Field": "contract_count_target", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "新增合同数目标" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态(字典 crm_sales_target_status: 0未生效/1已生效/2已结束/3已作废)" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "最后更新时间" }, { "Field": "deleted", "Type": "tinyint", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 1, "latest": [ { "id": 1, "name": "市政府2026年第四季度目标", "period_type": 2, "period_value": "2026-Q4", "start_time": "2026-10-01 00:00:00", "end_time": "2027-01-01 00:00:00", "target_dimension": 2, "target_user_id": null, "target_dept_id": 121, "target_item_id": null, "contract_target": "100000.00", "receivable_target": "80000.00", "business_target": "100000.00", "customer_target": 3, "contract_count_target": 5, "status": 1, "remark": null, "creator": "291", "create_time": "2026-10-13 14:16:57", "updater": "291", "update_time": "2026-10-13 14:16:57", "deleted": 0 } ] }, "erp_sale_order": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "no", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "销售订单号" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "销售状态" }, { "Field": "customer_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "客户编号" }, { "Field": "contract_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "关联 CRM 合同编号" }, { "Field": "contract_no", "Type": "varchar(32)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "CRM 合同单号" }, { "Field": "account_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "结算账户编号" }, { "Field": "sale_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "销售员编号" }, { "Field": "order_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "下单时间" }, { "Field": "total_count", "Type": "decimal(24,6)", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "合计数量" }, { "Field": "total_price", "Type": "decimal(24,6)", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最终合计价格,单位:元" }, { "Field": "total_product_price", "Type": "decimal(24,6)", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "合计产品价格,单位:元" }, { "Field": "total_tax_price", "Type": "decimal(24,6)", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "合计税额,单位:元" }, { "Field": "discount_percent", "Type": "decimal(24,6)", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "优惠率,百分比" }, { "Field": "discount_price", "Type": "decimal(24,6)", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "优惠金额,单位:元" }, { "Field": "deposit_price", "Type": "decimal(24,6)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.000000", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "定金金额,单位:元" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "process_instance_id", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "BPM 流程实例编号" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "out_count", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.000000", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "销售出库数量" }, { "Field": "out_status", "Type": "tinyint", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "出库状态(0:未出库 1:部分出库 2:全部入库)" }, { "Field": "production_status", "Type": "tinyint", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产状态:0-未完成,1-已完成" }, { "Field": "production_finish_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产完成时间" } ], "count": 24, "latest": [ { "id": 1046, "no": "26000369", "status": 20, "customer_id": 1359, "contract_id": 514, "contract_no": "HT-202609-L008", "account_id": null, "sale_user_id": 291, "order_time": "2026-09-02 00:00:00", "total_count": "24.000000", "total_price": "4272.000000", "total_product_price": "3919.000000", "total_tax_price": "352.710000", "discount_percent": "0.000000", "discount_price": "0.290000", "deposit_price": "0.000000", "remark": "退货原单,负数量负金额保留", "process_instance_id": null, "creator": "291", "create_time": "2026-09-02 00:00:00", "updater": "291", "update_time": "2026-10-14 17:56:06", "deleted": "b'\\x00'", "out_count": "0.000000", "out_status": 0, "production_status": 0, "production_finish_time": null }, { "id": 1045, "no": "26000406", "status": 20, "customer_id": 1359, "contract_id": 514, "contract_no": "HT-202609-L008", "account_id": null, "sale_user_id": 291, "order_time": "2026-09-02 00:00:00", "total_count": "18798.000000", "total_price": "3346041.730000", "total_product_price": "3069763.050000", "total_tax_price": "276278.680000", "discount_percent": "0.000000", "discount_price": "0.000000", "deposit_price": "0.000000", "remark": null, "process_instance_id": null, "creator": "291", "create_time": "2026-09-02 00:00:00", "updater": "291", "update_time": "2026-10-13 14:13:07", "deleted": "b'\\x00'", "out_count": "18798.000000", "out_status": 3, "production_status": 0, "production_finish_time": null }, { "id": 1044, "no": "26000114", "status": 20, "customer_id": 1611, "contract_id": 533, "contract_no": "HT-202609-L078", "account_id": null, "sale_user_id": 291, "order_time": "2026-09-28 00:00:00", "total_count": "40.000000", "total_price": "2990.010000", "total_product_price": "2665.510000", "total_tax_price": "324.500000", "discount_percent": "0.000000", "discount_price": "0.000000", "deposit_price": "0.000000", "remark": null, "process_instance_id": null, "creator": "291", "create_time": "2026-09-28 00:00:00", "updater": "291", "update_time": "2026-10-13 14:13:07", "deleted": "b'\\x00'", "out_count": "40.000000", "out_status": 3, "production_status": 0, "production_finish_time": null } ] }, "erp_sale_order_items": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "order_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "销售订单编号" }, { "Field": "product_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产品编号" }, { "Field": "product_unit_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产品单位编号" }, { "Field": "product_price", "Type": "decimal(24,6)", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产品单位单价,单位:元" }, { "Field": "count", "Type": "decimal(24,6)", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数量" }, { "Field": "total_price", "Type": "decimal(24,6)", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "总价,单位:元" }, { "Field": "tax_percent", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "税率,百分比" }, { "Field": "tax_price", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "税额,单位:元" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "out_count", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.000000", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "销售出库数量" }, { "Field": "need_production", "Type": "tinyint", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否需要生产(0=否 1=是)" }, { "Field": "mps_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "关联的MPS编号" } ], "count": 76, "latest": [ { "id": 4170, "order_id": 1044, "product_id": 1118, "product_unit_id": 9, "product_price": "290.266000", "count": "5.000000", "total_price": "1451.330000", "tax_percent": "13.000000", "tax_price": "188.670000", "remark": "台账行81;原单26000114;原项目号74000484;原净额1451.33,税188.6729,含税1640.0029", "creator": "291", "create_time": "2026-09-28 00:00:00", "updater": "291", "update_time": "2026-10-13 14:13:07", "deleted": "b'\\x00'", "out_count": "5.000000", "need_production": 0, "mps_id": null }, { "id": 4169, "order_id": 1044, "product_id": 509, "product_unit_id": 9, "product_price": "26.549091", "count": "11.000000", "total_price": "292.040000", "tax_percent": "13.000000", "tax_price": "37.970000", "remark": "台账行80;原单26000114;原项目号Q2100086;原净额292.04,税37.9652,含税330.0052", "creator": "291", "create_time": "2026-09-28 00:00:00", "updater": "291", "update_time": "2026-10-13 14:13:07", "deleted": "b'\\x00'", "out_count": "11.000000", "need_production": 0, "mps_id": null }, { "id": 4168, "order_id": 1044, "product_id": 497, "product_unit_id": 9, "product_price": "17.699048", "count": "21.000000", "total_price": "371.680000", "tax_percent": "13.000000", "tax_price": "48.320000", "remark": "台账行79;原单26000114;原项目号Q2100080;原净额371.68,税48.3183999999999,含税419.9984", "creator": "291", "create_time": "2026-09-28 00:00:00", "updater": "291", "update_time": "2026-10-13 14:13:07", "deleted": "b'\\x00'", "out_count": "21.000000", "need_production": 0, "mps_id": null } ] }, "mdm_item": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "物料编号" }, { "Field": "code", "Type": "varchar(50)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料编码" }, { "Field": "name", "Type": "varchar(200)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料名称" }, { "Field": "bar_code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料条码" }, { "Field": "specification", "Type": "varchar(200)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "规格型号" }, { "Field": "category_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料分类编号" }, { "Field": "unit_measure_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "计量单位编号" }, { "Field": "unit_measure_id2", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "辅单位1编号" }, { "Field": "unit_measure_rate1", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "辅单位1换算比率" }, { "Field": "unit_measure_id3", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "辅单位2编号" }, { "Field": "unit_measure_rate2", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "辅单位2换算比率" }, { "Field": "warehouse_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "默认仓库编号" }, { "Field": "warehouse_code", "Type": "varchar(50)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "默认仓库编码" }, { "Field": "brand_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "品牌编号" }, { "Field": "item_type", "Type": "tinyint", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料类型(1:物料 2:产品 3:半成品)" }, { "Field": "status", "Type": "tinyint", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态(0正常 1停用)" }, { "Field": "purchase_price", "Type": "decimal(24,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "采购价" }, { "Field": "sales_price", "Type": "decimal(24,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "销售价" }, { "Field": "cost_price", "Type": "decimal(24,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "成本价" }, { "Field": "min_price", "Type": "decimal(24,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最低价" }, { "Field": "safety_stock", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "安全库存" }, { "Field": "min_stock", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最低库存量" }, { "Field": "max_stock", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最高库存量" }, { "Field": "min_order_qty", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最小订货量" }, { "Field": "lead_time", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "采购提前期(天)" }, { "Field": "is_batch_managed", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否批次管理" }, { "Field": "is_serial_managed", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否序列号管理" }, { "Field": "barcode_rule_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "条码规则ID" }, { "Field": "expiry_day", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "保质期天数" }, { "Field": "high_value", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否高值物料" }, { "Field": "weight", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "重量(kg)" }, { "Field": "remark", "Type": "varchar(500)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 1057, "latest": [ { "id": 1997, "code": "U2100796", "name": "黑果枸杞", "bar_code": null, "specification": "50克", "category_id": 6, "unit_measure_id": 31, "unit_measure_id2": null, "unit_measure_rate1": null, "unit_measure_id3": null, "unit_measure_rate2": null, "warehouse_id": null, "warehouse_code": null, "brand_id": null, "item_type": 2, "status": 0, "purchase_price": null, "sales_price": null, "cost_price": null, "min_price": null, "safety_stock": null, "min_stock": null, "max_stock": null, "min_order_qty": null, "lead_time": null, "is_batch_managed": "b'\\x01'", "is_serial_managed": "b'\\x00'", "barcode_rule_id": null, "expiry_day": null, "high_value": "b'\\x00'", "weight": null, "remark": "九月销售台账缺项补充;来源项目号U2100796;未推算库存或成本", "creator": "244", "create_time": "2026-10-13 12:33:03", "updater": "244", "update_time": "2026-10-13 12:33:03", "deleted": "b'\\x00'" }, { "id": 1996, "code": "UA000009", "name": "贝母粉", "bar_code": null, "specification": "50克", "category_id": 3, "unit_measure_id": 31, "unit_measure_id2": null, "unit_measure_rate1": null, "unit_measure_id3": null, "unit_measure_rate2": null, "warehouse_id": null, "warehouse_code": null, "brand_id": null, "item_type": 2, "status": 0, "purchase_price": null, "sales_price": null, "cost_price": null, "min_price": null, "safety_stock": null, "min_stock": null, "max_stock": null, "min_order_qty": null, "lead_time": null, "is_batch_managed": "b'\\x01'", "is_serial_managed": "b'\\x00'", "barcode_rule_id": null, "expiry_day": null, "high_value": "b'\\x00'", "weight": null, "remark": "九月销售台账缺项补充;来源项目号UA000009;未推算库存或成本", "creator": "244", "create_time": "2026-10-13 12:33:03", "updater": "244", "update_time": "2026-10-13 12:33:03", "deleted": "b'\\x00'" }, { "id": 1995, "code": "QZ000515", "name": "鲜冬虫夏草", "bar_code": null, "specification": "2A级 (0.6-0.8克/根) *10根", "category_id": 6, "unit_measure_id": 8, "unit_measure_id2": null, "unit_measure_rate1": null, "unit_measure_id3": null, "unit_measure_rate2": null, "warehouse_id": null, "warehouse_code": null, "brand_id": null, "item_type": 2, "status": 0, "purchase_price": null, "sales_price": null, "cost_price": null, "min_price": null, "safety_stock": null, "min_stock": null, "max_stock": null, "min_order_qty": null, "lead_time": null, "is_batch_managed": "b'\\x01'", "is_serial_managed": "b'\\x00'", "barcode_rule_id": null, "expiry_day": null, "high_value": "b'\\x00'", "weight": null, "remark": "九月销售台账缺项补充;来源项目号QZ000515;未推算库存或成本", "creator": "244", "create_time": "2026-10-13 12:33:03", "updater": "244", "update_time": "2026-10-13 12:33:03", "deleted": "b'\\x00'" } ] }, "mdm_unit_measure": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "单位编号" }, { "Field": "code", "Type": "varchar(50)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "单位编码" }, { "Field": "name", "Type": "varchar(50)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "单位名称" }, { "Field": "primary_flag", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否主单位" }, { "Field": "primary_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "主单位编号" }, { "Field": "change_rate", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": "1.000000", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "与主单位换算比例" }, { "Field": "status", "Type": "tinyint", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态(0正常 1停用)" }, { "Field": "remark", "Type": "varchar(500)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 91, "latest": [ { "id": 91, "code": "MESH", "name": "目", "primary_flag": "b'\\x00'", "primary_id": null, "change_rate": "1.000000", "status": 0, "remark": "生产工艺参数记录单位;单位间未设换算关系。", "creator": "1", "create_time": "2026-09-18 17:16:46", "updater": "1", "update_time": "2026-10-12 22:22:59", "deleted": "b'\\x00'" }, { "id": 90, "code": "PERCENT", "name": "百分比", "primary_flag": "b'\\x00'", "primary_id": null, "change_rate": "1.000000", "status": 0, "remark": "生产工艺参数记录单位;单位间未设换算关系。", "creator": "1", "create_time": "2026-09-18 15:49:39", "updater": "1", "update_time": "2026-10-12 22:22:59", "deleted": "b'\\x00'" }, { "id": 89, "code": "LENGTH_MM", "name": "毫米", "primary_flag": "b'\\x00'", "primary_id": null, "change_rate": "1.000000", "status": 0, "remark": "生产工艺参数记录单位;单位间未设换算关系。", "creator": "1", "create_time": "2026-09-18 15:43:08", "updater": "1", "update_time": "2026-10-12 22:22:59", "deleted": "b'\\x00'" } ] }, "mes_energy_alert_log": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "rule_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "rule_name", "Type": "varchar(100)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "record_date", "Type": "date", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "period_type", "Type": "varchar(10)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": "DAY", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "DAY每日/MONTH自然月,record_date存周期首日" }, { "Field": "energy_type", "Type": "varchar(20)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "scope", "Type": "varchar(200)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "metric", "Type": "varchar(20)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "actual_value", "Type": "decimal(45,3)", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "threshold", "Type": "decimal(29,3)", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "recipient_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "recipient_name", "Type": "varchar(100)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "message_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "status", "Type": "varchar(20)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "SENT成功/FAILED失败,可重试" }, { "Field": "error_message", "Type": "varchar(500)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "tenant_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } ], "count": 0, "latest": [] }, "mes_energy_alert_rule": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "energy_type", "Type": "varchar(20)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "usage_area", "Type": "varchar(100)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "product_category", "Type": "varchar(50)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "metric", "Type": "varchar(20)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "QUANTITY每日用量/AMOUNT每日费用" }, { "Field": "threshold", "Type": "decimal(29,3)", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "enabled", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'1'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "recipient_ids", "Type": "varchar(1100)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "站内通知接收人ID,逗号分隔" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "tenant_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } ], "count": 9, "latest": [ { "id": 9, "name": "燕窝生产区日蒸汽量预警", "energy_type": "STEAM", "usage_area": "燕窝生产区", "product_category": "燕窝", "metric": "QUANTITY", "threshold": "2.600", "enabled": "b'\\x01'", "recipient_ids": "247,249", "creator": "247", "create_time": "2026-10-14 17:44:06", "updater": "247", "update_time": "2026-10-14 17:44:06", "deleted": "b'\\x00'", "tenant_id": 0 }, { "id": 8, "name": "全厂月用蒸汽费用预警", "energy_type": "STEAM", "usage_area": "", "product_category": "", "metric": "MONTH_AMOUNT", "threshold": "50000.000", "enabled": "b'\\x01'", "recipient_ids": "247,249", "creator": "247", "create_time": "2026-10-14 17:44:06", "updater": "247", "update_time": "2026-10-14 17:44:06", "deleted": "b'\\x00'", "tenant_id": 0 }, { "id": 7, "name": "全厂日用蒸汽量预警", "energy_type": "STEAM", "usage_area": "", "product_category": "", "metric": "QUANTITY", "threshold": "8.000", "enabled": "b'\\x01'", "recipient_ids": "243,247,249", "creator": "247", "create_time": "2026-10-14 17:44:06", "updater": "247", "update_time": "2026-10-14 17:44:06", "deleted": "b'\\x00'", "tenant_id": 0 } ] }, "mes_energy_record": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "记录编号" }, { "Field": "record_date", "Type": "date", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "统计日期" }, { "Field": "energy_type", "Type": "varchar(20)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "WATER水/ELECTRICITY电/STEAM蒸汽" }, { "Field": "usage_area", "Type": "varchar(100)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "使用区域(手工填写)" }, { "Field": "product_category", "Type": "varchar(50)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产品类别(本模块)" }, { "Field": "usage_purpose", "Type": "varchar(100)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "用途/工序(手工填写)" }, { "Field": "quantity", "Type": "decimal(18,3)", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "用量,水m³/电kWh/蒸汽t" }, { "Field": "unit_price", "Type": "decimal(12,4)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.0000", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "元/能源单位" }, { "Field": "amount", "Type": "decimal(26,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "费用=用量*单价,四舍五入到分" }, { "Field": "recorder", "Type": "varchar(50)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "录入人姓名(手工填写)" }, { "Field": "remark", "Type": "varchar(500)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "tenant_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } ], "count": 605, "latest": [ { "id": 1862, "record_date": "2026-09-30", "energy_type": "ELECTRICITY", "usage_area": "办公生活区", "product_category": "公用能耗", "usage_purpose": "日常用能", "quantity": "339.300", "unit_price": "0.8300", "amount": "281.62", "recorder": "赵磊", "remark": "月末盘点抄表", "creator": "243", "create_time": "2026-10-01 08:42:16", "updater": "243", "update_time": "2026-10-01 08:42:16", "deleted": "b'\\x00'", "tenant_id": 0 }, { "id": 1861, "record_date": "2026-09-30", "energy_type": "WATER", "usage_area": "办公生活区", "product_category": "公用能耗", "usage_purpose": "日常用能", "quantity": "10.800", "unit_price": "5.2000", "amount": "56.16", "recorder": "赵磊", "remark": "月末盘点抄表", "creator": "243", "create_time": "2026-10-01 08:06:51", "updater": "243", "update_time": "2026-10-01 08:06:51", "deleted": "b'\\x00'", "tenant_id": 0 }, { "id": 1860, "record_date": "2026-09-30", "energy_type": "ELECTRICITY", "usage_area": "仓储区", "product_category": "公用能耗", "usage_purpose": "制冷", "quantity": "291.800", "unit_price": "0.8300", "amount": "242.19", "recorder": "赵磊", "remark": "月末盘点抄表", "creator": "243", "create_time": "2026-10-01 08:03:56", "updater": "243", "update_time": "2026-10-01 08:03:56", "deleted": "b'\\x00'", "tenant_id": 0 } ] }, "mes_md_item": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "mdm_item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "MDM 物料 ID" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料编码" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料名称" }, { "Field": "specification", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "规格型号" }, { "Field": "unit_measure_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "计量单位编号" }, { "Field": "item_type_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料分类编号" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态" }, { "Field": "safe_stock_flag", "Type": "bit(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否启用安全库存" }, { "Field": "min_stock", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最低库存量" }, { "Field": "max_stock", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最高库存量" }, { "Field": "high_value", "Type": "bit(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否高值物料" }, { "Field": "batch_flag", "Type": "bit(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否启用批次管理" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 1057, "latest": [ { "id": 1997, "mdm_item_id": 1997, "code": "U2100796", "name": "黑果枸杞", "specification": "50克", "unit_measure_id": 31, "item_type_id": 6, "status": 0, "safe_stock_flag": "b'\\x00'", "min_stock": null, "max_stock": null, "high_value": "b'\\x00'", "batch_flag": "b'\\x01'", "remark": "九月销售台账缺项补充;来源项目号U2100796;未推算库存或成本", "creator": "244", "create_time": "2026-10-13 12:33:03", "updater": "244", "update_time": "2026-10-13 12:33:03", "deleted": "b'\\x00'" }, { "id": 1996, "mdm_item_id": 1996, "code": "UA000009", "name": "贝母粉", "specification": "50克", "unit_measure_id": 31, "item_type_id": 3, "status": 0, "safe_stock_flag": "b'\\x00'", "min_stock": null, "max_stock": null, "high_value": "b'\\x00'", "batch_flag": "b'\\x01'", "remark": "九月销售台账缺项补充;来源项目号UA000009;未推算库存或成本", "creator": "244", "create_time": "2026-10-13 12:33:03", "updater": "244", "update_time": "2026-10-13 12:33:03", "deleted": "b'\\x00'" }, { "id": 1995, "mdm_item_id": 1995, "code": "QZ000515", "name": "鲜冬虫夏草", "specification": "2A级 (0.6-0.8克/根) *10根", "unit_measure_id": 8, "item_type_id": 6, "status": 0, "safe_stock_flag": "b'\\x00'", "min_stock": null, "max_stock": null, "high_value": "b'\\x00'", "batch_flag": "b'\\x01'", "remark": "九月销售台账缺项补充;来源项目号QZ000515;未推算库存或成本", "creator": "244", "create_time": "2026-10-13 12:33:03", "updater": "244", "update_time": "2026-10-13 12:33:03", "deleted": "b'\\x00'" } ] }, "mes_md_unit_measure": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "单位编码" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "单位名称" }, { "Field": "primary_flag", "Type": "bit(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否主单位" }, { "Field": "primary_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "主单位编号" }, { "Field": "change_rate", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "与主单位换算比例" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 20, "latest": [ { "id": 82, "code": "ZH", "name": "张", "primary_flag": "b'\\x00'", "primary_id": null, "change_rate": "1.000000", "status": 0, "remark": null, "creator": "1", "create_time": "2026-08-28 10:12:36", "updater": null, "update_time": "2026-08-28 10:12:36", "deleted": "b'\\x00'" }, { "id": 78, "code": "Z1", "name": "支", "primary_flag": "b'\\x00'", "primary_id": null, "change_rate": "1.000000", "status": 0, "remark": null, "creator": "1", "create_time": "2026-08-28 10:12:36", "updater": null, "update_time": "2026-08-28 10:12:36", "deleted": "b'\\x00'" }, { "id": 68, "code": "WA", "name": "碗", "primary_flag": "b'\\x00'", "primary_id": null, "change_rate": "1.000000", "status": 0, "remark": null, "creator": "1", "create_time": "2026-08-28 10:12:36", "updater": null, "update_time": "2026-08-28 10:12:36", "deleted": "b'\\x00'" } ] }, "mes_pd_process_param": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "param_code", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "参数编码" }, { "Field": "param_name", "Type": "varchar(255)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "参数名称" }, { "Field": "param_type", "Type": "tinyint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "参数类型(字典 mes_pd_process_param_type)" }, { "Field": "unit_measure_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "计量单位ID(关联 mes_md_unit_measure)" }, { "Field": "required", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否必填" }, { "Field": "remark", "Type": "varchar(500)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "tenant_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "租户编号" } ], "count": 21, "latest": [ { "id": 21, "param_code": "PP-STP-SAMPLE", "param_name": "检验抽样数量", "param_type": 1, "unit_measure_id": 24, "required": "b'\\x00'", "remark": "生产现场实际记录;具体标准按当前产品规程及工序模板执行,不预填实际值。", "creator": "1", "create_time": "2026-09-18 16:24:43", "updater": "1", "update_time": "2026-10-12 22:52:25", "deleted": "b'\\x00'", "tenant_id": 0 }, { "id": 20, "param_code": "PP-STP-EXTRACT", "param_name": "提取次数", "param_type": 1, "unit_measure_id": 13, "required": "b'\\x00'", "remark": "生产现场实际记录;具体标准按当前产品规程及工序模板执行,不预填实际值。", "creator": "1", "create_time": "2026-09-18 15:23:03", "updater": "1", "update_time": "2026-10-12 22:52:25", "deleted": "b'\\x00'", "tenant_id": 0 }, { "id": 19, "param_code": "PP-STP-COUNT", "param_name": "包装数量", "param_type": 1, "unit_measure_id": 24, "required": "b'\\x00'", "remark": "生产现场实际记录;具体标准按当前产品规程及工序模板执行,不预填实际值。", "creator": "1", "create_time": "2026-09-18 15:12:25", "updater": "1", "update_time": "2026-10-12 22:52:25", "deleted": "b'\\x00'", "tenant_id": 0 } ] }, "mes_pd_process_param_template": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "template_code", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "模板编码" }, { "Field": "template_name", "Type": "varchar(255)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "模板名称" }, { "Field": "template_type", "Type": "tinyint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "模板类型(字典 mes_pd_process_param_template_type)" }, { "Field": "remark", "Type": "varchar(500)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "tenant_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "租户编号" } ], "count": 63, "latest": [ { "id": 63, "template_code": "PT-STP-063", "template_name": "热灌装参数模板-063", "template_type": 1, "remark": "来源:STP-YL-017-00、STP-YL-007-00;工序记录模板;标准在明细备注,记录现场实际值,不自动判定超限。", "creator": "1", "create_time": "2026-09-18 17:56:16", "updater": "1", "update_time": "2026-10-12 22:52:25", "deleted": "b'\\x00'", "tenant_id": 0 }, { "id": 62, "template_code": "PT-STP-062", "template_name": "配制高剪切参数模板-062", "template_type": 1, "remark": "来源:STP-YL-017-00;工序记录模板;标准在明细备注,记录现场实际值,不自动判定超限。", "creator": "1", "create_time": "2026-09-18 17:39:28", "updater": "1", "update_time": "2026-10-12 22:52:25", "deleted": "b'\\x00'", "tenant_id": 0 }, { "id": 61, "template_code": "PT-STP-061", "template_name": "浓缩参数模板-061", "template_type": 1, "remark": "来源:STP-YL-017-00;工序记录模板;标准在明细备注,记录现场实际值,不自动判定超限。", "creator": "1", "create_time": "2026-09-18 17:35:51", "updater": "1", "update_time": "2026-10-12 22:52:25", "deleted": "b'\\x00'", "tenant_id": 0 } ] }, "mes_pd_process_param_template_detail": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "template_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "模板ID(关联 mes_pd_process_param_template)" }, { "Field": "process_param_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工艺参数ID(仅作溯源,不影响快照值)" }, { "Field": "param_code", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "参数编码(快照)" }, { "Field": "param_name", "Type": "varchar(255)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "参数名称(快照)" }, { "Field": "param_type", "Type": "tinyint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "参数类型(快照)" }, { "Field": "unit_measure_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "计量单位ID(快照)" }, { "Field": "required", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否必填(快照)" }, { "Field": "remark", "Type": "varchar(500)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注(快照)" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "tenant_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "租户编号" } ], "count": 99, "latest": [ { "id": 99, "template_id": 63, "process_param_id": 7, "param_code": "PP-STP-FILL", "param_name": "灌装净含量", "param_type": 1, "unit_measure_id": 50, "required": "b'\\x01'", "remark": "要求:≥50ml;;来源:STP-YL-017-00、STP-YL-007-00;实际值由现场录入。", "creator": "1", "create_time": "2026-10-12 19:46:25", "updater": "1", "update_time": "2026-10-12 19:46:25", "deleted": "b'\\x00'", "tenant_id": 0 }, { "id": 98, "template_id": 63, "process_param_id": 1, "param_code": "PP-STP-TEMP", "param_name": "工艺温度", "param_type": 1, "unit_measure_id": 84, "required": "b'\\x01'", "remark": "要求:≥87℃;;来源:STP-YL-017-00、STP-YL-007-00;实际值由现场录入。", "creator": "1", "create_time": "2026-10-12 19:46:25", "updater": "1", "update_time": "2026-10-12 19:46:25", "deleted": "b'\\x00'", "tenant_id": 0 }, { "id": 97, "template_id": 62, "process_param_id": 2, "param_code": "PP-STP-TIME", "param_name": "处理时间", "param_type": 1, "unit_measure_id": 85, "required": "b'\\x00'", "remark": "要求:原文未指定统一数值,记录实际值;不得套用其他产品标准。;;来源:STP-YL-017-00;实际值由现场录入。", "creator": "1", "create_time": "2026-10-12 19:46:25", "updater": "1", "update_time": "2026-10-12 19:46:25", "deleted": "b'\\x00'", "tenant_id": 0 } ] }, "mes_pro_andon_config": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "reason", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "呼叫原因" }, { "Field": "level", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "级别" }, { "Field": "handler_role_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "处置人角色编号" }, { "Field": "handler_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "处置人编号" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "mes_pro_andon_record": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "config_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "安灯配置编号" }, { "Field": "workstation_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工作站编号" }, { "Field": "user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "发起用户编号" }, { "Field": "work_order_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产工单编号" }, { "Field": "process_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工序编号" }, { "Field": "reason", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "呼叫原因" }, { "Field": "level", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "级别" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "处置状态" }, { "Field": "handle_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "处置时间" }, { "Field": "handler_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "处置人编号" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "mes_pro_bag_code": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "uuid", "Type": "varchar(32)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生成组 UUID(标记同一次生成的数据包)" }, { "Field": "code", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "UNI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "袋码(二维码内容:批次号-袋序号,全局唯一)" }, { "Field": "bag_no", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次内袋序号" }, { "Field": "batch_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产批次编号,关联 mes_pro_batch.id" }, { "Field": "batch_code", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次号(冗余,便于展示)" }, { "Field": "pallet_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "绑定托盘编号,关联 mes_pro_pallet.id" }, { "Field": "pallet_code", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "托盘码(冗余,便于展示)" }, { "Field": "status", "Type": "tinyint", "Collation": null, "Null": "NO", "Key": "", "Default": "10", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态(字典 mes_pro_bag_code_status:10 已生成 20 已导出印刷 30 已作废)" }, { "Field": "print_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "导出(交付印刷)时间" }, { "Field": "cancel_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "作废时间" }, { "Field": "cancel_reason", "Type": "varchar(255)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "作废原因" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "mes_pro_bag_code_replace": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "replace_uuid", "Type": "varchar(32)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "替换组 UUID" }, { "Field": "batch_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产批次编号" }, { "Field": "batch_code", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产批次号" }, { "Field": "old_bag_code_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "UNI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "旧袋码编号" }, { "Field": "old_code", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "旧袋码" }, { "Field": "old_bag_no", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "旧袋序号" }, { "Field": "old_status", "Type": "tinyint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "旧袋码作废前状态" }, { "Field": "old_pallet_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "旧袋码原托盘编号" }, { "Field": "old_pallet_code", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "旧袋码原托盘码" }, { "Field": "new_bag_code_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "UNI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "新袋码编号" }, { "Field": "new_code", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "新袋码" }, { "Field": "new_bag_no", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "新袋序号" }, { "Field": "reason", "Type": "varchar(255)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "替换原因" }, { "Field": "replace_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "替换时间" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "mes_pro_batch": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "UNI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次号(自动生成:前缀+日期+产线+流水号)" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "品种(物料)编号,关联 mdm_item.id" }, { "Field": "line_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产线编号,关联 mes_pro_line.id" }, { "Field": "line_code", "Type": "varchar(32)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产线编码(手填,参与批次号生成)" }, { "Field": "line_name", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产线名称(手填)" }, { "Field": "produce_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产日期" }, { "Field": "plan_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "计划数量" }, { "Field": "owner_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "责任人用户编号(责任落实到人),关联 system_users.id" }, { "Field": "bag_quantity", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "已生成袋码数量(一袋一码)" }, { "Field": "pallet_quantity", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "已生成托盘码数量" }, { "Field": "status", "Type": "tinyint", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "10", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次状态(字典 mes_pro_batch_status:10 草稿 20 生产中 30 已完成 40 已作废)" }, { "Field": "remark", "Type": "varchar(500)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "mes_pro_batch_worker": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "batch_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产批次编号,关联 mes_pro_batch.id" }, { "Field": "user_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产人员用户编号,关联 system_users.id" }, { "Field": "worker_type", "Type": "tinyint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "岗位类型(字典 mes_pro_batch_worker_type:10 组长 20 操作工 30 包装工 40 质检员 50 其他)" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "mes_pro_card": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "流转卡编码" }, { "Field": "work_order_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产工单编号" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产品物料编号" }, { "Field": "batch_code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次号" }, { "Field": "transfered_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "流转数量" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "mes_pro_card_process": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "card_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "流转卡编号" }, { "Field": "sort", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "序号" }, { "Field": "process_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工序编号" }, { "Field": "input_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "进入工序时间" }, { "Field": "output_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "出工序时间" }, { "Field": "input_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "投入数量" }, { "Field": "output_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产出数量" }, { "Field": "unqualified_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "不合格品数量" }, { "Field": "workstation_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工位编号" }, { "Field": "user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "操作人编号" }, { "Field": "ipqc_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "过程检验单编号" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "mes_pro_feedback": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "报工单编号" }, { "Field": "type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "报工类型" }, { "Field": "channel", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "报工途径" }, { "Field": "feedback_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "报工时间" }, { "Field": "workstation_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工作站编号" }, { "Field": "route_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工艺路线编号" }, { "Field": "process_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工序编号" }, { "Field": "work_order_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产工单编号" }, { "Field": "task_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产任务编号" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产品物料编号" }, { "Field": "expire_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "过期日期" }, { "Field": "lot_number", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产批号" }, { "Field": "scheduled_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "排产数量" }, { "Field": "feedback_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "本次报工数量" }, { "Field": "qualified_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "合格品数量" }, { "Field": "unqualified_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "不良品数量" }, { "Field": "uncheck_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "待检测数量" }, { "Field": "labor_scrap_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工废数量" }, { "Field": "material_scrap_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "料废数量" }, { "Field": "other_scrap_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "其他废品数量" }, { "Field": "feedback_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "报工用户编号" }, { "Field": "approve_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "审核用户编号" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "process_instance_id", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "BPM 流程实例编号" }, { "Field": "process_definition_key", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "BPM 流程定义 Key" } ], "count": 578, "latest": [ { "id": 827, "code": "FB_20260927006", "type": 1, "channel": null, "feedback_time": "2026-09-27 14:05:39", "workstation_id": 13, "route_id": 57, "process_id": 13, "work_order_id": 85, "task_id": 940, "item_id": 1119, "expire_date": null, "lot_number": null, "scheduled_quantity": "100.000000", "feedback_quantity": "100.000000", "qualified_quantity": "100.000000", "unqualified_quantity": "0.000000", "uncheck_quantity": "0.000000", "labor_scrap_quantity": null, "material_scrap_quantity": null, "other_scrap_quantity": null, "feedback_user_id": 273, "approve_user_id": 246, "status": 4, "remark": null, "creator": "273", "create_time": "2026-09-27 14:06:18", "updater": "273", "update_time": "2026-09-27 14:06:18", "deleted": "b'\\x00'", "process_instance_id": null, "process_definition_key": null }, { "id": 826, "code": "FB_20260927005", "type": 1, "channel": null, "feedback_time": "2026-09-27 13:42:06", "workstation_id": 12, "route_id": 57, "process_id": 12, "work_order_id": 85, "task_id": 939, "item_id": 1119, "expire_date": null, "lot_number": null, "scheduled_quantity": "100.000000", "feedback_quantity": "100.000000", "qualified_quantity": "100.000000", "unqualified_quantity": "0.000000", "uncheck_quantity": "0.000000", "labor_scrap_quantity": null, "material_scrap_quantity": null, "other_scrap_quantity": null, "feedback_user_id": 273, "approve_user_id": 246, "status": 4, "remark": null, "creator": "273", "create_time": "2026-09-27 13:42:12", "updater": "273", "update_time": "2026-09-27 13:42:12", "deleted": "b'\\x00'", "process_instance_id": null, "process_definition_key": null }, { "id": 825, "code": "FB_20260927004", "type": 1, "channel": null, "feedback_time": "2026-09-27 12:34:12", "workstation_id": 11, "route_id": 57, "process_id": 11, "work_order_id": 85, "task_id": 938, "item_id": 1119, "expire_date": null, "lot_number": null, "scheduled_quantity": "100.000000", "feedback_quantity": "100.000000", "qualified_quantity": "100.000000", "unqualified_quantity": "0.000000", "uncheck_quantity": "0.000000", "labor_scrap_quantity": null, "material_scrap_quantity": null, "other_scrap_quantity": null, "feedback_user_id": 273, "approve_user_id": 246, "status": 4, "remark": null, "creator": "273", "create_time": "2026-09-27 12:34:24", "updater": "273", "update_time": "2026-09-27 12:34:24", "deleted": "b'\\x00'", "process_instance_id": null, "process_definition_key": null } ] }, "mes_pro_line": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产线编码" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产线名称" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态(0启用 1停用)" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "mes_pro_mps": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "MPS 编码" }, { "Field": "status", "Type": "tinyint", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态(0=草稿 1=已下发 2=已完成 3=已取消)" }, { "Field": "sale_order_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "销售订单ID" }, { "Field": "sale_order_no", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "销售订单号" }, { "Field": "sale_order_item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "销售订单明细ID" }, { "Field": "product_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产品编号" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "计划生产数量" }, { "Field": "quantity_produced", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.000000", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "已生产数量" }, { "Field": "unit_measure_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "计量单位ID" }, { "Field": "client_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "客户编号" }, { "Field": "request_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "需求日期" }, { "Field": "issue_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "下发日期" }, { "Field": "finish_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "完成日期" }, { "Field": "work_order_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产工单ID" }, { "Field": "work_order_code", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产工单编码" }, { "Field": "merge_flag", "Type": "tinyint", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否合并下发(0=否 1=是)" }, { "Field": "merge_batch_no", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "合并批次号" }, { "Field": "remark", "Type": "varchar(500)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "tenant_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "租户编号" } ], "count": 56, "latest": [ { "id": 3489, "code": "MPS20260925-CL-0056", "status": 2, "sale_order_id": null, "sale_order_no": null, "sale_order_item_id": null, "product_id": 1119, "quantity": "100.000000", "quantity_produced": "100.000000", "unit_measure_id": 9, "client_id": null, "request_date": "2026-09-27 08:00:00", "issue_date": "2026-09-25 15:57:21", "finish_date": "2026-09-27 14:05:00", "work_order_id": 85, "work_order_code": "WO_20260927001", "merge_flag": 0, "merge_batch_no": null, "remark": "2026年9月产量计划(西北精致礼盒)", "creator": "1", "create_time": "2026-09-25 15:53:57", "updater": "1", "update_time": "2026-09-25 15:58:00", "deleted": "b'\\x00'", "tenant_id": 0 }, { "id": 3488, "code": "MPS20260923-CL-0055", "status": 2, "sale_order_id": null, "sale_order_no": null, "sale_order_item_id": null, "product_id": 1120, "quantity": "100.000000", "quantity_produced": "100.000000", "unit_measure_id": 9, "client_id": null, "request_date": "2026-09-26 08:00:00", "issue_date": "2026-09-23 17:44:52", "finish_date": "2026-09-26 14:13:00", "work_order_id": 84, "work_order_code": "WO_20260926002", "merge_flag": 0, "merge_batch_no": null, "remark": "2026年9月产量计划(藜麦大礼包)", "creator": "1", "create_time": "2026-09-23 17:41:29", "updater": "1", "update_time": "2026-09-23 17:45:30", "deleted": "b'\\x00'", "tenant_id": 0 }, { "id": 3487, "code": "MPS20260924-CL-0054", "status": 2, "sale_order_id": null, "sale_order_no": null, "sale_order_item_id": null, "product_id": 1122, "quantity": "100.000000", "quantity_produced": "100.000000", "unit_measure_id": 9, "client_id": null, "request_date": "2026-09-26 08:00:00", "issue_date": "2026-09-24 10:31:23", "finish_date": "2026-09-26 16:37:00", "work_order_id": 83, "work_order_code": "WO_20260926001", "merge_flag": 0, "merge_batch_no": null, "remark": "2026年9月产量计划(冻干礼盒-200克)", "creator": "1", "create_time": "2026-09-24 10:28:01", "updater": "1", "update_time": "2026-09-24 10:32:00", "deleted": "b'\\x00'", "tenant_id": 0 } ] }, "mes_pro_mps_merge_item": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "merge_batch_no", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "合并批次号" }, { "Field": "mps_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "MPS 编号" }, { "Field": "work_order_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生成的生产工单ID" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "分配数量" }, { "Field": "remark", "Type": "varchar(500)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "tenant_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "租户编号" } ], "count": 0, "latest": [] }, "mes_pro_pallet": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "UNI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "托盘码(批次号-P+托盘序号,全局唯一)" }, { "Field": "batch_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产批次编号,关联 mes_pro_batch.id" }, { "Field": "batch_code", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次号(冗余,便于展示)" }, { "Field": "pallet_no", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次内托盘序号" }, { "Field": "capacity", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "可装袋数(袋/托盘)" }, { "Field": "bag_count", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "已绑定袋码数量" }, { "Field": "status", "Type": "tinyint", "Collation": null, "Null": "NO", "Key": "", "Default": "10", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态(字典 mes_pro_pallet_status:10 启用 20 作废)" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "mes_pro_process": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工序编码" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工序名称" }, { "Field": "attention", "Type": "varchar(500)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工艺要求" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 46, "latest": [ { "id": 46, "code": "PR-STP-046", "name": "配制高剪切", "attention": "按路线对应的原始规程版本执行;各产品温度、时间、压力不得混用。带*控制点按路线设置需要质检,所有工序非倒冲、手动领料。", "status": 0, "remark": "来源:生产工艺规程工序去重;参数按原文产品和版本执行。", "creator": "1", "create_time": "2026-09-18 16:47:35", "updater": "1", "update_time": "2026-10-12 22:52:26", "deleted": "b'\\x00'" }, { "id": 45, "code": "PR-STP-045", "name": "浓缩", "attention": "按路线对应的原始规程版本执行;各产品温度、时间、压力不得混用。带*控制点按路线设置需要质检,所有工序非倒冲、手动领料。", "status": 0, "remark": "来源:生产工艺规程工序去重;参数按原文产品和版本执行。", "creator": "1", "create_time": "2026-09-18 16:33:58", "updater": "1", "update_time": "2026-10-12 22:52:26", "deleted": "b'\\x00'" }, { "id": 44, "code": "PR-STP-044", "name": "煮提", "attention": "按路线对应的原始规程版本执行;各产品温度、时间、压力不得混用。带*控制点按路线设置需要质检,所有工序非倒冲、手动领料。", "status": 0, "remark": "来源:生产工艺规程工序去重;参数按原文产品和版本执行。", "creator": "1", "create_time": "2026-09-18 16:18:15", "updater": "1", "update_time": "2026-10-12 22:52:26", "deleted": "b'\\x00'" } ] }, "mes_pro_process_content": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "process_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工序编号" }, { "Field": "sort", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "顺序编号" }, { "Field": "content", "Type": "varchar(500)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "步骤说明" }, { "Field": "device", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "辅助设备" }, { "Field": "material", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "辅助材料" }, { "Field": "doc_url", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "材料文档 URL" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 575, "latest": [ { "id": 575, "process_id": 46, "sort": 1, "content": "【STP-YL-017-00;段落141】3.2.4配制、高剪切:在上述料液中加入苹果浓缩汁、百香果浓缩汁、麦芽糖浆、黑果腺肋花楸果浓缩汁;将玉米低聚肽粉、魔芋胶、木糖醇、唾液乳杆菌JYLS-372、山梨酸钾混合后持续缓慢加入料液中,同时开启高剪切;", "device": null, "material": null, "doc_url": null, "remark": "原文摘录;仅适用所列产品规程。共同工序的不同版本参数不合并。", "creator": "1", "create_time": "2026-10-12 19:02:32", "updater": "1", "update_time": "2026-10-12 19:02:32", "deleted": "b'\\x00'" }, { "id": 574, "process_id": 45, "sort": 1, "content": "【STP-YL-017-00;段落140】3.2.3浓缩:将过滤后的料液浓缩至密度为1.10;", "device": null, "material": null, "doc_url": null, "remark": "原文摘录;仅适用所列产品规程。共同工序的不同版本参数不合并。", "creator": "1", "create_time": "2026-10-12 19:02:32", "updater": "1", "update_time": "2026-10-12 19:02:32", "deleted": "b'\\x00'" }, { "id": 573, "process_id": 44, "sort": 1, "content": "【STP-YL-017-00;段落138】3.2.1煮提:依次称取葛根、枳椇子、人参、百合,10倍水浸泡30min,煮提2h;", "device": null, "material": null, "doc_url": null, "remark": "原文摘录;仅适用所列产品规程。共同工序的不同版本参数不合并。", "creator": "1", "create_time": "2026-10-12 19:02:32", "updater": "1", "update_time": "2026-10-12 19:02:32", "deleted": "b'\\x00'" } ] }, "mes_pro_process_param": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "process_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工序编号(关联 mes_pro_process)" }, { "Field": "process_param_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工艺参数编号(关联 mes_pd_process_param)" }, { "Field": "required", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否必填" }, { "Field": "sort", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "排序" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 68, "latest": [ { "id": 68, "process_id": 46, "process_param_id": 2, "required": "b'\\x00'", "sort": 3, "remark": "通用记录项;产品工艺限值以路线工序模板为准。", "creator": "1", "create_time": "2026-10-12 19:46:30", "updater": "1", "update_time": "2026-10-12 19:46:30", "deleted": "b'\\x00'" }, { "id": 67, "process_id": 46, "process_param_id": 6, "required": "b'\\x00'", "sort": 2, "remark": "通用记录项;产品工艺限值以路线工序模板为准。", "creator": "1", "create_time": "2026-10-12 19:46:30", "updater": "1", "update_time": "2026-10-12 19:46:30", "deleted": "b'\\x00'" }, { "id": 66, "process_id": 46, "process_param_id": 16, "required": "b'\\x00'", "sort": 1, "remark": "通用记录项;产品工艺限值以路线工序模板为准。", "creator": "1", "create_time": "2026-10-12 19:46:30", "updater": "1", "update_time": "2026-10-12 19:46:30", "deleted": "b'\\x00'" } ] }, "mes_pro_route": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工艺路线编码" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工艺路线名称" }, { "Field": "description", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工艺路线说明" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 56, "latest": [ { "id": 57, "code": "RT-STP-LH-001-01", "name": "礼盒组装工艺路线(STP-LH-001-01)", "description": "按2026年9月产量计划补充:礼盒组装", "status": 1, "remark": "按2026年9月产量表补充的工艺路线(示意BOM,实际配方以客户工艺文件为准)", "creator": "1", "create_time": "2026-08-24 11:38:39", "updater": "1", "update_time": "2026-08-24 11:38:39", "deleted": "b'\\x00'" }, { "id": 56, "code": "RT-STP-YP-001-01", "name": "营养饮品工艺路线(STP-YP-001-01)", "description": "按2026年9月产量表补充:营养饮品 配制-灭菌-灌装-包装", "status": 1, "remark": "按2026年9月产量表补充的工艺路线(示意BOM,实际配方以客户工艺文件为准)", "creator": "1", "create_time": "2026-08-24 11:37:26", "updater": "1", "update_time": "2026-08-24 11:37:26", "deleted": "b'\\x00'" }, { "id": 55, "code": "RT-STP-YW-001-01", "name": "即食洞燕窝工艺路线(STP-YW-001-01)", "description": "按2026年9月产量表补充:即食小罐/碗装洞燕窝 挑毛-炖煮-灌装-灭菌-包装", "status": 1, "remark": "按2026年9月产量表补充的工艺路线(示意BOM,实际配方以客户工艺文件为准)", "creator": "1", "create_time": "2026-08-24 15:38:26", "updater": "1", "update_time": "2026-08-24 15:38:26", "deleted": "b'\\x00'" } ] }, "mes_pro_route_process": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "route_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工艺路线编号" }, { "Field": "process_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工序编号" }, { "Field": "param_template_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工艺参数模板编号" }, { "Field": "sort", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "序号" }, { "Field": "next_process_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "下一道工序编号" }, { "Field": "link_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "与下一道工序关系" }, { "Field": "prepare_time", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "准备时间(分钟)" }, { "Field": "wait_time", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "等待时间(分钟)" }, { "Field": "color_code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "甘特图显示颜色" }, { "Field": "key_flag", "Type": "bit(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否关键工序" }, { "Field": "check_flag", "Type": "bit(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否质检工序" }, { "Field": "backflush_flag", "Type": "bit(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "b'1'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否倒冲" }, { "Field": "output_item_id", "Type": "varchar(500)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产出产品物料编号,多个用逗号分隔" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 687, "latest": [ { "id": 687, "route_id": 57, "process_id": 13, "param_template_id": 13, "sort": 60, "next_process_id": null, "link_type": 3, "prepare_time": null, "wait_time": null, "color_code": null, "key_flag": "b'\\x00'", "check_flag": "b'\\x00'", "backflush_flag": "b'\\x00'", "output_item_id": null, "remark": null, "creator": "1", "create_time": "2026-08-24 11:40:06", "updater": "1", "update_time": "2026-08-24 11:40:06", "deleted": "b'\\x00'" }, { "id": 686, "route_id": 57, "process_id": 12, "param_template_id": 12, "sort": 50, "next_process_id": 13, "link_type": 3, "prepare_time": null, "wait_time": null, "color_code": null, "key_flag": "b'\\x00'", "check_flag": "b'\\x01'", "backflush_flag": "b'\\x00'", "output_item_id": null, "remark": null, "creator": "1", "create_time": "2026-08-24 11:40:05", "updater": "1", "update_time": "2026-08-24 11:40:05", "deleted": "b'\\x00'" }, { "id": 685, "route_id": 57, "process_id": 11, "param_template_id": 11, "sort": 40, "next_process_id": 12, "link_type": 3, "prepare_time": null, "wait_time": null, "color_code": null, "key_flag": "b'\\x01'", "check_flag": "b'\\x00'", "backflush_flag": "b'\\x00'", "output_item_id": null, "remark": null, "creator": "1", "create_time": "2026-08-24 11:40:04", "updater": "1", "update_time": "2026-08-24 11:40:04", "deleted": "b'\\x00'" } ] }, "mes_pro_route_product": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "route_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工艺路线编号" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产品物料编号" }, { "Field": "quantity", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产数量" }, { "Field": "production_time", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产用时" }, { "Field": "time_unit_type", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "时间单位" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 137, "latest": [ { "id": 138, "route_id": 57, "item_id": 1119, "quantity": null, "production_time": null, "time_unit_type": null, "remark": null, "creator": "1", "create_time": "2026-08-24 11:40:57", "updater": "1", "update_time": "2026-08-24 11:40:57", "deleted": "b'\\x00'" }, { "id": 137, "route_id": 57, "item_id": 1120, "quantity": null, "production_time": null, "time_unit_type": null, "remark": null, "creator": "1", "create_time": "2026-08-24 11:40:56", "updater": "1", "update_time": "2026-08-24 11:40:56", "deleted": "b'\\x00'" }, { "id": 136, "route_id": 56, "item_id": 1547, "quantity": null, "production_time": null, "time_unit_type": null, "remark": null, "creator": "1", "create_time": "2026-08-24 11:39:42", "updater": "1", "update_time": "2026-08-24 11:39:42", "deleted": "b'\\x00'" } ] }, "mes_pro_route_product_bom": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "route_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工艺路线编号" }, { "Field": "process_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工序编号" }, { "Field": "product_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产品物料编号" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "BOM 物料编号" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "用料比例" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 585, "latest": [ { "id": 585, "route_id": 57, "process_id": 11, "product_id": 1119, "item_id": 1167, "quantity": "1.000000", "remark": null, "creator": "1", "create_time": "2026-08-24 11:48:24", "updater": "1", "update_time": "2026-08-24 11:48:24", "deleted": "b'\\x00'" }, { "id": 584, "route_id": 57, "process_id": 10, "product_id": 1119, "item_id": 1185, "quantity": "1.000000", "remark": null, "creator": "1", "create_time": "2026-08-24 11:48:23", "updater": "1", "update_time": "2026-08-24 11:48:23", "deleted": "b'\\x00'" }, { "id": 583, "route_id": 57, "process_id": 1, "product_id": 1119, "item_id": 827, "quantity": "1.000000", "remark": null, "creator": "1", "create_time": "2026-08-24 11:48:22", "updater": "1", "update_time": "2026-08-24 11:48:22", "deleted": "b'\\x00'" } ] }, "mes_pro_task": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "任务编码" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "任务名称" }, { "Field": "work_order_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产工单编号" }, { "Field": "workstation_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工作站编号" }, { "Field": "route_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工艺路线编号" }, { "Field": "process_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工序编号" }, { "Field": "param_template_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工艺参数模板编号" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产品物料编号" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "排产数量" }, { "Field": "produced_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "已生产数量" }, { "Field": "qualify_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "合格品数量" }, { "Field": "unqualify_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "不良品数量" }, { "Field": "changed_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "调整数量" }, { "Field": "client_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "客户编号" }, { "Field": "start_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "开始生产时间" }, { "Field": "duration", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产时长" }, { "Field": "end_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "结束生产时间" }, { "Field": "color_code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "甘特图显示颜色" }, { "Field": "finish_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "完成日期" }, { "Field": "cancel_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "取消日期" }, { "Field": "first_feedback_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "首次报工时间" }, { "Field": "last_feedback_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最近报工时间" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "任务状态" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 578, "latest": [ { "id": 940, "code": "TK_20260927006", "name": "西北精致礼盒(内购专用)【100.000000】 盒", "work_order_id": 85, "workstation_id": 13, "route_id": 57, "process_id": 13, "param_template_id": 13, "item_id": 1119, "quantity": "100.000000", "produced_quantity": "100.000000", "qualify_quantity": "100.000000", "unqualify_quantity": "0.000000", "changed_quantity": null, "client_id": null, "start_time": "2026-09-27 12:05:39", "duration": null, "end_time": "2026-09-27 14:05:00", "color_code": null, "finish_date": "2026-09-27 14:05:00", "cancel_date": null, "first_feedback_time": "2026-09-27 14:05:00", "last_feedback_time": "2026-09-27 14:05:00", "status": 4, "remark": null, "creator": "1", "create_time": "2026-09-27 12:05:39", "updater": "1", "update_time": "2026-09-27 14:05:39", "deleted": "b'\\x00'" }, { "id": 939, "code": "TK_20260927005", "name": "西北精致礼盒(内购专用)【100.000000】 盒", "work_order_id": 85, "workstation_id": 12, "route_id": 57, "process_id": 12, "param_template_id": 12, "item_id": 1119, "quantity": "100.000000", "produced_quantity": "100.000000", "qualify_quantity": "100.000000", "unqualify_quantity": "0.000000", "changed_quantity": null, "client_id": null, "start_time": "2026-09-27 11:42:06", "duration": null, "end_time": "2026-09-27 13:42:00", "color_code": null, "finish_date": "2026-09-27 13:42:00", "cancel_date": null, "first_feedback_time": "2026-09-27 13:42:00", "last_feedback_time": "2026-09-27 13:42:00", "status": 4, "remark": null, "creator": "1", "create_time": "2026-09-27 11:42:06", "updater": "1", "update_time": "2026-09-27 13:42:06", "deleted": "b'\\x00'" }, { "id": 938, "code": "TK_20260927004", "name": "西北精致礼盒(内购专用)【100.000000】 盒", "work_order_id": 85, "workstation_id": 11, "route_id": 57, "process_id": 11, "param_template_id": 11, "item_id": 1119, "quantity": "100.000000", "produced_quantity": "100.000000", "qualify_quantity": "100.000000", "unqualify_quantity": "0.000000", "changed_quantity": null, "client_id": null, "start_time": "2026-09-27 10:34:12", "duration": null, "end_time": "2026-09-27 12:34:00", "color_code": null, "finish_date": "2026-09-27 12:34:00", "cancel_date": null, "first_feedback_time": "2026-09-27 12:34:00", "last_feedback_time": "2026-09-27 12:34:00", "status": 4, "remark": null, "creator": "1", "create_time": "2026-09-27 10:34:12", "updater": "1", "update_time": "2026-09-27 12:34:12", "deleted": "b'\\x00'" } ] }, "mes_pro_task_assignee": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "task_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产任务 ID" }, { "Field": "user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "系统用户 ID (指定报工人员)" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "mes_pro_task_issue": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "task_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产任务编号" }, { "Field": "work_order_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产工单编号" }, { "Field": "workstation_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工作站编号" }, { "Field": "source_doc_type", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "来源单据类型" }, { "Field": "source_doc_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "来源单据编号" }, { "Field": "source_line_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "来源单据行编号" }, { "Field": "source_doc_code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "来源单据编码" }, { "Field": "batch_code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "投料批次" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产品物料编号" }, { "Field": "unit_measure_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "单位编号" }, { "Field": "issued_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "总投料数量" }, { "Field": "available_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "当前可用数量" }, { "Field": "used_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "当前使用数量" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 123, "latest": [ { "id": 123, "task_id": 935, "work_order_id": 85, "workstation_id": 1, "source_doc_type": "PRODUCT_ISSUE", "source_doc_id": 45, "source_line_id": 123, "source_doc_code": "LWL202609270001", "batch_code": "INIT202609-81003768", "item_id": 1167, "unit_measure_id": 24, "issued_quantity": "100.000000", "available_quantity": "100.000000", "used_quantity": "0.000000", "remark": null, "creator": "1", "create_time": "2026-09-27 07:48:45", "updater": "1", "update_time": "2026-09-27 07:48:45", "deleted": "b'\\x00'" }, { "id": 122, "task_id": 935, "work_order_id": 85, "workstation_id": 1, "source_doc_type": "PRODUCT_ISSUE", "source_doc_id": 45, "source_line_id": 122, "source_doc_code": "LWL202609270001", "batch_code": "INIT202609-81003966", "item_id": 1185, "unit_measure_id": 24, "issued_quantity": "100.000000", "available_quantity": "100.000000", "used_quantity": "0.000000", "remark": null, "creator": "1", "create_time": "2026-09-27 07:48:44", "updater": "1", "update_time": "2026-09-27 07:48:44", "deleted": "b'\\x00'" }, { "id": 121, "task_id": 929, "work_order_id": 84, "workstation_id": 1, "source_doc_type": "PRODUCT_ISSUE", "source_doc_id": 44, "source_line_id": 121, "source_doc_code": "LWL202609260002", "batch_code": "INIT202609-81003768", "item_id": 1167, "unit_measure_id": 24, "issued_quantity": "100.000000", "available_quantity": "100.000000", "used_quantity": "0.000000", "remark": null, "creator": "1", "create_time": "2026-09-26 07:41:53", "updater": "1", "update_time": "2026-09-26 07:41:53", "deleted": "b'\\x00'" } ] }, "mes_pro_task_pause_record": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "task_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "任务编号" }, { "Field": "work_order_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工单编号" }, { "Field": "workstation_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工作站编号" }, { "Field": "reason", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "停工原因" }, { "Field": "pause_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "停工时间" }, { "Field": "pause_user_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "停工操作人ID" }, { "Field": "resume_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "复工时间" }, { "Field": "resume_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "复工操作人ID" }, { "Field": "remark", "Type": "varchar(500)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "tenant_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "租户编号" } ], "count": 0, "latest": [] }, "mes_pro_work_order": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工单编码" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工单名称" }, { "Field": "type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工单类型" }, { "Field": "order_source_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "来源类型" }, { "Field": "order_source_code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "来源单据编号" }, { "Field": "product_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产品编号" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产数量" }, { "Field": "quantity_produced", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "已生产数量" }, { "Field": "quantity_changed", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "调整数量" }, { "Field": "quantity_scheduled", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "已排产数量" }, { "Field": "client_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "客户编号" }, { "Field": "vendor_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "供应商编号" }, { "Field": "batch_code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次号" }, { "Field": "route_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工艺路线编号" }, { "Field": "auto_finish_flag", "Type": "tinyint(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否自动完成" }, { "Field": "request_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "需求日期" }, { "Field": "parent_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "父工单编号" }, { "Field": "finish_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "完成时间" }, { "Field": "cancel_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "取消时间" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工单状态" }, { "Field": "process_instance_id", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "BPM 流程实例编号" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "is_feedback_approve", "Type": "tinyint(1)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否开启报工审批 (1: 开启, 0/NULL: 关闭)" }, { "Field": "process_definition_key", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "BPM 流程定义 Key" }, { "Field": "feedback_role", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "报工角色 (多个角色以逗号分隔)" } ], "count": 56, "latest": [ { "id": 85, "code": "WO_20260927001", "name": "生产工单-西北精致礼盒(内购专用)-2026年9月", "type": 1, "order_source_type": 2, "order_source_code": null, "product_id": 1119, "quantity": "100.000000", "quantity_produced": "100.000000", "quantity_changed": null, "quantity_scheduled": "100.000000", "client_id": null, "vendor_id": null, "batch_code": null, "route_id": 57, "auto_finish_flag": 1, "request_date": "2026-09-27 08:00:00", "parent_id": null, "finish_date": "2026-09-27 14:05:00", "cancel_date": null, "status": 2, "process_instance_id": null, "remark": "2026年9月产量计划(西北精致礼盒)", "creator": "1", "create_time": "2026-09-25 15:59:26", "updater": "1", "update_time": "2026-10-13 12:39:33", "deleted": "b'\\x00'", "is_feedback_approve": null, "process_definition_key": null, "feedback_role": null }, { "id": 84, "code": "WO_20260926002", "name": "生产工单-黎麦大礼包(内购专用)-2026年9月", "type": 1, "order_source_type": 2, "order_source_code": null, "product_id": 1120, "quantity": "100.000000", "quantity_produced": "100.000000", "quantity_changed": null, "quantity_scheduled": "100.000000", "client_id": null, "vendor_id": null, "batch_code": null, "route_id": 57, "auto_finish_flag": 1, "request_date": "2026-09-26 08:00:00", "parent_id": null, "finish_date": "2026-09-26 14:13:00", "cancel_date": null, "status": 2, "process_instance_id": null, "remark": "2026年9月产量计划(藜麦大礼包)", "creator": "1", "create_time": "2026-09-23 17:46:56", "updater": "1", "update_time": "2026-10-13 12:39:33", "deleted": "b'\\x00'", "is_feedback_approve": null, "process_definition_key": null, "feedback_role": null }, { "id": 83, "code": "WO_20260926001", "name": "生产工单-冻干枸杞(金标)(内购专用)-2026年9月", "type": 1, "order_source_type": 2, "order_source_code": null, "product_id": 1122, "quantity": "100.000000", "quantity_produced": "100.000000", "quantity_changed": null, "quantity_scheduled": "100.000000", "client_id": null, "vendor_id": null, "batch_code": null, "route_id": 4, "auto_finish_flag": 1, "request_date": "2026-09-26 08:00:00", "parent_id": null, "finish_date": "2026-09-26 16:37:00", "cancel_date": null, "status": 2, "process_instance_id": null, "remark": "2026年9月产量计划(冻干礼盒-200克)", "creator": "1", "create_time": "2026-09-24 10:33:26", "updater": "1", "update_time": "2026-10-13 12:39:33", "deleted": "b'\\x00'", "is_feedback_approve": null, "process_definition_key": null, "feedback_role": null } ] }, "mes_pro_work_order_bom": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "work_order_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产工单编号" }, { "Field": "process_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工序编号" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "BOM 物料编号" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "预计使用量" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 151, "latest": [ { "id": 287, "work_order_id": 85, "process_id": 11, "item_id": 1167, "quantity": "100.000000", "remark": null, "creator": "1", "create_time": "2026-09-25 15:59:43", "updater": "1", "update_time": "2026-09-25 15:59:43", "deleted": "b'\\x00'" }, { "id": 286, "work_order_id": 85, "process_id": 10, "item_id": 1185, "quantity": "100.000000", "remark": null, "creator": "1", "create_time": "2026-09-25 15:59:42", "updater": "1", "update_time": "2026-09-25 15:59:42", "deleted": "b'\\x00'" }, { "id": 285, "work_order_id": 85, "process_id": 1, "item_id": 827, "quantity": "100.000000", "remark": null, "creator": "1", "create_time": "2026-09-25 15:59:41", "updater": "1", "update_time": "2026-09-25 15:59:41", "deleted": "b'\\x00'" } ] }, "mes_pro_work_order_param_record": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "work_order_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产工单编号" }, { "Field": "template_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "参数模板编号(工序绑定参数生成时为空)" }, { "Field": "template_code", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "模板编码(快照)" }, { "Field": "template_name", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "模板名称(快照)" }, { "Field": "record_no", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "记录序号/批次号" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "task_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } ], "count": 0, "latest": [] }, "mes_pro_work_order_param_record_detail": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "record_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "参数记录编号" }, { "Field": "template_detail_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "模板明细编号(溯源用)" }, { "Field": "param_code", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "参数编码(快照)" }, { "Field": "param_name", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "参数名称(快照)" }, { "Field": "param_type", "Type": "tinyint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "参数类型(快照)" }, { "Field": "required", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否必填(快照)" }, { "Field": "unit_measure_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "计量单位编号(快照)" }, { "Field": "param_value", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "参数值" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "mes_pro_work_order_process": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "work_order_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产工单编号" }, { "Field": "process_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工序编号" }, { "Field": "param_template_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工艺参数模板编号" }, { "Field": "sort", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "序号" }, { "Field": "next_process_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "下一道工序编号" }, { "Field": "link_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "与下一道工序关系" }, { "Field": "prepare_time", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "准备时间(分钟)" }, { "Field": "wait_time", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "等待时间(分钟)" }, { "Field": "color_code", "Type": "varchar(255)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "甘特图显示颜色" }, { "Field": "key_flag", "Type": "bit(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否关键工序" }, { "Field": "check_flag", "Type": "bit(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否质检工序" }, { "Field": "backflush_flag", "Type": "bit(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "b'1'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否倒冲" }, { "Field": "output_item_id", "Type": "varchar(500)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产出产品物料编号,多个用逗号分隔" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 578, "latest": [ { "id": 902, "work_order_id": 85, "process_id": 13, "param_template_id": 13, "sort": 60, "next_process_id": null, "link_type": null, "prepare_time": 0, "wait_time": 0, "color_code": null, "key_flag": "b'\\x00'", "check_flag": "b'\\x00'", "backflush_flag": "b'\\x00'", "output_item_id": null, "remark": null, "creator": "1", "create_time": "2026-09-25 15:59:28", "updater": "1", "update_time": "2026-09-25 15:59:28", "deleted": "b'\\x00'" }, { "id": 901, "work_order_id": 85, "process_id": 12, "param_template_id": 12, "sort": 50, "next_process_id": null, "link_type": null, "prepare_time": 0, "wait_time": 0, "color_code": null, "key_flag": "b'\\x00'", "check_flag": "b'\\x01'", "backflush_flag": "b'\\x00'", "output_item_id": null, "remark": null, "creator": "1", "create_time": "2026-09-25 15:59:27", "updater": "1", "update_time": "2026-09-25 15:59:27", "deleted": "b'\\x00'" }, { "id": 900, "work_order_id": 85, "process_id": 11, "param_template_id": 11, "sort": 40, "next_process_id": null, "link_type": null, "prepare_time": 0, "wait_time": 0, "color_code": null, "key_flag": "b'\\x01'", "check_flag": "b'\\x00'", "backflush_flag": "b'\\x00'", "output_item_id": null, "remark": null, "creator": "1", "create_time": "2026-09-25 15:59:26", "updater": "1", "update_time": "2026-09-25 15:59:26", "deleted": "b'\\x00'" } ] }, "mes_pro_work_record": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "用户编号" }, { "Field": "workstation_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工作站编号" }, { "Field": "type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "当前状态" }, { "Field": "clock_in_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "上工时间" }, { "Field": "clock_out_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "下工时间" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 1, "latest": [ { "id": 1, "user_id": 244, "workstation_id": 11, "type": 2, "clock_in_time": "2026-10-13 11:51:19", "clock_out_time": "2026-10-13 11:52:00", "remark": null, "creator": "244", "create_time": "2026-10-13 11:51:19", "updater": "244", "update_time": "2026-10-13 11:52:00", "deleted": "b'\\x00'" } ] }, "mes_pro_work_record_log": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "用户编号" }, { "Field": "workstation_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工作站编号" }, { "Field": "type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "操作类型" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 2, "latest": [ { "id": 2, "user_id": 244, "workstation_id": 11, "type": 2, "remark": null, "creator": "244", "create_time": "2026-10-13 11:52:00", "updater": "244", "update_time": "2026-10-13 11:52:00", "deleted": "b'\\x00'" }, { "id": 1, "user_id": 244, "workstation_id": 11, "type": 1, "remark": null, "creator": "244", "create_time": "2026-10-13 11:51:19", "updater": "244", "update_time": "2026-10-13 11:51:19", "deleted": "b'\\x00'" } ] }, "mes_qc_defect": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "缺陷编码" }, { "Field": "name", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "缺陷描述" }, { "Field": "type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检测项类型" }, { "Field": "level", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "缺陷等级" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 12, "latest": [ { "id": 12, "code": "DEF-012", "name": "单件重量偏差超限", "type": 3, "level": 3, "remark": "单件重量超出允差范围", "creator": "247", "create_time": "2026-10-14 17:44:06", "updater": "247", "update_time": "2026-10-14 17:44:06", "deleted": "b'\\x00'" }, { "id": 11, "code": "DEF-011", "name": "标签信息缺失或错误", "type": 2, "level": 3, "remark": "标签内容缺失、错印", "creator": "247", "create_time": "2026-10-14 17:44:06", "updater": "247", "update_time": "2026-10-14 17:44:06", "deleted": "b'\\x00'" }, { "id": 10, "code": "DEF-010", "name": "内包装密封不严", "type": 2, "level": 2, "remark": "封口不严、易漏液", "creator": "247", "create_time": "2026-10-14 17:44:06", "updater": "247", "update_time": "2026-10-14 17:44:06", "deleted": "b'\\x00'" } ] }, "mes_qc_defect_record": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "qc_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检验类型" }, { "Field": "qc_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检验单编号" }, { "Field": "line_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检验行编号" }, { "Field": "name", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "缺陷描述" }, { "Field": "level", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "缺陷等级" }, { "Field": "quantity", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "缺陷数量" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "mes_qc_indicator": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检测项编码" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检测项名称" }, { "Field": "parent_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "父指标编号(0=顶级)" }, { "Field": "item_type", "Type": "tinyint", "Collation": null, "Null": "NO", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "条目类型:1=录入项,2=分组项" }, { "Field": "formula_text", "Type": "varchar(500)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "公式展示文本(打印报告用,不参与计算)" }, { "Field": "unit_text", "Type": "varchar(50)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "单位文本(如 kg/m³、/%,打印展示用)" }, { "Field": "sort_order", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "同级排序号" }, { "Field": "type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检测项类型" }, { "Field": "tool", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检测工具" }, { "Field": "result_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "结果值类型" }, { "Field": "result_specification", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "结果值属性" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 287, "latest": [ { "id": 407, "code": "GB-IQC-66ba9c7140dbab3a736f53db", "name": "甲醇含量", "parent_id": 0, "item_type": 2, "formula_text": "食用酒精含量≥20%的产品≤0.2;其余不适用", "unit_text": "%", "sort_order": 0, "type": 4, "tool": null, "result_type": null, "result_specification": null, "remark": "来源:食品安全国家标准;文本录入并人工判定,不自动生成实测结果。", "creator": "1", "create_time": "2026-09-18 17:57:10", "updater": "289", "update_time": "2026-10-13 11:27:59", "deleted": "b'\\x00'" }, { "id": 404, "code": "GB-IQC-65bf454607bc9f4835d795c4", "name": "千倍稀释液稳定性", "parent_id": 3, "item_type": 1, "formula_text": null, "unit_text": "", "sort_order": 0, "type": 4, "tool": "感官检验(目测、嗅辨、品尝;无专用仪器)", "result_type": 3, "result_specification": "饮料用乳化香精无浮油、无沉淀;其余不适用", "remark": "来源:食品安全国家标准;文本录入并人工判定,不自动生成实测结果。", "creator": "1", "create_time": "2026-09-18 17:42:02", "updater": "291", "update_time": "2026-10-13 14:28:13", "deleted": "b'\\x00'" }, { "id": 403, "code": "GB-IQC-ba6f4135f0d2aa1a3944ee99", "name": "原液稳定性", "parent_id": 0, "item_type": 1, "formula_text": null, "unit_text": "", "sort_order": 0, "type": 4, "tool": "感官检验(目测、嗅辨、品尝;无专用仪器)", "result_type": 3, "result_specification": "乳化香精不分层;其余不适用", "remark": "来源:食品安全国家标准;文本录入并人工判定,不自动生成实测结果。", "creator": "1", "create_time": "2026-09-18 17:40:19", "updater": "289", "update_time": "2026-10-13 11:21:31", "deleted": "b'\\x00'" } ] }, "mes_qc_indicator_result": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "样品编号" }, { "Field": "qc_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "关联质检单编号" }, { "Field": "qc_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "质检类型" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产品物料编号" }, { "Field": "sn", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物资 SN" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 191, "latest": [ { "id": 1220, "code": "Y20260925002", "qc_id": 46, "qc_type": 1, "item_id": 938, "sn": null, "remark": null, "creator": "290", "create_time": "2026-10-14 18:14:29", "updater": "290", "update_time": "2026-10-14 18:14:29", "deleted": "b'\\x00'" }, { "id": 1217, "code": "IR-OQC-297", "qc_id": 297, "qc_type": 3, "item_id": 1118, "sn": null, "remark": null, "creator": "1", "create_time": "2026-10-14 16:51:06", "updater": "1", "update_time": "2026-10-14 16:51:06", "deleted": "b'\\x00'" }, { "id": 1216, "code": "IR-OQC-296", "qc_id": 296, "qc_type": 3, "item_id": 509, "sn": null, "remark": null, "creator": "1", "create_time": "2026-10-14 16:51:06", "updater": "1", "update_time": "2026-10-14 16:51:06", "deleted": "b'\\x00'" } ] }, "mes_qc_indicator_result_detail": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "result_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "关联检验结果编号" }, { "Field": "indicator_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检测指标编号" }, { "Field": "measure_no", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "测量批次号(从 1 开始,默认 1)" }, { "Field": "value", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检测值" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 3455, "latest": [ { "id": 6027, "result_id": 1220, "indicator_id": 62, "measure_no": 1, "value": null, "remark": null, "creator": "290", "create_time": "2026-10-14 18:14:29", "updater": "290", "update_time": "2026-10-14 18:14:29", "deleted": "b'\\x00'" }, { "id": 6026, "result_id": 1220, "indicator_id": 29, "measure_no": 1, "value": null, "remark": null, "creator": "290", "create_time": "2026-10-14 18:14:29", "updater": "290", "update_time": "2026-10-14 18:14:29", "deleted": "b'\\x00'" }, { "id": 6025, "result_id": 1220, "indicator_id": 61, "measure_no": 1, "value": null, "remark": null, "creator": "290", "create_time": "2026-10-14 18:14:29", "updater": "290", "update_time": "2026-10-14 18:14:29", "deleted": "b'\\x00'" } ] }, "mes_qc_ipqc": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检验单编号" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检验单名称" }, { "Field": "type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "IPQC 检验类型" }, { "Field": "template_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检验模板编号" }, { "Field": "source_doc_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "来源单据类型" }, { "Field": "source_doc_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "来源单据编号" }, { "Field": "source_line_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "来源单据行编号" }, { "Field": "source_doc_code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "来源单据编号" }, { "Field": "work_order_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产工单编号" }, { "Field": "task_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产任务编号" }, { "Field": "workstation_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工位编号" }, { "Field": "process_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工序编号" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产品物料编号" }, { "Field": "check_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检测数量" }, { "Field": "qualified_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "合格品数量" }, { "Field": "unqualified_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "不合格品数量" }, { "Field": "labor_scrap_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工废数量" }, { "Field": "material_scrap_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "料废数量" }, { "Field": "other_scrap_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "其他废品数量" }, { "Field": "critical_rate", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "致命缺陷率" }, { "Field": "major_rate", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "严重缺陷率" }, { "Field": "minor_rate", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "轻微缺陷率" }, { "Field": "critical_quantity", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "致命缺陷数量" }, { "Field": "major_quantity", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "严重缺陷数量" }, { "Field": "minor_quantity", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "轻微缺陷数量" }, { "Field": "check_result", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检测结果" }, { "Field": "inspect_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检测日期" }, { "Field": "inspector_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检测人员用户编号" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态" }, { "Field": "sampling_location", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "采样地点" }, { "Field": "certificate_no", "Type": "varchar(50)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "证书编号/合格证号" }, { "Field": "execute_standard", "Type": "varchar(50)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "执行标准" }, { "Field": "audit_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "复核人用户编号" }, { "Field": "approve_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "审核人用户编号" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 26, "latest": [ { "id": 126, "code": "IPQC_20260912004", "name": "黑果枸杞-成品入库过程检验", "type": 5, "template_id": 1, "source_doc_type": null, "source_doc_id": null, "source_line_id": null, "source_doc_code": null, "work_order_id": 55, "task_id": 696, "workstation_id": 13, "process_id": 13, "item_id": 1544, "check_quantity": "5037.000000", "qualified_quantity": "5037.000000", "unqualified_quantity": "0.000000", "labor_scrap_quantity": "0.000000", "material_scrap_quantity": "0.000000", "other_scrap_quantity": "0.000000", "critical_rate": "0.000000", "major_rate": "0.000000", "minor_rate": "0.000000", "critical_quantity": 0, "major_quantity": 0, "minor_quantity": 0, "check_result": 1, "inspect_date": "2026-09-12 21:41:00", "inspector_user_id": 289, "status": 4, "sampling_location": null, "certificate_no": null, "execute_standard": null, "audit_user_id": null, "approve_user_id": null, "remark": "工单 WO_20260912002 · 成品入库(末道工序)· 质检方案 1", "creator": "289", "create_time": "2026-09-12 21:06:00", "updater": "289", "update_time": "2026-09-12 21:41:00", "deleted": "b'\\x00'" }, { "id": 125, "code": "IPQC_20260912003", "name": "黑果枸杞-外包装过程检验", "type": 2, "template_id": 1, "source_doc_type": null, "source_doc_id": null, "source_line_id": null, "source_doc_code": null, "work_order_id": 55, "task_id": 694, "workstation_id": 11, "process_id": 11, "item_id": 1544, "check_quantity": "30.000000", "qualified_quantity": "30.000000", "unqualified_quantity": "0.000000", "labor_scrap_quantity": "0.000000", "material_scrap_quantity": "0.000000", "other_scrap_quantity": "0.000000", "critical_rate": "0.000000", "major_rate": "0.000000", "minor_rate": "0.000000", "critical_quantity": 0, "major_quantity": 0, "minor_quantity": 0, "check_result": 1, "inspect_date": "2026-09-12 19:38:00", "inspector_user_id": 289, "status": 4, "sampling_location": null, "certificate_no": null, "execute_standard": null, "audit_user_id": null, "approve_user_id": null, "remark": "工单 WO_20260912002 · 外包装(关键工序)· 质检方案 1", "creator": "289", "create_time": "2026-09-12 19:20:00", "updater": "289", "update_time": "2026-09-12 19:38:00", "deleted": "b'\\x00'" }, { "id": 124, "code": "IPQC_20260912002", "name": "枸杞原浆罐头-成品入库过程检验", "type": 5, "template_id": 14, "source_doc_type": null, "source_doc_id": null, "source_line_id": null, "source_doc_code": null, "work_order_id": 52, "task_id": 661, "workstation_id": 13, "process_id": 13, "item_id": 1508, "check_quantity": "4000.000000", "qualified_quantity": "4000.000000", "unqualified_quantity": "0.000000", "labor_scrap_quantity": "0.000000", "material_scrap_quantity": "0.000000", "other_scrap_quantity": "0.000000", "critical_rate": "0.000000", "major_rate": "0.000000", "minor_rate": "0.000000", "critical_quantity": 0, "major_quantity": 0, "minor_quantity": 0, "check_result": 1, "inspect_date": "2026-09-12 03:47:00", "inspector_user_id": 289, "status": 4, "sampling_location": null, "certificate_no": null, "execute_standard": null, "audit_user_id": null, "approve_user_id": null, "remark": "工单 WO_20260911001 · 成品入库(末道工序)· 质检方案 14", "creator": "289", "create_time": "2026-09-12 03:06:00", "updater": "289", "update_time": "2026-09-12 03:47:00", "deleted": "b'\\x00'" } ] }, "mes_qc_ipqc_line": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "ipqc_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "过程检验单编号" }, { "Field": "indicator_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检测指标编号" }, { "Field": "tool", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检测工具" }, { "Field": "check_method", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检测方法" }, { "Field": "standard_value", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "标准值" }, { "Field": "unit_measure_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "计量单位编号" }, { "Field": "max_threshold", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "误差上限" }, { "Field": "min_threshold", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "误差下限" }, { "Field": "critical_quantity", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "致命缺陷数量" }, { "Field": "major_quantity", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "严重缺陷数量" }, { "Field": "minor_quantity", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "轻微缺陷数量" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 482, "latest": [ { "id": 1482, "ipqc_id": 126, "indicator_id": 22, "tool": "感官检验(目测、嗅辨、品尝;无专用仪器)", "check_method": "来源:SOP-QC-(YL)001-05 §8;", "standard_value": null, "unit_measure_id": null, "max_threshold": null, "min_threshold": null, "critical_quantity": 0, "major_quantity": 0, "minor_quantity": 0, "remark": null, "creator": "289", "create_time": "2026-09-12 21:06:00", "updater": "289", "update_time": "2026-09-12 21:41:00", "deleted": "b'\\x00'" }, { "id": 1481, "ipqc_id": 126, "indicator_id": 21, "tool": "感官检验(目测、嗅辨、品尝;无专用仪器)", "check_method": "来源:SOP-QC-(YL)001-05 §7;", "standard_value": "8.000000", "unit_measure_id": null, "max_threshold": null, "min_threshold": "8.000000", "critical_quantity": 0, "major_quantity": 0, "minor_quantity": 0, "remark": null, "creator": "289", "create_time": "2026-09-12 21:06:00", "updater": "289", "update_time": "2026-09-12 21:41:00", "deleted": "b'\\x00'" }, { "id": 1480, "ipqc_id": 126, "indicator_id": 20, "tool": "气相色谱-质谱联用仪(配旋转蒸发仪)", "check_method": "来源:SOP-QC-(YL)001-05 §6;GB 2763", "standard_value": null, "unit_measure_id": null, "max_threshold": null, "min_threshold": null, "critical_quantity": 0, "major_quantity": 0, "minor_quantity": 0, "remark": null, "creator": "289", "create_time": "2026-09-12 21:06:00", "updater": "289", "update_time": "2026-09-12 21:41:00", "deleted": "b'\\x00'" } ] }, "mes_qc_iqc": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检验单编号" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检验单名称" }, { "Field": "template_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检验模板编号" }, { "Field": "source_doc_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "来源单据类型" }, { "Field": "source_doc_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "来源单据编号" }, { "Field": "source_line_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "来源单据行编号" }, { "Field": "source_doc_code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "来源单据编号" }, { "Field": "vendor_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "供应商编号" }, { "Field": "vendor_name", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "供应商名称(手填)" }, { "Field": "vendor_batch", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "供应商批次号" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产品物料编号" }, { "Field": "received_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "本次接收数量" }, { "Field": "check_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "本次检测数量" }, { "Field": "qualified_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "合格品数量" }, { "Field": "unqualified_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "不合格品数量" }, { "Field": "critical_rate", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "致命缺陷率" }, { "Field": "major_rate", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "严重缺陷率" }, { "Field": "minor_rate", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "轻微缺陷率" }, { "Field": "critical_quantity", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "致命缺陷数量" }, { "Field": "major_quantity", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "严重缺陷数量" }, { "Field": "minor_quantity", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "轻微缺陷数量" }, { "Field": "check_result", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检测结果" }, { "Field": "receive_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "来料日期" }, { "Field": "inspect_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检测日期" }, { "Field": "inspector_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检测人员用户编号" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态" }, { "Field": "sampling_location", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "采样地点" }, { "Field": "certificate_no", "Type": "varchar(50)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "证书编号/合格证号" }, { "Field": "execute_standard", "Type": "varchar(50)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "执行标准" }, { "Field": "audit_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "复核人用户编号" }, { "Field": "approve_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "审核人用户编号" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 39, "latest": [ { "id": 46, "code": "IQC_20261014003", "name": "白燕丝A2来料检验", "template_id": 12, "source_doc_type": null, "source_doc_id": null, "source_line_id": null, "source_doc_code": null, "vendor_id": null, "vendor_name": "北京同仁堂健康药业股份有限公司食品分公司", "vendor_batch": "Y20260925002", "item_id": 938, "received_quantity": "25.000000", "check_quantity": "25.000000", "qualified_quantity": "25.000000", "unqualified_quantity": "0.000000", "critical_rate": null, "major_rate": null, "minor_rate": null, "critical_quantity": null, "major_quantity": null, "minor_quantity": null, "check_result": 1, "receive_date": "2026-10-10 00:00:00", "inspect_date": "2026-10-10 00:00:00", "inspector_user_id": 290, "status": 0, "sampling_location": null, "certificate_no": null, "execute_standard": null, "audit_user_id": null, "approve_user_id": null, "remark": null, "creator": "290", "create_time": "2026-10-14 18:13:33", "updater": "290", "update_time": "2026-10-14 18:13:33", "deleted": "b'\\x00'" }, { "id": 45, "code": "Y202610001", "name": "白燕丝来料检验", "template_id": 12, "source_doc_type": null, "source_doc_id": null, "source_line_id": null, "source_doc_code": null, "vendor_id": null, "vendor_name": "北京同仁堂健康药业股份有限公司食品分公司", "vendor_batch": "Y20260925001", "item_id": 938, "received_quantity": "22.560000", "check_quantity": "22.560000", "qualified_quantity": "22.560000", "unqualified_quantity": "0.000000", "critical_rate": null, "major_rate": null, "minor_rate": null, "critical_quantity": null, "major_quantity": null, "minor_quantity": null, "check_result": 1, "receive_date": "2026-09-28 00:00:00", "inspect_date": "2026-09-28 00:00:00", "inspector_user_id": 290, "status": 4, "sampling_location": null, "certificate_no": null, "execute_standard": null, "audit_user_id": null, "approve_user_id": null, "remark": null, "creator": "290", "create_time": "2026-10-14 15:22:21", "updater": "290", "update_time": "2026-10-14 17:56:25", "deleted": "b'\\x00'" }, { "id": 43, "code": "Y202609036", "name": "银耳来料检验", "template_id": 32, "source_doc_type": null, "source_doc_id": null, "source_line_id": null, "source_doc_code": null, "vendor_id": null, "vendor_name": "宁德晟农农业开发有限公司", "vendor_batch": "Y2024041501", "item_id": 916, "received_quantity": "40.000000", "check_quantity": "40.000000", "qualified_quantity": "40.000000", "unqualified_quantity": "0.000000", "critical_rate": null, "major_rate": null, "minor_rate": null, "critical_quantity": null, "major_quantity": null, "minor_quantity": null, "check_result": 1, "receive_date": "2026-09-20 00:00:00", "inspect_date": "2026-09-20 00:00:00", "inspector_user_id": 290, "status": 0, "sampling_location": null, "certificate_no": null, "execute_standard": null, "audit_user_id": null, "approve_user_id": null, "remark": "复检", "creator": "290", "create_time": "2026-10-14 15:10:29", "updater": "290", "update_time": "2026-10-14 17:51:41", "deleted": "b'\\x00'" } ] }, "mes_qc_iqc_line": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "iqc_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "来料检验单编号" }, { "Field": "indicator_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检测指标编号" }, { "Field": "tool", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检测工具" }, { "Field": "check_method", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检测方法" }, { "Field": "standard_value", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "标准值" }, { "Field": "unit_measure_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "计量单位编号" }, { "Field": "max_threshold", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "误差上限" }, { "Field": "min_threshold", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "误差下限" }, { "Field": "critical_quantity", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "致命缺陷数量" }, { "Field": "major_quantity", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "严重缺陷数量" }, { "Field": "minor_quantity", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "轻微缺陷数量" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 438, "latest": [ { "id": 717, "iqc_id": 46, "indicator_id": 62, "tool": "全玻璃蒸馏装置(配可见分光光度计)", "check_method": "来源:SOP-QC-(YL)012-03 §3.7;GB5009.34;SOP-QC-(JF)008", "standard_value": "30.000000", "unit_measure_id": null, "max_threshold": "30.000000", "min_threshold": null, "critical_quantity": 0, "major_quantity": 0, "minor_quantity": 0, "remark": null, "creator": "290", "create_time": "2026-10-14 18:13:33", "updater": "290", "update_time": "2026-10-14 18:13:33", "deleted": "b'\\x00'" }, { "id": 716, "iqc_id": 46, "indicator_id": 18, "tool": "原子吸收分光光度计(配微波消解仪)", "check_method": "来源:SOP-QC-(YL)012-03 §3.4;GB5009.12;SOP-QC-(JF)009", "standard_value": "0.500000", "unit_measure_id": null, "max_threshold": "0.500000", "min_threshold": null, "critical_quantity": 0, "major_quantity": 0, "minor_quantity": 0, "remark": null, "creator": "290", "create_time": "2026-10-14 18:13:33", "updater": "290", "update_time": "2026-10-14 18:13:33", "deleted": "b'\\x00'" }, { "id": 715, "iqc_id": 46, "indicator_id": 59, "tool": "高效液相色谱仪(配分析天平)", "check_method": "来源:SOP-QC-(YL)012-03 §3.3;GB31614.1—2023", "standard_value": "50.000000", "unit_measure_id": null, "max_threshold": null, "min_threshold": "50.000000", "critical_quantity": 0, "major_quantity": 0, "minor_quantity": 0, "remark": null, "creator": "290", "create_time": "2026-10-14 18:13:33", "updater": "290", "update_time": "2026-10-14 18:13:33", "deleted": "b'\\x00'" } ] }, "mes_qc_ncr": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "主键ID" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "NCR单号" }, { "Field": "name", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "NCR名称" }, { "Field": "qc_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检验类型(IQC/IPQC/OQC/RQC),字典 mes_qc_type" }, { "Field": "qc_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "来源检验单ID" }, { "Field": "qc_code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "来源检验单编号(冗余)" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "不合格物料ID" }, { "Field": "defect_level", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "缺陷等级(致命/严重/轻微),字典 mes_defect_level" }, { "Field": "unqualified_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "不合格数量" }, { "Field": "defect_description", "Type": "varchar(2000)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "不合格描述" }, { "Field": "disposition", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "处置方式(退货/报废/返工/让步接收/降级使用),字典 mes_ncr_disposition" }, { "Field": "responsible_dept_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "责任部门ID" }, { "Field": "reviewer_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "评审人ID" }, { "Field": "review_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "评审日期" }, { "Field": "review_opinion", "Type": "varchar(1000)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "评审意见" }, { "Field": "handler_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "处理人ID" }, { "Field": "handle_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "处理日期" }, { "Field": "handle_result", "Type": "varchar(1000)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "处理结果说明" }, { "Field": "root_cause", "Type": "varchar(2000)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "根本原因" }, { "Field": "corrective_action", "Type": "varchar(2000)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "纠正措施" }, { "Field": "preventive_action", "Type": "varchar(2000)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "预防措施" }, { "Field": "close_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "关闭人ID" }, { "Field": "close_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "关闭日期" }, { "Field": "close_opinion", "Type": "varchar(1000)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "关闭意见" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态(待评审/已评审/已处置/已关闭),字典 mes_ncr_status" }, { "Field": "process_instance_id", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "BPM流程实例ID(预留)" }, { "Field": "remark", "Type": "varchar(500)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 2, "latest": [ { "id": 102, "code": "NCR20260906161900001", "name": "不合格品处理单", "qc_type": 2, "qc_id": 120, "qc_code": "IPQC_20260906004", "item_id": 992, "defect_level": 1, "unqualified_quantity": "1.000000", "defect_description": "由过程检验(IPQC_20260906004)自动生成", "disposition": 1, "responsible_dept_id": null, "reviewer_user_id": 290, "review_date": "2026-10-13 14:05:54", "review_opinion": null, "handler_user_id": null, "handle_date": null, "handle_result": null, "root_cause": null, "corrective_action": null, "preventive_action": null, "close_user_id": null, "close_date": null, "close_opinion": null, "status": 6, "process_instance_id": null, "remark": null, "creator": "1", "create_time": "2026-09-06 16:19:00", "updater": "290", "update_time": "2026-10-13 14:05:54", "deleted": "b'\\x00'" }, { "id": 101, "code": "NCR20260902213500000", "name": "不合格品处理单", "qc_type": 2, "qc_id": 109, "qc_code": "IPQC_20260902003", "item_id": 979, "defect_level": null, "unqualified_quantity": "3.000000", "defect_description": "由过程检验(IPQC_20260902003)自动生成", "disposition": null, "responsible_dept_id": null, "reviewer_user_id": null, "review_date": null, "review_opinion": null, "handler_user_id": null, "handle_date": null, "handle_result": null, "root_cause": null, "corrective_action": null, "preventive_action": null, "close_user_id": null, "close_date": null, "close_opinion": null, "status": 0, "process_instance_id": null, "remark": null, "creator": "1", "create_time": "2026-09-02 21:35:00", "updater": "1", "update_time": "2026-09-02 21:35:00", "deleted": "b'\\x00'" } ] }, "mes_qc_oqc": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检验单编号" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检验单名称" }, { "Field": "template_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检验模板编号" }, { "Field": "source_doc_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "来源单据类型" }, { "Field": "source_doc_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "来源单据编号" }, { "Field": "source_line_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "来源单据行编号" }, { "Field": "source_doc_code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "来源单据编号" }, { "Field": "client_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "客户编号" }, { "Field": "batch_code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次号" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产品物料编号" }, { "Field": "min_check_quantity", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最低检测数" }, { "Field": "max_unqualified_quantity", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最大不合格数" }, { "Field": "out_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "本次出货数量" }, { "Field": "check_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "本次检测数量" }, { "Field": "qualified_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "合格品数量" }, { "Field": "unqualified_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "不合格品数量" }, { "Field": "critical_rate", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "致命缺陷率" }, { "Field": "major_rate", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "严重缺陷率" }, { "Field": "minor_rate", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "轻微缺陷率" }, { "Field": "critical_quantity", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "致命缺陷数量" }, { "Field": "major_quantity", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "严重缺陷数量" }, { "Field": "minor_quantity", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "轻微缺陷数量" }, { "Field": "check_result", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检测结果" }, { "Field": "out_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "出货日期" }, { "Field": "inspect_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检测日期" }, { "Field": "inspector_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检测人员用户编号" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态" }, { "Field": "sampling_location", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "采样地点" }, { "Field": "certificate_no", "Type": "varchar(50)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "证书编号/合格证号" }, { "Field": "execute_standard", "Type": "varchar(50)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "执行标准" }, { "Field": "audit_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "复核人用户编号" }, { "Field": "approve_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "审核人用户编号" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 126, "latest": [ { "id": 297, "code": "OQC-CHAIN-75", "name": "XSCK-202609-26000114-出货检验", "template_id": 136, "source_doc_type": 119, "source_doc_id": 23, "source_line_id": 75, "source_doc_code": "XSCK-202609-26000114", "client_id": 1611, "batch_code": "INIT202609-74000484", "item_id": 1118, "min_check_quantity": null, "max_unqualified_quantity": null, "out_quantity": "5.000000", "check_quantity": "5.000000", "qualified_quantity": "5.000000", "unqualified_quantity": "0.000000", "critical_rate": null, "major_rate": null, "minor_rate": null, "critical_quantity": null, "major_quantity": null, "minor_quantity": null, "check_result": 1, "out_date": "2026-09-28 14:37:53", "inspect_date": null, "inspector_user_id": null, "status": 4, "sampling_location": null, "certificate_no": null, "execute_standard": null, "audit_user_id": null, "approve_user_id": null, "remark": null, "creator": "admin", "create_time": "2026-10-14 16:07:12", "updater": "admin", "update_time": "2026-10-14 16:51:06", "deleted": "b'\\x00'" }, { "id": 296, "code": "OQC-CHAIN-74", "name": "XSCK-202609-26000114-出货检验", "template_id": 136, "source_doc_type": 119, "source_doc_id": 23, "source_line_id": 74, "source_doc_code": "XSCK-202609-26000114", "client_id": 1611, "batch_code": "INIT202609-Q2100086", "item_id": 509, "min_check_quantity": null, "max_unqualified_quantity": null, "out_quantity": "11.000000", "check_quantity": "11.000000", "qualified_quantity": "11.000000", "unqualified_quantity": "0.000000", "critical_rate": null, "major_rate": null, "minor_rate": null, "critical_quantity": null, "major_quantity": null, "minor_quantity": null, "check_result": 1, "out_date": "2026-09-28 14:37:53", "inspect_date": null, "inspector_user_id": null, "status": 4, "sampling_location": null, "certificate_no": null, "execute_standard": null, "audit_user_id": null, "approve_user_id": null, "remark": null, "creator": "admin", "create_time": "2026-10-14 16:07:12", "updater": "admin", "update_time": "2026-10-14 16:51:06", "deleted": "b'\\x00'" }, { "id": 295, "code": "OQC-CHAIN-73", "name": "XSCK-202609-26000114-出货检验", "template_id": 14, "source_doc_type": 119, "source_doc_id": 23, "source_line_id": 73, "source_doc_code": "XSCK-202609-26000114", "client_id": 1611, "batch_code": "INIT202609-Q2100080", "item_id": 497, "min_check_quantity": null, "max_unqualified_quantity": null, "out_quantity": "21.000000", "check_quantity": "21.000000", "qualified_quantity": "21.000000", "unqualified_quantity": "0.000000", "critical_rate": null, "major_rate": null, "minor_rate": null, "critical_quantity": null, "major_quantity": null, "minor_quantity": null, "check_result": 1, "out_date": "2026-09-28 14:37:53", "inspect_date": null, "inspector_user_id": null, "status": 4, "sampling_location": null, "certificate_no": null, "execute_standard": null, "audit_user_id": null, "approve_user_id": null, "remark": null, "creator": "admin", "create_time": "2026-10-14 16:07:12", "updater": "admin", "update_time": "2026-10-14 16:51:06", "deleted": "b'\\x00'" } ] }, "mes_qc_oqc_line": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "oqc_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "出货检验单编号" }, { "Field": "indicator_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检测指标编号" }, { "Field": "tool", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检测工具" }, { "Field": "check_method", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检测方法" }, { "Field": "standard_value", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "标准值" }, { "Field": "unit_measure_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "计量单位编号" }, { "Field": "max_threshold", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "误差上限" }, { "Field": "min_threshold", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "误差下限" }, { "Field": "critical_quantity", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "致命缺陷数量" }, { "Field": "major_quantity", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "严重缺陷数量" }, { "Field": "minor_quantity", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "轻微缺陷数量" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 2655, "latest": [ { "id": 5623, "oqc_id": 221, "indicator_id": 190, "tool": "高效液相色谱仪(配示差折光检测器)", "check_method": "来源:SOP-QC-(YL)137-00 §10.6.1;", "standard_value": null, "unit_measure_id": null, "max_threshold": null, "min_threshold": null, "critical_quantity": 0, "major_quantity": 0, "minor_quantity": 0, "remark": null, "creator": "1", "create_time": "2026-10-14 16:51:06", "updater": "1", "update_time": "2026-10-14 16:51:06", "deleted": "b'\\x00'" }, { "id": 5622, "oqc_id": 222, "indicator_id": 190, "tool": "高效液相色谱仪(配示差折光检测器)", "check_method": "来源:SOP-QC-(YL)137-00 §10.6.1;", "standard_value": null, "unit_measure_id": null, "max_threshold": null, "min_threshold": null, "critical_quantity": 0, "major_quantity": 0, "minor_quantity": 0, "remark": null, "creator": "1", "create_time": "2026-10-14 16:51:06", "updater": "1", "update_time": "2026-10-14 16:51:06", "deleted": "b'\\x00'" }, { "id": 5621, "oqc_id": 225, "indicator_id": 190, "tool": "高效液相色谱仪(配示差折光检测器)", "check_method": "来源:SOP-QC-(YL)137-00 §10.6.1;", "standard_value": null, "unit_measure_id": null, "max_threshold": null, "min_threshold": null, "critical_quantity": 0, "major_quantity": 0, "minor_quantity": 0, "remark": null, "creator": "1", "create_time": "2026-10-14 16:51:06", "updater": "1", "update_time": "2026-10-14 16:51:06", "deleted": "b'\\x00'" } ] }, "mes_qc_rqc": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检验单编号" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检验单名称" }, { "Field": "template_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检验模板编号" }, { "Field": "source_doc_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "来源单据类型" }, { "Field": "source_doc_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "来源单据编号" }, { "Field": "source_line_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "来源单据行编号" }, { "Field": "source_doc_code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "来源单据编号" }, { "Field": "type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检验类型" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产品物料编号" }, { "Field": "batch_code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次号" }, { "Field": "check_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检测数量" }, { "Field": "qualified_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "合格品数量" }, { "Field": "unqualified_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "不合格数量" }, { "Field": "critical_rate", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "致命缺陷率" }, { "Field": "major_rate", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "严重缺陷率" }, { "Field": "minor_rate", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "轻微缺陷率" }, { "Field": "critical_quantity", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "致命缺陷数量" }, { "Field": "major_quantity", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "严重缺陷数量" }, { "Field": "minor_quantity", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "轻微缺陷数量" }, { "Field": "check_result", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检测结果" }, { "Field": "inspect_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检测日期" }, { "Field": "inspector_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检测人员用户编号" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态" }, { "Field": "sampling_location", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "采样地点" }, { "Field": "certificate_no", "Type": "varchar(50)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "证书编号/合格证号" }, { "Field": "execute_standard", "Type": "varchar(50)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "执行标准" }, { "Field": "audit_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "复核人用户编号" }, { "Field": "approve_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "审核人用户编号" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "mes_qc_rqc_line": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "rqc_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "退货检验单编号" }, { "Field": "indicator_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检测指标编号" }, { "Field": "tool", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检测工具" }, { "Field": "check_method", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检测方法" }, { "Field": "standard_value", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "标准值" }, { "Field": "unit_measure_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "计量单位编号" }, { "Field": "max_threshold", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "误差上限" }, { "Field": "min_threshold", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "误差下限" }, { "Field": "critical_quantity", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "致命缺陷数量" }, { "Field": "major_quantity", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "严重缺陷数量" }, { "Field": "minor_quantity", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "轻微缺陷数量" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "mes_qc_template": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "方案编号" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "方案名称" }, { "Field": "types", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检测种类" }, { "Field": "default_execute_standard", "Type": "varchar(50)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "默认执行标准(如 GB/T6027)" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 252, "latest": [ { "id": 276, "code": "STP-QA-YL-001", "name": "STP-QA-(YL)001黑果枸杞0006S原料质量标准", "types": "1", "default_execute_standard": null, "status": 0, "remark": "国标补充核对:0006S属于待确认的企业标准编号,需完整企业标准及版本;不从编号推定国标指标。", "creator": "1", "create_time": "2026-09-18 17:48:22", "updater": "1", "update_time": "2026-10-13 14:10:11", "deleted": "b'\\x00'" }, { "id": 275, "code": "STP-QA-YL-208", "name": "STP-QA-(YL)208花生衣粉质量标准", "types": "1", "default_execute_standard": null, "status": 0, "remark": "国标补充核对:GB 1886.323-2021是食品添加剂花生衣红,不是花生衣粉;待原料用途、工艺及产品标准。", "creator": "1", "create_time": "2026-09-18 17:47:29", "updater": "1", "update_time": "2026-10-13 14:10:16", "deleted": "b'\\x00'" }, { "id": 274, "code": "STP-QA-YL-067", "name": "STP-QA-(YL)067铁棍山药粉质量标准", "types": "1", "default_execute_standard": null, "status": 0, "remark": "国标补充核对:待确认生粉/熟粉/固体饮料/淀粉或提取物形态及产品标准;不套用其他类别限值。", "creator": "1", "create_time": "2026-09-18 17:45:42", "updater": "1", "update_time": "2026-10-13 14:10:23", "deleted": "b'\\x00'" } ] }, "mes_qc_template_indicator": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "template_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "质检方案编号" }, { "Field": "indicator_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "质检指标编号" }, { "Field": "sort_order", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "展示排序号" }, { "Field": "judge_flag", "Type": "tinyint", "Collation": null, "Null": "NO", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否参与合格判定:1=是,0=否" }, { "Field": "check_method", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检测方法" }, { "Field": "standard_value", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "标准值" }, { "Field": "unit_measure_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "计量单位编号" }, { "Field": "threshold_max", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "误差上限" }, { "Field": "threshold_min", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "误差下限" }, { "Field": "doc_url", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "说明图 URL" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 2998, "latest": [ { "id": 4272, "template_id": 265, "indicator_id": 409, "sort_order": 160, "judge_flag": 1, "check_method": "要求:乳化≤3.6;浆膏/固体≤15;液体按表3不适用 MPN/g或MPN/mL;方法:GB 4789.3", "standard_value": null, "unit_measure_id": null, "threshold_max": null, "threshold_min": null, "doc_url": "https://sppt.cfsa.net.cn:8086/db?task=goto&type=2&guid=D6B79FA6-3A34-44A7-AFAC-DA4D4521AA0E", "remark": "GB 30616-2020;表3;须按适用形态和检验日期人工判定,不默认合格。", "creator": "1", "create_time": "2026-10-12 17:37:04", "updater": "1", "update_time": "2026-10-12 17:37:04", "deleted": "b'\\x00'" }, { "id": 4271, "template_id": 265, "indicator_id": 45, "sort_order": 150, "judge_flag": 1, "check_method": "要求:乳化≤5000;浆膏/固体≤30000;液体按表3不适用 CFU/g或CFU/mL;方法:GB 4789.2", "standard_value": null, "unit_measure_id": null, "threshold_max": null, "threshold_min": null, "doc_url": "https://sppt.cfsa.net.cn:8086/db?task=goto&type=2&guid=D6B79FA6-3A34-44A7-AFAC-DA4D4521AA0E", "remark": "GB 30616-2020;表3;须按适用形态和检验日期人工判定,不默认合格。", "creator": "1", "create_time": "2026-10-12 17:37:04", "updater": "qc-name-dedup-20261013", "update_time": "2026-10-13 11:11:23", "deleted": "b'\\x00'" }, { "id": 4270, "template_id": 265, "indicator_id": 407, "sort_order": 140, "judge_flag": 1, "check_method": "要求:食用酒精含量≥20%的产品≤0.2;其余不适用 %;方法:GB/T 7917.4", "standard_value": null, "unit_measure_id": null, "threshold_max": null, "threshold_min": null, "doc_url": "https://sppt.cfsa.net.cn:8086/db?task=goto&type=2&guid=D6B79FA6-3A34-44A7-AFAC-DA4D4521AA0E", "remark": "GB 30616-2020;表2;须按适用形态和检验日期人工判定,不默认合格。", "creator": "1", "create_time": "2026-10-12 17:37:04", "updater": "1", "update_time": "2026-10-12 17:37:04", "deleted": "b'\\x00'" } ] }, "mes_qc_template_item": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "template_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "质检方案编号" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产品物料编号" }, { "Field": "quantity_check", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最低检测数" }, { "Field": "quantity_unqualified", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最大不合格数" }, { "Field": "critical_rate", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最大致命缺陷率" }, { "Field": "major_rate", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最大严重缺陷率" }, { "Field": "minor_rate", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最大轻微缺陷率" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 150, "latest": [ { "id": 162, "template_id": 12, "item_id": 938, "quantity_check": null, "quantity_unqualified": null, "critical_rate": null, "major_rate": null, "minor_rate": null, "remark": null, "creator": "290", "create_time": "2026-10-13 13:43:42", "updater": "290", "update_time": "2026-10-13 13:43:42", "deleted": "b'\\x00'" }, { "id": 161, "template_id": 268, "item_id": 938, "quantity_check": null, "quantity_unqualified": null, "critical_rate": null, "major_rate": null, "minor_rate": null, "remark": null, "creator": "290", "create_time": "2026-10-13 13:39:20", "updater": "290", "update_time": "2026-10-13 13:39:20", "deleted": "b'\\x00'" }, { "id": 160, "template_id": 1, "item_id": 1017, "quantity_check": null, "quantity_unqualified": null, "critical_rate": null, "major_rate": null, "minor_rate": null, "remark": null, "creator": "290", "create_time": "2026-10-13 13:38:22", "updater": "290", "update_time": "2026-10-13 13:38:22", "deleted": "b'\\x00'" } ] }, "mes_wm_arrival_notice": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "单号" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "名称" }, { "Field": "purchase_order_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "采购订单编号" }, { "Field": "purchase_order_code", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "采购订单编码(冗余字段)" }, { "Field": "vendor_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "供应商 ID" }, { "Field": "arrival_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "预计到货日期" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态" }, { "Field": "contact_telephone", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "联系人电话" }, { "Field": "contact_name", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "联系人" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "mes_wm_arrival_notice_line": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "notice_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "到货通知单 ID" }, { "Field": "purchase_order_item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "采购订单行编号(关联 ERP 采购订单明细)" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料 ID" }, { "Field": "arrival_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "到货数量" }, { "Field": "qualified_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "合格数量" }, { "Field": "iqc_check_flag", "Type": "bit(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否需要来料检验" }, { "Field": "iqc_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "来料检验单编号" }, { "Field": "iqc_check_result", "Type": "tinyint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "质检结果:1合格 2特采 3不合格退货 4不合格报废" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "mes_wm_barcode": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "config_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "条码配置编号" }, { "Field": "format", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "条码格式" }, { "Field": "biz_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "业务类型" }, { "Field": "content", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "条码内容" }, { "Field": "biz_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "业务编号" }, { "Field": "biz_code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "业务编码" }, { "Field": "biz_name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "业务名称" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 490, "latest": [ { "id": 1235, "config_id": 2, "format": 1, "biz_type": 600, "content": "MAT-ITEM_20261013001|{BATCH}", "biz_id": 1994, "biz_code": "ITEM_20261013001", "biz_name": "原浆", "status": 0, "remark": null, "creator": "244", "create_time": "2026-10-13 11:42:57", "updater": "244", "update_time": "2026-10-13 11:42:57", "deleted": "b'\\x00'" }, { "id": 1234, "config_id": 1, "format": 1, "biz_type": 400, "content": "EQ-TRT-SP-SB-055", "biz_id": 137, "biz_code": "TRT-SP-SB-055", "biz_name": "全自动打包机2", "status": 0, "remark": null, "creator": "243", "create_time": "2026-10-13 11:19:08", "updater": "243", "update_time": "2026-10-13 11:19:08", "deleted": "b'\\x00'" }, { "id": 1233, "config_id": 2, "format": 1, "biz_type": 600, "content": "MAT-63001681|{BATCH}", "biz_id": 1993, "biz_code": "63001681", "biz_name": "丹参粉", "status": 0, "remark": null, "creator": "1", "create_time": "2026-10-12 19:25:59", "updater": "1", "update_time": "2026-10-12 19:25:59", "deleted": "b'\\x00'" } ] }, "mes_wm_barcode_config": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "format", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "条码格式" }, { "Field": "biz_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "业务类型" }, { "Field": "content_format", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "内容格式模板" }, { "Field": "content_example", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "内容样例" }, { "Field": "auto_generate_flag", "Type": "bit(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否自动生成" }, { "Field": "default_template", "Type": "varchar(500)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "默认打印模板" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 2, "latest": [ { "id": 2, "format": 1, "biz_type": 600, "content_format": "MAT-{BUSINESSCODE}|{BATCH}", "content_example": null, "auto_generate_flag": "b'\\x01'", "default_template": null, "status": 0, "remark": null, "creator": "1", "create_time": "2026-10-11 21:51:38", "updater": "1", "update_time": "2026-10-11 21:51:38", "deleted": "b'\\x00'" }, { "id": 1, "format": 1, "biz_type": 400, "content_format": "EQ-{BUSINESSCODE}", "content_example": null, "auto_generate_flag": "b'\\x01'", "default_template": null, "status": 0, "remark": null, "creator": "1", "create_time": "2026-10-11 21:17:40", "updater": "1", "update_time": "2026-10-11 21:17:40", "deleted": "b'\\x00'" } ] }, "mes_wm_batch": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次号" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料 ID" }, { "Field": "produce_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产日期" }, { "Field": "expire_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "失效日期" }, { "Field": "receipt_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "入库日期" }, { "Field": "vendor_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "供应商 ID" }, { "Field": "client_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "客户ID" }, { "Field": "sales_order_code", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "销售订单编号" }, { "Field": "purchase_order_code", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "采购订单编号" }, { "Field": "work_order_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产工单ID" }, { "Field": "task_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产任务ID" }, { "Field": "workstation_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工作站ID" }, { "Field": "tool_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工具ID" }, { "Field": "mold_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "模具ID" }, { "Field": "lot_number", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产批号" }, { "Field": "quality_status", "Type": "tinyint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "质量状态" }, { "Field": "vendor_code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "供应商编码" }, { "Field": "vendor_name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "供应商名称" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 902, "latest": [ { "id": 1082, "code": "SC20260927001", "item_id": 1119, "produce_date": "2026-09-27 14:06:50", "expire_date": null, "receipt_date": null, "vendor_id": null, "client_id": null, "sales_order_code": null, "purchase_order_code": null, "work_order_id": 85, "task_id": 940, "workstation_id": null, "tool_id": null, "mold_id": null, "lot_number": null, "quality_status": 1, "vendor_code": null, "vendor_name": null, "remark": null, "creator": "admin", "create_time": "2026-10-14 14:12:46", "updater": "admin", "update_time": "2026-10-14 14:12:46", "deleted": "b'\\x00'" }, { "id": 1081, "code": "SC20260926002", "item_id": 1120, "produce_date": "2026-09-26 14:14:46", "expire_date": null, "receipt_date": null, "vendor_id": null, "client_id": null, "sales_order_code": null, "purchase_order_code": null, "work_order_id": 84, "task_id": 934, "workstation_id": null, "tool_id": null, "mold_id": null, "lot_number": null, "quality_status": 1, "vendor_code": null, "vendor_name": null, "remark": null, "creator": "admin", "create_time": "2026-10-14 14:12:46", "updater": "admin", "update_time": "2026-10-14 14:12:46", "deleted": "b'\\x00'" }, { "id": 1080, "code": "SC20260926001", "item_id": 1122, "produce_date": "2026-09-26 16:38:09", "expire_date": null, "receipt_date": null, "vendor_id": null, "client_id": null, "sales_order_code": null, "purchase_order_code": null, "work_order_id": 83, "task_id": 928, "workstation_id": null, "tool_id": null, "mold_id": null, "lot_number": null, "quality_status": 1, "vendor_code": null, "vendor_name": null, "remark": null, "creator": "admin", "create_time": "2026-10-14 14:12:46", "updater": "admin", "update_time": "2026-10-14 14:12:46", "deleted": "b'\\x00'" } ] }, "mes_wm_item_consume": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "单号" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "名称" }, { "Field": "work_order_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产工单 ID" }, { "Field": "task_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产任务编号" }, { "Field": "workstation_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工作站编号" }, { "Field": "process_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工序编号" }, { "Field": "feedback_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "报工记录编号" }, { "Field": "consume_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "消耗日期" }, { "Field": "return_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "退料日期" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 45, "latest": [ { "id": 56, "code": "LLD202609270056", "name": "生产领料-RKD202609270001", "work_order_id": 85, "task_id": null, "workstation_id": null, "process_id": 13, "feedback_id": 827, "consume_date": "2026-09-27 14:06:50", "return_date": null, "status": 4, "remark": null, "creator": "1", "create_time": "2026-10-14 17:04:21", "updater": "1", "update_time": "2026-10-14 17:04:21", "deleted": "b'\\x00'" }, { "id": 55, "code": "LLD202609260055", "name": "生产领料-RKD202609260002", "work_order_id": 84, "task_id": null, "workstation_id": null, "process_id": 13, "feedback_id": 821, "consume_date": "2026-09-26 14:14:46", "return_date": null, "status": 4, "remark": null, "creator": "1", "create_time": "2026-10-14 17:04:21", "updater": "1", "update_time": "2026-10-14 17:04:21", "deleted": "b'\\x00'" }, { "id": 54, "code": "LLD202609260054", "name": "生产领料-RKD202609260001", "work_order_id": 83, "task_id": null, "workstation_id": null, "process_id": 13, "feedback_id": 815, "consume_date": "2026-09-26 16:38:09", "return_date": null, "status": 4, "remark": null, "creator": "1", "create_time": "2026-10-14 17:04:21", "updater": "1", "update_time": "2026-10-14 17:04:21", "deleted": "b'\\x00'" } ] }, "mes_wm_item_consume_detail": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "line_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "行 ID" }, { "Field": "consume_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "退料单 ID" }, { "Field": "material_stock_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库存 ID" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料 ID" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数量" }, { "Field": "batch_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次 ID" }, { "Field": "warehouse_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "仓库 ID" }, { "Field": "location_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库区 ID" }, { "Field": "area_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库位 ID" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "batch_code", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } ], "count": 123, "latest": [ { "id": 123, "line_id": 151, "consume_id": 56, "material_stock_id": null, "item_id": 1167, "quantity": "100.000000", "batch_id": 460, "warehouse_id": null, "location_id": null, "area_id": null, "remark": null, "creator": "1", "create_time": "2026-10-14 17:04:21", "updater": "1", "update_time": "2026-10-14 17:04:21", "deleted": "b'\\x00'", "batch_code": "INIT202609-81003768" }, { "id": 122, "line_id": 150, "consume_id": 56, "material_stock_id": null, "item_id": 1185, "quantity": "100.000000", "batch_id": 478, "warehouse_id": null, "location_id": null, "area_id": null, "remark": null, "creator": "1", "create_time": "2026-10-14 17:04:21", "updater": "1", "update_time": "2026-10-14 17:04:21", "deleted": "b'\\x00'", "batch_code": "INIT202609-81003966" }, { "id": 121, "line_id": 148, "consume_id": 55, "material_stock_id": null, "item_id": 1167, "quantity": "100.000000", "batch_id": 460, "warehouse_id": null, "location_id": null, "area_id": null, "remark": null, "creator": "1", "create_time": "2026-10-14 17:04:21", "updater": "1", "update_time": "2026-10-14 17:04:21", "deleted": "b'\\x00'", "batch_code": "INIT202609-81003768" } ] }, "mes_wm_item_consume_line": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "consume_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "退料单 ID" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料 ID" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数量" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "batch_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "batch_code", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } ], "count": 151, "latest": [ { "id": 151, "consume_id": 56, "item_id": 1167, "quantity": "100.000000", "remark": null, "creator": "1", "create_time": "2026-10-14 17:04:21", "updater": "1", "update_time": "2026-10-14 17:04:21", "deleted": "b'\\x00'", "batch_id": null, "batch_code": null }, { "id": 150, "consume_id": 56, "item_id": 1185, "quantity": "100.000000", "remark": null, "creator": "1", "create_time": "2026-10-14 17:04:21", "updater": "1", "update_time": "2026-10-14 17:04:21", "deleted": "b'\\x00'", "batch_id": null, "batch_code": null }, { "id": 149, "consume_id": 56, "item_id": 827, "quantity": "100.000000", "remark": null, "creator": "1", "create_time": "2026-10-14 17:04:21", "updater": "1", "update_time": "2026-10-14 17:04:21", "deleted": "b'\\x00'", "batch_id": null, "batch_code": null } ] }, "mes_wm_item_receipt": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "单号" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "名称" }, { "Field": "iqc_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "来料检验单编号" }, { "Field": "notice_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "到货通知单编号" }, { "Field": "purchase_order_code", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "采购订单号" }, { "Field": "purchase_order_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "采购订单编号" }, { "Field": "vendor_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "供应商编号" }, { "Field": "receipt_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "退库日期" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "process_instance_id", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "流程实例ID" }, { "Field": "process_definition_key", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "流程定义Key" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 36, "latest": [ { "id": 36, "code": "CGRK202610200043", "name": "采购入库-Y202609036", "iqc_id": 43, "notice_id": null, "purchase_order_code": null, "purchase_order_id": null, "vendor_id": null, "receipt_date": "2026-09-20 00:00:00", "status": 4, "remark": null, "process_instance_id": null, "process_definition_key": null, "creator": "1", "create_time": "2026-10-14 17:04:21", "updater": "1", "update_time": "2026-10-14 17:04:21", "deleted": "b'\\x00'" }, { "id": 35, "code": "CGRK202609210042", "name": "采购入库-Y202609035", "iqc_id": 42, "notice_id": null, "purchase_order_code": null, "purchase_order_id": null, "vendor_id": null, "receipt_date": "2026-09-20 00:00:00", "status": 4, "remark": null, "process_instance_id": null, "process_definition_key": null, "creator": "1", "create_time": "2026-10-14 17:04:21", "updater": "1", "update_time": "2026-10-14 17:04:21", "deleted": "b'\\x00'" }, { "id": 34, "code": "CGRK202608310040", "name": "采购入库-T202609021", "iqc_id": 40, "notice_id": null, "purchase_order_code": null, "purchase_order_id": null, "vendor_id": null, "receipt_date": "2026-08-16 00:00:00", "status": 4, "remark": null, "process_instance_id": null, "process_definition_key": null, "creator": "1", "create_time": "2026-10-14 17:04:21", "updater": "1", "update_time": "2026-10-14 17:04:21", "deleted": "b'\\x00'" } ] }, "mes_wm_item_receipt_detail": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "line_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "行 ID" }, { "Field": "receipt_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "退库单 ID" }, { "Field": "material_stock_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库存 ID" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料 ID" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数量" }, { "Field": "batch_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次 ID" }, { "Field": "warehouse_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "仓库 ID" }, { "Field": "location_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库区 ID" }, { "Field": "area_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库位 ID" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "mes_wm_item_receipt_line": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "receipt_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "退库单 ID" }, { "Field": "arrival_notice_line_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "到货通知单行编号" }, { "Field": "purchase_order_item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "采购订单行编号(完整追溯链)" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料 ID" }, { "Field": "item_model_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料型号编号" }, { "Field": "item_model", "Type": "varchar(128)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料型号名称" }, { "Field": "enter_unit_measure_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "录入单位编号" }, { "Field": "enter_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "录入数量(按录入单位计)" }, { "Field": "received_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "入库数量" }, { "Field": "batch_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次编号" }, { "Field": "batch_code", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次编码" }, { "Field": "production_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产日期" }, { "Field": "expire_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "有效期" }, { "Field": "lot_number", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产批号" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 36, "latest": [ { "id": 36, "receipt_id": 36, "arrival_notice_line_id": null, "purchase_order_item_id": null, "item_id": 916, "item_model_id": null, "item_model": null, "enter_unit_measure_id": null, "enter_quantity": "40.000000", "received_quantity": "40.000000", "batch_id": 227, "batch_code": "INIT202609-61901776", "production_date": null, "expire_date": null, "lot_number": null, "remark": null, "creator": "1", "create_time": "2026-10-14 17:04:21", "updater": "1", "update_time": "2026-10-14 17:04:21", "deleted": "b'\\x00'" }, { "id": 35, "receipt_id": 35, "arrival_notice_line_id": null, "purchase_order_item_id": null, "item_id": 923, "item_model_id": null, "item_model": null, "enter_unit_measure_id": null, "enter_quantity": "275.000000", "received_quantity": "275.000000", "batch_id": 234, "batch_code": "INIT202609-61901777", "production_date": null, "expire_date": null, "lot_number": null, "remark": null, "creator": "1", "create_time": "2026-10-14 17:04:21", "updater": "1", "update_time": "2026-10-14 17:04:21", "deleted": "b'\\x00'" }, { "id": 34, "receipt_id": 34, "arrival_notice_line_id": null, "purchase_order_item_id": null, "item_id": 754, "item_model_id": null, "item_model": null, "enter_unit_measure_id": null, "enter_quantity": "25.000000", "received_quantity": "25.000000", "batch_id": 130, "batch_code": "INIT202609-61902609", "production_date": null, "expire_date": null, "lot_number": null, "remark": null, "creator": "1", "create_time": "2026-10-14 17:04:21", "updater": "1", "update_time": "2026-10-14 17:04:21", "deleted": "b'\\x00'" } ] }, "mes_wm_material_stock": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "item_type_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料分类编号" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料 ID" }, { "Field": "batch_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次 ID" }, { "Field": "batch_code", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次编码" }, { "Field": "warehouse_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "仓库 ID" }, { "Field": "location_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库区 ID" }, { "Field": "area_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库位 ID" }, { "Field": "vendor_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "供应商编号" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库存数量" }, { "Field": "frozen_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.000000", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "冻结数量" }, { "Field": "reserved_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.000000", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "占用量(已分配待出库)" }, { "Field": "in_transit_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.000000", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "在途量(调拨在途)" }, { "Field": "erp_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "ERP 账期" }, { "Field": "receipt_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "入库时间" }, { "Field": "frozen", "Type": "bit(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否冻结" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 914, "latest": [ { "id": 1082, "item_type_id": null, "item_id": 1119, "batch_id": 1082, "batch_code": "SC20260927001", "warehouse_id": 18, "location_id": 3, "area_id": 3, "vendor_id": null, "quantity": "100.000000", "frozen_quantity": "0.000000", "reserved_quantity": "0.000000", "in_transit_quantity": "0.000000", "erp_time": null, "receipt_time": null, "frozen": "b'\\x00'", "remark": null, "creator": "admin", "create_time": "2026-10-14 14:12:47", "updater": "admin", "update_time": "2026-10-14 14:12:47", "deleted": "b'\\x00'" }, { "id": 1081, "item_type_id": null, "item_id": 1120, "batch_id": 1081, "batch_code": "SC20260926002", "warehouse_id": 18, "location_id": 3, "area_id": 3, "vendor_id": null, "quantity": "100.000000", "frozen_quantity": "0.000000", "reserved_quantity": "0.000000", "in_transit_quantity": "0.000000", "erp_time": null, "receipt_time": null, "frozen": "b'\\x00'", "remark": null, "creator": "admin", "create_time": "2026-10-14 14:12:47", "updater": "admin", "update_time": "2026-10-14 14:12:47", "deleted": "b'\\x00'" }, { "id": 1080, "item_type_id": null, "item_id": 1122, "batch_id": 1080, "batch_code": "SC20260926001", "warehouse_id": 18, "location_id": 3, "area_id": 3, "vendor_id": null, "quantity": "100.000000", "frozen_quantity": "0.000000", "reserved_quantity": "0.000000", "in_transit_quantity": "0.000000", "erp_time": null, "receipt_time": null, "frozen": "b'\\x00'", "remark": null, "creator": "admin", "create_time": "2026-10-14 14:12:47", "updater": "admin", "update_time": "2026-10-14 14:12:47", "deleted": "b'\\x00'" } ] }, "mes_wm_misc_issue": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "单号" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "名称" }, { "Field": "issue_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "出库日期" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "process_instance_id", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "流程实例ID" }, { "Field": "process_definition_key", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "流程定义Key" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "source_doc_type", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "source_doc_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "source_doc_code", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } ], "count": 0, "latest": [] }, "mes_wm_misc_issue_detail": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "line_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "行 ID" }, { "Field": "issue_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "出库单 ID" }, { "Field": "material_stock_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库存 ID" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料 ID" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数量" }, { "Field": "batch_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次 ID" }, { "Field": "warehouse_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "仓库 ID" }, { "Field": "location_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库区 ID" }, { "Field": "area_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库位 ID" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "batch_code", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次号" } ], "count": 0, "latest": [] }, "mes_wm_misc_issue_line": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "issue_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "出库单 ID" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料 ID" }, { "Field": "item_model_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料型号编号" }, { "Field": "enter_unit_measure_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "录入单位编号(为空或等于物料主单位时按主单位录入)" }, { "Field": "enter_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "录入数量(按录入单位计)" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数量" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "material_stock_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库存记录ID" }, { "Field": "batch_code", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次号" }, { "Field": "warehouse_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "location_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "area_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "source_doc_line_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "batch_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } ], "count": 0, "latest": [] }, "mes_wm_misc_receipt": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "单号" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "名称" }, { "Field": "type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "杂项类型:mes_wm_misc_receipt_type" }, { "Field": "source_doc_type", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "来源单据类型" }, { "Field": "source_doc_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "来源单据ID" }, { "Field": "source_doc_code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "来源单据编码" }, { "Field": "receipt_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "入库日期" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "process_instance_id", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "流程实例ID" }, { "Field": "process_definition_key", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "流程定义Key" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 1, "latest": [ { "id": 2, "code": "QTCKDC-202609-20260901", "name": "九月销售出库等量库存补充", "type": 1, "source_doc_type": null, "source_doc_id": null, "source_doc_code": null, "receipt_date": "2026-09-01 09:18:47", "status": 4, "remark": "九月历史销售流程补录;按用户要求等量补库存后出库,净库存不变;非真实采购或生产入库;汇总批次非真实生产批次;补录时间为本次执行时间。", "process_instance_id": null, "process_definition_key": null, "creator": "244", "create_time": "2026-09-01 09:18:47", "updater": "244", "update_time": "2026-09-01 09:23:47", "deleted": "b'\\x00'" } ] }, "mes_wm_misc_receipt_detail": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "line_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "行 ID" }, { "Field": "receipt_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "入库单 ID" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料 ID" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数量" }, { "Field": "batch_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次 ID" }, { "Field": "warehouse_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "仓库 ID" }, { "Field": "location_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库区 ID" }, { "Field": "area_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库位 ID" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "batch_code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } ], "count": 75, "latest": [ { "id": 75, "line_id": 76, "receipt_id": 2, "item_id": 1118, "quantity": "5.000000", "batch_id": null, "warehouse_id": 18, "location_id": 3, "area_id": 3, "remark": "对应销售原单26000114、出库行75;等量补入后出库,净库存不变;销售单位与物料主单位一致", "creator": "244", "create_time": "2026-09-01 09:19:02", "updater": "244", "update_time": "2026-09-01 09:19:02", "deleted": "b'\\x00'", "batch_code": "INIT202609-74000484" }, { "id": 74, "line_id": 75, "receipt_id": 2, "item_id": 509, "quantity": "11.000000", "batch_id": null, "warehouse_id": 18, "location_id": 3, "area_id": 3, "remark": "对应销售原单26000114、出库行74;等量补入后出库,净库存不变;同SKU完整销售包装计数按1:1补录;瓶/盒/个为原台账计数称谓;规格及物料匹配一致;不新增通用单位换算", "creator": "244", "create_time": "2026-09-01 09:19:01", "updater": "244", "update_time": "2026-09-01 09:19:01", "deleted": "b'\\x00'", "batch_code": "INIT202609-Q2100086" }, { "id": 73, "line_id": 74, "receipt_id": 2, "item_id": 497, "quantity": "21.000000", "batch_id": null, "warehouse_id": 18, "location_id": 3, "area_id": 3, "remark": "对应销售原单26000114、出库行73;等量补入后出库,净库存不变;同SKU完整销售包装计数按1:1补录;瓶/盒/个为原台账计数称谓;规格及物料匹配一致;不新增通用单位换算", "creator": "244", "create_time": "2026-09-01 09:19:00", "updater": "244", "update_time": "2026-09-01 09:19:00", "deleted": "b'\\x00'", "batch_code": "INIT202609-Q2100080" } ] }, "mes_wm_misc_receipt_line": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "receipt_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "入库单 ID" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料 ID" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数量" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "batch_code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "warehouse_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "location_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "area_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } ], "count": 75, "latest": [ { "id": 76, "receipt_id": 2, "item_id": 1118, "quantity": "5.000000", "remark": "对应销售原单26000114、出库行75;等量补入后出库,净库存不变;销售单位与物料主单位一致", "creator": "244", "create_time": "2026-09-01 09:19:03", "updater": "244", "update_time": "2026-09-01 09:24:03", "deleted": "b'\\x00'", "batch_code": "INIT202609-74000484", "warehouse_id": 18, "location_id": 3, "area_id": 3 }, { "id": 75, "receipt_id": 2, "item_id": 509, "quantity": "11.000000", "remark": "对应销售原单26000114、出库行74;等量补入后出库,净库存不变;同SKU完整销售包装计数按1:1补录;瓶/盒/个为原台账计数称谓;规格及物料匹配一致;不新增通用单位换算", "creator": "244", "create_time": "2026-09-01 09:19:02", "updater": "244", "update_time": "2026-09-01 09:24:02", "deleted": "b'\\x00'", "batch_code": "INIT202609-Q2100086", "warehouse_id": 18, "location_id": 3, "area_id": 3 }, { "id": 74, "receipt_id": 2, "item_id": 497, "quantity": "21.000000", "remark": "对应销售原单26000114、出库行73;等量补入后出库,净库存不变;同SKU完整销售包装计数按1:1补录;瓶/盒/个为原台账计数称谓;规格及物料匹配一致;不新增通用单位换算", "creator": "244", "create_time": "2026-09-01 09:19:01", "updater": "244", "update_time": "2026-09-01 09:24:01", "deleted": "b'\\x00'", "batch_code": "INIT202609-Q2100080", "warehouse_id": 18, "location_id": 3, "area_id": 3 } ] }, "mes_wm_outsource_issue": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "单号" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "名称" }, { "Field": "work_order_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "外协工单 ID" }, { "Field": "vendor_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "供应商 ID" }, { "Field": "issue_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "发料日期" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "mes_wm_outsource_issue_detail": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "line_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "行 ID" }, { "Field": "issue_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "发料单 ID" }, { "Field": "material_stock_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库存 ID" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料 ID" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数量" }, { "Field": "batch_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次 ID" }, { "Field": "warehouse_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "仓库 ID" }, { "Field": "location_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库区 ID" }, { "Field": "area_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库位 ID" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "mes_wm_outsource_issue_line": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "issue_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "发料单 ID" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料 ID" }, { "Field": "item_model_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料型号编号" }, { "Field": "enter_unit_measure_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "录入单位编号(为空或等于物料主单位时按主单位录入)" }, { "Field": "enter_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "录入数量(按录入单位计)" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数量" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "mes_wm_outsource_receipt": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "单号" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "名称" }, { "Field": "work_order_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "外协工单 ID" }, { "Field": "vendor_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "供应商 ID" }, { "Field": "receipt_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "入库日期" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "mes_wm_outsource_receipt_detail": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "line_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "行 ID" }, { "Field": "receipt_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "入库单 ID" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料 ID" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数量" }, { "Field": "batch_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次 ID" }, { "Field": "warehouse_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "仓库 ID" }, { "Field": "location_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库区 ID" }, { "Field": "area_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库位 ID" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "mes_wm_outsource_receipt_line": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "receipt_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "入库单 ID" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料 ID" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数量" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "iqc_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "来料检验单编号" }, { "Field": "iqc_check_flag", "Type": "bit(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否需要来料检验" }, { "Field": "quality_status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "质量状态" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "mes_wm_package": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "装箱单 ID" }, { "Field": "code", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "装箱单编号" }, { "Field": "parent_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "父箱 ID" }, { "Field": "package_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "装箱日期" }, { "Field": "sales_order_code", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "销售订单编号" }, { "Field": "invoice_code", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "发票编号" }, { "Field": "client_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "客户 ID" }, { "Field": "length", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "箱长度" }, { "Field": "width", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "箱宽度" }, { "Field": "height", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "箱高度" }, { "Field": "size_unit_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "尺寸单位 ID" }, { "Field": "net_weight", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "净重" }, { "Field": "gross_weight", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "毛重" }, { "Field": "weight_unit_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "重量单位 ID" }, { "Field": "inspector_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "检查员用户 ID" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态" }, { "Field": "remark", "Type": "varchar(500)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "mes_wm_package_line": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "package_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "包装单 ID" }, { "Field": "material_stock_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库存 ID" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料 ID" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数量" }, { "Field": "batch_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次 ID" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "mes_wm_product_issue": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "单号" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "名称" }, { "Field": "work_order_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产工单 ID" }, { "Field": "task_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产任务ID" }, { "Field": "issue_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "领料日期" }, { "Field": "required_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "需求时间" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "process_instance_id", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "流程实例ID" }, { "Field": "process_definition_key", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "流程定义Key" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "workstation_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } ], "count": 45, "latest": [ { "id": 45, "code": "LWL202609270001", "name": "生产领料-西北精致礼盒", "work_order_id": 85, "task_id": 935, "issue_date": "2026-09-27 07:49:37", "required_time": "2026-09-27 08:00:00", "status": 4, "remark": null, "process_instance_id": null, "process_definition_key": null, "creator": "1", "create_time": "2026-09-27 07:48:42", "updater": "1", "update_time": "2026-09-27 07:50:22", "deleted": "b'\\x00'", "workstation_id": 1 }, { "id": 44, "code": "LWL202609260002", "name": "生产领料-藜麦大礼包", "work_order_id": 84, "task_id": 929, "issue_date": "2026-09-26 07:42:46", "required_time": "2026-09-26 08:00:00", "status": 4, "remark": null, "process_instance_id": null, "process_definition_key": null, "creator": "1", "create_time": "2026-09-26 07:41:52", "updater": "1", "update_time": "2026-09-26 07:43:30", "deleted": "b'\\x00'", "workstation_id": 1 }, { "id": 43, "code": "LWL202609260001", "name": "生产领料-冻干礼盒-200克", "work_order_id": 83, "task_id": 921, "issue_date": "2026-09-26 07:29:57", "required_time": "2026-09-26 08:00:00", "status": 4, "remark": null, "process_instance_id": null, "process_definition_key": null, "creator": "1", "create_time": "2026-09-26 07:29:04", "updater": "1", "update_time": "2026-09-26 07:30:40", "deleted": "b'\\x00'", "workstation_id": 1 } ] }, "mes_wm_product_issue_detail": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "line_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "行 ID" }, { "Field": "issue_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "领料单 ID" }, { "Field": "material_stock_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库存 ID" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料 ID" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数量" }, { "Field": "batch_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次 ID" }, { "Field": "warehouse_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "仓库 ID" }, { "Field": "location_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库区 ID" }, { "Field": "area_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库位 ID" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "batch_code", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } ], "count": 123, "latest": [ { "id": 123, "line_id": 123, "issue_id": 45, "material_stock_id": 468, "item_id": 1167, "quantity": "100.000000", "batch_id": 460, "warehouse_id": 22, "location_id": 7, "area_id": 7, "remark": null, "creator": "1", "create_time": "2026-09-27 07:48:45", "updater": "1", "update_time": "2026-09-27 07:48:45", "deleted": "b'\\x00'", "batch_code": "INIT202609-81003768" }, { "id": 122, "line_id": 122, "issue_id": 45, "material_stock_id": 486, "item_id": 1185, "quantity": "100.000000", "batch_id": 478, "warehouse_id": 19, "location_id": 4, "area_id": 4, "remark": null, "creator": "1", "create_time": "2026-09-27 07:48:44", "updater": "1", "update_time": "2026-09-27 07:48:44", "deleted": "b'\\x00'", "batch_code": "INIT202609-81003966" }, { "id": 121, "line_id": 121, "issue_id": 44, "material_stock_id": 468, "item_id": 1167, "quantity": "100.000000", "batch_id": 460, "warehouse_id": 22, "location_id": 7, "area_id": 7, "remark": null, "creator": "1", "create_time": "2026-09-26 07:41:53", "updater": "1", "update_time": "2026-09-26 07:41:53", "deleted": "b'\\x00'", "batch_code": "INIT202609-81003768" } ] }, "mes_wm_product_issue_line": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "issue_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "领料单 ID" }, { "Field": "task_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产任务ID" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料 ID" }, { "Field": "item_model_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料型号编号" }, { "Field": "enter_unit_measure_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "录入单位编号(为空或等于物料主单位时按主单位录入)" }, { "Field": "enter_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "录入数量(按录入单位计)" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数量" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "batch_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } ], "count": 123, "latest": [ { "id": 123, "issue_id": 45, "task_id": 935, "item_id": 1167, "item_model_id": null, "enter_unit_measure_id": null, "enter_quantity": null, "quantity": "100.000000", "remark": null, "creator": "1", "create_time": "2026-09-27 07:48:45", "updater": "1", "update_time": "2026-09-27 07:48:45", "deleted": "b'\\x00'", "batch_id": null }, { "id": 122, "issue_id": 45, "task_id": 935, "item_id": 1185, "item_model_id": null, "enter_unit_measure_id": null, "enter_quantity": null, "quantity": "100.000000", "remark": null, "creator": "1", "create_time": "2026-09-27 07:48:44", "updater": "1", "update_time": "2026-09-27 07:48:44", "deleted": "b'\\x00'", "batch_id": null }, { "id": 121, "issue_id": 44, "task_id": 929, "item_id": 1167, "item_model_id": null, "enter_unit_measure_id": null, "enter_quantity": null, "quantity": "100.000000", "remark": null, "creator": "1", "create_time": "2026-09-26 07:41:53", "updater": "1", "update_time": "2026-09-26 07:41:53", "deleted": "b'\\x00'", "batch_id": null } ] }, "mes_wm_product_produce": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "单号" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "名称" }, { "Field": "work_order_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产工单 ID" }, { "Field": "feedback_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "报工记录 ID" }, { "Field": "produce_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "入库日期" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "workstation_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "process_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工序 ID" }, { "Field": "task_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } ], "count": 56, "latest": [ { "id": 56, "code": "RKD202609270001", "name": "生产入库-西北精致礼盒", "work_order_id": 85, "feedback_id": 827, "produce_date": "2026-09-27 14:06:50", "status": 4, "remark": null, "creator": "1", "create_time": "2026-09-27 14:06:50", "updater": "1", "update_time": "2026-09-27 14:06:50", "deleted": "b'\\x00'", "workstation_id": 13, "process_id": 13, "task_id": 940 }, { "id": 55, "code": "RKD202609260002", "name": "生产入库-藜麦大礼包", "work_order_id": 84, "feedback_id": 821, "produce_date": "2026-09-26 14:14:46", "status": 4, "remark": null, "creator": "1", "create_time": "2026-09-26 14:14:46", "updater": "1", "update_time": "2026-09-26 14:14:46", "deleted": "b'\\x00'", "workstation_id": 13, "process_id": 13, "task_id": 934 }, { "id": 54, "code": "RKD202609260001", "name": "生产入库-冻干礼盒-200克", "work_order_id": 83, "feedback_id": 815, "produce_date": "2026-09-26 16:38:09", "status": 4, "remark": null, "creator": "1", "create_time": "2026-09-26 16:38:09", "updater": "1", "update_time": "2026-09-26 16:38:09", "deleted": "b'\\x00'", "workstation_id": 13, "process_id": 13, "task_id": 928 } ] }, "mes_wm_product_produce_detail": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "line_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "行 ID" }, { "Field": "produce_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "入库单 ID" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料 ID" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数量" }, { "Field": "batch_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次 ID" }, { "Field": "batch_code", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次号" }, { "Field": "warehouse_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "仓库 ID" }, { "Field": "location_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库区 ID" }, { "Field": "area_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库位 ID" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 56, "latest": [ { "id": 56, "line_id": 56, "produce_id": 56, "item_id": 1119, "quantity": "100.000000", "batch_id": null, "batch_code": "SC20260927001", "warehouse_id": 16, "location_id": 1, "area_id": 1, "remark": null, "creator": "1", "create_time": "2026-09-27 14:07:46", "updater": "1", "update_time": "2026-09-27 14:07:46", "deleted": "b'\\x00'" }, { "id": 55, "line_id": 55, "produce_id": 55, "item_id": 1120, "quantity": "100.000000", "batch_id": null, "batch_code": "SC20260926002", "warehouse_id": 16, "location_id": 1, "area_id": 1, "remark": null, "creator": "1", "create_time": "2026-09-26 14:15:41", "updater": "1", "update_time": "2026-09-26 14:15:41", "deleted": "b'\\x00'" }, { "id": 54, "line_id": 54, "produce_id": 54, "item_id": 1122, "quantity": "100.000000", "batch_id": null, "batch_code": "SC20260926001", "warehouse_id": 16, "location_id": 1, "area_id": 1, "remark": null, "creator": "1", "create_time": "2026-09-26 16:39:03", "updater": "1", "update_time": "2026-09-26 16:39:03", "deleted": "b'\\x00'" } ] }, "mes_wm_product_produce_line": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "produce_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "入库单 ID" }, { "Field": "feedback_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "报工记录 ID" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料 ID" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数量" }, { "Field": "batch_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次 ID" }, { "Field": "batch_code", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次号" }, { "Field": "expire_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "过期日期" }, { "Field": "lot_number", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产批号" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "quality_status", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } ], "count": 56, "latest": [ { "id": 56, "produce_id": 56, "feedback_id": 827, "item_id": 1119, "quantity": "100.000000", "batch_id": 1082, "batch_code": "SC20260927001", "expire_date": null, "lot_number": null, "remark": null, "creator": "1", "create_time": "2026-09-27 14:07:46", "updater": "1", "update_time": "2026-10-14 15:56:02", "deleted": "b'\\x00'", "quality_status": "1" }, { "id": 55, "produce_id": 55, "feedback_id": 821, "item_id": 1120, "quantity": "100.000000", "batch_id": 1081, "batch_code": "SC20260926002", "expire_date": null, "lot_number": null, "remark": null, "creator": "1", "create_time": "2026-09-26 14:15:41", "updater": "1", "update_time": "2026-10-14 15:56:02", "deleted": "b'\\x00'", "quality_status": "1" }, { "id": 54, "produce_id": 54, "feedback_id": 815, "item_id": 1122, "quantity": "100.000000", "batch_id": 1080, "batch_code": "SC20260926001", "expire_date": null, "lot_number": null, "remark": null, "creator": "1", "create_time": "2026-09-26 16:39:03", "updater": "1", "update_time": "2026-10-14 15:56:02", "deleted": "b'\\x00'", "quality_status": "1" } ] }, "mes_wm_product_receipt": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "单号" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "名称" }, { "Field": "work_order_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产工单 ID" }, { "Field": "receipt_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "退料日期" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "process_instance_id", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "流程实例ID" }, { "Field": "process_definition_key", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "流程定义Key" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "item_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } ], "count": 0, "latest": [] }, "mes_wm_product_receipt_detail": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "line_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "行 ID" }, { "Field": "receipt_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "退料单 ID" }, { "Field": "material_stock_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库存 ID" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料 ID" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数量" }, { "Field": "batch_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次 ID" }, { "Field": "warehouse_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "仓库 ID" }, { "Field": "location_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库区 ID" }, { "Field": "area_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库位 ID" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "mes_wm_product_receipt_line": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "receipt_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "退料单 ID" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料 ID" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数量" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "material_stock_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "batch_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "batch_code", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } ], "count": 0, "latest": [] }, "mes_wm_product_sales": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "单号" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "名称" }, { "Field": "client_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "客户 ID" }, { "Field": "sale_order_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "销售订单ID" }, { "Field": "notice_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "发货通知单ID" }, { "Field": "sales_order_code", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "销售订单号" }, { "Field": "sales_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "出库日期" }, { "Field": "contact_name", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "联系人" }, { "Field": "contact_telephone", "Type": "varchar(32)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "联系电话" }, { "Field": "contact_address", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "收货地址" }, { "Field": "carrier", "Type": "varchar(128)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "承运商" }, { "Field": "shipping_number", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "运输单号" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "process_instance_id", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "流程实例ID" }, { "Field": "process_definition_key", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "流程定义Key" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 23, "latest": [ { "id": 23, "code": "XSCK-202609-26000114", "name": "销售订单[26000114]出库单", "client_id": 1611, "sale_order_id": 1044, "notice_id": 23, "sales_order_code": "26000114", "sales_date": "2026-09-28 14:37:53", "contact_name": null, "contact_telephone": null, "contact_address": "青海省西宁市城西区五四大街33号(占位)", "carrier": "自有车辆配送(车牌前缀:青H)", "shipping_number": "ZPSD2026092826000114", "status": 4, "remark": null, "process_instance_id": null, "process_definition_key": null, "creator": "244", "create_time": "2026-09-28 14:37:53", "updater": "244", "update_time": "2026-10-14 15:56:02", "deleted": "b'\\x00'" }, { "id": 22, "code": "XSCK-202609-26000115", "name": "销售订单[26000115]出库单", "client_id": 1610, "sale_order_id": 1043, "notice_id": 22, "sales_order_code": "26000115", "sales_date": "2026-09-29 09:42:27", "contact_name": null, "contact_telephone": null, "contact_address": "青海省西宁市城中区南关街18号(占位)", "carrier": "自有车辆配送(车牌前缀:青H)", "shipping_number": "ZPSD2026092926000115", "status": 4, "remark": null, "process_instance_id": null, "process_definition_key": null, "creator": "244", "create_time": "2026-09-29 09:42:27", "updater": "244", "update_time": "2026-10-14 15:56:02", "deleted": "b'\\x00'" }, { "id": 21, "code": "XSCK-202609-26000113", "name": "销售订单[26000113]出库单", "client_id": 1609, "sale_order_id": 1042, "notice_id": 21, "sales_order_code": "26000113", "sales_date": "2026-09-14 09:42:58", "contact_name": null, "contact_telephone": null, "contact_address": "北京市朝阳区望京东园电商配送中心(占位)", "carrier": "京东", "shipping_number": "JDV2026091426000113", "status": 4, "remark": null, "process_instance_id": null, "process_definition_key": null, "creator": "244", "create_time": "2026-09-14 09:42:58", "updater": "244", "update_time": "2026-10-14 15:56:02", "deleted": "b'\\x00'" } ] }, "mes_wm_product_sales_detail": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "line_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "行 ID" }, { "Field": "sales_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "出库单 ID" }, { "Field": "material_stock_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库存 ID" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料 ID" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数量" }, { "Field": "batch_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次 ID" }, { "Field": "batch_code", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次号" }, { "Field": "warehouse_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "仓库 ID" }, { "Field": "location_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库区 ID" }, { "Field": "area_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库位 ID" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 75, "latest": [ { "id": 75, "line_id": 75, "sales_id": 23, "material_stock_id": 418, "item_id": 1118, "quantity": "5.000000", "batch_id": 411, "batch_code": "INIT202609-74000484", "warehouse_id": 18, "location_id": 3, "area_id": 3, "remark": "对应销售原单26000114、出库行75;等量补入后出库,净库存不变;销售单位与物料主单位一致", "creator": "244", "create_time": "2026-09-28 15:11:06", "updater": "244", "update_time": "2026-09-28 15:11:06", "deleted": "b'\\x00'" }, { "id": 74, "line_id": 74, "sales_id": 23, "material_stock_id": 10, "item_id": 509, "quantity": "11.000000", "batch_id": 10, "batch_code": "INIT202609-Q2100086", "warehouse_id": 18, "location_id": 3, "area_id": 3, "remark": "对应销售原单26000114、出库行74;等量补入后出库,净库存不变;同SKU完整销售包装计数按1:1补录;瓶/盒/个为原台账计数称谓;规格及物料匹配一致;不新增通用单位换算", "creator": "244", "create_time": "2026-09-28 15:11:06", "updater": "244", "update_time": "2026-09-28 15:11:06", "deleted": "b'\\x00'" }, { "id": 73, "line_id": 73, "sales_id": 23, "material_stock_id": 3, "item_id": 497, "quantity": "21.000000", "batch_id": 3, "batch_code": "INIT202609-Q2100080", "warehouse_id": 18, "location_id": 3, "area_id": 3, "remark": "对应销售原单26000114、出库行73;等量补入后出库,净库存不变;同SKU完整销售包装计数按1:1补录;瓶/盒/个为原台账计数称谓;规格及物料匹配一致;不新增通用单位换算", "creator": "244", "create_time": "2026-09-28 15:11:06", "updater": "244", "update_time": "2026-09-28 15:11:06", "deleted": "b'\\x00'" } ] }, "mes_wm_product_sales_line": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "sales_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "出库单 ID" }, { "Field": "sale_order_item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "销售订单明细ID" }, { "Field": "notice_line_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "发货通知单行ID" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料 ID" }, { "Field": "item_model_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料型号编号" }, { "Field": "enter_unit_measure_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "录入单位编号(为空或等于物料主单位时按主单位录入)" }, { "Field": "enter_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "录入数量(按录入单位计)" }, { "Field": "batch_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次ID" }, { "Field": "batch_code", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次号" }, { "Field": "material_stock_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库存记录ID" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数量" }, { "Field": "oqc_check_flag", "Type": "tinyint(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否检验" }, { "Field": "oqc_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "出厂检验单ID" }, { "Field": "quality_status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "质量状态" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 75, "latest": [ { "id": 75, "sales_id": 23, "sale_order_item_id": 4170, "notice_line_id": 75, "item_id": 1118, "item_model_id": null, "enter_unit_measure_id": 9, "enter_quantity": "5.000000", "batch_id": 411, "batch_code": "INIT202609-74000484", "material_stock_id": 418, "quantity": "5.000000", "oqc_check_flag": 1, "oqc_id": 297, "quality_status": null, "remark": "对应销售原单26000114、出库行75;等量补入后出库,净库存不变;销售单位与物料主单位一致", "creator": "244", "create_time": "2026-09-28 14:37:53", "updater": "244", "update_time": "2026-10-14 16:07:12", "deleted": "b'\\x00'" }, { "id": 74, "sales_id": 23, "sale_order_item_id": 4169, "notice_line_id": 74, "item_id": 509, "item_model_id": null, "enter_unit_measure_id": 9, "enter_quantity": "11.000000", "batch_id": 10, "batch_code": "INIT202609-Q2100086", "material_stock_id": 10, "quantity": "11.000000", "oqc_check_flag": 1, "oqc_id": 296, "quality_status": null, "remark": "对应销售原单26000114、出库行74;等量补入后出库,净库存不变;同SKU完整销售包装计数按1:1补录;瓶/盒/个为原台账计数称谓;规格及物料匹配一致;不新增通用单位换算", "creator": "244", "create_time": "2026-09-28 14:37:53", "updater": "244", "update_time": "2026-10-14 16:07:12", "deleted": "b'\\x00'" }, { "id": 73, "sales_id": 23, "sale_order_item_id": 4168, "notice_line_id": 73, "item_id": 497, "item_model_id": null, "enter_unit_measure_id": 9, "enter_quantity": "21.000000", "batch_id": 3, "batch_code": "INIT202609-Q2100080", "material_stock_id": 3, "quantity": "21.000000", "oqc_check_flag": 1, "oqc_id": 295, "quality_status": null, "remark": "对应销售原单26000114、出库行73;等量补入后出库,净库存不变;同SKU完整销售包装计数按1:1补录;瓶/盒/个为原台账计数称谓;规格及物料匹配一致;不新增通用单位换算", "creator": "244", "create_time": "2026-09-28 14:37:53", "updater": "244", "update_time": "2026-10-14 16:07:12", "deleted": "b'\\x00'" } ] }, "mes_wm_return_issue": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "单号" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "名称" }, { "Field": "work_order_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产工单 ID" }, { "Field": "task_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产任务ID" }, { "Field": "issue_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "退料日期" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "workstation_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "type", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "return_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } ], "count": 0, "latest": [] }, "mes_wm_return_issue_detail": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "line_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "行 ID" }, { "Field": "issue_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "退料单 ID" }, { "Field": "material_stock_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库存 ID" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料 ID" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数量" }, { "Field": "batch_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次 ID" }, { "Field": "warehouse_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "仓库 ID" }, { "Field": "location_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库区 ID" }, { "Field": "area_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库位 ID" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "batch_code", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } ], "count": 0, "latest": [] }, "mes_wm_return_issue_line": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "issue_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "退料单 ID" }, { "Field": "issue_line_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "领料单行ID" }, { "Field": "task_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产任务ID" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料 ID" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数量" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "material_stock_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "rqc_check_flag", "Type": "tinyint(1)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "quality_status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "batch_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "batch_code", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "rqc_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } ], "count": 0, "latest": [] }, "mes_wm_return_sales": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "after_sale_return_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "售后退货申请编号,关联 after_sale_return.id" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "单号" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "名称" }, { "Field": "sales_order_code", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "销售订单编号" }, { "Field": "sale_order_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "销售订单 ID" }, { "Field": "client_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "客户 ID" }, { "Field": "return_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "退货日期" }, { "Field": "return_reason", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "退货原因" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "mes_wm_return_sales_detail": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "line_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "行 ID" }, { "Field": "return_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "退货单 ID" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料 ID" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数量" }, { "Field": "batch_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次 ID" }, { "Field": "batch_code", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次号" }, { "Field": "warehouse_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "仓库 ID" }, { "Field": "location_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库区 ID" }, { "Field": "area_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库位 ID" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "mes_wm_return_sales_line": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "return_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "退货单 ID" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料 ID" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数量" }, { "Field": "batch_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次 ID" }, { "Field": "batch_code", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次号" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "rqc_check_flag", "Type": "tinyint(1)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否需要质检" }, { "Field": "rqc_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, { "Field": "quality_status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } ], "count": 0, "latest": [] }, "mes_wm_return_vendor": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "单号" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "名称" }, { "Field": "vendor_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "供应商 ID" }, { "Field": "purchase_order_code", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "采购订单编号" }, { "Field": "purchase_order_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "采购订单编号" }, { "Field": "return_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "退货日期" }, { "Field": "return_reason", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "退货原因" }, { "Field": "transport_code", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物流单号" }, { "Field": "transport_telephone", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物流联系电话" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "mes_wm_return_vendor_detail": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "line_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "行 ID" }, { "Field": "return_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "退货单 ID" }, { "Field": "material_stock_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库存 ID" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料 ID" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数量" }, { "Field": "batch_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次 ID" }, { "Field": "warehouse_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "仓库 ID" }, { "Field": "location_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库区 ID" }, { "Field": "area_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库位 ID" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "batch_code", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次号" } ], "count": 0, "latest": [] }, "mes_wm_return_vendor_line": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "return_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "退货单 ID" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料 ID" }, { "Field": "item_model_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料型号编号" }, { "Field": "enter_unit_measure_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "录入单位编号(为空或等于物料主单位时按主单位录入)" }, { "Field": "enter_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "录入数量(按录入单位计)" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数量" }, { "Field": "batch_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次 ID" }, { "Field": "batch_code", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次号" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "mes_wm_sales_notice": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "单号" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "名称" }, { "Field": "client_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "客户 ID" }, { "Field": "sale_order_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "销售订单ID" }, { "Field": "sale_order_code", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "销售订单号" }, { "Field": "sales_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "销售日期" }, { "Field": "recipient_name", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "收货人" }, { "Field": "recipient_telephone", "Type": "varchar(32)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "联系方式" }, { "Field": "recipient_address", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "收货地址" }, { "Field": "delivery_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "预计发货日期" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态" }, { "Field": "out_status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "出库状态" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 24, "latest": [ { "id": 24, "code": "00000000000000XST001", "name": "销售订单[26000369]发货通知", "client_id": 1359, "sale_order_id": 1046, "sale_order_code": "26000369", "sales_date": "2026-10-13 14:05:45", "recipient_name": null, "recipient_telephone": null, "recipient_address": "山东省济宁市任城区太白楼中路 15 号", "delivery_date": null, "status": 0, "out_status": 0, "remark": null, "creator": "291", "create_time": "2026-10-13 14:05:45", "updater": "291", "update_time": "2026-10-14 15:56:02", "deleted": "b'\\x00'" }, { "id": 23, "code": "FHTZ-202609-26000114", "name": "销售订单[26000114]发货通知", "client_id": 1611, "sale_order_id": 1044, "sale_order_code": "26000114", "sales_date": "2026-09-28 13:28:09", "recipient_name": null, "recipient_telephone": null, "recipient_address": "青海省西宁市城西区五四大街33号(占位)", "delivery_date": null, "status": 4, "out_status": 2, "remark": null, "creator": "244", "create_time": "2026-09-28 13:28:09", "updater": "244", "update_time": "2026-10-14 15:56:02", "deleted": "b'\\x00'" }, { "id": 22, "code": "FHTZ-202609-26000115", "name": "销售订单[26000115]发货通知", "client_id": 1610, "sale_order_id": 1043, "sale_order_code": "26000115", "sales_date": "2026-09-29 08:53:05", "recipient_name": null, "recipient_telephone": null, "recipient_address": "青海省西宁市城中区南关街18号(占位)", "delivery_date": null, "status": 4, "out_status": 2, "remark": null, "creator": "244", "create_time": "2026-09-29 08:53:05", "updater": "244", "update_time": "2026-10-14 15:56:02", "deleted": "b'\\x00'" } ] }, "mes_wm_sales_notice_line": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "notice_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "销售发货通知单 ID" }, { "Field": "sale_order_item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "销售订单明细ID" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料 ID" }, { "Field": "batch_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次ID" }, { "Field": "batch_code", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次号" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数量" }, { "Field": "out_count", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.000000", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "已出库数量" }, { "Field": "oqc_check_flag", "Type": "tinyint(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否检验" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 76, "latest": [ { "id": 76, "notice_id": 24, "sale_order_item_id": 4127, "item_id": 964, "batch_id": null, "batch_code": null, "quantity": "-24.000000", "out_count": "0.000000", "oqc_check_flag": 0, "remark": null, "creator": "291", "create_time": "2026-10-13 14:05:45", "updater": "291", "update_time": "2026-10-13 14:05:45", "deleted": "b'\\x00'" }, { "id": 75, "notice_id": 23, "sale_order_item_id": 4170, "item_id": 1118, "batch_id": 411, "batch_code": "INIT202609-74000484", "quantity": "5.000000", "out_count": "5.000000", "oqc_check_flag": 0, "remark": "对应销售原单26000114、出库行75;等量补入后出库,净库存不变;销售单位与物料主单位一致", "creator": "244", "create_time": "2026-09-28 13:28:09", "updater": "244", "update_time": "2026-09-28 15:11:06", "deleted": "b'\\x00'" }, { "id": 74, "notice_id": 23, "sale_order_item_id": 4169, "item_id": 509, "batch_id": 10, "batch_code": "INIT202609-Q2100086", "quantity": "11.000000", "out_count": "11.000000", "oqc_check_flag": 0, "remark": "对应销售原单26000114、出库行74;等量补入后出库,净库存不变;同SKU完整销售包装计数按1:1补录;瓶/盒/个为原台账计数称谓;规格及物料匹配一致;不新增通用单位换算", "creator": "244", "create_time": "2026-09-28 13:28:09", "updater": "244", "update_time": "2026-09-28 15:11:06", "deleted": "b'\\x00'" } ] }, "mes_wm_sn": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "uuid", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次UUID" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "序列号" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料 ID" }, { "Field": "batch_code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次号" }, { "Field": "work_order_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产工单编号" }, { "Field": "batch_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次 ID" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "mes_wm_stock_reserve": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "material_stock_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库存记录ID" }, { "Field": "biz_type", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "业务类型(1销售出库 2生产领料 3外协发料 4杂项出库 5转移调拨)" }, { "Field": "biz_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "业务单据ID" }, { "Field": "biz_code", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "业务单号" }, { "Field": "biz_line_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "业务单据行ID" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料ID" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "占用数量" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态(1占用中 2已释放 3已出库)" }, { "Field": "remark", "Type": "varchar(500)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 75, "latest": [ { "id": 75, "material_stock_id": 418, "biz_type": 1, "biz_id": 23, "biz_code": "XSCK-202609-26000114", "biz_line_id": 75, "item_id": 1118, "quantity": "5.000000", "status": 3, "remark": "九月历史销售流程补录;按用户要求等量补库存后出库,净库存不变;非真实采购或生产入库;汇总批次非真实生产批次;补录时间为本次执行时间。", "creator": "244", "create_time": "2026-09-28 14:37:53", "updater": "244", "update_time": "2026-09-28 15:11:06", "deleted": "b'\\x00'" }, { "id": 74, "material_stock_id": 10, "biz_type": 1, "biz_id": 23, "biz_code": "XSCK-202609-26000114", "biz_line_id": 74, "item_id": 509, "quantity": "11.000000", "status": 3, "remark": "九月历史销售流程补录;按用户要求等量补库存后出库,净库存不变;非真实采购或生产入库;汇总批次非真实生产批次;补录时间为本次执行时间。", "creator": "244", "create_time": "2026-09-28 14:37:53", "updater": "244", "update_time": "2026-09-28 15:11:06", "deleted": "b'\\x00'" }, { "id": 73, "material_stock_id": 3, "biz_type": 1, "biz_id": 23, "biz_code": "XSCK-202609-26000114", "biz_line_id": 73, "item_id": 497, "quantity": "21.000000", "status": 3, "remark": "九月历史销售流程补录;按用户要求等量补库存后出库,净库存不变;非真实采购或生产入库;汇总批次非真实生产批次;补录时间为本次执行时间。", "creator": "244", "create_time": "2026-09-28 14:37:53", "updater": "244", "update_time": "2026-09-28 15:11:06", "deleted": "b'\\x00'" } ] }, "mes_wm_stock_taking_plan": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "盘点计划编码" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "盘点计划名称" }, { "Field": "plan_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "盘点日期" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "process_instance_id", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "流程实例ID" }, { "Field": "process_definition_key", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "流程定义Key" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "盘点类型" }, { "Field": "start_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "计划开始时间" }, { "Field": "end_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "计划结束时间" }, { "Field": "blind_flag", "Type": "bit(1)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否盲盘" }, { "Field": "frozen", "Type": "bit(1)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否冻结库存" } ], "count": 0, "latest": [] }, "mes_wm_stock_taking_plan_param": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "plan_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "盘点计划 ID" }, { "Field": "warehouse_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "仓库 ID" }, { "Field": "location_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库区 ID" }, { "Field": "area_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库位 ID" }, { "Field": "item_type_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料分类 ID" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料 ID" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "参数值类型" }, { "Field": "value_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "参数值编号" }, { "Field": "value_code", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "参数值编码" }, { "Field": "value_name", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "参数值名称" } ], "count": 0, "latest": [] }, "mes_wm_stock_taking_task": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "盘点任务编码" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "盘点任务名称" }, { "Field": "plan_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "盘点计划 ID" }, { "Field": "task_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "盘点日期" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "mes_wm_stock_taking_task_line": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "task_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "盘点任务 ID" }, { "Field": "material_stock_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库存 ID" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料 ID" }, { "Field": "batch_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次 ID" }, { "Field": "warehouse_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "仓库 ID" }, { "Field": "location_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库区 ID" }, { "Field": "area_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库位 ID" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "账面数量" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "mes_wm_stock_taking_task_result": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "task_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "盘点任务 ID" }, { "Field": "line_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "盘点任务行 ID" }, { "Field": "material_stock_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库存 ID" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料 ID" }, { "Field": "batch_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次 ID" }, { "Field": "warehouse_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "仓库 ID" }, { "Field": "location_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库区 ID" }, { "Field": "area_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库位 ID" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "实盘数量" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "mes_wm_transaction": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "事务类型" }, { "Field": "biz_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "业务类型" }, { "Field": "biz_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "来源业务主单 ID" }, { "Field": "biz_code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "来源业务单号" }, { "Field": "biz_line_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "来源业务行 ID" }, { "Field": "material_stock_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库存记录 ID" }, { "Field": "related_transaction_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "关联的事务 ID" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料 ID" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "本次变动数量" }, { "Field": "batch_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次 ID" }, { "Field": "batch_code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次号" }, { "Field": "warehouse_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "仓库 ID" }, { "Field": "location_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库区 ID" }, { "Field": "area_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库位 ID" }, { "Field": "transaction_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "事务发生时间" }, { "Field": "erp_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "ERP 账期" }, { "Field": "receipt_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "入库时间" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 1330, "latest": [ { "id": 1330, "type": 2, "biz_type": 123, "biz_id": 56, "biz_code": null, "biz_line_id": 151, "material_stock_id": null, "related_transaction_id": null, "item_id": 1167, "quantity": "-100.000000", "batch_id": 460, "batch_code": "INIT202609-81003768", "warehouse_id": null, "location_id": null, "area_id": null, "transaction_time": "2026-10-14 17:04:21", "erp_time": null, "receipt_time": null, "creator": "1", "create_time": "2026-10-14 17:04:21", "updater": "1", "update_time": "2026-10-14 17:04:21", "deleted": "b'\\x00'" }, { "id": 1329, "type": 2, "biz_type": 123, "biz_id": 56, "biz_code": null, "biz_line_id": 150, "material_stock_id": null, "related_transaction_id": null, "item_id": 1185, "quantity": "-100.000000", "batch_id": 478, "batch_code": "INIT202609-81003966", "warehouse_id": null, "location_id": null, "area_id": null, "transaction_time": "2026-10-14 17:04:21", "erp_time": null, "receipt_time": null, "creator": "1", "create_time": "2026-10-14 17:04:21", "updater": "1", "update_time": "2026-10-14 17:04:21", "deleted": "b'\\x00'" }, { "id": 1328, "type": 2, "biz_type": 123, "biz_id": 55, "biz_code": null, "biz_line_id": 148, "material_stock_id": null, "related_transaction_id": null, "item_id": 1167, "quantity": "-100.000000", "batch_id": 460, "batch_code": "INIT202609-81003768", "warehouse_id": null, "location_id": null, "area_id": null, "transaction_time": "2026-10-14 17:04:21", "erp_time": null, "receipt_time": null, "creator": "1", "create_time": "2026-10-14 17:04:21", "updater": "1", "update_time": "2026-10-14 17:04:21", "deleted": "b'\\x00'" } ] }, "mes_wm_transfer": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "转移单编号" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "转移单名称" }, { "Field": "type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "转移单类型" }, { "Field": "delivery_flag", "Type": "bit(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否配送" }, { "Field": "recipient_name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "收货人" }, { "Field": "recipient_telephone", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "联系方式" }, { "Field": "destination_address", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "目的地" }, { "Field": "carrier", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "承运商" }, { "Field": "shipping_number", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "运输单号" }, { "Field": "confirm_flag", "Type": "bit(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否已确认" }, { "Field": "transfer_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "转移日期" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "process_instance_id", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "流程实例ID" }, { "Field": "process_definition_key", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "流程定义Key" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "mes_wm_transfer_detail": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "line_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "转移单行编号" }, { "Field": "transfer_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "转移单编号" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料编号" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "上架数量" }, { "Field": "batch_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次编号" }, { "Field": "to_warehouse_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "移入仓库编号" }, { "Field": "to_location_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "移入库区编号" }, { "Field": "to_area_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "移入库位编号" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "mes_wm_transfer_line": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "transfer_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "转移单编号" }, { "Field": "material_stock_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库存记录编号" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料编号" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "转移数量" }, { "Field": "batch_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次编号" }, { "Field": "from_warehouse_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "移出仓库编号" }, { "Field": "from_location_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "移出库区编号" }, { "Field": "from_area_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "移出库位编号" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 0, "latest": [] }, "mes_wm_warehouse": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "仓库编码" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "仓库名称" }, { "Field": "address", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "仓库地址" }, { "Field": "area", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "面积" }, { "Field": "charge_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "负责人用户编号" }, { "Field": "frozen", "Type": "bit(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否冻结" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 9, "latest": [ { "id": 24, "code": "YLK", "name": "原料仓", "address": null, "area": null, "charge_user_id": null, "frozen": "b'\\x00'", "remark": "生产原辅料、食品添加剂及散装原料;对应原表YLK", "creator": "stock-import-202609", "create_time": "2026-09-18 16:19:10", "updater": "stock-import-202609", "update_time": "2026-10-12 22:48:22", "deleted": "b'\\x00'" }, { "id": 23, "code": "WIP_VIRTUAL_WAREHOUSE", "name": "虚拟线边仓", "address": null, "area": null, "charge_user_id": null, "frozen": "b'\\x00'", "remark": "已发至车间但尚未消耗的在制库存;对应原表CCCJ、YFK,生产领料与实际消耗分开记账", "creator": "stock-import-202609", "create_time": "2026-09-18 14:15:25", "updater": "stock-import-202609", "update_time": "2026-10-12 22:48:22", "deleted": "b'\\x00'" }, { "id": 22, "code": "WBCK", "name": "外包材仓", "address": null, "area": null, "charge_user_id": null, "frozen": "b'\\x00'", "remark": "外盒、外箱、标签、手提袋等外包装;对应原表WBCK", "creator": "stock-import-202609", "create_time": "2026-09-18 14:02:09", "updater": "stock-import-202609", "update_time": "2026-10-12 22:48:22", "deleted": "b'\\x00'" } ] }, "mes_wm_warehouse_area": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库位编码" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库位名称" }, { "Field": "location_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库区编号" }, { "Field": "area", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "面积" }, { "Field": "max_load", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最大载重" }, { "Field": "position_x", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "位置 X" }, { "Field": "position_y", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "位置 Y" }, { "Field": "position_z", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "位置 Z" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态" }, { "Field": "frozen", "Type": "bit(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否冻结" }, { "Field": "allow_item_mixing", "Type": "bit(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否允许物料混放" }, { "Field": "allow_batch_mixing", "Type": "bit(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否允许批次混放" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 9, "latest": [ { "id": 9, "code": "YLK-A01", "name": "原料仓默认库位", "location_id": 9, "area": null, "max_load": null, "position_x": null, "position_y": null, "position_z": null, "status": 0, "frozen": "b'\\x00'", "allow_item_mixing": "b'\\x01'", "allow_batch_mixing": "b'\\x01'", "remark": "默认汇总库位,允许多物料多批次;虚拟线边仓库位用于记录车间在制库存", "creator": "stock-import-202609", "create_time": "2026-10-12 16:19:39", "updater": "stock-import-202609", "update_time": "2026-10-12 16:19:39", "deleted": "b'\\x00'" }, { "id": 8, "code": "WIP_VIRTUAL_AREA", "name": "虚拟线边仓默认库位", "location_id": 8, "area": null, "max_load": null, "position_x": null, "position_y": null, "position_z": null, "status": 0, "frozen": "b'\\x00'", "allow_item_mixing": "b'\\x01'", "allow_batch_mixing": "b'\\x01'", "remark": "默认汇总库位,允许多物料多批次;虚拟线边仓库位用于记录车间在制库存", "creator": "stock-import-202609", "create_time": "2026-10-12 16:19:39", "updater": "stock-import-202609", "update_time": "2026-10-12 16:19:39", "deleted": "b'\\x00'" }, { "id": 7, "code": "WBCK-A01", "name": "外包材仓默认库位", "location_id": 7, "area": null, "max_load": null, "position_x": null, "position_y": null, "position_z": null, "status": 0, "frozen": "b'\\x00'", "allow_item_mixing": "b'\\x01'", "allow_batch_mixing": "b'\\x01'", "remark": "默认汇总库位,允许多物料多批次;虚拟线边仓库位用于记录车间在制库存", "creator": "stock-import-202609", "create_time": "2026-10-12 16:19:39", "updater": "stock-import-202609", "update_time": "2026-10-12 16:19:39", "deleted": "b'\\x00'" } ] }, "mes_wm_warehouse_location": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库区编码" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库区名称" }, { "Field": "warehouse_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "仓库编号" }, { "Field": "area", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "面积" }, { "Field": "frozen", "Type": "bit(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否冻结" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 9, "latest": [ { "id": 9, "code": "YLK-L01", "name": "原料仓默认库区", "warehouse_id": 24, "area": null, "frozen": "b'\\x00'", "remark": "本仓默认库区,承接9月台账库存", "creator": "stock-import-202609", "create_time": "2026-10-12 16:19:39", "updater": "stock-import-202609", "update_time": "2026-10-12 16:19:39", "deleted": "b'\\x00'" }, { "id": 8, "code": "WIP_VIRTUAL_LOCATION", "name": "虚拟线边仓默认库区", "warehouse_id": 23, "area": null, "frozen": "b'\\x00'", "remark": "本仓默认库区,承接9月台账库存", "creator": "stock-import-202609", "create_time": "2026-10-12 16:19:39", "updater": "stock-import-202609", "update_time": "2026-10-12 16:19:39", "deleted": "b'\\x00'" }, { "id": 7, "code": "WBCK-L01", "name": "外包材仓默认库区", "warehouse_id": 22, "area": null, "frozen": "b'\\x00'", "remark": "本仓默认库区,承接9月台账库存", "creator": "stock-import-202609", "create_time": "2026-10-12 16:19:39", "updater": "stock-import-202609", "update_time": "2026-10-12 16:19:39", "deleted": "b'\\x00'" } ] }, "system_dept": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "部门id" }, { "Field": "name", "Type": "varchar(30)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "部门名称" }, { "Field": "parent_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "父部门id" }, { "Field": "sort", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "显示顺序" }, { "Field": "leader_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "负责人" }, { "Field": "phone", "Type": "varchar(11)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "联系电话" }, { "Field": "email", "Type": "varchar(50)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "邮箱" }, { "Field": "status", "Type": "tinyint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "部门状态(0正常 1停用)" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "tenant_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "租户编号" } ], "count": 8, "latest": [ { "id": 128, "name": "质量管理部", "parent_id": 100, "sort": 3, "leader_user_id": null, "phone": null, "email": null, "status": 0, "creator": "1", "create_time": "2026-09-17 10:37:12", "updater": "1", "update_time": "2026-09-17 10:37:12", "deleted": "b'\\x00'", "tenant_id": 0 }, { "id": 126, "name": "生产车间", "parent_id": 119, "sort": 1, "leader_user_id": null, "phone": "15597646663", "email": null, "status": 0, "creator": "1", "create_time": "2026-10-11 17:35:30", "updater": "291", "update_time": "2026-10-12 23:08:13", "deleted": "b'\\x00'", "tenant_id": 0 }, { "id": 125, "name": "设备部", "parent_id": 100, "sort": 6, "leader_user_id": null, "phone": "13912273507", "email": null, "status": 0, "creator": "1", "create_time": "2026-10-11 17:08:42", "updater": "1", "update_time": "2026-10-11 17:08:42", "deleted": "b'\\x00'", "tenant_id": 0 } ] }, "system_dict_data": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "字典编码" }, { "Field": "sort", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "字典排序" }, { "Field": "label", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "字典标签" }, { "Field": "value", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "字典键值" }, { "Field": "dict_type", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "字典类型" }, { "Field": "status", "Type": "tinyint", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态(0正常 1停用)" }, { "Field": "color_type", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "颜色类型" }, { "Field": "css_class", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "css 样式" }, { "Field": "remark", "Type": "varchar(500)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "count": 1184, "latest": [ { "id": 1065472, "sort": 5, "label": "生产", "value": "5", "dict_type": "mes_cal_calendar_type", "status": 0, "color_type": "primary", "css_class": "", "remark": "生产部门白班排班", "creator": "244", "create_time": "2026-10-14 20:06:30", "updater": "244", "update_time": "2026-10-14 20:06:30", "deleted": "b'\\x00'" }, { "id": 1065471, "sort": 11, "label": "总部分派", "value": "11", "dict_type": "crm_customer_source", "status": 0, "color_type": null, "css_class": null, "remark": null, "creator": "1", "create_time": "2026-10-14 17:29:58", "updater": "1", "update_time": "2026-10-14 17:29:58", "deleted": "b'\\x00'" }, { "id": 1065470, "sort": 8, "label": "资料核对", "value": "8", "dict_type": "crm_follow_up_type", "status": 0, "color_type": "info", "css_class": "", "remark": "依据客户跟进内容分类;不代表已进行电话或实地拜访", "creator": "291", "create_time": "2026-10-13 13:13:58", "updater": "291", "update_time": "2026-10-13 13:13:58", "deleted": "b'\\x00'" } ] }, "system_post": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "岗位ID" }, { "Field": "code", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "岗位编码" }, { "Field": "name", "Type": "varchar(50)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "岗位名称" }, { "Field": "sort", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "显示顺序" }, { "Field": "status", "Type": "tinyint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态(0正常 1停用)" }, { "Field": "remark", "Type": "varchar(500)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "tenant_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "租户编号" } ], "count": 8, "latest": [ { "id": 21, "code": "X7", "name": "设备员", "sort": 8, "status": 0, "remark": null, "creator": "1", "create_time": "2026-10-11 17:17:38", "updater": "1", "update_time": "2026-10-11 17:17:38", "deleted": "b'\\x00'", "tenant_id": 0 }, { "id": 20, "code": "X6", "name": "质检主任", "sort": 7, "status": 0, "remark": null, "creator": "1", "create_time": "2026-10-11 17:16:54", "updater": "1", "update_time": "2026-10-11 17:16:54", "deleted": "b'\\x00'", "tenant_id": 0 }, { "id": 19, "code": "X5", "name": "质检员", "sort": 6, "status": 0, "remark": null, "creator": "1", "create_time": "2026-10-11 17:16:34", "updater": "1", "update_time": "2026-10-11 17:16:34", "deleted": "b'\\x00'", "tenant_id": 0 } ] }, "system_role": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "角色ID" }, { "Field": "name", "Type": "varchar(30)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "角色名称" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "角色权限字符串" }, { "Field": "sort", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "显示顺序" }, { "Field": "data_scope", "Type": "tinyint", "Collation": null, "Null": "NO", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限)" }, { "Field": "data_scope_dept_ids", "Type": "varchar(500)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数据范围(指定部门数组)" }, { "Field": "status", "Type": "tinyint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "角色状态(0正常 1停用)" }, { "Field": "type", "Type": "tinyint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "角色类型" }, { "Field": "remark", "Type": "varchar(500)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "tenant_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "租户编号" } ], "count": 7, "latest": [ { "id": 168, "name": "经理", "code": "JL", "sort": 7, "data_scope": 1, "data_scope_dept_ids": "", "status": 0, "type": 2, "remark": null, "creator": "1", "create_time": "2026-10-12 11:39:51", "updater": "1", "update_time": "2026-10-12 11:39:51", "deleted": "b'\\x00'", "tenant_id": 0 }, { "id": 167, "name": "生产员", "code": "SCY", "sort": 8, "data_scope": 1, "data_scope_dept_ids": "[]", "status": 0, "type": 2, "remark": null, "creator": "1", "create_time": "2026-10-11 17:31:56", "updater": "1", "update_time": "2026-10-12 11:39:58", "deleted": "b'\\x00'", "tenant_id": 0 }, { "id": 166, "name": "生产管理员", "code": "SC", "sort": 6, "data_scope": 1, "data_scope_dept_ids": "[]", "status": 0, "type": 2, "remark": null, "creator": "1", "create_time": "2026-10-11 17:31:19", "updater": "244", "update_time": "2026-10-12 23:32:29", "deleted": "b'\\x00'", "tenant_id": 0 } ] }, "system_user_post": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "id" }, { "Field": "user_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "用户ID" }, { "Field": "post_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "岗位ID" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "tenant_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "租户编号" } ], "count": 6, "latest": [ { "id": 157, "user_id": 291, "post_id": 18, "creator": "1", "create_time": "2026-10-12 11:37:10", "updater": "1", "update_time": "2026-10-12 11:37:10", "deleted": "b'\\x00'", "tenant_id": 0 }, { "id": 156, "user_id": 290, "post_id": 19, "creator": "1", "create_time": "2026-10-12 11:31:41", "updater": "1", "update_time": "2026-10-12 11:31:41", "deleted": "b'\\x00'", "tenant_id": 0 }, { "id": 155, "user_id": 289, "post_id": 20, "creator": "1", "create_time": "2026-10-12 11:30:09", "updater": "1", "update_time": "2026-10-12 11:30:09", "deleted": "b'\\x00'", "tenant_id": 0 } ] }, "system_user_role": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "自增编号" }, { "Field": "user_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "用户ID" }, { "Field": "role_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "角色ID" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "tenant_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "租户编号" } ], "count": 56, "latest": [ { "id": 126, "user_id": 290, "role_id": 168, "creator": "1", "create_time": "2026-10-14 17:55:46", "updater": "1", "update_time": "2026-10-14 17:55:46", "deleted": "b'\\x00'", "tenant_id": 0 }, { "id": 125, "user_id": 289, "role_id": 168, "creator": "1", "create_time": "2026-10-12 13:49:38", "updater": "1", "update_time": "2026-10-12 13:49:38", "deleted": "b'\\x00'", "tenant_id": 0 }, { "id": 124, "user_id": 291, "role_id": 165, "creator": "1", "create_time": "2026-10-12 11:51:43", "updater": "1", "update_time": "2026-10-12 11:51:43", "deleted": "b'\\x00'", "tenant_id": 0 } ] }, "system_users": { "columns": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "用户ID" }, { "Field": "username", "Type": "varchar(30)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "用户账号" }, { "Field": "password", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "密码" }, { "Field": "nickname", "Type": "varchar(30)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "用户昵称" }, { "Field": "remark", "Type": "varchar(500)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "dept_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "部门ID" }, { "Field": "post_ids", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "岗位编号数组" }, { "Field": "email", "Type": "varchar(50)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "MUL", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "用户邮箱" }, { "Field": "mobile", "Type": "varchar(11)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "MUL", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "手机号码" }, { "Field": "sex", "Type": "tinyint", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "用户性别" }, { "Field": "avatar", "Type": "varchar(512)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "头像地址" }, { "Field": "status", "Type": "tinyint", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "帐号状态(0正常 1停用)" }, { "Field": "login_ip", "Type": "varchar(50)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最后登录IP" }, { "Field": "login_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最后登录时间" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "tenant_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "租户编号" } ], "count": 50, "latest": [ { "id": 291, "username": "zhuli", "nickname": "朱莉", "dept_id": 121, "status": 0 }, { "id": 290, "username": "luojun", "nickname": " 罗军", "dept_id": 118, "status": 0 }, { "id": 289, "username": "huashengjing", "nickname": "华生菁", "dept_id": 118, "status": 0 } ] }, "users": [ { "id": 1, "username": "admin", "nickname": "超级管理员", "dept_id": 100, "status": 0 }, { "id": 243, "username": "zhaolei", "nickname": "赵磊", "dept_id": 125, "status": 0 }, { "id": 244, "username": "liwanjuan", "nickname": "李万娟", "dept_id": 126, "status": 0 }, { "id": 245, "username": "jukeping", "nickname": "巨克萍", "dept_id": 126, "status": 0 }, { "id": 246, "username": "malijuan", "nickname": "马莉娟", "dept_id": 126, "status": 0 }, { "id": 247, "username": "liuzhen", "nickname": "刘震", "dept_id": 126, "status": 0 }, { "id": 248, "username": "weihaiping", "nickname": "魏海苹", "dept_id": 126, "status": 0 }, { "id": 249, "username": "xuhaiying", "nickname": "许海英", "dept_id": 126, "status": 0 }, { "id": 250, "username": "weishanliang", "nickname": "魏山良", "dept_id": 126, "status": 0 }, { "id": 251, "username": "chenhuihui", "nickname": "陈慧慧", "dept_id": 126, "status": 0 }, { "id": 252, "username": "yuquanzhu", "nickname": "余圈珠", "dept_id": 126, "status": 0 }, { "id": 253, "username": "lvfenmei", "nickname": "吕芬梅", "dept_id": 126, "status": 0 }, { "id": 254, "username": "feiyangkuai", "nickname": "飞羊快", "dept_id": 126, "status": 0 }, { "id": 255, "username": "zhanghailian", "nickname": "张海莲", "dept_id": 126, "status": 0 }, { "id": 256, "username": "yanzhenhui", "nickname": "颜振辉", "dept_id": 126, "status": 0 }, { "id": 257, "username": "mameixiang", "nickname": "马梅香", "dept_id": 126, "status": 0 }, { "id": 258, "username": "wangshoulan", "nickname": "汪守兰", "dept_id": 126, "status": 0 }, { "id": 259, "username": "duyanan", "nickname": "杜亚楠", "dept_id": 126, "status": 0 }, { "id": 260, "username": "chenxia", "nickname": "陈霞", "dept_id": 126, "status": 0 }, { "id": 261, "username": "liqikui", "nickname": "李启奎", "dept_id": 126, "status": 0 }, { "id": 262, "username": "wangyanfu", "nickname": "王彦福", "dept_id": 126, "status": 0 }, { "id": 263, "username": "tuofatumo", "nickname": "妥发土莫", "dept_id": 126, "status": 0 }, { "id": 264, "username": "zhangguilian", "nickname": "张贵连", "dept_id": 126, "status": 0 }, { "id": 265, "username": "zhanghuiping", "nickname": "张慧萍", "dept_id": 126, "status": 0 }, { "id": 266, "username": "yanshanghong", "nickname": "严尚红", "dept_id": 126, "status": 0 }, { "id": 267, "username": "liangxiugui", "nickname": "梁秀桂", "dept_id": 126, "status": 0 }, { "id": 268, "username": "sangjiequzhen", "nickname": "桑杰曲珍", "dept_id": 126, "status": 0 }, { "id": 269, "username": "zhanggamei", "nickname": "张尕梅", "dept_id": 126, "status": 0 }, { "id": 270, "username": "xiaoyugui", "nickname": "肖玉贵", "dept_id": 126, "status": 0 }, { "id": 271, "username": "lixiaolong", "nickname": "李小龙", "dept_id": 126, "status": 0 }, { "id": 272, "username": "laishunxiong", "nickname": "来顺兄", "dept_id": 126, "status": 0 }, { "id": 273, "username": "zhanghuiqing", "nickname": "张慧清", "dept_id": 126, "status": 0 }, { "id": 274, "username": "masuofeiya", "nickname": "马索非牙", "dept_id": 126, "status": 0 }, { "id": 275, "username": "yandafang", "nickname": "严大芳", "dept_id": 126, "status": 0 }, { "id": 276, "username": "shiguopeng", "nickname": "史国鹏", "dept_id": 126, "status": 0 }, { "id": 277, "username": "jinyongxiu", "nickname": "靳永秀", "dept_id": 126, "status": 0 }, { "id": 278, "username": "zhangyuxiu", "nickname": "张玉秀", "dept_id": 126, "status": 0 }, { "id": 279, "username": "zhangdehu", "nickname": "张得虎", "dept_id": 126, "status": 0 }, { "id": 280, "username": "yanrong", "nickname": "燕蓉", "dept_id": 126, "status": 0 }, { "id": 281, "username": "wangxiu", "nickname": "王秀", "dept_id": 126, "status": 0 }, { "id": 282, "username": "mingcunmei", "nickname": "明存梅", "dept_id": 126, "status": 0 }, { "id": 283, "username": "dongshengping", "nickname": "董生平", "dept_id": 126, "status": 0 }, { "id": 284, "username": "wuliping", "nickname": "武丽萍", "dept_id": 126, "status": 0 }, { "id": 285, "username": "shigaliu", "nickname": "石尕六", "dept_id": 126, "status": 0 }, { "id": 286, "username": "licunfen", "nickname": "李存芬", "dept_id": 126, "status": 0 }, { "id": 287, "username": "mafang", "nickname": "马芳", "dept_id": 126, "status": 0 }, { "id": 288, "username": "songyongfang", "nickname": "宋永芳", "dept_id": 126, "status": 0 }, { "id": 289, "username": "huashengjing", "nickname": "华生菁", "dept_id": 118, "status": 0 }, { "id": 290, "username": "luojun", "nickname": " 罗军", "dept_id": 118, "status": 0 }, { "id": 291, "username": "zhuli", "nickname": "朱莉", "dept_id": 121, "status": 0 } ], "departments": [ { "id": 100, "name": "北京同仁堂", "parent_id": 0 }, { "id": 118, "name": "质检部门", "parent_id": 100 }, { "id": 119, "name": "生产部", "parent_id": 100 }, { "id": 121, "name": "销售部", "parent_id": 100 }, { "id": 124, "name": "项目部", "parent_id": 100 }, { "id": 125, "name": "设备部", "parent_id": 100 }, { "id": 126, "name": "生产车间", "parent_id": 119 }, { "id": 128, "name": "质量管理部", "parent_id": 100 } ] }