装箱单功能
This commit is contained in:
@@ -846,7 +846,7 @@ create table wm_rt_salse_line (
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 12、条码清单表
|
||||
-- 18、条码清单表
|
||||
-- ----------------------------
|
||||
drop table if exists wm_barcode;
|
||||
create table wm_barcode (
|
||||
@@ -872,7 +872,87 @@ create table wm_barcode (
|
||||
) engine=innodb auto_increment=200 comment = '条码清单表';
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 19、装箱单表
|
||||
-- ----------------------------
|
||||
drop table if exists wm_package;
|
||||
create table wm_package (
|
||||
package_id bigint(20) not null auto_increment comment '装箱单ID',
|
||||
parent_id bigint(20) not null default 0 comment '父箱ID',
|
||||
ancestors varchar(255) not null comment '所有父节点ID',
|
||||
package_code varchar(64) comment '装箱单编号',
|
||||
barcode_id bigint(20) comment '条码ID',
|
||||
barcode_content varchar(255) comment '条码内容',
|
||||
barcode_url varchar(255) comment '条码地址',
|
||||
package_date datetime not null comment '装箱日期',
|
||||
so_code varchar(64) comment '销售订单编号',
|
||||
invoice_code varchar(255) comment '发票编号',
|
||||
client_id bigint(20) comment '客户ID',
|
||||
client_code varchar(64) comment '客户编码',
|
||||
client_name varchar(255) comment '客户名称',
|
||||
client_nick varchar(255) comment '客户简称',
|
||||
package_length double(12,4) comment '箱长度',
|
||||
package_width double(12,4) comment '箱宽度',
|
||||
package_height double(12,4) comment '箱高度',
|
||||
size_unit varchar(64) comment '尺寸单位',
|
||||
net_weight double(12,4) comment '净重',
|
||||
cross_weight double(12,4) comment '毛重',
|
||||
weight_unit varchar(64) comment '重量单位',
|
||||
inspector varchar(64) comment '检查员用户名',
|
||||
inspector_name varchar(64) comment '检查员名称',
|
||||
enable_flag char(1) default 'Y' 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 (package_id)
|
||||
) engine=innodb auto_increment=200 comment = '装箱单表';
|
||||
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 20、装箱明细表
|
||||
-- ----------------------------
|
||||
drop table if exists wm_package_line;
|
||||
create table wm_package_line (
|
||||
line_id bigint(20) not null auto_increment comment '明细行ID',
|
||||
package_id bigint(20) not null 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_package double(12,2) not null comment '装箱数量',
|
||||
workorder_id bigint(20) comment '生产工单ID',
|
||||
workorder_code varchar(64) 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 '库位名称',
|
||||
expire_date datetime 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 = '装箱明细表';
|
||||
|
||||
|
||||
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user