-- TMS 业务管理模块

-- ----------------------------
-- Table structure for blade_common_route
-- ----------------------------
DROP TABLE IF EXISTS `blade_common_route`;
CREATE TABLE `blade_common_route` (
  `id` bigint(20) NOT NULL COMMENT '主键',
  `tenant_id` varchar(12) DEFAULT '000000' COMMENT '租户ID',
  `create_user` bigint(20) DEFAULT NULL COMMENT '创建人',
  `create_dept` bigint(20) DEFAULT NULL COMMENT '创建部门',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_user` bigint(20) DEFAULT NULL COMMENT '修改人',
  `update_time` datetime DEFAULT NULL COMMENT '修改时间',
  `status` int(11) DEFAULT '1' COMMENT '状态',
  `is_deleted` int(11) DEFAULT '0' COMMENT '是否已删除',
  `route_code` varchar(100) DEFAULT NULL COMMENT '线路编号',
  `route_name` varchar(100) DEFAULT NULL COMMENT '线路名称',
  `departure_address_id` bigint(20) DEFAULT NULL COMMENT '发货地址ID',
  `departure_name` varchar(100) DEFAULT NULL COMMENT '发货地',
  `departure_address` varchar(255) DEFAULT NULL COMMENT '发货地址',
  `departure_longitude` decimal(18,6) DEFAULT NULL COMMENT '发货经度',
  `departure_latitude` decimal(18,6) DEFAULT NULL COMMENT '发货纬度',
  `departure_contact` varchar(100) DEFAULT NULL COMMENT '发货联系人',
  `departure_phone` varchar(100) DEFAULT NULL COMMENT '发货联系方式',
  `arrival_address_id` bigint(20) DEFAULT NULL COMMENT '收货地址ID',
  `arrival_name` varchar(100) DEFAULT NULL COMMENT '收货地',
  `arrival_address` varchar(255) DEFAULT NULL COMMENT '收货地址',
  `arrival_longitude` decimal(18,6) DEFAULT NULL COMMENT '收货经度',
  `arrival_latitude` decimal(18,6) DEFAULT NULL COMMENT '收货纬度',
  `arrival_contact` varchar(100) DEFAULT NULL COMMENT '收货联系人',
  `arrival_phone` varchar(100) DEFAULT NULL COMMENT '收货联系方式',
  `dept_id` bigint(20) DEFAULT NULL COMMENT '所属组织ID',
  `dept_name` varchar(100) DEFAULT NULL COMMENT '所属组织',
  `remark` varchar(500) DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`id`) USING BTREE,
  KEY `idx_common_route_dept` (`dept_id`) USING BTREE,
  KEY `idx_common_route_create_time` (`create_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='常用线路';

-- ----------------------------
-- Table structure for blade_common_cargo
-- ----------------------------
DROP TABLE IF EXISTS `blade_common_cargo`;
CREATE TABLE `blade_common_cargo` (
  `id` bigint(20) NOT NULL COMMENT '主键',
  `tenant_id` varchar(12) DEFAULT '000000' COMMENT '租户ID',
  `create_user` bigint(20) DEFAULT NULL COMMENT '创建人',
  `create_dept` bigint(20) DEFAULT NULL COMMENT '创建部门',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_user` bigint(20) DEFAULT NULL COMMENT '修改人',
  `update_time` datetime DEFAULT NULL COMMENT '修改时间',
  `status` int(11) DEFAULT '1' COMMENT '状态',
  `is_deleted` int(11) DEFAULT '0' COMMENT '是否已删除',
  `first_cargo_type_id` bigint(20) DEFAULT NULL COMMENT '一级货物类型ID',
  `first_cargo_type_name` varchar(100) DEFAULT NULL COMMENT '一级货物类型',
  `first_cargo_type_code` varchar(100) DEFAULT NULL COMMENT '一级货物类型编码',
  `second_cargo_type_id` bigint(20) DEFAULT NULL COMMENT '二级货物类型ID',
  `second_cargo_type_name` varchar(100) DEFAULT NULL COMMENT '二级货物类型',
  `second_cargo_type_code` varchar(100) DEFAULT NULL COMMENT '二级货物类型编码',
  `cargo_name` varchar(100) DEFAULT NULL COMMENT '货物名称',
  `cargo_code` varchar(100) DEFAULT NULL COMMENT '货物编号',
  `brand` varchar(100) DEFAULT NULL COMMENT '品牌',
  `package_type` varchar(100) DEFAULT NULL COMMENT '包装',
  `cargo_value` decimal(18,6) DEFAULT NULL COMMENT '货值',
  `specification` varchar(100) DEFAULT NULL COMMENT '规格',
  `price_unit` varchar(100) DEFAULT NULL COMMENT '计价单位',
  `model` varchar(100) DEFAULT NULL COMMENT '型号',
  `description_one` varchar(100) DEFAULT NULL COMMENT '说明1',
  `size_text` varchar(100) DEFAULT NULL COMMENT '尺寸',
  `description_two` varchar(100) DEFAULT NULL COMMENT '说明2',
  `data_source` varchar(100) DEFAULT NULL COMMENT '数据来源',
  `dept_id` bigint(20) DEFAULT NULL COMMENT '所属组织ID',
  `dept_name` varchar(100) DEFAULT NULL COMMENT '所属组织',
  `remark` varchar(500) DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`id`) USING BTREE,
  KEY `idx_common_cargo_dept` (`dept_id`) USING BTREE,
  KEY `idx_common_cargo_create_time` (`create_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='常用货物';

-- ----------------------------
-- Table structure for blade_process_config
-- ----------------------------
DROP TABLE IF EXISTS `blade_process_config`;
CREATE TABLE `blade_process_config` (
  `id` bigint(20) NOT NULL COMMENT '主键',
  `tenant_id` varchar(12) DEFAULT '000000' COMMENT '租户ID',
  `create_user` bigint(20) DEFAULT NULL COMMENT '创建人',
  `create_dept` bigint(20) DEFAULT NULL COMMENT '创建部门',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_user` bigint(20) DEFAULT NULL COMMENT '修改人',
  `update_time` datetime DEFAULT NULL COMMENT '修改时间',
  `status` int(11) DEFAULT '1' COMMENT '状态',
  `is_deleted` int(11) DEFAULT '0' COMMENT '是否已删除',
  `config_code` varchar(100) DEFAULT NULL COMMENT '配置编号',
  `config_name` varchar(100) DEFAULT NULL COMMENT '配置名称',
  `project_ids` varchar(100) DEFAULT NULL COMMENT '项目ID集合',
  `project_names` varchar(100) DEFAULT NULL COMMENT '项目',
  `included_nodes` varchar(100) DEFAULT NULL COMMENT '包含过程节点',
  `default_finish_days` int(11) DEFAULT NULL COMMENT '默认后台完成运输天数',
  `node_config_json` text DEFAULT NULL COMMENT '过程节点配置',
  `dept_id` bigint(20) DEFAULT NULL COMMENT '所属组织ID',
  `dept_name` varchar(100) DEFAULT NULL COMMENT '所属组织',
  `remark` varchar(500) DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`id`) USING BTREE,
  KEY `idx_process_config_dept` (`dept_id`) USING BTREE,
  KEY `idx_process_config_create_time` (`create_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='过程配置';

-- ----------------------------
-- Table structure for blade_shipping_template
-- ----------------------------
DROP TABLE IF EXISTS `blade_shipping_template`;
CREATE TABLE `blade_shipping_template` (
  `id` bigint(20) NOT NULL COMMENT '主键',
  `tenant_id` varchar(12) DEFAULT '000000' COMMENT '租户ID',
  `create_user` bigint(20) DEFAULT NULL COMMENT '创建人',
  `create_dept` bigint(20) DEFAULT NULL COMMENT '创建部门',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_user` bigint(20) DEFAULT NULL COMMENT '修改人',
  `update_time` datetime DEFAULT NULL COMMENT '修改时间',
  `status` int(11) DEFAULT '1' COMMENT '状态',
  `is_deleted` int(11) DEFAULT '0' COMMENT '是否已删除',
  `template_code` varchar(100) DEFAULT NULL COMMENT '模板编号',
  `template_name` varchar(100) DEFAULT NULL COMMENT '模板名称',
  `template_type` varchar(100) DEFAULT NULL COMMENT '模板类型',
  `project_id` bigint(20) DEFAULT NULL COMMENT '项目ID',
  `project_name` varchar(100) DEFAULT NULL COMMENT '项目',
  `contract_id` bigint(20) DEFAULT NULL COMMENT '客户合同ID',
  `contract_name` varchar(100) DEFAULT NULL COMMENT '客户合同',
  `transport_type` varchar(100) DEFAULT NULL COMMENT '运输类型',
  `departure_address_id` bigint(20) DEFAULT NULL COMMENT '发货地址ID',
  `departure_name` varchar(100) DEFAULT NULL COMMENT '发货地',
  `departure_address` varchar(255) DEFAULT NULL COMMENT '发货地址',
  `departure_contact` varchar(100) DEFAULT NULL COMMENT '发货联系人',
  `departure_phone` varchar(100) DEFAULT NULL COMMENT '发货联系方式',
  `arrival_address_id` bigint(20) DEFAULT NULL COMMENT '收货地址ID',
  `arrival_name` varchar(100) DEFAULT NULL COMMENT '收货地',
  `arrival_address` varchar(255) DEFAULT NULL COMMENT '收货地址',
  `arrival_contact` varchar(100) DEFAULT NULL COMMENT '收货联系人',
  `arrival_phone` varchar(100) DEFAULT NULL COMMENT '收货联系方式',
  `goods_json` text DEFAULT NULL COMMENT '货物信息',
  `freight_json` text DEFAULT NULL COMMENT '运费信息',
  `attachments_json` text DEFAULT NULL COMMENT '附件',
  `dept_id` bigint(20) DEFAULT NULL COMMENT '所属组织ID',
  `dept_name` varchar(100) DEFAULT NULL COMMENT '所属组织',
  `remark` varchar(500) DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`id`) USING BTREE,
  KEY `idx_shipping_template_dept` (`dept_id`) USING BTREE,
  KEY `idx_shipping_template_create_time` (`create_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='发货模板';

-- ----------------------------
-- Table structure for blade_transport_plan
-- ----------------------------
DROP TABLE IF EXISTS `blade_transport_plan`;
CREATE TABLE `blade_transport_plan` (
  `id` bigint(20) NOT NULL COMMENT '主键',
  `tenant_id` varchar(12) DEFAULT '000000' COMMENT '租户ID',
  `create_user` bigint(20) DEFAULT NULL COMMENT '创建人',
  `create_dept` bigint(20) DEFAULT NULL COMMENT '创建部门',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_user` bigint(20) DEFAULT NULL COMMENT '修改人',
  `update_time` datetime DEFAULT NULL COMMENT '修改时间',
  `status` int(11) DEFAULT '1' COMMENT '状态',
  `is_deleted` int(11) DEFAULT '0' COMMENT '是否已删除',
  `plan_no` varchar(100) DEFAULT NULL COMMENT '计划单号',
  `plan_name` varchar(100) DEFAULT NULL COMMENT '计划名称',
  `project_id` bigint(20) DEFAULT NULL COMMENT '项目ID',
  `project_name` varchar(100) DEFAULT NULL COMMENT '项目',
  `contract_id` bigint(20) DEFAULT NULL COMMENT '客户合同ID',
  `contract_name` varchar(100) DEFAULT NULL COMMENT '客户合同',
  `customer_name` varchar(100) DEFAULT NULL COMMENT '客户名称',
  `transport_type` varchar(100) DEFAULT NULL COMMENT '运输类型',
  `plan_start_date` date DEFAULT NULL COMMENT '计划开始日期',
  `plan_end_date` date DEFAULT NULL COMMENT '计划结束日期',
  `departure_address_id` bigint(20) DEFAULT NULL COMMENT '发货地址ID',
  `departure_name` varchar(100) DEFAULT NULL COMMENT '发货地',
  `departure_address` varchar(255) DEFAULT NULL COMMENT '发货地址',
  `departure_contact` varchar(100) DEFAULT NULL COMMENT '发货联系人',
  `departure_phone` varchar(100) DEFAULT NULL COMMENT '发货联系方式',
  `arrival_address_id` bigint(20) DEFAULT NULL COMMENT '收货地址ID',
  `arrival_name` varchar(100) DEFAULT NULL COMMENT '收货地',
  `arrival_address` varchar(255) DEFAULT NULL COMMENT '收货地址',
  `arrival_contact` varchar(100) DEFAULT NULL COMMENT '收货联系人',
  `arrival_phone` varchar(100) DEFAULT NULL COMMENT '收货联系方式',
  `goods_json` text DEFAULT NULL COMMENT '货物信息',
  `attachments_json` text DEFAULT NULL COMMENT '附件',
  `data_source` varchar(100) DEFAULT NULL COMMENT '数据来源',
  `business_status` varchar(100) DEFAULT NULL COMMENT '业务状态',
  `dept_id` bigint(20) DEFAULT NULL COMMENT '所属组织ID',
  `dept_name` varchar(100) DEFAULT NULL COMMENT '所属组织',
  `remark` varchar(500) DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`id`) USING BTREE,
  KEY `idx_transport_plan_dept` (`dept_id`) USING BTREE,
  KEY `idx_transport_plan_create_time` (`create_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='运输计划';

-- ----------------------------
-- Table structure for blade_waybill
-- ----------------------------
DROP TABLE IF EXISTS `blade_waybill`;
CREATE TABLE `blade_waybill` (
  `id` bigint(20) NOT NULL COMMENT '主键',
  `tenant_id` varchar(12) DEFAULT '000000' COMMENT '租户ID',
  `create_user` bigint(20) DEFAULT NULL COMMENT '创建人',
  `create_dept` bigint(20) DEFAULT NULL COMMENT '创建部门',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_user` bigint(20) DEFAULT NULL COMMENT '修改人',
  `update_time` datetime DEFAULT NULL COMMENT '修改时间',
  `status` int(11) DEFAULT '1' COMMENT '状态',
  `is_deleted` int(11) DEFAULT '0' COMMENT '是否已删除',
  `waybill_no` varchar(100) DEFAULT NULL COMMENT '运单号',
  `project_id` bigint(20) DEFAULT NULL COMMENT '项目ID',
  `project_name` varchar(100) DEFAULT NULL COMMENT '项目',
  `contract_id` bigint(20) DEFAULT NULL COMMENT '客户合同ID',
  `contract_name` varchar(100) DEFAULT NULL COMMENT '客户合同',
  `customer_name` varchar(100) DEFAULT NULL COMMENT '客户名称',
  `transport_type` varchar(100) DEFAULT NULL COMMENT '运输类型',
  `cargo_name` varchar(100) DEFAULT NULL COMMENT '货物名称',
  `cargo_type` varchar(100) DEFAULT NULL COMMENT '货物类型',
  `specification` varchar(255) DEFAULT NULL COMMENT '规格',
  `model` varchar(255) DEFAULT NULL COMMENT '型号',
  `quantity` decimal(18,2) DEFAULT NULL COMMENT '数量',
  `quantity_unit` varchar(50) DEFAULT NULL COMMENT '数量单位',
  `departure_address_id` bigint(20) DEFAULT NULL COMMENT '发货地址ID',
  `departure_name` varchar(100) DEFAULT NULL COMMENT '发货地',
  `departure_address` varchar(255) DEFAULT NULL COMMENT '发货地址',
  `departure_contact` varchar(100) DEFAULT NULL COMMENT '发货联系人',
  `departure_phone` varchar(50) DEFAULT NULL COMMENT '发货联系方式',
  `arrival_address_id` bigint(20) DEFAULT NULL COMMENT '收货地址ID',
  `arrival_name` varchar(100) DEFAULT NULL COMMENT '收货地',
  `arrival_address` varchar(255) DEFAULT NULL COMMENT '收货地址',
  `arrival_contact` varchar(100) DEFAULT NULL COMMENT '收货联系人',
  `arrival_phone` varchar(50) DEFAULT NULL COMMENT '收货联系方式',
  `task_entry_mode` varchar(50) DEFAULT NULL COMMENT '任务录入模式',
  `carrier_type` varchar(50) DEFAULT NULL COMMENT '承运类型',
  `carrier_id` bigint(20) DEFAULT NULL COMMENT '承运商ID',
  `carrier_name` varchar(100) DEFAULT NULL COMMENT '承运商名称',
  `driver_id` bigint(20) DEFAULT NULL COMMENT '司机ID',
  `driver_name` varchar(100) DEFAULT NULL COMMENT '司机姓名',
  `driver_phone` varchar(50) DEFAULT NULL COMMENT '司机手机号',
  `vehicle_no` varchar(100) DEFAULT NULL COMMENT '车/船/航班/班列号',
  `trailer_vehicle_no` varchar(100) DEFAULT NULL COMMENT '挂车车牌号',
  `escort_name` varchar(100) DEFAULT NULL COMMENT '押运人',
  `escort_phone` varchar(50) DEFAULT NULL COMMENT '押运人手机号',
  `mileage` decimal(18,2) DEFAULT NULL COMMENT '里程',
  `estimated_start_time` date DEFAULT NULL COMMENT '预计发货日期',
  `estimated_end_time` date DEFAULT NULL COMMENT '预计完成日期',
  `unit_price` decimal(18,2) DEFAULT NULL COMMENT '单价',
  `price_unit` varchar(50) DEFAULT NULL COMMENT '计价单位',
  `other_fee_total` decimal(18,2) DEFAULT NULL COMMENT '其他费用合计',
  `task_remark` varchar(200) DEFAULT NULL COMMENT '任务备注',
  `original_no` varchar(100) DEFAULT NULL COMMENT '原始单号',
  `business_status` varchar(100) DEFAULT NULL COMMENT '业务状态',
  `data_source` varchar(100) DEFAULT NULL COMMENT '数据来源',
  `start_date` date DEFAULT NULL COMMENT '开始日期',
  `end_date` date DEFAULT NULL COMMENT '结束日期',
  `plan_id` bigint(20) DEFAULT NULL COMMENT '运输计划ID',
  `plan_name` varchar(100) DEFAULT NULL COMMENT '计划名称',
  `master_no` varchar(100) DEFAULT NULL COMMENT '多联总单',
  `loading_no` varchar(100) DEFAULT NULL COMMENT '配载单号',
  `batch_no` varchar(100) DEFAULT NULL COMMENT '运单批次号',
  `relation_no` varchar(100) DEFAULT NULL COMMENT '关联单号',
  `current_process_node` varchar(100) DEFAULT NULL COMMENT '当前过程节点',
  `goods_json` text DEFAULT NULL COMMENT '货物信息',
  `carrier_json` text DEFAULT NULL COMMENT '承运信息',
  `task_info_json` text DEFAULT NULL COMMENT '任务信息',
  `process_json` text DEFAULT NULL COMMENT '过程节点',
  `freight_json` text DEFAULT NULL COMMENT '费用信息',
  `attachments_json` text DEFAULT NULL COMMENT '附件',
  `dept_id` bigint(20) DEFAULT NULL COMMENT '所属组织ID',
  `dept_name` varchar(100) DEFAULT NULL COMMENT '所属组织',
  `remark` varchar(200) DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`id`) USING BTREE,
  KEY `idx_waybill_dept` (`dept_id`) USING BTREE,
  KEY `idx_waybill_create_time` (`create_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='运单管理';

-- ----------------------------
-- Table structure for blade_loading_manage
-- ----------------------------
DROP TABLE IF EXISTS `blade_loading_manage`;
CREATE TABLE `blade_loading_manage` (
  `id` bigint(20) NOT NULL COMMENT '主键',
  `tenant_id` varchar(12) DEFAULT '000000' COMMENT '租户ID',
  `create_user` bigint(20) DEFAULT NULL COMMENT '创建人',
  `create_dept` bigint(20) DEFAULT NULL COMMENT '创建部门',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_user` bigint(20) DEFAULT NULL COMMENT '修改人',
  `update_time` datetime DEFAULT NULL COMMENT '修改时间',
  `status` int(11) DEFAULT '1' COMMENT '状态',
  `is_deleted` int(11) DEFAULT '0' COMMENT '是否已删除',
  `loading_no` varchar(100) DEFAULT NULL COMMENT '配载单号',
  `loading_sub_nos` varchar(200) DEFAULT NULL COMMENT '配载子单号',
  `waybill_ids_json` varchar(4000) DEFAULT NULL COMMENT '运单ID集合',
  `project_id` bigint(20) DEFAULT NULL COMMENT '项目ID',
  `project_name` varchar(100) DEFAULT NULL COMMENT '项目名称',
  `customer_name` varchar(100) DEFAULT NULL COMMENT '客户名称',
  `transport_type` varchar(100) DEFAULT NULL COMMENT '运输类型',
  `cargo_type` varchar(100) DEFAULT NULL COMMENT '货物类型',
  `cargo_name` varchar(100) DEFAULT NULL COMMENT '货物名称',
  `vehicle_no` varchar(100) DEFAULT NULL COMMENT '车/船/航班/班列',
  `trailer_vehicle_no` varchar(100) DEFAULT NULL COMMENT '挂车车牌号',
  `driver_name` varchar(100) DEFAULT NULL COMMENT '司机',
  `driver_phone` varchar(50) DEFAULT NULL COMMENT '联系电话',
  `escort_name` varchar(100) DEFAULT NULL COMMENT '押运人',
  `escort_phone` varchar(50) DEFAULT NULL COMMENT '押运人手机号',
  `carrier_type` varchar(50) DEFAULT NULL COMMENT '承运类型',
  `carrier_name` varchar(100) DEFAULT NULL COMMENT '承运商',
  `departure_address` varchar(100) DEFAULT NULL COMMENT '发货地',
  `transit_address` varchar(200) DEFAULT NULL COMMENT '途经地',
  `arrival_address` varchar(100) DEFAULT NULL COMMENT '到货地',
  `original_no` varchar(100) DEFAULT NULL COMMENT '原始单号',
  `data_source` varchar(100) DEFAULT NULL COMMENT '数据来源',
  `start_date` date DEFAULT NULL COMMENT '开始日期',
  `end_date` date DEFAULT NULL COMMENT '结束日期',
  `plan_name` varchar(100) DEFAULT NULL COMMENT '计划名称',
  `batch_no` varchar(100) DEFAULT NULL COMMENT '运单批次号',
  `current_process_node` varchar(100) DEFAULT NULL COMMENT '当前过程节点',
  `mileage` decimal(18,2) DEFAULT NULL COMMENT '里程',
  `estimated_start_date` date DEFAULT NULL COMMENT '预计发货日期',
  `estimated_end_date` date DEFAULT NULL COMMENT '预计完成日期',
  `task_remark` varchar(500) DEFAULT NULL COMMENT '任务备注',
  `goods_json` text DEFAULT NULL COMMENT '货物信息',
  `route_json` text DEFAULT NULL COMMENT '路线信息',
  `task_info_json` text DEFAULT NULL COMMENT '任务信息',
  `dept_id` bigint(20) DEFAULT NULL COMMENT '所属组织ID',
  `dept_name` varchar(100) DEFAULT NULL COMMENT '所属组织',
  `business_status` varchar(100) DEFAULT NULL COMMENT '业务状态',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `uk_loading_manage_no` (`loading_no`) USING BTREE,
  KEY `idx_loading_manage_dept` (`dept_id`) USING BTREE,
  KEY `idx_loading_manage_create_time` (`create_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='配载管理';

-- ----------------------------
-- Menu data for business management
-- ----------------------------
INSERT IGNORE INTO `blade_menu` (`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `component`, `remark`, `is_deleted`) VALUES
(2090000000000000000, 0, 'business_manage', '业务管理', 'business_manage', '/business', 'iconfont icon-caidan', 40, 1, 0, 1, NULL, '', 0),
(2090000000000000100, 2090000000000000000, 'common_route', '常用线路', 'common_route', '/business/common-route', 'iconfont icon-caidanguanli', 10, 1, 0, 1, NULL, '', 0),
(2090000000000000101, 2090000000000000100, 'common_route_view', '查看', 'common_route_view', '', '', 1, 2, 0, 1, NULL, '', 0),
(2090000000000000102, 2090000000000000100, 'common_route_add', '新增', 'common_route_add', '', '', 2, 2, 0, 1, NULL, '', 0),
(2090000000000000103, 2090000000000000100, 'common_route_edit', '编辑', 'common_route_edit', '', '', 3, 2, 0, 1, NULL, '', 0),
(2090000000000000104, 2090000000000000100, 'common_route_delete', '删除', 'common_route_delete', '', '', 4, 2, 0, 1, NULL, '', 0),
(2090000000000000105, 2090000000000000100, 'common_route_export', '批量导出', 'common_route_export', '', '', 5, 2, 0, 1, NULL, '', 0),
(2090000000000000106, 2090000000000000100, 'common_route_import', '批量导入', 'common_route_import', '', '', 6, 2, 0, 1, NULL, '', 0),
(2090000000000000107, 2090000000000000100, 'common_route_template', '下载模板', 'common_route_template', '', '', 7, 2, 0, 1, NULL, '', 0),
(2090000000000000200, 2090000000000000000, 'common_cargo', '常用货物', 'common_cargo', '/business/common-cargo', 'iconfont icon-caidanguanli', 20, 1, 0, 1, NULL, '', 0),
(2090000000000000201, 2090000000000000200, 'common_cargo_view', '查看', 'common_cargo_view', '', '', 1, 2, 0, 1, NULL, '', 0),
(2090000000000000202, 2090000000000000200, 'common_cargo_add', '新增', 'common_cargo_add', '', '', 2, 2, 0, 1, NULL, '', 0),
(2090000000000000203, 2090000000000000200, 'common_cargo_edit', '编辑', 'common_cargo_edit', '', '', 3, 2, 0, 1, NULL, '', 0),
(2090000000000000204, 2090000000000000200, 'common_cargo_delete', '删除', 'common_cargo_delete', '', '', 4, 2, 0, 1, NULL, '', 0),
(2090000000000000205, 2090000000000000200, 'common_cargo_export', '批量导出', 'common_cargo_export', '', '', 5, 2, 0, 1, NULL, '', 0),
(2090000000000000206, 2090000000000000200, 'common_cargo_import', '批量导入', 'common_cargo_import', '', '', 6, 2, 0, 1, NULL, '', 0),
(2090000000000000207, 2090000000000000200, 'common_cargo_template', '下载模板', 'common_cargo_template', '', '', 7, 2, 0, 1, NULL, '', 0),
(2090000000000000300, 2090000000000000000, 'process_config', '过程配置', 'process_config', '/business/process-config', 'iconfont icon-caidanguanli', 30, 1, 0, 1, NULL, '', 0),
(2090000000000000301, 2090000000000000300, 'process_config_view', '查看', 'process_config_view', '', '', 1, 2, 0, 1, NULL, '', 0),
(2090000000000000302, 2090000000000000300, 'process_config_add', '新增', 'process_config_add', '', '', 2, 2, 0, 1, NULL, '', 0),
(2090000000000000303, 2090000000000000300, 'process_config_edit', '编辑', 'process_config_edit', '', '', 3, 2, 0, 1, NULL, '', 0),
(2090000000000000304, 2090000000000000300, 'process_config_delete', '删除', 'process_config_delete', '', '', 4, 2, 0, 1, NULL, '', 0),
(2090000000000000305, 2090000000000000300, 'process_config_export', '批量导出', 'process_config_export', '', '', 5, 2, 0, 1, NULL, '', 0),
(2090000000000000306, 2090000000000000300, 'process_config_copy', '复制', 'process_config_copy', '', '', 6, 2, 0, 1, NULL, '', 0),
(2090000000000000307, 2090000000000000300, 'process_config_enable', '启用', 'process_config_enable', '', '', 7, 2, 0, 1, NULL, '', 0),
(2090000000000000308, 2090000000000000300, 'process_config_disable', '停用', 'process_config_disable', '', '', 8, 2, 0, 1, NULL, '', 0),
(2090000000000000400, 2090000000000000000, 'shipping_template', '发货模板', 'shipping_template', '/business/shipping-template', 'iconfont icon-caidanguanli', 40, 1, 0, 1, NULL, '', 0),
(2090000000000000401, 2090000000000000400, 'shipping_template_view', '查看', 'shipping_template_view', '', '', 1, 2, 0, 1, NULL, '', 0),
(2090000000000000402, 2090000000000000400, 'shipping_template_add', '新增', 'shipping_template_add', '', '', 2, 2, 0, 1, NULL, '', 0),
(2090000000000000403, 2090000000000000400, 'shipping_template_edit', '编辑', 'shipping_template_edit', '', '', 3, 2, 0, 1, NULL, '', 0),
(2090000000000000404, 2090000000000000400, 'shipping_template_delete', '删除', 'shipping_template_delete', '', '', 4, 2, 0, 1, NULL, '', 0),
(2090000000000000405, 2090000000000000400, 'shipping_template_export', '批量导出', 'shipping_template_export', '', '', 5, 2, 0, 1, NULL, '', 0),
(2090000000000000406, 2090000000000000400, 'shipping_template_copy', '复制', 'shipping_template_copy', '', '', 6, 2, 0, 1, NULL, '', 0),
(2090000000000000500, 2090000000000000000, 'transport_plan', '运输计划', 'transport_plan', '/business/transport-plan', 'iconfont icon-caidanguanli', 50, 1, 0, 1, NULL, '', 0),
(2090000000000000501, 2090000000000000500, 'transport_plan_view', '查看', 'transport_plan_view', '', '', 1, 2, 0, 1, NULL, '', 0),
(2090000000000000502, 2090000000000000500, 'transport_plan_add', '新增', 'transport_plan_add', '', '', 2, 2, 0, 1, NULL, '', 0),
(2090000000000000503, 2090000000000000500, 'transport_plan_edit', '编辑', 'transport_plan_edit', '', '', 3, 2, 0, 1, NULL, '', 0),
(2090000000000000504, 2090000000000000500, 'transport_plan_delete', '删除', 'transport_plan_delete', '', '', 4, 2, 0, 1, NULL, '', 0),
(2090000000000000505, 2090000000000000500, 'transport_plan_export', '批量导出', 'transport_plan_export', '', '', 5, 2, 0, 1, NULL, '', 0),
(2090000000000000506, 2090000000000000500, 'transport_plan_copy', '复制', 'transport_plan_copy', '', '', 6, 2, 0, 1, NULL, '', 0),
(2090000000000000507, 2090000000000000500, 'transport_plan_cancel', '取消', 'transport_plan_cancel', '', '', 7, 2, 0, 1, NULL, '', 0),
(2090000000000000508, 2090000000000000500, 'transport_plan_complete', '完成', 'transport_plan_complete', '', '', 8, 2, 0, 1, NULL, '', 0),
(2090000000000000600, 2090000000000000000, 'waybill_manage', '运单管理', 'waybill_manage', '/business/waybill-manage', 'iconfont icon-caidanguanli', 60, 1, 0, 1, NULL, '', 0),
(2090000000000000601, 2090000000000000600, 'waybill_manage_view', '查看', 'waybill_manage_view', '', '', 1, 2, 0, 1, NULL, '', 0),
(2090000000000000602, 2090000000000000600, 'waybill_manage_add', '新增', 'waybill_manage_add', '', '', 2, 2, 0, 1, NULL, '', 0),
(2090000000000000603, 2090000000000000600, 'waybill_manage_edit', '编辑', 'waybill_manage_edit', '', '', 3, 2, 0, 1, NULL, '', 0),
(2090000000000000604, 2090000000000000600, 'waybill_manage_delete', '删除', 'waybill_manage_delete', '', '', 4, 2, 0, 1, NULL, '', 0),
(2090000000000000605, 2090000000000000600, 'waybill_manage_export', '批量导出', 'waybill_manage_export', '', '', 5, 2, 0, 1, NULL, '', 0),
(2090000000000000606, 2090000000000000600, 'waybill_manage_copy', '复制', 'waybill_manage_copy', '', '', 6, 2, 0, 1, NULL, '', 0),
(2090000000000000607, 2090000000000000600, 'waybill_manage_cancel', '取消', 'waybill_manage_cancel', '', '', 7, 2, 0, 1, NULL, '', 0),
(2090000000000000608, 2090000000000000600, 'waybill_manage_reassign', '重新派单', 'waybill_manage_reassign', '', '', 8, 2, 0, 1, NULL, '', 0),
(2090000000000000609, 2090000000000000600, 'waybill_manage_complete', '完成', 'waybill_manage_complete', '', '', 9, 2, 0, 1, NULL, '', 0),
(2090000000000000610, 2090000000000000600, 'waybill_manage_batch_complete', '批量完成', 'waybill_manage_batch_complete', '', '', 10, 2, 0, 1, NULL, '', 0),
(2090000000000000611, 2090000000000000600, 'waybill_manage_import', '导入运单', 'waybill_manage_import', '', '', 11, 2, 0, 1, NULL, '', 0),
(2090000000000000612, 2090000000000000600, 'waybill_manage_template', '下载模板', 'waybill_manage_template', '', '', 12, 2, 0, 1, NULL, '', 0),
(2090000000000000613, 2090000000000000600, 'waybill_manage_road_loading', '公路配载', 'waybill_manage_road_loading', '', '', 13, 2, 0, 1, NULL, '', 0),
(2090000000000000700, 2090000000000000000, 'loading_manage', '配载管理', 'loading_manage', '/business/loading-manage', 'iconfont icon-caidanguanli', 70, 1, 0, 1, NULL, '', 0),
(2090000000000000701, 2090000000000000700, 'loading_manage_view', '查看', 'loading_manage_view', '', '', 1, 2, 0, 1, NULL, '', 0),
(2090000000000000702, 2090000000000000700, 'loading_manage_add', '新增', 'loading_manage_add', '', '', 2, 2, 0, 1, NULL, '', 0),
(2090000000000000703, 2090000000000000700, 'loading_manage_edit', '编辑', 'loading_manage_edit', '', '', 3, 2, 0, 1, NULL, '', 0),
(2090000000000000704, 2090000000000000700, 'loading_manage_delete', '删除', 'loading_manage_delete', '', '', 4, 2, 0, 1, NULL, '', 0),
(2090000000000000705, 2090000000000000700, 'loading_manage_export', '批量导出', 'loading_manage_export', '', '', 5, 2, 0, 1, NULL, '', 0),
(2090000000000000706, 2090000000000000700, 'loading_manage_copy', '复制', 'loading_manage_copy', '', '', 6, 2, 0, 1, NULL, '', 0),
(2090000000000000707, 2090000000000000700, 'loading_manage_reassign', '重新派单', 'loading_manage_reassign', '', '', 7, 2, 0, 1, NULL, '', 0),
(2090000000000000708, 2090000000000000700, 'loading_manage_cancel', '取消', 'loading_manage_cancel', '', '', 8, 2, 0, 1, NULL, '', 0),
(2090000000000000709, 2090000000000000700, 'loading_manage_complete', '完成', 'loading_manage_complete', '', '', 9, 2, 0, 1, NULL, '', 0),
(2090000000000000710, 2090000000000000700, 'loading_manage_batch_complete', '批量完成', 'loading_manage_batch_complete', '', '', 10, 2, 0, 1, NULL, '', 0);
