四化智造MES(WEB)和金蝶云星空接口打通对接实战

对接系统四化智造MES(WEB)
“MES助力智能制造过程控制:MES管理生产订单的整个生产流程,通过对生产过程的所有突发事件实时监控,自动纠正生产过程中的错误或提供决策支持,以实现生产调度要求;在出现异常或与生产计划偏离太大时,及时反馈相关人员使其采取相应的措施。任务派工:MES在生产计划完成后,自动生成任务派工单,根据生产设备实际加工能力的变化,制定并优化生产的具体过程及各设备的详细操作顺序
写入目标:金蝶云星空
金蝶K/3Cloud(金蝶云星空)是移动互联网时代的新型ERP,是基于WEB2.0与云技术的新时代企业管理服务平台。金蝶K/3Cloud围绕着“生态、人人、体验”,旨在帮助企业打造面向新时代的生态互联与协同平台,围绕生态中的每个角色,提供随手可得的云服务,最终实现敏捷协同,智慧运营的企业运营新境界。整个产品采用SOA架构,完全基于BOS平台组建而成,业务架构上贯穿流程驱动与角色驱动思想,结合中国管理模式与中国管理实践积累,精细化支持企业财务管理、供应链管理、生产管理、供应链协同管理、人力资源管理等核心应用。技术架构上该产品采用平台化构建,支持跨数据库应用,支持本地部署、私有云部署与公有云部署三种部署方式,同时还在公有云上开放中国第一款基于ERP的协同开发云平台。任何一家使用金蝶K/3Cloud产品的企业,其拥有的是包含金蝶在内的众多基于同一个平台提供服务的IT服务伙伴。
系统对接接口配置
集成方案是整个轻易云集成平台的核心,每一个集成方案代表一种业务的对接策略(对接方案借鉴可以在轻易云系统数据集成交流社区bbs.qeasy.cloud 中找到相关信息),用户可以根据业务的不同新建多个不同规则的集成方案。比如:采购订单同步,线上销售出库同步,线下销售出库同步。一个集成方案必须要配置源系统:四化智造MES(WEB),源系统 API:余料入库查询(入库记录查询),目标系统:金蝶云星空,目标系统 API其他入库新增。在新增集成方案之前需要确定两个系统的连接器都已经配置完成。



