@Wahson
2019-11-05T10:20:42.000000Z
字数 4746
阅读 503
周报
Wanbo周报
- 页面权限功能已上线
- 报价录入模型迁移调整开发完成
- 仓库管理服务开发完成
- h2-elements 组件升级到V0.7.3,增加表格固定列,增加地址级联组件,其他bugfix
- F_Product_Offer_V1.0 测试 梁华生
- 仓库管理迁移 测试并上线 梁华生
- 仓库装卸费维护 曹佳林 F_Order_V1.4
- 前端增加录入、编辑页面,删除 徐泽鹏
- 装卸费crud
- 老装卸费查询接口调整,修改所有调用端 warehouseQueryService#GetLoadingPrice
- 资源订单下单流程 曹佳林 F_Order_V1.5
- 新增子单页面调整,增加资源订单选择 徐泽鹏
- 采购单增加定价维护
- 统计管理 梁华生
- 业务员每日交易数据统计图 徐泽鹏
- 公司总业绩统计图 徐泽鹏
- 物流费用导出 曹佳林
- 台账在线化其他调整 F_Order_V1.5
- 物流主单冗余配送总重量 曹佳林
- 销售、采购合同增加已回签状态,单据查询列表增加回签操作,记录操作日志(action_journal表),签收单、物流委托书回签? 徐泽鹏 曹佳林
- 发票管理数据模型设计 梁华生
- CRM管理静态页面 徐泽鹏
- 公司列表
- 新增公司页面
- 公司基础信息页面
- 授信信息页面
-- 合同状态增加 已回签
alter table order_db.`order`
modify contract_status smallint(3) null comment '订单合同状态, 1:新单(init);10:待审批(to_be_approve);11:审批不通过(approved_fail);20:已审批(approved);30:已回签(double_signed)';
alter table order_db.order_contract
modify status smallint(3) null comment '订单合同状态, 1:新单(init);10:待审批(to_be_approve);11:审批不通过(approved_fail);20:已审批(approved);30:已回签(double_signed)';
alter table purchase_db.purchase
modify contract_status smallint(3) null comment '合同状态,1:新建(init);10:待审批(to_be_approved);11:审批不通过(approved_fail);20:已审批(approved);30:已回签(double_signed)';
alter table purchase_db.purchase_contract
modify status smallint(3) null comment '合同状态,1:新建(init);10:待审批(to_be_approved);11:审批不通过(approved_fail);20:已审批(approved);30:已回签(double_signed)';
-- 增加采购定价
alter table purchase_db.purchase_item
modify column price decimal(13, 2) default 0.00 not null comment '采购成本价',
add column fixed_price decimal(13, 2) default 0.00 not null comment '采购定价' after amount,
add column fixed_amount decimal(13, 2) default 0.00 not null comment '采购定价总金 = 采购定价 * 数量' after fixed_price;
-- 采购成本价即从供应商拿货的价格
-- 采购定价为销售卖出库存时对商品采购价的重新定价,采购定价默认与采购成本价一致
-- 增加子单类型,与采购单的类型对应
alter table order_db.order_item
add column type smallint(2) default 2 not null comment '类型, 1:资源订单(resource_order);2:非资源订单(non_resource_order)';
alter table delivery_db.delivery
add column total_weight decimal(13, 3) default 0.000 not null comment '配送总数量';
1. 创建销售子单页面,选择库存下单
2. 根据选择的产品,查询已审批、未关联销售子单的采购子单列表
3. 选择采购子单,填写数量,采购定价(默认为采购成本价),物流单价、合同单价,备注,保存。采购子单为单选,下单数量不能超过采购子单数量
4. 订单创建完成,直接关联选择的采购子单id,采购子单关联新建的销售子单id
5. 如果采购子单数量大于销售子单,采购子单需要进行拆单
6. 销售取消,采购解绑,该采购子单合并到order_item_id 是空的记录
7. 资源订单采购单取消增加校验,所有子单没有绑定销售子单
8. 资源订单不能修改供应商
仓库装卸费模型:
use product_db;
create table loading_price
(
id bigint auto_increment primary key,
warehouse_id bigint not null comment '仓库id',
company_id bigint default null comment '供应商公司id,不填时为默认装卸费',
fee_under_five decimal(10, 2) default 0.00 not null comment '[0, 5) 费用',
fee_five_to_fifteen decimal(10, 2) default 0.00 not null comment '[5, 15] 吨费用',
fee_fifteen_to_twenty_five decimal(10, 2) default 0.00 not null comment '(15, 25] 吨费用',
fee_beyond_twenty_five decimal(10, 2) default 0.00 not null comment '(25, +∞) 吨费用',
sundry_fee decimal(10, 2) default '0.00' not null comment '杂费',
created_at timestamp default current_timestamp() not null,
created_by int default 0 not null,
updated_at timestamp default current_timestamp() not null,
updated_by int default 0 not null,
remark varchar(64) null comment '备注'
) engine = innoDb charset = utf8mb4 comment '仓库装卸费';
use product_db;
create table loading_price
(
id bigint auto_increment primary key,
warehouse_id bigint not null comment '仓库id',
company_id bigint default null comment '供应商公司id,不填时为默认装卸费',
fee_under_five decimal(10, 2) default 0.00 not null comment '[0, 5) 费用',
fee_five_to_fifteen decimal(10, 2) default 0.00 not null comment '[5, 15] 吨费用',
fee_fifteen_to_twenty_five decimal(10, 2) default 0.00 not null comment '(15, 25] 吨费用',
fee_beyond_twenty_five decimal(10, 2) default 0.00 not null comment '(25, +∞) 吨费用',
sundry_fee decimal(10, 2) default '0.00' not null comment '杂费',
created_at timestamp default current_timestamp() not null,
created_by int default 0 not null,
updated_at timestamp default current_timestamp() not null,
updated_by int default 0 not null,
remark varchar(64) null comment '备注'
) engine = innoDb charset = utf8mb4 comment '仓库装卸费';
alter table purchase_db.purchase_item
modify column price decimal(13, 2) default 0.00 not null comment '采购成本价',
add column fixed_price decimal(13, 2) default 0.00 not null comment '采购定价' after amount;
-- 采购成本价即从供应商拿货的价格
-- 采购定价为销售卖出库存时对商品采购价的重新定价,采购定价默认与采购成本价一致
-- 合同状态增加 已回签
alter table order_db.order
modify contract_status smallint(3) null comment '订单合同状态, 1:新单(init);10:待审批(to_be_approve);11:审批不通过(approved_fail);20:已审批(approved);30:已回签(double_signed)';
alter table order_db.order_contract
modify status smallint(3) null comment '订单合同状态, 1:新单(init);10:待审批(to_be_approve);11:审批不通过(approved_fail);20:已审批(approved);30:已回签(double_signed)';
alter table purchase_db.purchase
modify contract_status smallint(3) null comment '合同状态,1:新建(init);10:待审批(to_be_approved);11:审批不通过(approved_fail);20:已审批(approved);30:已回签(double_signed)';
alter table purchase_db.purchase_contract
modify status smallint(3) null comment '合同状态,1:新建(init);10:待审批(to_be_approved);11:审批不通过(approved_fail);20:已审批(approved);30:已回签(double_signed)';
alter table order_db.order_item
add column type smallint(2) default 2 not null comment '类型, 1:资源订单(resource_order);2:非资源订单(non_resource_order)',
add column fund_profit;
alter table delivery_db.delivery
add column total_weight decimal(13, 3) default 0.000 not null comment '配送总数量';