四化智造MES(WEB)与金蝶云星空对接集成原材料/标准件采购查询(待采购)打通采购订单新增
接通系统:四化智造MES(WEB)
MES系统是集成生产管理、品质管理、设备管理、BI数据中心、库存管理、工时管理、数据采集、看板管理等为一体的综合性生产管理系统。通过强调制造过程的透明化,帮助企业由粗放式向精益化管理模式升级。
写入目标:金蝶云星空
金蝶K/3Cloud(金蝶云星空)是移动互联网时代的新型ERP,是基于WEB2.0与云技术的新时代企业管理服务平台。金蝶K/3Cloud围绕着“生态、人人、体验”,旨在帮助企业打造面向新时代的生态互联与协同平台,围绕生态中的每个角色,提供随手可得的云服务,最终实现敏捷协同,智慧运营的企业运营新境界。整个产品采用SOA架构,完全基于BOS平台组建而成,业务架构上贯穿流程驱动与角色驱动思想,结合中国管理模式与中国管理实践积累,精细化支持企业财务管理、供应链管理、生产管理、供应链协同管理、人力资源管理等核心应用。技术架构上该产品采用平台化构建,支持跨数据库应用,支持本地部署、私有云部署与公有云部署三种部署方式,同时还在公有云上开放中国第一款基于ERP的协同开发云平台。任何一家使用金蝶K/3Cloud产品的企业,其拥有的是包含金蝶在内的众多基于同一个平台提供服务的IT服务伙伴。
接口方案配置
数据集成平台对应的配置四化智造MES(WEB)与金蝶云星空的对接只要三步就能完成两个系统之间的数据对接。第一步根据四化智造MES(WEB)的接口参数要求记录在轻易云集成平台。第二步配置四化智造MES(WEB)与金蝶云星空之间的字段对应关系(更多方案可借鉴轻易云数据集成社区论坛中找到相关方案信息)第三步完成方案的检查参数设置:传递时间、重试次数、是否启动、前置条件等上线运行。
四化智造MES(WEB)接口明细
- 接口:mbs/pur/record/purDetailList
- 接口名称:原材料/标准件采购查询(待采购)
- 接口方法:GET
请求参数
| 字段 | 名称 | 类型 | 描述 |
|---|---|---|---|
| pageNum | 页码 | string | 页码 |
| pageSize | 页数 | string | 页数 |
| BeginTime | 开始时间 | string | 开始时间 |
| EndTime | 结束时间 | string | 结束时间 |
| purType | 采购类型 | string | 1:标准件2:委外 3:原材料 |
| updateTime | 更新时间 | string | |
| filtrationBomStatus | 显示与影藏 | 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 |
| recordId | recordId | string | _autoFillResponse |
| detailId | detailId | string | _autoFillResponse |
| purId | purId | string | _autoFillResponse |
| coefficient | coefficient | string | _autoFillResponse |
| haveDeliveryNum | haveDeliveryNum | string | _autoFillResponse |
| supplierUuid | supplierUuid | string | _autoFillResponse |
| patterNo | patterNo | string | _autoFillResponse |
| customerDeliveryDate | customerDeliveryDate | string | _autoFillResponse |
| supplierName | supplierName | string | _autoFillResponse |
| supplierFullName | supplierFullName | string | _autoFillResponse |
| purRecordUuid | purRecordUuid | string | _autoFillResponse |
| purRecordDetailUuid | purRecordDetailUuid | string | _autoFillResponse |
| purTaskUuid | purTaskUuid | string | _autoFillResponse |
| takeApartDetailUuid | takeApartDetailUuid | string | _autoFillResponse |
| orderUuid | orderUuid | string | _autoFillResponse |
| bomUuid | bomUuid | string | _autoFillResponse |
| planBomUuid | planBomUuid | string | _autoFillResponse |
| partNo | partNo | string | _autoFillResponse |
| processName | processName | string | _autoFillResponse |
| gradeName | gradeName | string | _autoFillResponse |
| picNo | picNo | string | _autoFillResponse |
| quality | quality | string | _autoFillResponse |
| purType | purType | string | _autoFillResponse |
| outsourcedType | outsourcedType | string | _autoFillResponse |
| outProcessCode | outProcessCode | string | _autoFillResponse |
| heatTreatment | heatTreatment | string | _autoFillResponse |
| bomNo | bomNo | string | _autoFillResponse |
| keyNo | keyNo | string | _autoFillResponse |
| locationCode | locationCode | string | _autoFillResponse |
| barcode | barcode | string | _autoFillResponse |
| purchaseNum | purchaseNum | string | _autoFillResponse |
| purPrice | purPrice | string | _autoFillResponse |
| purTotalPrice | purTotalPrice | string | _autoFillResponse |
| reqDate | reqDate | string | _autoFillResponse |
| productUuid | productUuid | string | _autoFillResponse |
| outsourcedWay | outsourcedWay | string | _autoFillResponse |
| outsourcedWayList | outsourcedWayList | string | _autoFillResponse |
| locationUuid | locationUuid | string | _autoFillResponse |
| stockNum | stockNum | string | _autoFillResponse |
| deliveryDate | deliveryDate | string | _autoFillResponse |
| reqNo | reqNo | string | _autoFillResponse |
| deptName | deptName | string | _autoFillResponse |
| totalDemandNum | totalDemandNum | string | _autoFillResponse |
| productNo | productNo | string | _autoFillResponse |
| productName | productName | string | _autoFillResponse |
| orderNo | orderNo | string | _autoFillResponse |
| orderType | orderType | string | _autoFillResponse |
| customerName | customerName | string | _autoFillResponse |
| projectCode | projectCode | string | _autoFillResponse |
| purNo | purNo | string | _autoFillResponse |
| purReason | purReason | string | _autoFillResponse |
| purStatus | purStatus | string | _autoFillResponse |
| backStatus | backStatus | string | _autoFillResponse |
| customerOrderNo | customerOrderNo | string | _autoFillResponse |
| deptId | deptId | string | _autoFillResponse |
| receiveBy | receiveBy | string | _autoFillResponse |
| receiveTime | receiveTime | string | _autoFillResponse |
| receiveName | receiveName | string | _autoFillResponse |
| takeApartType | takeApartType | string | _autoFillResponse |
| spec | spec | string | _autoFillResponse |
| brand | brand | string | _autoFillResponse |
| materialInfoNo | materialInfoNo | string | _autoFillResponse |
| craftId | craftId | string | _autoFillResponse |
| rawPurchaseWeight | rawPurchaseWeight | string | _autoFillResponse |
| rawMaterialInfoNo | rawMaterialInfoNo | string | _autoFillResponse |
| purTaskType | purTaskType | string | _autoFillResponse |
| ifMold | ifMold | string | _autoFillResponse |
| taxPrice | taxPrice | string | _autoFillResponse |
| taxTotalPrice | taxTotalPrice | string | _autoFillResponse |
| untaxedPrice | untaxedPrice | string | _autoFillResponse |
| untaxedTotalPrice | untaxedTotalPrice | string | _autoFillResponse |
| taxRate | taxRate | string | _autoFillResponse |
| customerPartNo | customerPartNo | string | _autoFillResponse |
| stockTime | stockTime | string | _autoFillResponse |
| purchaseUnitNo | purchaseUnitNo | string | _autoFillResponse |
| purchaseUnitName | purchaseUnitName | string | _autoFillResponse |
| returnsNumber | returnsNumber | string | _autoFillResponse |
| replaceModeNo | replaceModeNo | string | _autoFillResponse |
| secondPurType | secondPurType | string | _autoFillResponse |
| isSecondPur | isSecondPur | string | _autoFillResponse |
| checkedNum | checkedNum | string | _autoFillResponse |
| processingFee | processingFee | string | _autoFillResponse |
| itemCategory | itemCategory | string | _autoFillResponse |
| stage | stage | string | _autoFillResponse |
| projectName | projectName | string | _autoFillResponse |
| rawMaterialInfo | rawMaterialInfo | string | _autoFillResponse |
| rawPartNo | rawPartNo | string | _autoFillResponse |
| rawGradeName | rawGradeName | string | _autoFillResponse |
| rawSpec | rawSpec | string | _autoFillResponse |
| rawBrand | rawBrand | string | _autoFillResponse |
| rawQuality | rawQuality | string | _autoFillResponse |
| rawQuantity | rawQuantity | string | _autoFillResponse |
| nuclearPriceTaskUuid | nuclearPriceTaskUuid | string | _autoFillResponse |
| detailBackStatus | detailBackStatus | string | _autoFillResponse |
| unitName | unitName | string | _autoFillResponse |
| processingType | processingType | string | _autoFillResponse |
| beginReqDate | beginReqDate | string | _autoFillResponse |
| endReqDate | endReqDate | string | _autoFillResponse |
| beginReceiveTime | beginReceiveTime | string | _autoFillResponse |
| endReceiveTime | endReceiveTime | string | _autoFillResponse |
| beginReplyTime | beginReplyTime | string | _autoFillResponse |
| endReplyTime | endReplyTime | string | _autoFillResponse |
| isAbnormal | isAbnormal | string | _autoFillResponse |
| bomVersion | bomVersion | string | _autoFillResponse |
| orderNum | orderNum | string | _autoFillResponse |
| workNo | workNo | string | _autoFillResponse |
| bomContractNo | bomContractNo | string | _autoFillResponse |
| urgentNeedNo | urgentNeedNo | string | _autoFillResponse |
| bomRemark | bomRemark | string | _autoFillResponse |
| distributeNum | distributeNum | string | _autoFillResponse |
| distributeDate | distributeDate | string | _autoFillResponse |
| purRevokeUuid | purRevokeUuid | string | _autoFillResponse |
| businessUuid | businessUuid | 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 |
| changeRemark | changeRemark | string | _autoFillResponse |
| changeColor | changeColor | string | _autoFillResponse |
| invTypeName | invTypeName | string | _autoFillResponse |
| rawUnitName | rawUnitName | string | _autoFillResponse |
| bomStatus | bomStatus | string | _autoFillResponse |
| bomClose | bomClose | string | _autoFillResponse |
| shipmentPlace | shipmentPlace | string | _autoFillResponse |
| realName | realName | string | _autoFillResponse |
| procuredNum | procuredNum | string | _autoFillResponse |
| taskPurType | taskPurType | string | _autoFillResponse |
| moldNo | moldNo | string | _autoFillResponse |
| purCreateName | purCreateName | string | _autoFillResponse |
| uploadFileTime | uploadFileTime | string | _autoFillResponse |
| replyTime | replyTime | string | _autoFillResponse |
| beginPurchaseTime | beginPurchaseTime | string | _autoFillResponse |
| endPurchaseTime | endPurchaseTime | string | _autoFillResponse |
| dispatchNo | dispatchNo | string | _autoFillResponse |
| orderGradeName | orderGradeName | string | _autoFillResponse |
| orderPartNo | orderPartNo | string | _autoFillResponse |
| parentMaterialInfoNo | parentMaterialInfoNo | string | _autoFillResponse |
| closeReason | closeReason | string | _autoFillResponse |
| closeUser | closeUser | string | _autoFillResponse |
| closeTime | closeTime | string | _autoFillResponse |
| revokeReason | revokeReason | string | _autoFillResponse |
| revokeName | revokeName | string | _autoFillResponse |
| revokeTime | revokeTime | string | _autoFillResponse |
| detailStatus | detailStatus | string | _autoFillResponse |
| customerAndUrgent | customerAndUrgent | string | _autoFillResponse |
| orderNoBom | orderNoBom | string | _autoFillResponse |
| singleSetNum | singleSetNum | string | _autoFillResponse |
| receiveNum | receiveNum | string | _autoFillResponse |
| minPurchaseNum | minPurchaseNum | string | _autoFillResponse |
| purRecordDetailUuid | 四化明细行id | string |
金蝶云星空接口明细
- API:batchSave
- NAME:采购订单新增
- METHOD:POST
请求参数
| 接口字段 | 字段名称 | 预设值 | 描述 |
|---|---|---|---|
| FBillNo | 单据编号 | {{purNo}} | |
| FDate | 采购日期 | 2023-01-01 | |
| FPurchaseOrgId | 采购组织 | 1 | |
| FSupplierId | 供应商 | {{supplierUuid}} | |
| FPurchaserGroupId | 采购组 | ||
| FPurchaserId | 采购员 | ||
| FBillTypeID | 单据类型 | ZZJPO | |
| FBusinessType | 业务类型 | CG | |
| FPOOrderEntry | 明细信息 | details | |
| FPOOrderEntry.FMaterialId | 物料编码 | {{details.partNo}} | |
| FPOOrderEntry.FQty | 采购数量 | {{details.purchaseNum}} | |
| FPOOrderEntry.FEntryDiscountRate | 折扣率% | ||
| FPOOrderEntry.FEntryTaxRate | 税率% | _function {{details.taxRate}}*100 | |
| FPOOrderEntry.FTaxNetPrice | 净价 | ||
| FPOOrderEntry.FEntryAmount | 金额 | ||
| FPOOrderEntry.FAllAmount | 价税合计 | ||
| FPOOrderEntry.FEntryNote | 备注 | ||
| FPOOrderEntry.FTaxPrice | 含税单价 | _function case '{{details.purPrice}}' when '0' then '0.01' else '{{details.purPrice}}' end | |
| FPOOrderEntry.FEntryTaxAmount | 税额 | ||
| FPOOrderEntry.FRowCost | 行费用 | ||
| FPOOrderEntry.FDeliveryDate | 交货日期 | 2023-01-01 | |
| FPOOrderEntry.FMtoNo | 计划跟踪号 | {{details.bomNo}} | |
| FPOOrderEntry.FGiveAway | 是否赠品 | _function case '{{details.ifFreebie}}' when '0' then 'true' when '1' then 'false' end | true false |
| FPOOrderEntry.F_lyzx_Text4 | 模号 | {{details.patterNo}} | |
| FPOOrderEntry.F_lyzx_Text5 | 阶段 | {{details.stage}} | |
| FPOOrderEntry.F_lyzx_Text6 | 客户订单号 | {{details.customerOrderNo}} | |
| FPOOrderEntry.F_lyzx_Text7 | 紧急需求单号 | {{details.urgentNeedNo}} | |
| FPOOrderEntry.F_lyzx_Text8 | 发包单号 | {{details.bomContractNo}} | |
| FPOOrderEntry.F_lyzx_Text9 | 工令单号 | {{details.workNo}} | |
| FPOOrderEntry.F_lyzx_Text10 | 收货城市 | {{details.shipmentPlace}} | |
| FPOOrderEntry.F_lyzx_Text3 | 订单类型 | _function case '{{details.orderType}}' when '1' then '客户订单' when '2' then '备货订单' when '3' then '异常订单' when '10' then '返修订单' when '11' then '无po订单' when '13' then '备货转销售订单' when '14' then '售后维修' when '12' then '免费打样' end | |
| FPOOrderEntry.F_UZMJ_Text | 四化明细行id | {{details.purRecordDetailUuid}} | |
| FPOOrderEntry.F_UZMJ_Text8 | 订单号 | {{details.orderNo}} | |
| FPOOrderEntry.F_UZMJ_Text1 | 专案 | {{details.projectName}} | |
| FPOOrderEntry.F_UZMJ_Text2 | 派工案号 | {{details.bomNo}} | |
| FPOOrderEntry.F_UZMJ_Text17 | 件号 | {{details.picNo}} | |
| FPOOrderEntry.F_UZMJ_Text16 | 回货状态 | _function case '{{details.detailBackStatus}}' when '1' then '未回货' when '2' then '部分回货' when '3' then '已回货' when '4' then '已送货' end | |
| FPOOrderEntry.F_UZMJ_Text26 | 条码 | {{details.barcode}} | |
| FPOOrderEntry.F_UZMJ_Text15 | 业务备注 | {{details.bomRemark}} | |
| FPOOrderEntry.F_UZMJ_Text44 | 客户 | {{details.customerName}} | |
| FPOOrderEntry.F_UZMJ_Text13 | 模号版次 | {{details.bomVersion}} | |
| FPOOrderEntry.F_UZMJ_Date3 | 客户交期 | {{details.customerDeliveryDate}} | |
| FPOOrderEntry.F_UZMJ_Date2 | 整套交期 | ||
| FPOOrderEntry.F_UZMJ_Date4 | 分配时间 | {{details.distributeDate}} | |
| FPOOrderEntry.F_UZMJ_Text14 | 加工类型 | 整套 | |
| FPOOrderEntry.F_UZMJ_Qty7 | 分配数 | {{details.distributeNum}} | |
| FPOOrderEntry.F_UZMJ_Text11 | 产品名称 | {{details.gradeName}} | |
| FPOOrderEntry.F_UZMJ_Text42 | 采购申请人 | {{details.createName}} | |
| FPOOrderEntry.F_sh_id | 四化采购订单id | {{purRecordUuid}} | |
| FPOOrderEntry.F_UZMJ_Text18 | 是否核对 | 否 | |
| FPOOrderEntry.F_UZMJ_Text50 | MES订单类型 | 整套采购 | |
| FPOOrderEntry.FormId | 业务对象表单Id | PUR_PurchaseOrder | 必须填写金蝶的表单ID如:PUR_PurchaseOrder |
| FPOOrderEntry.Operation | 执行的操作 | BatchSave | |
| FPOOrderEntry.IsAutoSubmitAndAudit | 提交并审核 | true | |
| FPOOrderEntry.IsVerifyBaseDataField | 验证基础资料 | true | 是否验证所有的基础资料有效性,布尔类,默认false(非必录) |
系统集成总览
通过轻易云集成平台系列产品线可以协助企业轻易快捷的构建基于微服务架构的新一代企业服务总线,传统基于SOA架构的ESB产品主要解决的数据集成和协议转换等基础功能,已完全不能满足基于微服务架构、混合云集成架构、跨组织、跨单位的总线解决方案。 而轻易云集成平台的每个产品线都是新一代的按照最新的互联网架构模式进行研发的产品线,能快速协助企业从传统的SOA架构转向微服务架构的服务总线解决方案。