四化智造MES(WEB)和金蝶云星空集成接口设计

对接系统四化智造MES(WEB)
“MES助力智能制造过程控制:MES管理生产订单的整个生产流程,通过对生产过程的所有突发事件实时监控,自动纠正生产过程中的错误或提供决策支持,以实现生产调度要求;在出现异常或与生产计划偏离太大时,及时反馈相关人员使其采取相应的措施。任务派工:MES在生产计划完成后,自动生成任务派工单,根据生产设备实际加工能力的变化,制定并优化生产的具体过程及各设备的详细操作顺序
对接系统:金蝶云星空
金蝶K/3Cloud在总结百万家客户管理最佳实践的基础上,提供了标准的管理模式;通过标准的业务架构:多会计准则、多币别、多地点、多组织、多税制应用框架等,有效支持企业的运营管理;K/3Cloud提供了标准的业务建模:35种标准ERP领域模型、1046种模型元素、21243种模型元素属性组合,288个业务服务构件,让企业及伙伴可快速构建出行业化及个性化的应用。
数据对接方案
集成方案是整个轻易云集成平台的核心,每一个集成方案代表一种业务的对接策略(对接方案借鉴可以在轻易云系统数据集成交流社区bbs.qeasy.cloud 中找到相关信息),用户可以根据业务的不同新建多个不同规则的集成方案。比如:采购订单同步,线上销售出库同步,线下销售出库同步。一个集成方案必须要配置源系统:四化智造MES(WEB),源系统 API:原材料/标准件采购查询(待采购),目标系统:金蝶云星空,目标系统 API采购退货新增。在新增集成方案之前需要确定两个系统的连接器都已经配置完成。通过该系统数据集成平台的能力,可以集成的应用系统包括CRM、ERP、钉钉、企业微信、MES、飞书、用友、金蝶等 177 个不同应用系统之间的无代码接口集成,并且每周都在增加新的应用系统接入。

