[关闭]
@Wahson 2020-12-15T09:46:41.000000Z 字数 5196 阅读 704

技术--工作周报(2020-12-13)

周报 Wanbo周报

上周回顾

  • 运营系统优化已上线
    • 单据导出、单据明细页面字段顺序调整
    • 单据明细查询,增加产品查询条件
    • 异常取消订单,保留物流单,记录费用、运费用于结算
    • 进项发票增加钩稽日期
    • 修改成本时,选择是否同时修改定价
    • 系统角色增加是否锁定,锁定后,角色不能修改、删除
    • 销售订单号查询组件

下周计划

  • 审批流上线 梁华生
  • 运营系统优化
    • 订单修改货损,额度占用恢复 曹佳林
    • 利润计算采购端货损处理 梁华生
    • 额度占用详情查询优化:货款转预付后,单据仍显示占用情况 梁华生
    • 采购端盈亏优化 梁华生
    • 物流管理,签收页面亏损汇总,分页bug
    • 销售合同,预付款时,日期可自由选择,最小值为当天
  • 采购物流
    • 采购物流crud 梁荣生
    • 页面增加【采购物流】菜单,查询采购物流列表、详情查询 梁荣生 陈均活
    • 采购单增加【物流申请】菜单 梁荣生 陈均活
    • 采购子单拆单,物流子单同步对应关系 梁华生
    • 物流委托书/委托配送通知书、提货单、出库单、入库单ftl模板 梁荣生
    • 物流费用计算 梁华生
  • monitor项目简单文档 曹佳林
  1. use delivery_db;
  2. create table purchase_delivery
  3. (
  4. id int not null
  5. primary key,
  6. delivery_no varchar(20) not null comment '物流单编号',
  7. status smallint(3) default 1 not null comment '配送状态, 1:待约车(to_be_hailed);2:已约车(hailed);10:待发货(to_be_shipped);20:已发货(shipped);30:已签收(signed);90:取消(canceled);',
  8. purchase_id int not null comment '采购单ID',
  9. purchase_no varchar(20) not null comment 'purchase_no',
  10. forms_flag bit(8) default b'0' not null comment '单据标识,从右往左 1:物流委托书是否已回签,2:货物签收单是否已回签',
  11. delivery_type smallint(2) default 10 not null comment '配送方式,10:供方配送(seller_delivery);20:需方配送(buyer_delivery)',
  12. cargo_type smallint not null comment '运输方式, 10:汽车配送(automobile)',
  13. settle_type smallint not null comment '结算类型, 10:即结(immediate_settle);20:月结(monthly_settle)',
  14. weight decimal(13, 3) not null comment '总重量',
  15. deliver_due_date date not null comment '预计提货日期',
  16. deliver_dispatch_date date not null comment '预计配送日期',
  17. supplier_company_id int default 0 not null comment '发货方公司id',
  18. supplier_company_name varchar(32) default '' not null comment '发货方公司名',
  19. customer_city varchar(6) not null comment '收货地城市编码',
  20. customer_name varchar(20) not null comment '收货人姓名',
  21. customer_phone varchar(32) not null comment '收货人电话',
  22. company_address_area_code varchar(9) not null comment '收货地址编码',
  23. customer_address varchar(128) not null comment '收货地址',
  24. logistics_company_id int default null comment '物流公司, 需方自提时有值',
  25. logistics_name varchar(60) default null comment '物流商名称, 需方自提时有值',
  26. vehicle_no char(10) default null comment '车牌号, 需方自提时有值',
  27. driver_name varchar(20) default null comment '司机名称, 需方自提时有值',
  28. driver_identify_no varchar(20) default null comment '司机证件号码, 需方自提时有值',
  29. driver_phone varchar(20) default null comment '司机联系电话, 需方自提时有值',
  30. hailed_at datetime null comment '约车时间',
  31. ship_at timestamp null comment '实际发货时间',
  32. sign_at timestamp null comment '实际签收时间',
  33. delivery_driver_name varchar(20) null comment '配送司机名称',
  34. delivery_driver_phone varchar(20) null comment '配送司机电话',
  35. delivery_driver_identity_no varchar(20) null comment '配送司机身份证',
  36. delivery_vehicle_no char(10) null comment '配送车牌号',
  37. logistics_list_amount decimal(13, 2) default 0.00 not null comment '物流定价总运费',
  38. logistics_list_freight decimal(13, 2) default 0.00 not null comment '物流定价运费',
  39. logistics_list_storage decimal(13, 2) default 0.00 not null comment '物流定价仓储费',
  40. logistics_list_loading decimal(13, 2) default 0.00 not null comment '物流定价装车费',
  41. logistics_list_unloading decimal(13, 2) default 0.00 not null comment '物流定价卸车费',
  42. logistics_list_customs decimal(13, 2) default 0.00 not null comment '物流定价报关费',
  43. logistics_list_extras decimal(13, 2) default 0.00 not null comment '物流定价杂费',
  44. logistics_settle_amount decimal(13, 2) default 0.00 not null comment '物流结算总运费',
  45. logistics_settle_freight decimal(13, 2) default 0.00 not null comment '物流结算运费',
  46. logistics_settle_storage decimal(13, 2) default 0.00 not null comment '物流结算仓储费',
  47. logistics_settle_loading decimal(13, 2) default 0.00 not null comment '物流结算装车费',
  48. logistics_settle_unloading decimal(13, 2) default 0.00 not null comment '物流结算卸车费',
  49. logistics_settle_customs decimal(13, 2) default 0.00 not null comment '物流结算报关费',
  50. logistics_settle_extras decimal(13, 2) default 0.00 not null comment '物流结算杂费',
  51. logistics_loss decimal(13, 2) default 0.00 not null comment '运费亏损',
  52. pick_remark varchar(255) null comment '提货单备注',
  53. entrust_remark varchar(255) null comment '委拖配送通知书/物流委托书备注',
  54. created_at timestamp default current_timestamp() not null,
  55. created_by int null,
  56. updated_at timestamp default current_timestamp() not null on update current_timestamp(),
  57. updated_by int null,
  58. remark varchar(255) null,
  59. rmk varchar(255) null comment '系统备注',
  60. key idx_purchase_id(purchase_id),
  61. key idx_purchase_no(purchase_no)
  62. ) engine = innoDb comment '采购物流单' charset = utf8mb4;
  63. create table purchase_delivery_item
  64. (
  65. id int not null
  66. primary key,
  67. purchase_delivery_id int not null comment '物流单id',
  68. purchase_item_id int not null comment '关联销售/采购子单id',
  69. is_deleted smallint(2) default 0 not null comment '是否已取消: 0(否);1(是)',
  70. product_id int not null,
  71. category varchar(12) not null comment '产品分类',
  72. designation varchar(32) not null comment '产品牌号',
  73. manufacturer_id int default 0 not null comment '生产商ID',
  74. manufacturer_name varchar(32) default '' not null comment '生产商名称',
  75. weight decimal(13, 3) not null comment '配送数量',
  76. actual_weight decimal(13, 3) default 0.000 null comment '实际签收吨数',
  77. weight_per_package int not null comment '规格:每包重量KG/包',
  78. package_count int not null comment '包数',
  79. warehouse_id int default 0 not null comment '发货仓库id',
  80. warehouse_name varchar(15) default '' not null comment '发货仓库名称',
  81. delivery_remark varchar(255) null comment '配送备注,新建物流指令时,交易员填写',
  82. logistics_list_loading decimal(13, 2) default 0.00 not null comment '物流定价装车费',
  83. logistics_list_unloading decimal(13, 2) default 0.00 not null comment '物流定价卸车费',
  84. logistics_settle_loading decimal(13, 2) default 0.00 not null comment '物流结算装车费',
  85. logistics_settle_unloading decimal(13, 2) default 0.00 not null comment '物流结算卸车费',
  86. remark varchar(255) null comment '备注',
  87. rmk varchar(255) null comment '系统备注',
  88. created_at timestamp default current_timestamp() not null,
  89. created_by int null,
  90. updated_at timestamp default current_timestamp() not null on update current_timestamp(),
  91. updated_by int null,
  92. key idx_purchase_item(purchase_item_id),
  93. constraint delivery_item_2_delivery
  94. foreign key (purchase_delivery_id) references delivery (id)
  95. ) engine = innoDb comment '采购物流子单' charset = utf8mb4;
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注