# 新增
1. 新增ASN单据
2. 新增ASN明细单据
| | |
| | | companys: 'Companys', |
| | | serialRuleItem: 'SerialRuleItem', |
| | | serialRule: 'SerialRule', |
| | | asnOrder: 'AsnOrder', |
| | | asnOrderItem: 'AsnOrderItem', |
| | | whMat: 'Warehouse Mat', |
| | | }, |
| | | table: { |
| | |
| | | size: "size", |
| | | minWeight: "minWeight", |
| | | maxWeight: "maxWeight", |
| | | } |
| | | }, |
| | | asnOrder: { |
| | | code: "Code", |
| | | poCode: "poCode", |
| | | poId: "poId", |
| | | type: "Type", |
| | | wkType: "wkType", |
| | | anfme: "anfme", |
| | | qty: "qty", |
| | | logisNo: "logisNo", |
| | | arrTime: "Arrived", |
| | | rleStatus: "Release", |
| | | ntyStatus: "Notify", |
| | | }, |
| | | asnOrderItem: { |
| | | asnId: "asnId", |
| | | asnCode: "asnCode", |
| | | poDetlId: "poDetlId", |
| | | poDetlCode: "poDetlCode", |
| | | matnrId: "matnrId", |
| | | matnk: "matnk", |
| | | anfme: "anfme", |
| | | stockUnit: "stockUnit", |
| | | purQty: "purQty", |
| | | purUnit: "purUnit", |
| | | qty: "qty", |
| | | splrCode: "splrCode", |
| | | splrName: "splrName", |
| | | qrcode: "qrcode", |
| | | barcode: "barcode", |
| | | packName: "packName", |
| | | ntyStatus: "ntyStatus", |
| | | }, |
| | | } |
| | | }, |
| | | page: { |
| | |
| | | companys: '往来企业', |
| | | serialRuleItem: '编码规则子表', |
| | | serialRule: '编码规则', |
| | | asnOrder: '收货通知单', |
| | | asnOrderItem: '收货明细', |
| | | whMat: '库区物料关系', |
| | | }, |
| | | table: { |
| | |
| | | size: "尺寸", |
| | | minWeight: "最小重量", |
| | | maxWeight: "最大重量", |
| | | } |
| | | }, |
| | | asnOrder: { |
| | | code: "编码", |
| | | poCode: "PO编码", |
| | | poId: "PO标识", |
| | | type: "单据类型", |
| | | wkType: "业务类型", |
| | | anfme: "数量", |
| | | qty: "已完成数量", |
| | | logisNo: "logisNo", |
| | | arrTime: "预计到达时间", |
| | | rleStatus: "释放状态", |
| | | ntyStatus: "质检上报状态", |
| | | }, |
| | | asnOrderItem: { |
| | | asnId: "主单标识", |
| | | asnCode: "主单编码", |
| | | poDetlId: "PO单标识", |
| | | poDetlCode: "PO单编码", |
| | | matnrId: "物料标识", |
| | | matnk: "物料名称", |
| | | anfme: "数量", |
| | | stockUnit: "库存单位", |
| | | purQty: "采购数量", |
| | | purUnit: "采购单位", |
| | | qty: "已完成数量", |
| | | splrCode: "供应商编码", |
| | | splrName: "供应商名称", |
| | | qrcode: "二维码", |
| | | barcode: "条形码", |
| | | packName: "包装名称", |
| | | ntyStatus: "报检状态", |
| | | }, |
| | | } |
| | | }, |
| | | page: { |
| | |
| | | import serialRuleItem from './system/serialRuleItem'; |
| | | import serialRule from './system/serialRule'; |
| | | import whMat from './basicInfo/whMat'; |
| | | import asnOrder from './asnOrder'; |
| | | import asnOrderItem from './asnOrderItem'; |
| | | |
| | | |
| | | const ResourceContent = (node) => { |
| | |
| | | return serialRule; |
| | | case 'whMat': |
| | | return whMat; |
| | | case 'asnOrder': |
| | | return asnOrder; |
| | | case 'asnOrderItem': |
| | | return asnOrderItem; |
| | | default: |
| | | return { |
| | | list: ListGuesser, |
| | |
| | | arrTime: "arrTime", |
| | | rleStatus: "rleStatus", |
| | | name: "name", |
| | | ntyStatus: "ntyStatus", |
| | | }, |
| | | |
| | | -- ResourceContent |
| | |
| | | -- mysql |
| | | insert into `sys_menu` ( `name`, `parent_id`, `route`, `component`, `type`, `sort`, `tenant_id`, `status`) values ( 'menu.asnOrderItem', '0', '/manager/asnOrderItem', 'asnOrderItem', '0' , '0', '1' , '1'); |
| | | |
| | | insert into `sys_menu` ( `name`, `parent_id`, `type`, `authority`, `sort`, `tenant_id`, `status`) values ( 'Query ASN单据', '', '1', 'manager:asnOrderItem:list', '0', '1', '1'); |
| | | insert into `sys_menu` ( `name`, `parent_id`, `type`, `authority`, `sort`, `tenant_id`, `status`) values ( 'Create ASN单据', '', '1', 'manager:asnOrderItem:save', '1', '1', '1'); |
| | | insert into `sys_menu` ( `name`, `parent_id`, `type`, `authority`, `sort`, `tenant_id`, `status`) values ( 'Update ASN单据', '', '1', 'manager:asnOrderItem:update', '2', '1', '1'); |
| | | insert into `sys_menu` ( `name`, `parent_id`, `type`, `authority`, `sort`, `tenant_id`, `status`) values ( 'Delete ASN单据', '', '1', 'manager:asnOrderItem:remove', '3', '1', '1'); |
| | | insert into `sys_menu` ( `name`, `parent_id`, `type`, `authority`, `sort`, `tenant_id`, `status`) values ( 'Query ASN单据', '139', '1', 'manager:asnOrderItem:list', '0', '1', '1'); |
| | | insert into `sys_menu` ( `name`, `parent_id`, `type`, `authority`, `sort`, `tenant_id`, `status`) values ( 'Create ASN单据', '139', '1', 'manager:asnOrderItem:save', '1', '1', '1'); |
| | | insert into `sys_menu` ( `name`, `parent_id`, `type`, `authority`, `sort`, `tenant_id`, `status`) values ( 'Update ASN单据', '139', '1', 'manager:asnOrderItem:update', '2', '1', '1'); |
| | | insert into `sys_menu` ( `name`, `parent_id`, `type`, `authority`, `sort`, `tenant_id`, `status`) values ( 'Delete ASN单据', '139', '1', 'manager:asnOrderItem:remove', '3', '1', '1'); |
| | | |
| | | -- locale menu name |
| | | asnOrderItem: 'AsnOrderItem', |
| | |
| | | qrcode: "qrcode", |
| | | barcode: "barcode", |
| | | packName: "packName", |
| | | ntyStatus: "ntyStatus", |
| | | }, |
| | | |
| | | -- ResourceContent |
| | |
| | | |
| | | @Data |
| | | @Configuration |
| | | @ConfigurationProperties(prefix = "platform.erp.apiInfo") |
| | | @ConfigurationProperties(prefix = "platform.erp.api") |
| | | public class ApiInfo { |
| | | /** |
| | | * 一键上报质检接口 |
| | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
| | | import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper; |
| | | import com.vincent.rsf.common.domain.CommonReponse; |
| | | import com.vincent.rsf.framework.exception.CoolException; |
| | | import com.vincent.rsf.server.api.config.RemotesInfoProperties; |
| | |
| | | import com.vincent.rsf.server.api.entity.enums.OrderType; |
| | | import com.vincent.rsf.server.api.entity.params.ErpInspectItem; |
| | | import com.vincent.rsf.server.api.entity.params.ErpInspectParams; |
| | | import com.vincent.rsf.server.common.config.SysStockFlowProperties; |
| | | import com.vincent.rsf.server.manager.entity.AsnOrder; |
| | | import com.vincent.rsf.server.manager.entity.AsnOrderItem; |
| | | import com.vincent.rsf.server.manager.entity.PurchaseItem; |
| | |
| | | /* |
| | | CREATE TABLE `man_tablename` ( |
| | | `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID', |
| | | `uuid` VARCHAR(255) DEFAULT NULL COMMENT '编号', |
| | | `code` VARCHAR(255) DEFAULT NULL COMMENT '编号', |
| | | `name` VARCHAR(255) DEFAULT NULL COMMENT '名称(*)', |
| | | `status` INT(1) NOT NULL DEFAULT '1' COMMENT '状态{1:正常,0:冻结}', |
| | | `deleted` INT(1) NOT NULL DEFAULT '0' COMMENT '是否删除{1:是,0:否}', |
File was renamed from rsf-server/src/main/java/com/vincent/rsf/server/common/config/SysStockFlowProperties.java |
| | |
| | | import lombok.Data; |
| | | import org.springframework.boot.context.properties.ConfigurationProperties; |
| | | import org.springframework.context.annotation.Configuration; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | /** |
| | | * @author Ryan |
| | |
| | | @Data |
| | | @Configuration |
| | | @ConfigurationProperties(prefix = "stock") |
| | | public class SysStockFlowProperties { |
| | | public class SysStockProperties { |
| | | |
| | | |
| | | /** |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.vincent.rsf.framework.exception.CoolException; |
| | | import com.vincent.rsf.server.common.config.SysStockFlowProperties; |
| | | import com.vincent.rsf.server.common.config.SysStockProperties; |
| | | import com.vincent.rsf.server.common.utils.DateUtils; |
| | | import com.vincent.rsf.server.manager.entity.*; |
| | | import com.vincent.rsf.server.manager.service.*; |
| | |
| | | private AsnOrderItemService asnOrderItemService; |
| | | |
| | | @Resource |
| | | private SysStockFlowProperties flowProperties; |
| | | private SysStockProperties flowProperties; |
| | | /** |
| | | * @author Ryan |
| | | * @description 根据PO单据生成ASN单,自动生成ASN单为全量生成 |
| | |
| | | #接品链接前缀 |
| | | prePath: rsf-server |
| | | #接口明细 |
| | | apiInfo: |
| | | api: |
| | | #质检上报接口 |
| | | notifyInspect: /report/inspect |
| | | |