旺店通·企业奇门与用友BIP对接集成查询出库单管理打通其他出库单保存

数据源系统:旺店通·企业奇门
慧策(原旺店通)是一家技术驱动型智能零售服务商,基于云计算PaaS、SaaS模式,以一体化智能零售解决方案,帮助零售企业数字化智能化升级,实现企业规模化发展。
写入目标:用友BIP
YonBIP用友商业创新平台,是用友在数字经济时代面向成长型、大型企业及巨型企业,融合了先进且高可用技术平台和公共与关键商业应用与服务,支撑和运行客户的商业创新(业务创新、管理变革),并且具有数字化、智能化、高弹性、安全可信、社会化、全球化、平台化、生态化等特征的综合型服务平台。
数据接口配置
通过轻易云系统数据集成平台新增创建集成方案,通过轻易云的方案市场可以一键复制,并且可以借鉴其他的方案配置完成方案制作,方案制作只需要两步,第一步先确定好对应的数据来源;源系统:旺店通·企业奇门接口:查询出库单管理通过请求调度者配置对应的请求参数即可获取到对应的数据。目标系统:用友BIP接口:其他出库单保存,通过写入调度者匹配获取到的数据和写入的映射关系,即可自动生成符合目标系统:用友BIP写入的数据自动产生写入队列,通过运行概况,系统会自动帮你诊断方案的运行情况。实时监控到方案的运行情况