四化智造MES(WEB)接口明细
- 接口:wms/instockConfirm/queryHadInstockConfirmTaskDetailsJd
- 接口名称:余料入库查询(入库记录查询)
- 接口方法:GET
请求参数
| 字段 | 名称 | 类型 |
| instockStartTime | 开始时间 | string |
| instockEndTime | 结束时间 | string |
| taskType | 入库类型 | string |
| pageNum | 页码 | string |
| pageSize | 页数 | string |
响应参数
| 字段 | 名称 | 类型 | 描述 |
| mchId | mchId | string | autoFillResponse |
| createBy | createBy | string | _autoFillResponse |
| createName | createName | string | autoFillResponse |
| checkLabel | checkLabel | string | _autoFillResponse |
| createTime | createTime | string | autoFillResponse |
| updateBy | updateBy | string | _autoFillResponse |
| updateName | updateName | string | autoFillResponse |
| updateTime | updateTime | string | _autoFillResponse |
| remark | remark | string | autoFillResponse |
| companyCode | companyCode | string | _autoFillResponse |
| currentUserBy | currentUserBy | string | autoFillResponse |
| currentUserName | currentUserName | string | _autoFillResponse |
| currentTime | currentTime | string | autoFillResponse |
| filtrationBomStatus | filtrationBomStatus | string | _autoFillResponse |
| bomNo | bomNo | string | autoFillResponse |
| id | id | string | _autoFillResponse |
| uuid | uuid | string | autoFillResponse |
| confirmTaskUuid | confirmTaskUuid | string | _autoFillResponse |
| taskUuid | taskUuid | string | autoFillResponse |
| processName | processName | string | _autoFillResponse |
| warehouseUuid | warehouseUuid | string | autoFillResponse |
| warehouseName | warehouseName | string | _autoFillResponse |
| status | status | string | autoFillResponse |
| confirmStatus | confirmStatus | string | _autoFillResponse |
| receiveNumb | receiveNumb | string | autoFillResponse |
| checkNumb | checkNumb | string | _autoFillResponse |
| confirmNumb | confirmNumb | string | autoFillResponse |
| waitConfirmNumb | waitConfirmNumb | string | _autoFillResponse |
| currentConfirmNumb | currentConfirmNumb | string | autoFillResponse |
| confirmCountFlag | confirmCountFlag | string | _autoFillResponse |
| delFlag | delFlag | string | autoFillResponse |
| partNo | partNo | string | _autoFillResponse |
| gradeName | gradeName | string | autoFillResponse |
| quality | quality | string | _autoFillResponse |
| brand | brand | string | autoFillResponse |
| spec | spec | string | _autoFillResponse |
| picNo | picNo | string | autoFillResponse |
| picVersion | picVersion | string | _autoFillResponse |
| unitNo | unitNo | string | autoFillResponse |
| instockNumb | instockNumb | string | _autoFillResponse |
| processCode | processCode | string | autoFillResponse |
| ynConfirm | ynConfirm | string | _autoFillResponse |
| matterialType | matterialType | string | autoFillResponse |
| locationUuid | locationUuid | string | _autoFillResponse |
| dispatchPrefix | dispatchPrefix | string | autoFillResponse |
| connectUuid | connectUuid | string | _autoFillResponse |
| packageNo | packageNo | string | autoFillResponse |
| ynCanOperate | ynCanOperate | string | _autoFillResponse |
| warehouseAdministorId | warehouseAdministorId | string | autoFillResponse |
| supplierName | supplierName | string | _autoFillResponse |
| supplierUuid | supplierUuid | string | autoFillResponse |
| taskType | taskType | string | _autoFillResponse |
| locations | locations | string | autoFillResponse |
| businessNo | businessNo | string | _autoFillResponse |
| cuttingSize | cuttingSize | string | autoFillResponse |
| customerOrderNo | customerOrderNo | string | _autoFillResponse |
| modeNo | modeNo | string | autoFillResponse |
| outContent | outContent | string | _autoFillResponse |
| processContent | processContent | string | autoFillResponse |
| taskResource | taskResource | string | _autoFillResponse |
| locationNo | locationNo | string | autoFillResponse |
| serCode | serCode | string | _autoFillResponse |
| sendNo | sendNo | string | autoFillResponse |
| patterNo | patterNo | string | _autoFillResponse |
| oneWeight | oneWeight | string | autoFillResponse |
| receiveWeight | receiveWeight | string | _autoFillResponse |
| typeFlag | typeFlag | string | autoFillResponse |
| projectCode | projectCode | string | _autoFillResponse |
| stage | stage | string | autoFillResponse |
| itemCategory | itemCategory | string | _autoFillResponse |
| filePath | filePath | string | autoFillResponse |
| fileName | fileName | string | _autoFillResponse |
| fileSuffix | fileSuffix | string | autoFillResponse |
| fileName2d | fileName2d | string | _autoFillResponse |
| filePath2d | filePath2d | string | autoFillResponse |
| fileName3d | fileName3d | string | _autoFillResponse |
| filePath3d | filePath3d | string | autoFillResponse |
| priceNumb | priceNumb | string | _autoFillResponse |
| receiveUuid | receiveUuid | string | autoFillResponse |
| caigouNo | caigouNo | string | _autoFillResponse |
| instockTime | instockTime | string | autoFillResponse |
| workNo | workNo | string | _autoFillResponse |
| urgentNeedNo | urgentNeedNo | string | autoFillResponse |
| bomContractNo | bomContractNo | string | _autoFillResponse |
| keyNo | keyNo | string | autoFillResponse |
| ifGiveaway | ifGiveaway | string | _autoFillResponse |
| orderNo | orderNo | string | autoFillResponse |
| sendCheckNo | sendCheckNo | string | _autoFillResponse |
| wholeDeliveryDate | wholeDeliveryDate | string | autoFillResponse |
| deliveryDate | deliveryDate | string | _autoFillResponse |
| customerPartNo | customerPartNo | string | autoFillResponse |
| shipmentPlace | shipmentPlace | string | _autoFillResponse |
| customerGradeName | customerGradeName | string | autoFillResponse |
| checkBy | checkBy | string | _autoFillResponse |
| checkName | checkName | string | autoFillResponse |
| ynCheck | ynCheck | string | _autoFillResponse |
| checkTime | checkTime | string | autoFillResponse |
| returnNumb | returnNumb | string | _autoFillResponse |
| returnReason | returnReason | string | autoFillResponse |
| productName | productName | string | _autoFillResponse |
| productPartNo | productPartNo | string | autoFillResponse |
| caigouTime | caigouTime | string | _autoFillResponse |
| orderType | orderType | string | autoFillResponse |
| sender | sender | string | _autoFillResponse |
| receiveMainTaskUuid | receiveMainTaskUuid | string | autoFillResponse |
| receiveStatus | receiveStatus | string | _autoFillResponse |
| waitReceiveNumb | waitReceiveNumb | string | autoFillResponse |
| currentReceiveNumb | currentReceiveNumb | string | _autoFillResponse |
| classifyId | classifyId | string | autoFillResponse |
| classifyName | classifyName | string | _autoFillResponse |
| ynReceive | ynReceive | string | autoFillResponse |
| okNumb | okNumb | string | _autoFillResponse |
| ngNumb | ngNumb | string | autoFillResponse |
| backNumb | backNumb | string | _autoFillResponse |
| hadBackNumb | hadBackNumb | string | autoFillResponse |
| preProcessInstockType | preProcessInstockType | string | _autoFillResponse |
| preProcessCode | preProcessCode | string | autoFillResponse |
| currentProcessCode | currentProcessCode | string | _autoFillResponse |
| currentProcessInstockType | currentProcessInstockType | string | autoFillResponse |
| nextProcessCode | nextProcessCode | string | _autoFillResponse |
| planDate | planDate | string | autoFillResponse |
| outType | outType | string | _autoFillResponse |
| caiGouNumb | caiGouNumb | string | autoFillResponse |
| planWeight | planWeight | string | _autoFillResponse |
| weight | weight | string | autoFillResponse |
| instockConfirmNumb | instockConfirmNumb | string | _autoFillResponse |
| purchaseUnitNo | purchaseUnitNo | string | autoFillResponse |
| purchaseUnitName | purchaseUnitName | string | _autoFillResponse |
| instockNo | instockNo | string | autoFillResponse |
| receiveNo | receiveNo | string | _autoFillResponse |
| confrimNo | confrimNo | string | _autoFillResponse |
| caigouNo | 采购单号 | string | |
金蝶云星空接口明细
- 调用接口:batchSave
- 接口名称:其他入库新增
- 方法:POST
请求参数
| 字段 | 字段名称 | 类型 | 配置值 |
| FBillNo | 单据编号 | string | {{confrimNo}} |
| FBillTypeID | 单据类型 | string | QTRKD01_SYS |
| FStockOrgId | 库存组织 | string | 1 |
| FStockDirect | 库存方向 | string | GENERAL |
| FDate | 日期 | string | {{createTime}} |
| FSUPPLIERID | 供应商 | string | |
| FDEPTID | 申请部门 | string | YA032 |
| FOwnerTypeIdHead | 货主类型 | string | BD_OwnerOrg |
| FOwnerIdHead | 货主 | string | 1 |
| FNOTE | 备注 | string | |
| F_lyzx_Base | 物料负责人 | string | YZ000314 |
| F_UZMJ_Base | 仓管员 | string | YZ000314 |
| F_UZMJ_Assistant | 业务类型 | string | 5 |
| FEntity | 明细信息 | array | |
| FEntity.FInStockType | 入库类型 | string | 1 |
| FEntity.FMATERIALID | 物料编码 | string | {{partNo}} |
| FEntity.FCMKBarCode | 零售条形码 | string | |
| FEntity.FStockId | 收货仓库 | string | F2313A |
| FEntity.FStockLocId | 仓位 | string | H-1 |
| FEntity.FLOT | 批号 | string | _function case _findCollection find FIsBatchManage from 80f3f76d-b3eb-3e61-96cd-169790878567 where FNumber={{details.partNo}} _endFind when true then '00' else '' end |
| FEntity.FQty | 实收数量 | string | {{confirmNumb}} |
| FEntity.FPrice | 成本价 | string | |
| FEntity.FEntryNote | 备注 | string | |
| FEntity.FSRCBILLNO | 源单编号 | string | |
| FEntity.FSRCBILLTYPEID | 源单类型 | string | |
| FEntity.FormId | 业务对象表单Id | string | STK_MISCELLANEOUS |
| FEntity.IsVerifyBaseDataField | 验证基础资料 | bool | false |
| FEntity.Operation | 执行的操作 | string | Save |
| FEntity.IsAutoSubmitAndAudit | 提交并审核 | bool | true |
数据对接效果
通过轻易云集成平台系列产品线可以协助企业轻易快捷的构建基于微服务架构的新一代企业服务总线,传统基于SOA架构的ESB产品主要解决的数据集成和协议转换等基础功能,已完全不能满足基于微服务架构、混合云集成架构、跨组织、跨单位的总线解决方案。 而轻易云集成平台的每个产品线都是新一代的按照最新的互联网架构模式进行研发的产品线,能快速协助企业从传统的SOA架构转向微服务架构的服务总线解决方案。

