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

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

四化智造MES(WEB)接口明细
- API:wms/instockConfirm/queryConfirmRebackTaskDetail
- NAME:原材料/标准件采购查询(待采购)
- METHOD:GET
请求参数
| 接口字段 | 字段名称 | 预设值 | 描述 |
| pageNum | 页码 | 1 | 页码 |
| pageSize | 页数 | 100 | 页数 |
| rebackStartTime | 开始时间 | {{LAST_SYNC_TIME datetime}} | 开始时间 |
| rebackEndTime | 结束时间 | {{CURRENT_TIME datetime}} | 结束时间 |
| taskType | 采购类型 | 28 | 1:标准件2:委外 3:原材料 |
响应参数
| 接口字段 | 字段名称 | 预设值 | 描述 |
| mchId | mchId | | autoFillResponse |
| createBy | createBy | | _autoFillResponse |
| createName | createName | | autoFillResponse |
| checkLabel | checkLabel | | _autoFillResponse |
| createTime | createTime | | autoFillResponse |
| updateBy | updateBy | | _autoFillResponse |
| updateName | updateName | | autoFillResponse |
| updateTime | updateTime | | _autoFillResponse |
| remark | remark | | autoFillResponse |
| companyCode | companyCode | | _autoFillResponse |
| currentUserBy | currentUserBy | | autoFillResponse |
| currentUserName | currentUserName | | _autoFillResponse |
| currentTime | currentTime | | autoFillResponse |
| filtrationBomStatus | filtrationBomStatus | | _autoFillResponse |
| id | id | | autoFillResponse |
| backTaskUuid | backTaskUuid | | _autoFillResponse |
| backNumb | backNumb | | autoFillResponse |
| returnNumb | returnNumb | | _autoFillResponse |
| backWeight | backWeight | | autoFillResponse |
| connectUuid | connectUuid | | _autoFillResponse |
| bomNo | bomNo | | autoFillResponse |
| dispatchPrefix | dispatchPrefix | | _autoFillResponse |
| receiveMainTaskUuid | receiveMainTaskUuid | | autoFillResponse |
| status | status | | _autoFillResponse |
| receiveStatus | receiveStatus | | autoFillResponse |
| receiveNumb | receiveNumb | | _autoFillResponse |
| waitReceiveNumb | waitReceiveNumb | | autoFillResponse |
| currentReceiveNumb | currentReceiveNumb | | _autoFillResponse |
| warehouseUuid | warehouseUuid | | autoFillResponse |
| warehouseName | warehouseName | | _autoFillResponse |
| partNo | partNo | | autoFillResponse |
| gradeName | gradeName | | _autoFillResponse |
| quality | quality | | autoFillResponse |
| brand | brand | | _autoFillResponse |
| spec | spec | | autoFillResponse |
| picNo | picNo | | _autoFillResponse |
| picVersion | picVersion | | autoFillResponse |
| unitNo | unitNo | | _autoFillResponse |
| instockNumb | instockNumb | | autoFillResponse |
| processCode | processCode | | _autoFillResponse |
| classifyId | classifyId | | autoFillResponse |
| classifyName | classifyName | | _autoFillResponse |
| delFlag | delFlag | | autoFillResponse |
| returnReason | returnReason | | _autoFillResponse |
| ynReceive | ynReceive | | autoFillResponse |
| matterialType | matterialType | | _autoFillResponse |
| okNumb | okNumb | | autoFillResponse |
| ngNumb | ngNumb | | _autoFillResponse |
| hadBackNumb | hadBackNumb | | autoFillResponse |
| preProcessInstockType | preProcessInstockType | | _autoFillResponse |
| preProcessCode | preProcessCode | | autoFillResponse |
| currentProcessCode | currentProcessCode | | _autoFillResponse |
| currentProcessInstockType | currentProcessInstockType | | autoFillResponse |
| nextProcessCode | nextProcessCode | | _autoFillResponse |
| planDate | planDate | | autoFillResponse |
| businessNo | businessNo | | _autoFillResponse |
| warehouseAdministorId | warehouseAdministorId | | autoFillResponse |
| supplierName | supplierName | | _autoFillResponse |
| supplierUuid | supplierUuid | | autoFillResponse |
| taskType | taskType | | _autoFillResponse |
| cuttingSize | cuttingSize | | autoFillResponse |
| customerOrderNo | customerOrderNo | | _autoFillResponse |
| modeNo | modeNo | | autoFillResponse |
| outType | outType | | _autoFillResponse |
| serCode | serCode | | autoFillResponse |
| outContent | outContent | | _autoFillResponse |
| processContent | processContent | | autoFillResponse |
| locationUuid | locationUuid | | _autoFillResponse |
| locationNo | locationNo | | autoFillResponse |
| caiGouNumb | caiGouNumb | | _autoFillResponse |
| taskResource | taskResource | | autoFillResponse |
| patterNo | patterNo | | _autoFillResponse |
| oneWeight | oneWeight | | autoFillResponse |
| receiveWeight | receiveWeight | | _autoFillResponse |
| planWeight | planWeight | | autoFillResponse |
| projectCode | projectCode | | _autoFillResponse |
| stage | stage | | autoFillResponse |
| itemCategory | itemCategory | | _autoFillResponse |
| filePath | filePath | | autoFillResponse |
| fileName | fileName | | _autoFillResponse |
| fileSuffix | fileSuffix | | autoFillResponse |
| fileName2d | fileName2d | | _autoFillResponse |
| filePath2d | filePath2d | | autoFillResponse |
| fileName3d | fileName3d | | _autoFillResponse |
| filePath3d | filePath3d | | autoFillResponse |
| weight | weight | | _autoFillResponse |
| priceNumb | priceNumb | | autoFillResponse |
| instockConfirmNumb | instockConfirmNumb | | _autoFillResponse |
| processName | processName | | autoFillResponse |
| purchaseUnitNo | purchaseUnitNo | | _autoFillResponse |
| purchaseUnitName | purchaseUnitName | | autoFillResponse |
| instockNo | instockNo | | _autoFillResponse |
| caigouNo | caigouNo | | autoFillResponse |
| instockTime | instockTime | | _autoFillResponse |
| workNo | workNo | | autoFillResponse |
| urgentNeedNo | urgentNeedNo | | _autoFillResponse |
| bomContractNo | bomContractNo | | autoFillResponse |
| keyNo | keyNo | | _autoFillResponse |
| ifGiveaway | ifGiveaway | | autoFillResponse |
| orderNo | orderNo | | _autoFillResponse |
| sendCheckNo | sendCheckNo | | autoFillResponse |
| wholeDeliveryDate | wholeDeliveryDate | | _autoFillResponse |
| deliveryDate | deliveryDate | | autoFillResponse |
| customerPartNo | customerPartNo | | _autoFillResponse |
| shipmentPlace | shipmentPlace | | autoFillResponse |
| customerGradeName | customerGradeName | | _autoFillResponse |
| checkBy | checkBy | | autoFillResponse |
| checkName | checkName | | _autoFillResponse |
| ynCheck | ynCheck | | autoFillResponse |
| checkTime | checkTime | | _autoFillResponse |
| productName | productName | | autoFillResponse |
| productPartNo | productPartNo | | _autoFillResponse |
| caigouTime | caigouTime | | autoFillResponse |
| orderType | orderType | | _autoFillResponse |
| checkNumb | checkNumb | | autoFillResponse |
| rebackType | rebackType | | _autoFillResponse |
| backNo | backNo | | autoFillResponse |
| customerUuid | customerUuid | | _autoFillResponse |
| customerName | customerName | | autoFillResponse |
| customerFullName | customerFullName | | _autoFillResponse |
| supplierFullName | supplierFullName | | autoFillResponse |
| connectMainUuid | connectMainUuid | | _autoFillResponse |
| connectUuid | 明细行-id | | |
金蝶云星空接口明细
- 调用接口:batchSave
- 接口名称:采购退货新增
- 方法:POST
请求参数
| 字段 | 字段名称 | 类型 | 配置值 |
| FBillNo | 单据编号 | string | {{backNo}} |
| FDate | 退料日期 | string | {{createTime}} |
| FSupplierID | 供应商 | string | {{supplierUuid}} |
| FStockOrgId | 退料组织 | string | 1 |
| FSettleOrgId | 结算组织 | string | 1 |
| FSETTLETYPEID | 结算方式 | string | JSFS04_SYS |
| FSettleCurrId | 结算币别 | string | PRE001 |
| FPayOrgId | 付款组织 | string | 1 |
| FOwnerTypeIdHead | 货主类型 | string | BD_OwnerOrg |
| FOwnerIdHead | 货主 | string | 1 |
| F_UZMJ_Base | 第二级审批人 | string | YZ000176 |
| F_lyzx_Base1 | 质检员 | string | N0000911 |
| F_UZMJ_Text | 退料原因 | string | {{returnReason}} |
| F_UZMJ_Text1 | 是否核对 | string | 否 |
| FPURMRBENTRY | 明细信息 | array | details |
| FPURMRBENTRY.FMaterialId | 物料编码 | string | {{details.partNo}} |
| FPURMRBENTRY.FRMREALQTY | 实退数量 | string | {{details.returnNumb}} |
| FPURMRBENTRY.FStockId | 仓库 | string | F2313A |
| FPURMRBENTRY.FStockLocId | 仓位 | string | H-1 |
| FPURMRBENTRY.FLot | 批号 | string | _function case _findCollection find FIsBatchManage from 5e1c2a3d-1e33-32db-9fdc-9af29dadb99f where FNumber={{details.partNo}} endFind when true then '00' else '' end |
| FPURMRBENTRY.FTAXPRICE | 含税单价 | string | _findCollection find FTaxPrice from dfdc7780-aeb2-375a-89fd-ef3cac00cd48 where F_UZMJ_Text={{details.purRecordDetailUuid}} |
| FPURMRBENTRY.FSRCBillNo | 源单编号 | string | {{details.confrimNo}} |
| FPURMRBENTRY.FSRCBillTypeId | 源单类型 | string | STK_InStock |
| FPURMRBENTRY.FMtoNo | 计划跟踪号 | string | {{details.bomNo}} |
| FPURMRBENTRY.FGiveAway | 是否赠品 | string | findCollection find FGiveAway from ff38e800-ab43-3ca5-9629-cf20357dd861 where FBillNo={{confrimNo}} F_UZMJ_Text9={{details.connectUuid}} |
| FPURMRBENTRY.FORDERNO | 订单号 | string | {{details.caigouNo}} |
| FPURMRBENTRY.F_UZMJ_Text2 | MES入库明细行id | string | {{details.connectUuid}} |
| FPURMRBENTRY.FPURMRBENTRY_Link | 关联关系表 | array | |
| FPURMRBENTRY.FPURMRBENTRY_Link.FPURMRBENTRY_Link_FRuleId | 转换规则 | string | d5dd2b3d-57d5-45e2-b7e2-e53a04ebecaf |
| FPURMRBENTRY.FPURMRBENTRY_Link.FPURMRBENTRY_Link_FSTableName | 源单表 | string | T_STK_INSTOCKENTRY |
| FPURMRBENTRY.FPURMRBENTRY_Link.FPURMRBENTRY_Link_FSBillId | 源单内码 | string | _findCollection find FID from ff38e800-ab43-3ca5-9629-cf20357dd861 where FBillNo={{confrimNo}} |
| FPURMRBENTRY.FPURMRBENTRY_Link.FPURMRBENTRY_Link_FSId | 源单分录内码 | string | _findCollection find FInStockEntry_FEntryId from ff38e800-ab43-3ca5-9629-cf20357dd861 where FBillNo={{confrimNo}} F_UZMJ_Text9={{details.connectUuid}} |
| FPURMRBENTRY.FormId | 业务对象表单Id | string | PUR_MRB |
| FPURMRBENTRY.Operation | 执行的操作 | string | batchSave |
| FPURMRBENTRY.IsAutoSubmitAndAudit | 提交并审核 | bool | true |
| FPURMRBENTRY.IsVerifyBaseDataField | 验证基础资料 | bool | true |
| FPURMRBENTRY.SubSystemId | 系统模块 | string | 21 |
系统数据对接
将传统的统计分析转变为预测分析,从被动分析到主动分析,从非实时分析转变为实时分析,从结构化的数据变成多元化的数据。精准查询数据流同步状况,实时监管队列任务以及数据资产的有序管理。为业务赋能,降本增效,让企业能够更加合理的布局团队;结合业务需求实现与OA,CRM,WMS等系统之间的数据交流与同步,为企业定制自定义的数据管理方案,用技术拓展商业边界,为新业务、新部门提供成长空间。
