功能:新增托盘业务数据库脚本
This commit is contained in:
@@ -1,3 +1,25 @@
|
||||
-- ----------------------------
|
||||
-- 托盘业务表(须先于被引用的系统表按反向依赖删除)
|
||||
-- ----------------------------
|
||||
drop table if exists biz_pallet_inventory;
|
||||
drop table if exists biz_pallet_event;
|
||||
drop table if exists biz_return_item;
|
||||
drop table if exists biz_return_order;
|
||||
drop table if exists biz_usage_record;
|
||||
drop table if exists biz_shipment_item;
|
||||
drop table if exists biz_shipment_order;
|
||||
drop table if exists biz_filling_record;
|
||||
drop table if exists biz_inbound_item;
|
||||
drop table if exists biz_inbound_order;
|
||||
drop table if exists biz_user_site;
|
||||
drop table if exists biz_user_warehouse;
|
||||
drop table if exists biz_pallet;
|
||||
drop table if exists biz_production_line;
|
||||
drop table if exists biz_customer_site;
|
||||
drop table if exists biz_customer;
|
||||
drop table if exists biz_warehouse;
|
||||
drop table if exists biz_strain;
|
||||
|
||||
-- ----------------------------
|
||||
-- 1、部门表
|
||||
-- ----------------------------
|
||||
@@ -1050,3 +1072,444 @@ RETURN pg_catalog.array_to_string(tokens[indexnum:length], $2);
|
||||
END IF;
|
||||
END;
|
||||
$$ IMMUTABLE STRICT LANGUAGE PLPGSQL;
|
||||
|
||||
-- ----------------------------
|
||||
-- 20、托盘流转业务表
|
||||
-- ----------------------------
|
||||
create table biz_strain (
|
||||
strain_id bigserial not null,
|
||||
strain_code varchar(64) not null,
|
||||
strain_name varchar(100) not null,
|
||||
status char(1) not null default '0',
|
||||
create_by varchar(64) default '',
|
||||
create_time timestamp(0),
|
||||
update_by varchar(64) default '',
|
||||
update_time timestamp(0),
|
||||
remark varchar(500) default null,
|
||||
primary key (strain_id),
|
||||
constraint uq_biz_strain_code unique (strain_code),
|
||||
constraint ck_biz_strain_status check (status in ('0', '1'))
|
||||
);
|
||||
|
||||
create table biz_warehouse (
|
||||
warehouse_id bigserial not null,
|
||||
warehouse_code varchar(64) not null,
|
||||
warehouse_name varchar(100) not null,
|
||||
address varchar(500),
|
||||
status char(1) not null default '0',
|
||||
create_by varchar(64) default '',
|
||||
create_time timestamp(0),
|
||||
update_by varchar(64) default '',
|
||||
update_time timestamp(0),
|
||||
remark varchar(500) default null,
|
||||
primary key (warehouse_id),
|
||||
constraint uq_biz_warehouse_code unique (warehouse_code),
|
||||
constraint ck_biz_warehouse_status check (status in ('0', '1'))
|
||||
);
|
||||
|
||||
create table biz_customer (
|
||||
customer_id bigserial not null,
|
||||
customer_code varchar(64) not null,
|
||||
customer_name varchar(100) not null,
|
||||
status char(1) not null default '0',
|
||||
create_by varchar(64) default '',
|
||||
create_time timestamp(0),
|
||||
update_by varchar(64) default '',
|
||||
update_time timestamp(0),
|
||||
remark varchar(500) default null,
|
||||
primary key (customer_id),
|
||||
constraint uq_biz_customer_code unique (customer_code),
|
||||
constraint ck_biz_customer_status check (status in ('0', '1'))
|
||||
);
|
||||
|
||||
create table biz_customer_site (
|
||||
site_id bigserial not null,
|
||||
customer_id bigint not null,
|
||||
site_code varchar(64) not null,
|
||||
site_name varchar(100) not null,
|
||||
address varchar(500),
|
||||
status char(1) not null default '0',
|
||||
create_by varchar(64) default '',
|
||||
create_time timestamp(0),
|
||||
update_by varchar(64) default '',
|
||||
update_time timestamp(0),
|
||||
remark varchar(500) default null,
|
||||
primary key (site_id),
|
||||
constraint uq_biz_customer_site_customer_code unique (customer_id, site_code),
|
||||
constraint ck_biz_customer_site_status check (status in ('0', '1')),
|
||||
constraint fk_biz_customer_site_customer foreign key (customer_id) references biz_customer(customer_id)
|
||||
);
|
||||
|
||||
create table biz_production_line (
|
||||
line_id bigserial not null,
|
||||
site_id bigint not null,
|
||||
line_code varchar(64) not null,
|
||||
line_name varchar(100) not null,
|
||||
status char(1) not null default '0',
|
||||
create_by varchar(64) default '',
|
||||
create_time timestamp(0),
|
||||
update_by varchar(64) default '',
|
||||
update_time timestamp(0),
|
||||
remark varchar(500) default null,
|
||||
primary key (line_id),
|
||||
constraint uq_biz_production_line_site_code unique (site_id, line_code),
|
||||
constraint ck_biz_production_line_status check (status in ('0', '1')),
|
||||
constraint fk_biz_production_line_site foreign key (site_id) references biz_customer_site(site_id)
|
||||
);
|
||||
|
||||
create table biz_pallet (
|
||||
pallet_id bigserial not null,
|
||||
pallet_code varchar(64) not null,
|
||||
qr_token varchar(128) not null,
|
||||
capacity_packages integer not null,
|
||||
asset_status char(1) not null default '0',
|
||||
create_by varchar(64) default '',
|
||||
create_time timestamp(0),
|
||||
update_by varchar(64) default '',
|
||||
update_time timestamp(0),
|
||||
remark varchar(500) default null,
|
||||
primary key (pallet_id),
|
||||
constraint uq_biz_pallet_code unique (pallet_code),
|
||||
constraint uq_biz_pallet_qr_token unique (qr_token),
|
||||
constraint ck_biz_pallet_capacity_packages check (capacity_packages > 0),
|
||||
constraint ck_biz_pallet_asset_status check (asset_status in ('0', '1'))
|
||||
);
|
||||
|
||||
create table biz_user_warehouse (
|
||||
user_id bigint not null,
|
||||
warehouse_id bigint not null,
|
||||
create_by varchar(64) default '',
|
||||
create_time timestamp(0),
|
||||
primary key (user_id, warehouse_id),
|
||||
constraint fk_biz_user_warehouse_user foreign key (user_id) references sys_user(user_id),
|
||||
constraint fk_biz_user_warehouse_warehouse foreign key (warehouse_id) references biz_warehouse(warehouse_id)
|
||||
);
|
||||
|
||||
create table biz_user_site (
|
||||
user_id bigint not null,
|
||||
site_id bigint not null,
|
||||
create_by varchar(64) default '',
|
||||
create_time timestamp(0),
|
||||
primary key (user_id, site_id),
|
||||
constraint fk_biz_user_site_user foreign key (user_id) references sys_user(user_id),
|
||||
constraint fk_biz_user_site_site foreign key (site_id) references biz_customer_site(site_id)
|
||||
);
|
||||
|
||||
create table biz_inbound_order (
|
||||
inbound_id bigserial not null,
|
||||
inbound_no varchar(64) not null,
|
||||
warehouse_id bigint not null,
|
||||
status varchar(32) not null default 'DRAFT',
|
||||
confirm_idempotency_key varchar(64),
|
||||
confirm_request_hash varchar(64),
|
||||
confirmed_by bigint,
|
||||
confirmed_at timestamp(0),
|
||||
create_by varchar(64) default '',
|
||||
create_time timestamp(0),
|
||||
update_by varchar(64) default '',
|
||||
update_time timestamp(0),
|
||||
remark varchar(500) default null,
|
||||
primary key (inbound_id),
|
||||
constraint uq_biz_inbound_order_no unique (inbound_no),
|
||||
constraint uq_biz_inbound_order_confirm_key unique (confirm_idempotency_key),
|
||||
constraint ck_biz_inbound_order_status check (status in ('DRAFT', 'CONFIRMED')),
|
||||
constraint fk_biz_inbound_order_warehouse foreign key (warehouse_id) references biz_warehouse(warehouse_id),
|
||||
constraint fk_biz_inbound_order_confirmer foreign key (confirmed_by) references sys_user(user_id)
|
||||
);
|
||||
|
||||
create table biz_inbound_item (
|
||||
inbound_item_id bigserial not null,
|
||||
inbound_id bigint not null,
|
||||
pallet_id bigint not null,
|
||||
create_by varchar(64) default '',
|
||||
create_time timestamp(0),
|
||||
primary key (inbound_item_id),
|
||||
constraint uq_biz_inbound_item_order_pallet unique (inbound_id, pallet_id),
|
||||
constraint fk_biz_inbound_item_order foreign key (inbound_id) references biz_inbound_order(inbound_id),
|
||||
constraint fk_biz_inbound_item_pallet foreign key (pallet_id) references biz_pallet(pallet_id)
|
||||
);
|
||||
|
||||
create table biz_filling_record (
|
||||
filling_id bigserial not null,
|
||||
filling_no varchar(64) not null,
|
||||
pallet_id bigint not null,
|
||||
warehouse_id bigint not null,
|
||||
strain_id bigint not null,
|
||||
strain_code_snapshot varchar(64) not null,
|
||||
strain_name_snapshot varchar(100) not null,
|
||||
batch_no varchar(64) not null,
|
||||
package_spec varchar(64) not null,
|
||||
initial_packages integer not null,
|
||||
active_slot varchar(16),
|
||||
closed_at timestamp(0),
|
||||
idempotency_key varchar(64) not null,
|
||||
request_hash varchar(64) not null,
|
||||
operator_id bigint not null,
|
||||
operated_at timestamp(0) not null,
|
||||
create_by varchar(64) default '',
|
||||
create_time timestamp(0),
|
||||
update_by varchar(64) default '',
|
||||
update_time timestamp(0),
|
||||
remark varchar(500) default null,
|
||||
primary key (filling_id),
|
||||
constraint uq_biz_filling_record_no unique (filling_no),
|
||||
constraint uq_biz_filling_record_idempotency unique (idempotency_key),
|
||||
constraint uq_biz_filling_record_pallet_active_slot unique (pallet_id, active_slot),
|
||||
constraint ck_biz_filling_record_initial_packages check (initial_packages > 0),
|
||||
constraint ck_biz_filling_record_active_slot check (active_slot is null or active_slot = 'ACTIVE'),
|
||||
constraint fk_biz_filling_record_pallet foreign key (pallet_id) references biz_pallet(pallet_id),
|
||||
constraint fk_biz_filling_record_warehouse foreign key (warehouse_id) references biz_warehouse(warehouse_id),
|
||||
constraint fk_biz_filling_record_strain foreign key (strain_id) references biz_strain(strain_id),
|
||||
constraint fk_biz_filling_record_operator foreign key (operator_id) references sys_user(user_id)
|
||||
);
|
||||
|
||||
create table biz_shipment_order (
|
||||
shipment_id bigserial not null,
|
||||
shipment_no varchar(64) not null,
|
||||
source_warehouse_id bigint not null,
|
||||
target_site_id bigint not null,
|
||||
status varchar(32) not null default 'DRAFT',
|
||||
confirm_idempotency_key varchar(64),
|
||||
confirm_request_hash varchar(64),
|
||||
confirmed_by bigint,
|
||||
confirmed_at timestamp(0),
|
||||
create_by varchar(64) default '',
|
||||
create_time timestamp(0),
|
||||
update_by varchar(64) default '',
|
||||
update_time timestamp(0),
|
||||
remark varchar(500) default null,
|
||||
primary key (shipment_id),
|
||||
constraint uq_biz_shipment_order_no unique (shipment_no),
|
||||
constraint uq_biz_shipment_order_confirm_key unique (confirm_idempotency_key),
|
||||
constraint ck_biz_shipment_order_status check (status in ('DRAFT', 'CONFIRMED')),
|
||||
constraint fk_biz_shipment_order_warehouse foreign key (source_warehouse_id) references biz_warehouse(warehouse_id),
|
||||
constraint fk_biz_shipment_order_site foreign key (target_site_id) references biz_customer_site(site_id),
|
||||
constraint fk_biz_shipment_order_confirmer foreign key (confirmed_by) references sys_user(user_id)
|
||||
);
|
||||
|
||||
create table biz_shipment_item (
|
||||
shipment_item_id bigserial not null,
|
||||
shipment_id bigint not null,
|
||||
pallet_id bigint not null,
|
||||
active_filling_id bigint,
|
||||
package_qty integer,
|
||||
create_by varchar(64) default '',
|
||||
create_time timestamp(0),
|
||||
primary key (shipment_item_id),
|
||||
constraint uq_biz_shipment_item_order_pallet unique (shipment_id, pallet_id),
|
||||
constraint ck_biz_shipment_item_package_qty check (package_qty is null or package_qty > 0),
|
||||
constraint fk_biz_shipment_item_order foreign key (shipment_id) references biz_shipment_order(shipment_id),
|
||||
constraint fk_biz_shipment_item_pallet foreign key (pallet_id) references biz_pallet(pallet_id),
|
||||
constraint fk_biz_shipment_item_filling foreign key (active_filling_id) references biz_filling_record(filling_id)
|
||||
);
|
||||
|
||||
create table biz_usage_record (
|
||||
usage_id bigserial not null,
|
||||
usage_no varchar(64) not null,
|
||||
pallet_id bigint not null,
|
||||
active_filling_id bigint not null,
|
||||
site_id bigint not null,
|
||||
line_id bigint not null,
|
||||
used_packages integer not null,
|
||||
remaining_packages_after integer not null,
|
||||
idempotency_key varchar(64) not null,
|
||||
request_hash varchar(64) not null,
|
||||
operator_id bigint not null,
|
||||
occurred_at timestamp(0) not null,
|
||||
primary key (usage_id),
|
||||
constraint uq_biz_usage_record_no unique (usage_no),
|
||||
constraint uq_biz_usage_record_idempotency unique (idempotency_key),
|
||||
constraint ck_biz_usage_record_used_packages check (used_packages > 0),
|
||||
constraint ck_biz_usage_record_remaining_packages_after check (remaining_packages_after >= 0),
|
||||
constraint fk_biz_usage_record_pallet foreign key (pallet_id) references biz_pallet(pallet_id),
|
||||
constraint fk_biz_usage_record_filling foreign key (active_filling_id) references biz_filling_record(filling_id),
|
||||
constraint fk_biz_usage_record_site foreign key (site_id) references biz_customer_site(site_id),
|
||||
constraint fk_biz_usage_record_line foreign key (line_id) references biz_production_line(line_id),
|
||||
constraint fk_biz_usage_record_operator foreign key (operator_id) references sys_user(user_id)
|
||||
);
|
||||
|
||||
create table biz_return_order (
|
||||
return_id bigserial not null,
|
||||
return_no varchar(64) not null,
|
||||
source_site_id bigint not null,
|
||||
target_warehouse_id bigint not null,
|
||||
status varchar(32) not null default 'REQUESTED',
|
||||
request_idempotency_key varchar(64) not null,
|
||||
request_hash varchar(64) not null,
|
||||
confirm_idempotency_key varchar(64),
|
||||
confirm_request_hash varchar(64),
|
||||
requested_by bigint not null,
|
||||
requested_at timestamp(0) not null,
|
||||
confirmed_by bigint,
|
||||
confirmed_at timestamp(0),
|
||||
create_by varchar(64) default '',
|
||||
create_time timestamp(0),
|
||||
update_by varchar(64) default '',
|
||||
update_time timestamp(0),
|
||||
remark varchar(500) default null,
|
||||
primary key (return_id),
|
||||
constraint uq_biz_return_order_no unique (return_no),
|
||||
constraint uq_biz_return_order_request_key unique (request_idempotency_key),
|
||||
constraint uq_biz_return_order_confirm_key unique (confirm_idempotency_key),
|
||||
constraint ck_biz_return_order_status check (status in ('REQUESTED', 'CONFIRMED')),
|
||||
constraint fk_biz_return_order_site foreign key (source_site_id) references biz_customer_site(site_id),
|
||||
constraint fk_biz_return_order_warehouse foreign key (target_warehouse_id) references biz_warehouse(warehouse_id),
|
||||
constraint fk_biz_return_order_requester foreign key (requested_by) references sys_user(user_id),
|
||||
constraint fk_biz_return_order_confirmer foreign key (confirmed_by) references sys_user(user_id)
|
||||
);
|
||||
|
||||
create table biz_return_item (
|
||||
return_item_id bigserial not null,
|
||||
return_id bigint not null,
|
||||
pallet_id bigint not null,
|
||||
active_filling_id_snapshot bigint,
|
||||
remaining_packages_snapshot integer not null,
|
||||
create_by varchar(64) default '',
|
||||
create_time timestamp(0),
|
||||
primary key (return_item_id),
|
||||
constraint uq_biz_return_item_order_pallet unique (return_id, pallet_id),
|
||||
constraint ck_biz_return_item_remaining_packages_snapshot check (remaining_packages_snapshot >= 0),
|
||||
constraint fk_biz_return_item_order foreign key (return_id) references biz_return_order(return_id),
|
||||
constraint fk_biz_return_item_pallet foreign key (pallet_id) references biz_pallet(pallet_id),
|
||||
constraint fk_biz_return_item_filling foreign key (active_filling_id_snapshot) references biz_filling_record(filling_id)
|
||||
);
|
||||
|
||||
create table biz_pallet_event (
|
||||
event_id bigserial not null,
|
||||
pallet_id bigint not null,
|
||||
event_seq integer not null,
|
||||
event_type varchar(32) not null,
|
||||
source_type varchar(32) not null,
|
||||
source_id bigint not null,
|
||||
before_state varchar(32) not null,
|
||||
after_state varchar(32) not null,
|
||||
before_warehouse_id bigint,
|
||||
before_site_id bigint,
|
||||
before_line_id bigint,
|
||||
after_warehouse_id bigint,
|
||||
after_site_id bigint,
|
||||
after_line_id bigint,
|
||||
before_remaining_packages integer not null,
|
||||
after_remaining_packages integer not null,
|
||||
operator_id bigint not null,
|
||||
occurred_at timestamp(0) not null,
|
||||
idempotency_key varchar(64) not null,
|
||||
request_hash varchar(64) not null,
|
||||
primary key (event_id),
|
||||
constraint uq_biz_pallet_event_pallet_seq unique (pallet_id, event_seq),
|
||||
constraint uq_biz_pallet_event_pallet_idempotency unique (pallet_id, idempotency_key),
|
||||
constraint ck_biz_pallet_event_event_type check (
|
||||
event_type in (
|
||||
'INBOUND_CONFIRMED', 'FILLING_CONFIRMED', 'SHIPMENT_CONFIRMED',
|
||||
'USAGE_RECORDED', 'RETURN_REQUESTED', 'RETURN_CONFIRMED'
|
||||
)
|
||||
),
|
||||
constraint fk_biz_pallet_event_pallet foreign key (pallet_id) references biz_pallet(pallet_id),
|
||||
constraint fk_biz_pallet_event_before_warehouse foreign key (before_warehouse_id) references biz_warehouse(warehouse_id),
|
||||
constraint fk_biz_pallet_event_before_site foreign key (before_site_id) references biz_customer_site(site_id),
|
||||
constraint fk_biz_pallet_event_before_line foreign key (before_line_id) references biz_production_line(line_id),
|
||||
constraint fk_biz_pallet_event_after_warehouse foreign key (after_warehouse_id) references biz_warehouse(warehouse_id),
|
||||
constraint fk_biz_pallet_event_after_site foreign key (after_site_id) references biz_customer_site(site_id),
|
||||
constraint fk_biz_pallet_event_after_line foreign key (after_line_id) references biz_production_line(line_id),
|
||||
constraint fk_biz_pallet_event_operator foreign key (operator_id) references sys_user(user_id)
|
||||
);
|
||||
|
||||
create table biz_pallet_inventory (
|
||||
pallet_id bigint not null,
|
||||
active_filling_id bigint,
|
||||
warehouse_id bigint,
|
||||
site_id bigint,
|
||||
current_line_id bigint,
|
||||
flow_state varchar(32) not null default 'UNSTOCKED',
|
||||
remaining_packages integer not null default 0,
|
||||
last_event_id bigint,
|
||||
version integer not null default 0,
|
||||
updated_at timestamp(0) not null,
|
||||
primary key (pallet_id),
|
||||
constraint ck_biz_pallet_inventory_flow_state check (
|
||||
flow_state in (
|
||||
'UNSTOCKED', 'EMPTY_IN_WAREHOUSE', 'FILLED_IN_WAREHOUSE', 'AT_SITE_UNUSED',
|
||||
'AT_SITE_PARTIAL', 'AT_SITE_EMPTY', 'RETURNING'
|
||||
)
|
||||
),
|
||||
constraint ck_biz_pallet_inventory_remaining_packages check (remaining_packages >= 0),
|
||||
constraint ck_biz_pallet_inventory_version check (version >= 0),
|
||||
constraint ck_biz_pallet_inventory_location check (
|
||||
not (warehouse_id is not null and site_id is not null)
|
||||
),
|
||||
constraint fk_biz_pallet_inventory_pallet foreign key (pallet_id) references biz_pallet(pallet_id),
|
||||
constraint fk_biz_pallet_inventory_filling foreign key (active_filling_id) references biz_filling_record(filling_id),
|
||||
constraint fk_biz_pallet_inventory_warehouse foreign key (warehouse_id) references biz_warehouse(warehouse_id),
|
||||
constraint fk_biz_pallet_inventory_site foreign key (site_id) references biz_customer_site(site_id),
|
||||
constraint fk_biz_pallet_inventory_line foreign key (current_line_id) references biz_production_line(line_id),
|
||||
constraint fk_biz_pallet_inventory_event foreign key (last_event_id) references biz_pallet_event(event_id)
|
||||
);
|
||||
|
||||
-- ----------------------------
|
||||
-- 初始化-托盘业务菜单和权限
|
||||
-- ----------------------------
|
||||
insert into sys_menu values
|
||||
(121, '基础资料维护', 1, '10', 'businessMaster', null, '', '', 1, 0, 'M', '0', '0', '', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(122, '业务管理', 1, '11', 'businessOperation', null, '', '', 1, 0, 'M', '0', '0', '', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(123, '报表查询', 1, '12', 'businessReport', null, '', '', 1, 0, 'M', '0', '0', '', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(502, '菌种资料', 121, '1', 'strain', 'master/strain/index', '', '', 1, 0, 'C', '0', '0', 'master:strain:list', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(503, '客户资料', 121, '2', 'customer', 'master/customer/index', '', '', 1, 0, 'C', '0', '0', 'master:customer:list', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(504, '客户现场', 121, '3', 'site', 'master/site/index', '', '', 1, 0, 'C', '0', '0', 'master:site:list', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(505, '产线资料', 121, '4', 'line', 'master/line/index', '', '', 1, 0, 'C', '0', '0', 'master:line:list', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(506, '仓库资料', 121, '5', 'warehouse', 'master/warehouse/index', '', '', 1, 0, 'C', '0', '0', 'master:warehouse:list', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(507, '托盘资料', 121, '6', 'pallet', 'master/pallet/index', '', '', 1, 0, 'C', '0', '0', 'master:pallet:list', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(508, '仓库入库', 122, '1', 'inbound', 'business/inbound/index', '', '', 1, 0, 'C', '0', '0', 'business:inbound:list', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(509, '工厂装填', 122, '2', 'filling', 'business/filling/index', '', '', 1, 0, 'C', '0', '0', 'business:filling:list', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(510, '发货出库', 122, '3', 'shipment', 'business/shipment/index', '', '', 1, 0, 'C', '0', '0', 'business:shipment:list', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(511, '客户现场使用', 122, '4', 'usage', 'business/usage/index', '', '', 1, 0, 'C', '0', '0', 'business:usage:list', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(512, '退回仓库', 122, '5', 'return', 'business/return/index', '', '', 1, 0, 'C', '0', '0', 'business:return:list', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(513, '托盘库存', 123, '1', 'palletInventory', 'report/palletInventory/index', '', '', 1, 0, 'C', '0', '0', 'report:palletinventory:list', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(514, '装填记录', 123, '2', 'reportFilling', 'report/filling/index', '', '', 1, 0, 'C', '0', '0', 'report:filling:list', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(515, '发货出库', 123, '3', 'reportShipment', 'report/shipment/index', '', '', 1, 0, 'C', '0', '0', 'report:shipment:list', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(516, '产线消耗', 123, '4', 'consumption', 'report/consumption/index', '', '', 1, 0, 'C', '0', '0', 'report:consumption:list', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(517, '退回仓库', 123, '5', 'reportReturn', 'report/return/index', '', '', 1, 0, 'C', '0', '0', 'report:return:list', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(518, '托盘追溯', 123, '6', 'palletTrace', 'report/palletTrace/index', '', '', 1, 0, 'C', '0', '0', 'report:pallettrace:list', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1065, '菌种查询', 502, '1', '', '', '', '', 1, 0, 'F', '0', '0', 'master:strain:query', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1066, '菌种新增', 502, '2', '', '', '', '', 1, 0, 'F', '0', '0', 'master:strain:add', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1067, '菌种修改', 502, '3', '', '', '', '', 1, 0, 'F', '0', '0', 'master:strain:edit', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1068, '菌种删除', 502, '4', '', '', '', '', 1, 0, 'F', '0', '0', 'master:strain:remove', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1069, '客户查询', 503, '1', '', '', '', '', 1, 0, 'F', '0', '0', 'master:customer:query', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1070, '客户新增', 503, '2', '', '', '', '', 1, 0, 'F', '0', '0', 'master:customer:add', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1071, '客户修改', 503, '3', '', '', '', '', 1, 0, 'F', '0', '0', 'master:customer:edit', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1072, '客户删除', 503, '4', '', '', '', '', 1, 0, 'F', '0', '0', 'master:customer:remove', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1073, '现场查询', 504, '1', '', '', '', '', 1, 0, 'F', '0', '0', 'master:site:query', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1074, '现场新增', 504, '2', '', '', '', '', 1, 0, 'F', '0', '0', 'master:site:add', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1075, '现场修改', 504, '3', '', '', '', '', 1, 0, 'F', '0', '0', 'master:site:edit', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1076, '现场删除', 504, '4', '', '', '', '', 1, 0, 'F', '0', '0', 'master:site:remove', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1077, '分配用户', 504, '5', '', '', '', '', 1, 0, 'F', '0', '0', 'master:site:assign', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1078, '产线查询', 505, '1', '', '', '', '', 1, 0, 'F', '0', '0', 'master:line:query', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1079, '产线新增', 505, '2', '', '', '', '', 1, 0, 'F', '0', '0', 'master:line:add', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1080, '产线修改', 505, '3', '', '', '', '', 1, 0, 'F', '0', '0', 'master:line:edit', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1081, '产线删除', 505, '4', '', '', '', '', 1, 0, 'F', '0', '0', 'master:line:remove', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1082, '仓库查询', 506, '1', '', '', '', '', 1, 0, 'F', '0', '0', 'master:warehouse:query', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1083, '仓库新增', 506, '2', '', '', '', '', 1, 0, 'F', '0', '0', 'master:warehouse:add', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1084, '仓库修改', 506, '3', '', '', '', '', 1, 0, 'F', '0', '0', 'master:warehouse:edit', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1085, '仓库删除', 506, '4', '', '', '', '', 1, 0, 'F', '0', '0', 'master:warehouse:remove', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1086, '分配用户', 506, '5', '', '', '', '', 1, 0, 'F', '0', '0', 'master:warehouse:assign', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1087, '托盘查询', 507, '1', '', '', '', '', 1, 0, 'F', '0', '0', 'master:pallet:query', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1088, '托盘新增', 507, '2', '', '', '', '', 1, 0, 'F', '0', '0', 'master:pallet:add', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1089, '托盘修改', 507, '3', '', '', '', '', 1, 0, 'F', '0', '0', 'master:pallet:edit', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1090, '托盘删除', 507, '4', '', '', '', '', 1, 0, 'F', '0', '0', 'master:pallet:remove', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1091, '托盘打印', 507, '5', '', '', '', '', 1, 0, 'F', '0', '0', 'master:pallet:print', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1092, '入库查询', 508, '1', '', '', '', '', 1, 0, 'F', '0', '0', 'business:inbound:query', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1093, '入库新增', 508, '2', '', '', '', '', 1, 0, 'F', '0', '0', 'business:inbound:add', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1094, '入库修改', 508, '3', '', '', '', '', 1, 0, 'F', '0', '0', 'business:inbound:edit', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1095, '入库删除', 508, '4', '', '', '', '', 1, 0, 'F', '0', '0', 'business:inbound:remove', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1096, '入库确认', 508, '5', '', '', '', '', 1, 0, 'F', '0', '0', 'business:inbound:confirm', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1097, '装填查询', 509, '1', '', '', '', '', 1, 0, 'F', '0', '0', 'business:filling:query', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1098, '装填新增', 509, '2', '', '', '', '', 1, 0, 'F', '0', '0', 'business:filling:add', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1099, '发货查询', 510, '1', '', '', '', '', 1, 0, 'F', '0', '0', 'business:shipment:query', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1100, '发货新增', 510, '2', '', '', '', '', 1, 0, 'F', '0', '0', 'business:shipment:add', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1101, '发货修改', 510, '3', '', '', '', '', 1, 0, 'F', '0', '0', 'business:shipment:edit', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1102, '发货删除', 510, '4', '', '', '', '', 1, 0, 'F', '0', '0', 'business:shipment:remove', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1103, '发货确认', 510, '5', '', '', '', '', 1, 0, 'F', '0', '0', 'business:shipment:confirm', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1104, '使用查询', 511, '1', '', '', '', '', 1, 0, 'F', '0', '0', 'business:usage:query', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1105, '使用新增', 511, '2', '', '', '', '', 1, 0, 'F', '0', '0', 'business:usage:add', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1106, '退回查询', 512, '1', '', '', '', '', 1, 0, 'F', '0', '0', 'business:return:query', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1107, '退回申请', 512, '2', '', '', '', '', 1, 0, 'F', '0', '0', 'business:return:request', '#', 'admin', current_timestamp, '', null, ''),
|
||||
(1108, '退回确认', 512, '3', '', '', '', '', 1, 0, 'F', '0', '0', 'business:return:confirm', '#', 'admin', current_timestamp, '', null, '');
|
||||
|
||||
Reference in New Issue
Block a user