四化智造MES(WEB)接口明细
- 接口:wms/instockConfirm/queryConfirmRebackTaskDetail
- 接口名称:原材料/标准件采购查询(待采购)
- 接口方法:GET
请求参数
| 字段 | 名称 | 类型 |
| rebackEndTime | 结束时间 | string |
| pageSize | 页数 | string |
| rebackStartTime | 开始时间 | string |
| pageNum | 页码 | string |
| taskType | 采购类型 | 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 |
| id | id | string | autoFillResponse |
| backTaskUuid | backTaskUuid | string | _autoFillResponse |
| backNumb | backNumb | string | autoFillResponse |
| returnNumb | returnNumb | string | _autoFillResponse |
| backWeight | backWeight | string | autoFillResponse |
| connectUuid | connectUuid | string | _autoFillResponse |
| bomNo | bomNo | string | autoFillResponse |
| dispatchPrefix | dispatchPrefix | string | _autoFillResponse |
| receiveMainTaskUuid | receiveMainTaskUuid | string | autoFillResponse |
| status | status | string | _autoFillResponse |
| receiveStatus | receiveStatus | string | autoFillResponse |
| receiveNumb | receiveNumb | string | _autoFillResponse |
| waitReceiveNumb | waitReceiveNumb | string | autoFillResponse |
| currentReceiveNumb | currentReceiveNumb | string | _autoFillResponse |
| warehouseUuid | warehouseUuid | string | autoFillResponse |
| warehouseName | warehouseName | 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 |
| classifyId | classifyId | string | autoFillResponse |
| classifyName | classifyName | string | _autoFillResponse |
| delFlag | delFlag | string | autoFillResponse |
| returnReason | returnReason | string | _autoFillResponse |
| ynReceive | ynReceive | string | autoFillResponse |
| matterialType | matterialType | string | _autoFillResponse |
| okNumb | okNumb | string | autoFillResponse |
| ngNumb | ngNumb | 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 |
| businessNo | businessNo | string | _autoFillResponse |
| warehouseAdministorId | warehouseAdministorId | string | autoFillResponse |
| supplierName | supplierName | string | _autoFillResponse |
| supplierUuid | supplierUuid | string | autoFillResponse |
| taskType | taskType | string | _autoFillResponse |
| cuttingSize | cuttingSize | string | autoFillResponse |
| customerOrderNo | customerOrderNo | string | _autoFillResponse |
| modeNo | modeNo | string | autoFillResponse |
| outType | outType | string | _autoFillResponse |
| serCode | serCode | string | autoFillResponse |
| outContent | outContent | string | _autoFillResponse |
| processContent | processContent | string | autoFillResponse |
| locationUuid | locationUuid | string | _autoFillResponse |
| locationNo | locationNo | string | autoFillResponse |
| caiGouNumb | caiGouNumb | string | _autoFillResponse |
| taskResource | taskResource | string | autoFillResponse |
| patterNo | patterNo | string | _autoFillResponse |
| oneWeight | oneWeight | string | autoFillResponse |
| receiveWeight | receiveWeight | string | _autoFillResponse |
| planWeight | planWeight | 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 |
| weight | weight | string | _autoFillResponse |
| priceNumb | priceNumb | string | autoFillResponse |
| instockConfirmNumb | instockConfirmNumb | string | _autoFillResponse |
| processName | processName | string | autoFillResponse |
| purchaseUnitNo | purchaseUnitNo | string | _autoFillResponse |
| purchaseUnitName | purchaseUnitName | string | autoFillResponse |
| instockNo | instockNo | 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 |
| productName | productName | string | autoFillResponse |
| productPartNo | productPartNo | string | _autoFillResponse |
| caigouTime | caigouTime | string | autoFillResponse |
| orderType | orderType | string | _autoFillResponse |
| checkNumb | checkNumb | string | autoFillResponse |
| rebackType | rebackType | string | _autoFillResponse |
| backNo | backNo | string | autoFillResponse |
| customerUuid | customerUuid | string | _autoFillResponse |
| customerName | customerName | string | autoFillResponse |
| customerFullName | customerFullName | string | _autoFillResponse |
| supplierFullName | supplierFullName | string | autoFillResponse |
| connectMainUuid | connectMainUuid | string | _autoFillResponse |
| connectUuid | 明细行-id | string | |
金蝶云星空接口明细
- API:batchSave
- NAME:采购退货新增
- METHOD:POST
请求参数
| 接口字段 | 名称 | 预设值 |
| FBillNo | 单据编号 | {{backNo}} |
| FDate | 退料日期 | 2023-01-01 |
| FSupplierID | 供应商 | {{supplierUuid}} |
| FStockOrgId | 退料组织 | 1 |
| FSettleOrgId | 结算组织 | 1 |
| FSETTLETYPEID | 结算方式 | JSFS04_SYS |
| FSettleCurrId | 结算币别 | PRE001 |
| FPayOrgId | 付款组织 | 1 |
| FOwnerTypeIdHead | 货主类型 | BD_OwnerOrg |
| FOwnerIdHead | 货主 | 1 |
| F_UZMJ_Base | 第二级审批人 | YZ000436 |
| F_lyzx_Base1 | 质检员 | N0000911 |
| F_UZMJ_Text | 退料原因 | {{returnReason}} |
| F_UZMJ_Text1 | 是否核对 | 否 |
| FPURMRBENTRY | 明细信息 | details |
| FPURMRBENTRY.FMaterialId | 物料编码 | {{details.partNo}} |
| FPURMRBENTRY.FRMREALQTY | 实退数量 | {{details.returnNumb}} |
| FPURMRBENTRY.FStockId | 仓库 | F2313A |
| FPURMRBENTRY.FStockLocId | 仓位 | H-1 |
| FPURMRBENTRY.FLot | 批号 | _function case _findCollection find FIsBatchManage from 80f3f76d-b3eb-3e61-96cd-169790878567 where FNumber={{details.partNo}} endFind when true then '00' else '' end |
| FPURMRBENTRY.FTAXPRICE | 含税单价 | _findCollection find FTaxPrice from 24e696ed-eba8-3a76-ae50-08b496fb4093 where F_UZMJ_Text={{details.purRecordDetailUuid}} |
| FPURMRBENTRY.FSRCBillNo | 源单编号 | {{details.confrimNo}} |
| FPURMRBENTRY.FSRCBillTypeId | 源单类型 | STK_InStock |
| FPURMRBENTRY.FMtoNo | 计划跟踪号 | {{details.bomNo}} |
| FPURMRBENTRY.FGiveAway | 是否赠品 | findCollection find FGiveAway from 0833bd60-7a9a-3573-ba30-f121da4e820a where FBillNo={{confrimNo}} F_UZMJ_Text9={{details.connectUuid}} |
| FPURMRBENTRY.FORDERNO | 订单号 | {{details.caigouNo}} |
| FPURMRBENTRY.F_UZMJ_Text2 | MES入库明细行id | {{details.connectUuid}} |
| FPURMRBENTRY.FPURMRBENTRY_Link | 关联关系表 | |
| FPURMRBENTRY.FPURMRBENTRY_Link.FPURMRBENTRY_Link_FRuleId | 转换规则 | d5dd2b3d-57d5-45e2-b7e2-e53a04ebecaf |
| FPURMRBENTRY.FPURMRBENTRY_Link.FPURMRBENTRY_Link_FSTableName | 源单表 | T_STK_INSTOCKENTRY |
| FPURMRBENTRY.FPURMRBENTRY_Link.FPURMRBENTRY_Link_FSBillId | 源单内码 | _findCollection find FID from 0833bd60-7a9a-3573-ba30-f121da4e820a where FBillNo={{confrimNo}} |
| FPURMRBENTRY.FPURMRBENTRY_Link.FPURMRBENTRY_Link_FSId | 源单分录内码 | _findCollection find FInStockEntry_FEntryId from 0833bd60-7a9a-3573-ba30-f121da4e820a where FBillNo={{confrimNo}} F_UZMJ_Text9={{details.connectUuid}} |
| FPURMRBENTRY.FormId | 业务对象表单Id | PUR_MRB |
| FPURMRBENTRY.Operation | 执行的操作 | batchSave |
| FPURMRBENTRY.IsAutoSubmitAndAudit | 提交并审核 | true |
| FPURMRBENTRY.IsVerifyBaseDataField | 验证基础资料 | false |
| FPURMRBENTRY.SubSystemId | 系统模块 | 21 |
数据对接价值
当企业规模逐渐增大时,作为支撑业务运营的IT建设也变得越来越重要,不过往往企业的IT建设过程中会发现某一家软件供应商基本不能完全覆盖企业所有的业务运营流程,这样的结果就是,企业上的IT系统很多很全,从ERP到HR、CRM、PDM、OA等,貌似所有的业务都覆盖到了,但实际上因为这些系统的不集成,而形成了企业很多新的信息孤岛,非常不利于企业的后续的管理和战略发展。从现今和往后的发展趋势来看,也不可避免会遇到上述问题,毕竟企业经营的多样化,并不是所有的业务都能在一个系统中完成,所以我们必须在产品架构上支持更好的与外部系统进行协同。通过轻易云集成平台统一的API管理平台,对API进行显性化、可视化,使所有API服务成为企业的数字资产,提升API利用率,发挥业务系统价值,实现企业IT资产的可插拔、可复用、可组成。
