@Wahson
2020-12-15 01:46
字数 5196
阅读 835
周报
Wanbo周报
- 运营系统优化已上线
- 单据导出、单据明细页面字段顺序调整
- 单据明细查询,增加产品查询条件
- 异常取消订单,保留物流单,记录费用、运费用于结算
- 进项发票增加钩稽日期
- 修改成本时,选择是否同时修改定价
- 系统角色增加是否锁定,锁定后,角色不能修改、删除
- 销售订单号查询组件
- 审批流上线 梁华生
- 运营系统优化
- 订单修改货损,额度占用恢复 曹佳林
- 利润计算采购端货损处理 梁华生
- 额度占用详情查询优化:货款转预付后,单据仍显示占用情况 梁华生
- 采购端盈亏优化 梁华生
- 物流管理,签收页面亏损汇总,分页bug
- 销售合同,预付款时,日期可自由选择,最小值为当天
- 采购物流
- 采购物流crud 梁荣生
- 页面增加【采购物流】菜单,查询采购物流列表、详情查询 梁荣生 陈均活
- 采购单增加【物流申请】菜单 梁荣生 陈均活
- 采购子单拆单,物流子单同步对应关系 梁华生
- 物流委托书/委托配送通知书、提货单、出库单、入库单ftl模板 梁荣生
- 物流费用计算 梁华生
- monitor项目简单文档 曹佳林
use delivery_db;
create table purchase_delivery
(
id int not null
primary key,
delivery_no varchar(20) not null comment '物流单编号',
status smallint(3) default 1 not null comment '配送状态, 1:待约车(to_be_hailed);2:已约车(hailed);10:待发货(to_be_shipped);20:已发货(shipped);30:已签收(signed);90:取消(canceled);',
purchase_id int not null comment '采购单ID',
purchase_no varchar(20) not null comment 'purchase_no',
forms_flag bit(8) default b'0' not null comment '单据标识,从右往左 1:物流委托书是否已回签,2:货物签收单是否已回签',
delivery_type smallint(2) default 10 not null comment '配送方式,10:供方配送(seller_delivery);20:需方配送(buyer_delivery)',
cargo_type smallint not null comment '运输方式, 10:汽车配送(automobile)',
settle_type smallint not null comment '结算类型, 10:即结(immediate_settle);20:月结(monthly_settle)',
weight decimal(13, 3) not null comment '总重量',
deliver_due_date date not null comment '预计提货日期',
deliver_dispatch_date date not null comment '预计配送日期',
supplier_company_id int default 0 not null comment '发货方公司id',
supplier_company_name varchar(32) default '' not null comment '发货方公司名',
customer_city varchar(6) not null comment '收货地城市编码',
customer_name varchar(20) not null comment '收货人姓名',
customer_phone varchar(32) not null comment '收货人电话',
company_address_area_code varchar(9) not null comment '收货地址编码',
customer_address varchar(128) not null comment '收货地址',
logistics_company_id int default null comment '物流公司, 需方自提时有值',
logistics_name varchar(60) default null comment '物流商名称, 需方自提时有值',
vehicle_no char(10) default null comment '车牌号, 需方自提时有值',
driver_name varchar(20) default null comment '司机名称, 需方自提时有值',
driver_identify_no varchar(20) default null comment '司机证件号码, 需方自提时有值',
driver_phone varchar(20) default null comment '司机联系电话, 需方自提时有值',
hailed_at datetime null comment '约车时间',
ship_at timestamp null comment '实际发货时间',
sign_at timestamp null comment '实际签收时间',
delivery_driver_name varchar(20) null comment '配送司机名称',
delivery_driver_phone varchar(20) null comment '配送司机电话',
delivery_driver_identity_no varchar(20) null comment '配送司机身份证',
delivery_vehicle_no char(10) null comment '配送车牌号',
logistics_list_amount decimal(13, 2) default 0.00 not null comment '物流定价总运费',
logistics_list_freight decimal(13, 2) default 0.00 not null comment '物流定价运费',
logistics_list_storage decimal(13, 2) default 0.00 not null comment '物流定价仓储费',
logistics_list_loading decimal(13, 2) default 0.00 not null comment '物流定价装车费',
logistics_list_unloading decimal(13, 2) default 0.00 not null comment '物流定价卸车费',
logistics_list_customs decimal(13, 2) default 0.00 not null comment '物流定价报关费',
logistics_list_extras decimal(13, 2) default 0.00 not null comment '物流定价杂费',
logistics_settle_amount decimal(13, 2) default 0.00 not null comment '物流结算总运费',
logistics_settle_freight decimal(13, 2) default 0.00 not null comment '物流结算运费',
logistics_settle_storage decimal(13, 2) default 0.00 not null comment '物流结算仓储费',
logistics_settle_loading decimal(13, 2) default 0.00 not null comment '物流结算装车费',
logistics_settle_unloading decimal(13, 2) default 0.00 not null comment '物流结算卸车费',
logistics_settle_customs decimal(13, 2) default 0.00 not null comment '物流结算报关费',
logistics_settle_extras decimal(13, 2) default 0.00 not null comment '物流结算杂费',
logistics_loss decimal(13, 2) default 0.00 not null comment '运费亏损',
pick_remark varchar(255) null comment '提货单备注',
entrust_remark varchar(255) null comment '委拖配送通知书/物流委托书备注',
created_at timestamp default current_timestamp() not null,
created_by int null,
updated_at timestamp default current_timestamp() not null on update current_timestamp(),
updated_by int null,
remark varchar(255) null,
rmk varchar(255) null comment '系统备注',
key idx_purchase_id(purchase_id),
key idx_purchase_no(purchase_no)
) engine = innoDb comment '采购物流单' charset = utf8mb4;
create table purchase_delivery_item
(
id int not null
primary key,
purchase_delivery_id int not null comment '物流单id',
purchase_item_id int not null comment '关联销售/采购子单id',
is_deleted smallint(2) default 0 not null comment '是否已取消: 0(否);1(是)',
product_id int not null,
category varchar(12) not null comment '产品分类',
designation varchar(32) not null comment '产品牌号',
manufacturer_id int default 0 not null comment '生产商ID',
manufacturer_name varchar(32) default '' not null comment '生产商名称',
weight decimal(13, 3) not null comment '配送数量',
actual_weight decimal(13, 3) default 0.000 null comment '实际签收吨数',
weight_per_package int not null comment '规格:每包重量KG/包',
package_count int not null comment '包数',
warehouse_id int default 0 not null comment '发货仓库id',
warehouse_name varchar(15) default '' not null comment '发货仓库名称',
delivery_remark varchar(255) null comment '配送备注,新建物流指令时,交易员填写',
logistics_list_loading decimal(13, 2) default 0.00 not null comment '物流定价装车费',
logistics_list_unloading decimal(13, 2) default 0.00 not null comment '物流定价卸车费',
logistics_settle_loading decimal(13, 2) default 0.00 not null comment '物流结算装车费',
logistics_settle_unloading decimal(13, 2) default 0.00 not null comment '物流结算卸车费',
remark varchar(255) null comment '备注',
rmk varchar(255) null comment '系统备注',
created_at timestamp default current_timestamp() not null,
created_by int null,
updated_at timestamp default current_timestamp() not null on update current_timestamp(),
updated_by int null,
key idx_purchase_item(purchase_item_id),
constraint delivery_item_2_delivery
foreign key (purchase_delivery_id) references delivery (id)
) engine = innoDb comment '采购物流子单' charset = utf8mb4;