旺店通·企业奇门接口明细
- API:wdt.stockout.order.query
- NAME:查询出库单管理
- METHOD:POST
请求参数
接口字段 | 字段名称 | 预设值 | 描述 |
start_time | 开始时间 | {{LAST_SYNC_TIME datetime}} | 按最后修改时间增量获取数据,start_time作为开始时间,格式:yyyy-MM-dd HH:mm:ss |
end_time | 结束时间 | {{CURRENT_TIME datetime}} | 按最后修改时间增量获取数据,end_time作为结束时间,格式:yyyy-MM-dd HH:mm:ss |
order_type | 出库单类型 | 5 | 2调拨出库,3采购退货出库,4盘亏出库,5生产出库,7其他出库,8多发出库,9纠错出库,10保修配件出库,11初始化出库,12jit拣货出库,13委外出库 |
status | 出库单状态 | 110 | 出库单状态5:已取消,50:待审核,55:已审核,95:已发货,110:已完成(默认查已发货已完成单据),113:异常发货 |
warehouse_no | 仓库编号 | | 代表仓库所有属性的唯一编码,用于仓库区分,ERP内支持自定义(ERP仓库界面设置)(不支持一次推送多个仓库编号) |
src_order_no | 源单号 | | 源单号 |
stockout_no | 出库单号 | | 出库单号,传该字段可以不传时间 |
page_size | 分页大小 | {{PAGINATION_PAGE_SIZE}} | 每页返回的数据条数,输入值范围1100,不传本参数,输入值默认为40,使用举例单击这里 |
page_no | 页号 | {{PAGINATION_START_PAGE}} | 不传值默认从0页开始 |
响应参数
接口字段 | 字段名称 | 预设值 | 描述 |
stockout_id | 出库单主键id | | 出库单主键id |
order_no | 出库单号 | | 出库单号 |
src_order_no | 源单号 | | 源单号,上层单据的业务单号 |
warehouse_no | 仓库编号 | | 代表仓库所有属性的唯一编码,用于仓库区分,ERP内支持自定义(ERP仓库界面设置),用于获取指定仓库数据信息 |
status | 状态 | | 出库单状态 |
consign_time | 出库时间 | | 出库时间,格式:yyyy-MM-dd HH:mm:ss |
order_type | 出库单类型 | | 出库单类型 |
order_type_name | 出库单类型名称 | | 出库单类型名称 |
subtype | 出库单子类型 | | 出库单子类型 |
stockout_reason | 出库原因 | | 出库原因 |
goods_count | 数量 | | 货品数量 |
goods_total_amount | 货品总销售金额 | | 货品总销售金额 |
goods_total_cost | 货品总成本金额 | | 货品总成本金额 |
post_fee | 邮费 | | 邮费 |
logistics_no | 物流单号 | | 物流单号(该出库单的运单号) |
package_fee | 包装费 | | 包装费 |
receiver_name | 收件人 | | 该字段已废弃 |
receiver_country | 国家 | | 国家 |
receiver_province | 省份 | | 省份 |
receiver_city | 城市 | | 城市 |
receiver_district | 地区 | | 地区 |
receiver_address | 详细地址 | | 该字段已废弃 |
receiver_mobile | 收件人移动电话 | | 该字段已废弃 |
receiver_telno | 收件人固定电话 | | 该字段已废弃 |
receiver_zip | 邮编 | | 邮编 |
weight | 重量 | | 重量 |
remark | 备注 | | 备注 |
outer_no | 外部单号 | | 外部单号 |
operator_name | 操作员姓名 | | 操作员姓名 |
logistics_type | 物流方式 | | 响应值为代表物流方式的数字,数字对应的物流方式名称单击这里 |
logistics_code | 物流编号 | | 代表物流所有属性的唯一编码,用于物流区分,ERP内支持自定义(ERP物流界面设置) |
logistics_name | 物流公司名称 | | erp对应的物流公司名称 |
details_list | Sku详情节点 | | 响应参数的2级数据节点,包含当出库单货品属性信息的数据节点,节点下数据字段详见下述"details_list" |
details_list.stockout_id | 出库单主键id | | 出库单主键id |
details_list.rec_id | 出库单明细id | | 出库单明细id |
details_list.spec_no | 商家编码 | | 代表所单品(sku)所有属性的唯一编码,用于获取系统单品的数据,SKU概念介绍,单击这里 |
details_list.goods_count | 货品数量 | | 货品数量 |
details_list.sell_price | 销售价 | | 销售价 |
details_list.brand_no | 品牌编号 | | 品牌编号 |
details_list.brand_name | 品牌名称 | | 品牌名称 |
details_list.goods_name | 货品名称 | | 货品名称 |
details_list.goods_no | 货品编号 | | 代表SPU所有属性的唯一编号,用于获取系统货品的数据,SPU概念介绍,单击这里 |
details_list.spec_name | 规格名称 | | 规格名称 |
details_list.spec_code | 规格编号 | | 规格编号 |
details_list.cost_price | 成本价 | | 成本价 |
details_list.total_amount | 总销售金额 | | 总销售金额 |
details_list.weight | 重量 | | 重量 |
details_list.remark | 备注 | | 备注 |
details_list.goods_unit | 单位 | | 货品单位 |
details_list.batch_no | 批次号 | | 批次号 |
details_list.batch_remark | 批次备注 | | 批次备注 |
details_list.expire_date | 有效期 | | 有效期,格式:yyyy-MM-dd HH:mm:ss |
details_list.position_list | 货位列表节点 | | 响应参数的3级数据节点,节点下数据字段详见下述“position_list”列表 |
details_list.position_list.position_id | 货位ID | | 货位ID |
details_list.position_list.position_no | 货位编号 | | 货位编号 |
details_list.position_list.position_goods_count | 货位出库数量 | | 货位出库数量 |
details_list.position_list.stockout_order_detail_id | 出库单明细id | | 出库单明细id |
details_list.position_list.rec_id | 货位主键id | | 货位主键id |
details_list.position_list.stock_spec_detail_id | 入库单号明细id | | 入库单号明细id |
details_list.position_list.stockin_detail_id | 入库单明细id | | 入库单明细id |
details_list.position_list.batch_id | 批次id | | 批次id |
details_list.position_list.batch_no | 批次号 | | 批次号 |
details_list.position_list.cost_price | 成本价 | | 成本价 |
details_list.position_list.modified | 最后更新时间 | | 最后修改时间,格式:yyyy-MM-dd HH:mm:ss |
details_list.position_list.v_stock_spec_detail_id | 先进先出计价用 | | 先进先出计价用 |
details_list.position_list.expire_date | 有效期 | | 有效期,格式:yyyy-MM-dd HH:mm:ss |
details_list.position_list.created | 创建时间 | | 创建时间,格式:yyyy-MM-dd HH:mm:ss |
用友BIP接口明细
- API:/yonbip/scm/othoutrecord/single/save
- NAME:其他出库单保存
- METHOD:POST
请求参数
接口字段 | 字段名称 | 预设值 | 描述 |
resubmitCheckKey | 保证请求的幂等性 | {{order_no}} | 该值由客户端生成 |
code | 单据编号 | {{order_no}} | 以系统编码规则配置为准,系统设置为手工编号时必输,系统设置为自动编号时非必输;更新操作时必填 例:QTCK0000001 |
defines!define1 | defines!define1 | {{outer_no}} | 以系统编码规则配置为准,系统设置为手工编号时必输,系统设置为自动编号时非必输;更新操作时必填 例:QTCK0000001 |
org | 库存组织 | findCollection find org_code from 4f73f755-1c4f-33e6-b5a1-7e3b8d894800 where code={{warehouse_no}} | 传入id或code 例:wzyqzn |
accountOrg | 会计主体 | _findCollection find org_code from 4f73f755-1c4f-33e6-b5a1-7e3b8d894800 where code={{warehouse_no}} | 传入id或code 例:wzyqzn |
vouchdate | 单据日期 | {{consign_time}} | 日期格式:yyyy-MM-dd 例:2021-03-05 |
bustype | 交易类型 | 003 | 传入id或code 例:A10001 |
store | 门店 | | 传入id或code 例:store_code_01 |
warehouse | 仓库 | {{warehouse_no}} | 传入id或code 例:ck01 |
department | 部门 | | 传入id或code 例:dept01 |
operator | 业务员 | | 传入id或code 例:operator_01 |
stockMgr | 库管员 | | 传入id或code 例:operator_02 |
memo | 备注 | {{remark}} | 例:单子备注 |
status | 操作标识 | Insert | Insert:新增、Update:更新 |
srcBillType | 来源上级单据类型 | | 有来源时必填:出库申请退库:applyoutToOthoutrecordReturn;出库申请出库:applyoutToOthoutrecord |
othOutRecords | 其他出库单子表 | details_list | [st.othoutrecord.OthOutRecords] |
othOutRecords.product | 物料 | {{details_list.goods_no}} | 传入id或code 例:PD0817000001 |
othOutRecords.product_cName | 物料名称 | {{details_list.goods_name}} | 传入id或code 例:PD0817000001 |
othOutRecords.productsku | 物料SKU | {{details_list.spec_no}} | 例:PD08170000010004 |
othOutRecords.batchno | 批次号,批次管理商品必填 | | 传入id或code 例:SH01 |
othOutRecords.producedate | 生产日期 | | 例:2020-09-24 00:00:00 |
othOutRecords.invaliddate | 有效期至 | | 例:2020-10-24 00:00:00 |
othOutRecords.contactsQuantity | 应发数量 | 1 | 例:10 |
othOutRecords.contactsPieces | 应发件数 | 1 | 例:10 |
othOutRecords.qty | 数量 | {{details_list.goods_count}} | 有来源时:出库时正数,退库时负数 例:10 |
othOutRecords.subQty | 件数 | {{details_list.goods_count}} | 例:10 |
othOutRecords.unit | 主计量单位,传入id或code | _findCollection find code from f9eedcc9-f1ff-31c0-9081-6aee9cf21740 where name={{goods_unit}} | 例:KGM |
othOutRecords.invExchRate | 换算率 | 1 | 例:1 |
othOutRecords.unitExchangeType | 库存换算率换算方式 | | 例:0 |
othOutRecords.stockUnitId | 库存单位 | findCollection find code from f9eedcc9-f1ff-31c0-9081-6aee9cf21740 where name={{goods_unit}} | 传入id或code例:KGM |
othOutRecords.goodsposition | 货位 | | 传入id或code例:ck01_hw01 |
othOutRecords.project | 项目 | | 传入id或code例:project01 |
othOutRecords.memo | 备注 | | 例:备注信息 |
othOutRecords._status | 操作标识 | Insert | Insert:新增、Update:更新 |
othOutRecords.autoCalcCost | 自动计算成本,有来源必填:true:是、false:否 | | |
系统对接概况
采集并引入全业务、多终端、多形态的数据,经过处理以及对应平台接口的数据结构适配,形成以业务核心为对象为中心的连接和标签体系。配合企业根据自身的实际情况以及业务需求完成方案的规划、部署与实施,将沉淀的业务数据进入到平台进行体系化的加工,再以服务化的方式支持业务平台上的应用。达成高效支持业务敏捷创新的高质量和标准化的数据服务组合。
