purchase_order_query{
"operation": {
"method": "none"
}
}| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | start_time | 开始时间 | string | {{LAST_SYNC_TIME|datetime}} | 必填 | 开始时间 |
| 2 | outer_no | 外部单号 | string | — | 可选 | 外部创建采购单推送的单号,传该字段可以不传开始时间和结束时间 |
| 3 | purchase_no | 采购单号 | string | — | 可选 | ERP系统采购单编号,传该字段可以不传开始时间和结束时间 |
| 4 | status | 采购单状态 | string | — | 可选 | 10 已取消,20 编辑中,30 待审核,35 待财审,40 已审核,43 待推送,45 推送失败,48 待收货,50 部分到货,60已到货,70 待结算,80 部分结算,90 已完成(不传默认查询全部状态采购单) |
| 5 | warehouse_no | 仓库编码 | string | — | 可选 | 仓库编码 |
| 6 | purchase_no | 采购单号 | string | — | 可选 | ERP系统采购单编号,传该字段可以不传开始时间和结束时间 |
| 7 | end_time | 结束时间 | string | {{CURRENT_TIME|datetime}} | 必填 | 结束时间 |
| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | purchase_id | 采购单id | string | — | 可选 | 采购单id,采购单表主键 |
| 2 | purchase_no | 采购单号 | string | — | 可选 | ERP系统采购单编号 |
| 3 | purchase_outer_no | 外部单号 | string | — | 可选 | ERP推送采购单外部返回单号(对应外部仓储单号)。 |
| 4 | outer_no | api单号 | string | — | 可选 | 通过接口创建采购单时传的api单号 |
| 5 | warehouse_name | 仓库 | string | — | 可选 | 仓库名称 |
| 6 | warehouse_no | 仓库编号 | string | — | 可选 | 代表仓库所有属性的唯一编码,用于仓库区分,ERP内支持自定义(ERP仓库界面设置) |
| 7 | status | 采购单状态 | string | — | 可选 | 采购单状态:10已取消,20编辑中,30待审核,35待财审,40已审核,43待推送,45推送失败,48待收货,50部分到货,60已到货,70待结算,80部分结算,90已完成 |
| 8 | provider_no | 供应商编号 | string | — | 可选 | 供应商编号 |
| 9 | provider_name | 供应商名称 | string | — | 可选 | 供应商名称 |
| 10 | contact | 联系人 | string | — | 可选 | 联系人 |
| 11 | telno | 电话 | string | — | 可选 | 电话 |
| 12 | purchaser_name | 采购员 | string | — | 可选 | 采购员 |
| 13 | receive_address | 收货地址 | string | — | 可选 | 收货地址 |
| 14 | logistics_type | 货运方式 | string | — | 可选 | 货运方式 |
| 15 | check_time | 审核时间 | string | — | 可选 | 审核时间,格式:yyyy-MM-dd HH:mm:ss |
| 16 | goods_amount | 货款 | string | — | 可选 | 货款 |
| 17 | post_fee | 邮资 | string | — | 可选 | 邮资 |
| 18 | other_fee | 其他费用 | string | — | 可选 | 其他费用 |
| 19 | tax_goods_amount | 税后货品总金额 | string | — | 可选 | 税后货品总金额 |
| 20 | remark | 备注 | string | — | 可选 | 采购单备注 |
| 21 | modified | 最后修改时间 | string | — | 可选 | 单据的最后修改时间,格式:yyyy-MM-dd HH:mm:ss |
| 22 | expect_arrive_time | 预计到货时间 | string | — | 可选 | 采购预计到货时间,格式:yyyy-MM-dd HH:mm:ss |
| 23 | prop1 | 自定义属性1 | string | — | 可选 | 自定义属性1 |
| 24 | prop2 | 自定义属性2 | string | — | 可选 | 自定义属性2 |
| 25 | created | 创建时间 | string | — | 可选 | 单据创建时间,格式:yyyy-MM-dd HH:mm:ss |
| 26 | creator_id | 创建人id | string | — | 可选 | 默认为'0',创建人id |
| 27 | creator_name | 创建人姓名 | string | — | 可选 | 默认为'0',创建人姓名 |
| 28 | warehouse_id | 仓库id | string | — | 可选 | 仓库id |
| 29 | api_outer_no | api外部单号 | string | — | 可选 | 默认为'',接口创建的单据的外部单号,同outer_no |
| 30 | wms_outer_no | 外部仓库单号 | string | — | 可选 | 默认为'',对应外部仓库的单号,同purchase_outer_no字段 |
| 31 | wms_status | 外部状态 | string | — | 可选 | 默认为'0',外部状态,与wms对接使用0初始化1失败2成功 |
| 32 | error_info | 错误信息 | string | — | 可选 | 默认为'',返回错误信息 |
| 33 | purchaser_id | 采购员id | string | — | 可选 | 默认为'0',采购员id |
| 34 | order_type | 采购单类型 | string | — | 可选 | 默认为'0',0普通采购单,1档口采购单,2APP档口采购单 |
| 35 | flag_id | 颜色标记 | string | — | 可选 | 默认为'0',颜色标记 |
| 36 | provider_id | 供应商 | string | — | 可选 | 默认为'0',供应商 |
| 37 | check_operator_id | 审核人 | string | — | 可选 | 默认为'0',审核人 |
| 38 | facheck_operator_id | 财审人 | string | — | 可选 | 默认为'0',财审人 |
| 39 | facheck_time | 财审人 | string | — | 可选 | 默认为'0000-00-00',财审时间 |
| 40 | goods_fee | 货品总价 | string | — | 可选 | 默认为'0.0000',货品总价 |
| 41 | goods_count | 货品数量 | string | — | 可选 | 默认为'0.0000',货品数量 |
| 42 | tax_fee | 税后总价 | string | — | 可选 | 默认为'0',税后总价 |
| 43 | goods_type_count | 货品种类 | string | — | 可选 | 默认为'0',货品种类 |
| 44 | goods_arrive_count | 到货总量 | string | — | 可选 | 默认为'0.0000',到货总量 |
| 45 | revert_reason | 驳回原因 | string | — | 可选 | 默认为'0',驳回原因 |
| 46 | version_id | 版本号 | string | — | 可选 | 默认为'0',版本号 |
| 47 | note_count | 便签条数 | string | — | 可选 | 默认为'0',便签条数 |
| 48 | prop_time1 | 自定义属性时间1 | string | — | 可选 | 默认为'0000-00-0000:00:00',自定义属性时间1 |
| 49 | details_list | 采购单明细节点 | array | — | 可选 | 响应参数的2级数据节点,,节点下数据字段详见下述“details_list” |
| 49.1 | rec_id | 主键 | string | — | 可选 | 采购明细表主键id |
| 49.2 | purchase_id | 采购单id | string | — | 可选 | 采购单id |
| 49.3 | spec_no | 商家编码 | string | — | 可选 | 代表单品(sku)所有属性的编码,SKU概念介绍,单击这里 |
| 49.4 | brand_name | 品牌 | string | — | 可选 | 品牌名称,推送此字段前需将版本升级至V2.3.9.1及以上的稳定版本 |
| 49.5 | num | 数量 | string | — | 可选 | 数量 |
| 49.6 | price | 税前单价 | string | — | 可选 | 税前单价 |
| 49.7 | discount | 折扣 | string | — | 可选 | 折扣 |
| 49.8 | tax | 税率 | string | — | 可选 | 税率 |
| 49.9 | tax_price | 税后单价 | string | — | 可选 | 税后单价 |
| 49.10 | tax_amount | 税后金额 | string | — | 可选 | 税后金额 |
| 49.11 | amount | 税前金额 | string | — | 可选 | 税前金额 |
| 49.12 | stockin_amount | 采购到货入库总金额 | string | — | 可选 | 采购到货入库总金额 |
| 49.13 | stockin_num | 采购到货入库数量 | string | — | 可选 | 采购到货入库数量 |
| 49.14 | prop1 | 自定义属性1 | string | — | 可选 | 自定义属性1 |
| 49.15 | prop2 | 自定义属性2 | string | — | 可选 | 自定义属性2 |
| 49.16 | remark | 备注 | string | — | 可选 | 明细备注 |
| 49.17 | modified | 修改时间 | string | — | 可选 | 修改时间,格式:yyyy-MM-dd HH:mm:ss |
| 49.18 | provider_goods_no | 供应商货品编号 | string | — | 可选 | 供应商货品编号 |
| 49.19 | goods_no | 货品编号 | string | — | 可选 | 货品编号 |
| 49.20 | goods_name | 货品名称 | string | — | 可选 | 货品名称 |
| 49.21 | short_name | 货品简称 | string | — | 可选 | 货品简称 |
| 49.22 | spec_name | 规格名称 | string | — | 可选 | 规格名称 |
| 49.23 | spec_code | 规格码 | string | — | 可选 | 规格码 |
| 49.24 | base_unit | 基本单位 | string | — | 可选 | 基本单位 |
| 49.25 | purchase_unit | 采购单位 | string | — | 可选 | 采购单位 |
| 49.26 | arrive_num | 采购到货未入库数量 | string | — | 可选 | 采购到货未入库数量 |
| 49.27 | stopwait_num | 停止等待数量 | string | — | 可选 | 停止等待数量 |
| 49.28 | purchase_price | 采购价 | string | — | 可选 | 采购价 |
| 49.29 | last_price | 最后采购价 | string | — | 可选 | 最后采购价 |
| 49.30 | last_second_price | 上一次采购价 | string | — | 可选 | 上一次采购价 |
| 49.31 | lowest_price | 最低采购价 | string | — | 可选 | 最低采购价 |
| 49.32 | weight | 重量 | string | — | 可选 | 重量 |
| 49.33 | arrive_more_num | 多到货量 | string | — | 可选 | 多到货量 |
| 49.34 | lack_num | 未到货量 | string | — | 可选 | 未到货量 |
| 49.35 | spec_id | 规格id | string | — | 可选 | 规格id |
| 49.36 | warehouse_id | 仓库id | string | — | 可选 | 默认为'0',仓库id |
| 49.37 | tag | 标签 | string | — | 可选 | 默认为'0', tag=0表示默认采购 |
| 49.38 | num2 | 数量2 | string | — | 可选 | 默认为'0.0000',辅助单位数量 |
| 49.39 | unit_ratio | 单位比率 | string | — | 可选 | 默认为'1.0000',基本单位和辅助单位的换算系数 |
| 49.40 | unit_id | 辅助单位 | string | — | 可选 | 辅助单位/采购单位 |
| 49.41 | base_unit_id | 基本单位 | string | — | 可选 | 基本单位 |
| 49.42 | created | 创建时间 | string | — | 可选 | 单据创建时间,格式:yyyy-MM-dd HH:mm:ss |
吉客云·奇门的接口:旺店通查询采购单V3.0(purchase_order_query),由轻易云数据集成平台 API 资产管理模块整理收纳,并随吉客云·奇门版本更新同步更新。