合同编辑详情开发
This commit is contained in:
35
script/sql/mysql/item/gear_contract.sql
Normal file
35
script/sql/mysql/item/gear_contract.sql
Normal file
@@ -0,0 +1,35 @@
|
||||
-- ================================
|
||||
-- 合同编辑(用于“销售管理 -> 合同编辑详情”)
|
||||
-- 目标:提供合同基础信息维护与快速编辑能力(列表行内修改/保存)
|
||||
-- 说明:
|
||||
-- 1) 单表存储合同主信息;与订单/客户关系后续可扩展
|
||||
-- 2) 逻辑删除使用 del_flag(0存在 2删除)
|
||||
-- ================================
|
||||
|
||||
DROP TABLE IF EXISTS gear_contract;
|
||||
CREATE TABLE gear_contract (
|
||||
contract_id bigint(20) NOT NULL COMMENT '合同ID',
|
||||
contract_no varchar(64) NOT NULL COMMENT '合同号(唯一)',
|
||||
party_a varchar(255) DEFAULT '' COMMENT '甲方/供方',
|
||||
party_b varchar(255) DEFAULT '' COMMENT '乙方/需方',
|
||||
effective_flag char(1) NOT NULL DEFAULT '0' COMMENT '是否生效(0否 1是)',
|
||||
sign_date date COMMENT '签订日期',
|
||||
delivery_date date COMMENT '交货日期',
|
||||
sign_place varchar(255) DEFAULT '' COMMENT '签订地点',
|
||||
party_a_address varchar(255) DEFAULT '' COMMENT '甲方地址',
|
||||
party_b_address varchar(255) DEFAULT '' COMMENT '乙方地址',
|
||||
remark varchar(500) DEFAULT NULL COMMENT '备注',
|
||||
del_flag char(1) NOT NULL DEFAULT '0' COMMENT '删除标志(0存在 2删除)',
|
||||
create_by varchar(64) DEFAULT '' COMMENT '创建者',
|
||||
create_time datetime COMMENT '创建时间',
|
||||
update_by varchar(64) DEFAULT '' COMMENT '更新者',
|
||||
update_time datetime COMMENT '更新时间',
|
||||
PRIMARY KEY (contract_id),
|
||||
UNIQUE KEY uk_contract_no (contract_no),
|
||||
KEY idx_sign_date (sign_date),
|
||||
KEY idx_delivery_date (delivery_date),
|
||||
KEY idx_effective_flag (effective_flag),
|
||||
KEY idx_party_a (party_a),
|
||||
KEY idx_party_b (party_b)
|
||||
) ENGINE=InnoDB COMMENT='合同表(编辑详情)';
|
||||
|
||||
@@ -204,3 +204,5 @@ INSERT INTO `sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`
|
||||
INSERT INTO `sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query_param`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (2041777949048430593, '工人管理', 1952975318515830785, 21, 'worker', 'oms/worker/index', NULL, 1, 0, 'C', '0', '0', NULL, 'user', 'admin', '2026-04-08 15:19:32', 'admin', '2026-04-13 16:32:20', '');
|
||||
INSERT INTO `sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query_param`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (2041786163248885761, '薪资录入', 1952975318515830785, 97, 'wageEntryDetail', 'oms/wageEntryDetail/index', NULL, 1, 0, 'C', '0', '0', NULL, 'edit', 'admin', '2026-04-08 15:52:11', 'admin', '2026-04-08 15:52:11', '');
|
||||
INSERT INTO `sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query_param`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (2041816674390265858, '薪资补录', 1952975318515830785, 98, 'wageMakeup', 'oms/wageMakeup/index', NULL, 1, 0, 'C', '0', '0', NULL, 'edit', 'admin', '2026-04-08 17:53:25', 'admin', '2026-04-08 17:53:25', '');
|
||||
INSERT INTO `sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query_param`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (2060000000000000001, '合同编辑', 1962721165348478977, 8, 'contract', NULL, NULL, 1, 0, 'M', '0', '0', NULL, 'edit', 'admin', '2026-05-28 10:00:00', 'admin', '2026-05-28 10:00:00', '');
|
||||
INSERT INTO `sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query_param`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (2060000000000000002, '合同编辑详情', 2060000000000000001, 1, 'editDetail', 'oms/contractEdit/index', NULL, 1, 0, 'C', '0', '0', NULL, 'table', 'admin', '2026-05-28 10:00:00', 'admin', '2026-05-28 10:00:00', '');
|
||||
|
||||
Reference in New Issue
Block a user