文档提交
This commit is contained in:
parent
83d7834252
commit
fb6460cff7
@ -173,7 +173,7 @@ drop table if exists pro_route_product;
|
||||
create table pro_route_product (
|
||||
record_id bigint(20) not null auto_increment comment '记录ID',
|
||||
route_id bigint(20) not null comment '工艺路线ID',
|
||||
item_id bigint(20) not null auto_increment comment '产品物料ID',
|
||||
item_id bigint(20) not null comment '产品物料ID',
|
||||
item_code varchar(64) not null comment '产品物料编码',
|
||||
item_name varchar(255) not null comment '产品物料名称',
|
||||
specification varchar(500) default null comment '规格型号',
|
||||
|
@ -75,7 +75,7 @@ create table wm_storage_area (
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 3、物料入库单表
|
||||
-- 4、物料入库单表
|
||||
-- ----------------------------
|
||||
drop table if exists wm_item_recpt;
|
||||
create table wm_item_recpt (
|
||||
@ -114,7 +114,7 @@ create table wm_item_recpt (
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 3、物料入库单行表
|
||||
-- 5、物料入库单行表
|
||||
-- ----------------------------
|
||||
drop table if exists wm_item_recpt_line;
|
||||
create table wm_item_recpt_line (
|
||||
@ -150,3 +150,105 @@ create table wm_item_recpt_line (
|
||||
) engine=innodb auto_increment=200 comment = '物料入库单行表';
|
||||
|
||||
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 6、库存事务表
|
||||
-- ----------------------------
|
||||
drop table if exists wm_transaction;
|
||||
create table wm_transaction (
|
||||
transaction_id bigint(20) not null auto_increment comment '事务ID',
|
||||
transaction_type varchar(64) not null comment '事务类型',
|
||||
item_id bigint(20) not null comment '产品物料ID',
|
||||
item_code varchar(64) comment '产品物料编码',
|
||||
item_name varchar(255) comment '产品物料名称',
|
||||
specification varchar(500) comment '规格型号',
|
||||
unit_of_measure varchar(64) comment '单位',
|
||||
batch_code varchar(255) comment '入库批次号',
|
||||
warehouse_id bigint(20) not null comment '仓库ID',
|
||||
warehouse_code varchar(64) comment '仓库编码',
|
||||
warehouse_name varchar(255) comment '仓库名称',
|
||||
location_id bigint(20) comment '库区ID',
|
||||
location_code varchar(64) comment '库区编码',
|
||||
location_name varchar(255) comment '库区名称',
|
||||
area_id bigint(20) comment '库位ID',
|
||||
area_code varchar(64) comment '库位编码',
|
||||
area_name varchar(255) comment '库位名称',
|
||||
vendor_id bigint(20) comment '供应商ID',
|
||||
vendor_code varchar(64) comment '供应商编号',
|
||||
vendor_name varchar(255) comment '供应商名称',
|
||||
vendor_nick varchar(64) comment '供应商简称',
|
||||
source_doc_type varchar(64) comment '单据类型',
|
||||
source_doc_id bigint(20) comment '单据ID',
|
||||
source_doc_code varchar(64) comment '单据编号',
|
||||
source_doc_line_id bigint(20) comment '单据行ID',
|
||||
material_stock_id bigint(20) not null comment '库存记录ID',
|
||||
transaction_flag int(1) default 1 comment '库存方向',
|
||||
transaction_quantity double(12,2) comment '事务数量',
|
||||
transaction_date datetime comment '事务日期',
|
||||
related_transaction_id bigint(20) comment '关联的事务ID',
|
||||
erp_date datetime comment 'ERP账期',
|
||||
expire_date datetime comment '库存有效期',
|
||||
attr1 varchar(64) default null comment '预留字段1',
|
||||
attr2 varchar(255) default null comment '预留字段2',
|
||||
attr3 int(11) default 0 comment '预留字段3',
|
||||
attr4 int(11) default 0 comment '预留字段4',
|
||||
create_by varchar(64) default '' comment '创建者',
|
||||
create_time datetime comment '创建时间',
|
||||
update_by varchar(64) default '' comment '更新者',
|
||||
update_time datetime comment '更新时间',
|
||||
primary key (transaction_id)
|
||||
) engine=innodb auto_increment=200 comment = '库存事务表';
|
||||
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 7、库存记录表
|
||||
-- ----------------------------
|
||||
drop table if exists wm_material_stock;
|
||||
create table wm_material_stock (
|
||||
material_stock_id bigint(20) not null auto_increment comment '事务ID',
|
||||
item_type_id bigint(20) comment '物料类型ID',
|
||||
item_id bigint(20) not null comment '产品物料ID',
|
||||
item_code varchar(64) comment '产品物料编码',
|
||||
item_name varchar(255) comment '产品物料名称',
|
||||
specification varchar(500) comment '规格型号',
|
||||
unit_of_measure varchar(64) comment '单位',
|
||||
batch_code varchar(255) comment '入库批次号',
|
||||
warehouse_id bigint(20) not null comment '仓库ID',
|
||||
warehouse_code varchar(64) comment '仓库编码',
|
||||
warehouse_name varchar(255) comment '仓库名称',
|
||||
location_id bigint(20) comment '库区ID',
|
||||
location_code varchar(64) comment '库区编码',
|
||||
location_name varchar(255) comment '库区名称',
|
||||
area_id bigint(20) comment '库位ID',
|
||||
area_code varchar(64) comment '库位编码',
|
||||
area_name varchar(255) comment '库位名称',
|
||||
vendor_id bigint(20) comment '供应商ID',
|
||||
vendor_code varchar(64) comment '供应商编号',
|
||||
vendor_name varchar(255) comment '供应商名称',
|
||||
vendor_nick varchar(64) comment '供应商简称',
|
||||
quantity_onhand double(12,2) comment '在库数量',
|
||||
expire_date datetime comment '库存有效期',
|
||||
attr1 varchar(64) default null comment '预留字段1',
|
||||
attr2 varchar(255) default null comment '预留字段2',
|
||||
attr3 int(11) default 0 comment '预留字段3',
|
||||
attr4 int(11) default 0 comment '预留字段4',
|
||||
create_by varchar(64) default '' comment '创建者',
|
||||
create_time datetime comment '创建时间',
|
||||
update_by varchar(64) default '' comment '更新者',
|
||||
update_time datetime comment '更新时间',
|
||||
primary key (material_stock_id)
|
||||
) engine=innodb auto_increment=200 comment = '库存记录表';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -15,7 +15,33 @@
|
||||
MES 系统
|
||||
</description>
|
||||
<dependencies>
|
||||
|
||||
<!--jasperreport组件-->
|
||||
<dependency>
|
||||
<groupId>net.sf.jasperreports</groupId>
|
||||
<artifactId>jasperreports</artifactId>
|
||||
<version>6.18.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>net.sf.jasperreports</groupId>
|
||||
<artifactId>jasperreports-fonts</artifactId>
|
||||
<version>6.18.1</version>
|
||||
</dependency>
|
||||
<!--PDF生成组件-->
|
||||
<dependency>
|
||||
<groupId>com.itextpdf</groupId>
|
||||
<artifactId>itextpdf</artifactId>
|
||||
<version>5.5.11</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.itextpdf</groupId>
|
||||
<artifactId>itext-pdfa</artifactId>
|
||||
<version>5.5.11</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.itextpdf</groupId>
|
||||
<artifactId>itext-asian</artifactId>
|
||||
<version>5.2.0</version>
|
||||
</dependency>
|
||||
<!-- 通用工具-->
|
||||
<dependency>
|
||||
<groupId>com.ktg</groupId>
|
||||
|
Loading…
Reference in New Issue
Block a user