产品入库
This commit is contained in:
parent
491556a650
commit
a6b7362c31
@ -544,20 +544,89 @@ create table wm_item_consume_line (
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 8、产品入库单表(入线边库)
|
||||
-- 8、产品产出记录表(入线边库)
|
||||
-- ----------------------------
|
||||
drop table if exists wm_item_recpt;
|
||||
create table wm_item_recpt (
|
||||
drop table if exists wm_product_produce;
|
||||
create table wm_product_produce (
|
||||
record_id bigint(20) not null auto_increment comment '入库单ID',
|
||||
workorder_id bigint(20) comment '生产工单ID',
|
||||
workorder_code varchar(64) comment '生产工单编码',
|
||||
workorder_name varchar(255) comment '生产工单名称',
|
||||
task_id bigint(20) comment '生产任务ID',
|
||||
task_code varchar(64) comment '生产任务编号',
|
||||
task_name varchar(255) comment '生产任务名称',
|
||||
workstation_id bigint(20) comment '工作站ID',
|
||||
workstation_code varchar(64) comment '工作站编号',
|
||||
workstation_name varchar(255) comment '工作站名称',
|
||||
process_id bigint(20) comment '工序ID',
|
||||
process_code varchar(64) comment '工序编号',
|
||||
process_name varchar(255) comment '工序名称',
|
||||
produce_date datetime comment '生产日期',
|
||||
status varchar(64) default 'PREPARE' comment '单据状态',
|
||||
remark varchar(500) default '' 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 (record_id)
|
||||
) engine=innodb auto_increment=200 comment = '产品产出记录表';
|
||||
|
||||
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 11、产品产出记录表行表
|
||||
-- ----------------------------
|
||||
drop table if exists wm_product_produce_line;
|
||||
create table wm_product_produce_line (
|
||||
line_id bigint(20) not null auto_increment comment '行ID',
|
||||
record_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 '单位',
|
||||
quantity_produce double(12,2) not null comment '产出数量',
|
||||
batch_code varchar(255) comment '批次号',
|
||||
warehouse_id bigint(20) 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 '库位名称',
|
||||
remark varchar(500) default '' 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 (line_id)
|
||||
) engine=innodb auto_increment=200 comment = '产品产出记录表行表';
|
||||
|
||||
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 12、产品入库录表(线边库入正式库)
|
||||
-- ----------------------------
|
||||
drop table if exists wm_product_recpt;
|
||||
create table wm_product_recpt (
|
||||
recpt_id bigint(20) not null auto_increment comment '入库单ID',
|
||||
recpt_code varchar(64) not null comment '入库单编号',
|
||||
recpt_name varchar(255) not null comment '入库单名称',
|
||||
iqc_id bigint(20) comment '来料检验单ID',
|
||||
iqc_code varchar(64) comment '来料检验单编号',
|
||||
po_code varchar(64) comment '采购订单编号',
|
||||
vendor_id bigint(20) comment '供应商ID',
|
||||
vendor_code varchar(64) comment '供应商编码',
|
||||
vendor_name varchar(255) comment '供应商名称',
|
||||
vendor_nick varchar(255) comment '供应商简称',
|
||||
recpt_name varchar(255) comment '入库单名称',
|
||||
workorder_id bigint(20) comment '生产工单ID',
|
||||
workorder_code varchar(64) comment '生产工单编码',
|
||||
workorder_name varchar(255) comment '生产工单名称',
|
||||
warehouse_id bigint(20) comment '仓库ID',
|
||||
warehouse_code varchar(64) comment '仓库编码',
|
||||
warehouse_name varchar(255) comment '仓库名称',
|
||||
@ -579,17 +648,45 @@ create table wm_item_recpt (
|
||||
update_by varchar(64) default '' comment '更新者',
|
||||
update_time datetime comment '更新时间',
|
||||
primary key (recpt_id)
|
||||
) engine=innodb auto_increment=200 comment = '物料入库单表';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
) engine=innodb auto_increment=200 comment = '产品入库录表';
|
||||
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 13、产品入库记录表行表
|
||||
-- ----------------------------
|
||||
drop table if exists wm_product_produce_line;
|
||||
create table wm_product_produce_line (
|
||||
line_id bigint(20) not null auto_increment comment '行ID',
|
||||
recpt_id bigint(20) comment '入库记录ID',
|
||||
material_stock_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 '单位',
|
||||
quantity_recived double(12,2) not null comment '入库数量',
|
||||
batch_code varchar(255) comment '批次号',
|
||||
warehouse_id bigint(20) 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 '库位名称',
|
||||
remark varchar(500) default '' 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 (line_id)
|
||||
) engine=innodb auto_increment=200 comment = '产品入库记录表行表';
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user