开发平台

电话咨询 400-000-7749

1.货流说明



2.分页查询所有订货单(所有门店创建的订货单)


接口地址 http://host:port/pospal-api2/openapi/v1/stockFlowOpenApi/queryProductRequestPages
请求头
  • User-Agent: openApi
  • Content-Type: application/json; charset=utf-8
  • accept-encoding: gzip,deflate
  • time-stamp: 1437528688233
  • data-signature: BF706E6AC693BA3B1BABD32E6713431D
  • 请求方式 POST
    请求体
  • {
  • "startTime":"2013-01-01 00:00:00",//开始时间(包含)
  • "excludeEndTime": "2018-01-01 00:00:00",//结束时间(不包含)
  • "postBackParameter": {
  • "parameterType":"abcdef", 从返回结果中直接取出
  • "parameterValue": "abcdef" 从返回结果中直接取出
  • },
  • "appId": "abcdefghijklmn"
  • }
  • 参数名 是否必须 类型 说明
    appId String Pospal配置的访问凭证
    startTime String 格式为yyyy-MM-dd HH:mm:ss
    excludeEndTime String 格式为yyyy-MM-dd HH:mm:ss endTime - startTime <= 5天
    postBackParameter Json 查询首页时可以不传,之后的内容从返回结果中取出
    parameterType String 从返回结果中取出
    postBackParameter String 从返回结果中取出
    返回结果
  • {
  • "status": "success",
  • "messages": [],
  • "data": {
  • "postBackParameter": {
  • "parameterType": "abcdef从返回结果中直接取出",
  • "parameterValue": "abcdef从返回结果中直接取出"
  • },
  • "result": [
  • {
  • "items": [
  • {
  • "productUid": 832101480292933201,
  • "supplierUid": 0,
  • "quantity": 1,
  • "productUnitUid": 1457686229942839743
  • }
  • ],
  • "processItems": [
  • {
  • "supplierUid": 0,
  • "createdDatetime": "2016-08-30 17:52:26",
  • "status": 1,
  • "stockFlowId": 193483
  • }
  • ],
  • "id":14726234055,
  • "mergedId": 14726234058,
  • "targetUserAppId": "testAccountAppId",
  • "targetUserAccount": "testAccount",
  • "processUserAppId": "hanskang_appid",
  • "processUserAccount": "hanskang",
  • "createdDatetime": "2016-08-31 14:39:52",
  • "status": 2,
  • "alreadyPayAmount": 0,
  • "remarks": "备注信息",
  • "isFinished": 0,
  • "specifiedDeliveryTime": "2016-08-31 14:39:52",
  • "specifiedArriveTime": "2016-08-31 14:39:52",
  • "cashierUid": 1472623405529432999
  • }
  • ],
  • "pageSize": 100
  • }
  • }
  • 字段名 类型 说明
    status String 是否正确处理请求,返回success或error,不区分大小写
    messages String[] 处理结果的消息
    errorCode int 业务处理的错误代码,参见错误代码表
    data List 实体信息
    postBackParameter Json 分页查询回传到服务器的参数结构从第二页开始必须回传,如果没传,每次查询都是第一页
    parameterType String 从返回结果中直接取出用于回传,不能变其值
    parameterValue String 从返回结果中直接取出用于回传,不能变其值
    result List 订货单情况—参考根据Id查询订货单返回字段

    3. 根据Id查询订货单


    接口地址 http://host:port/pospal-api2/openapi/v1/stockFlowOpenApi/queryProductRequestById
    请求头
  • User-Agent: openApi
  • Content-Type: application/json; charset=utf-8
  • accept-encoding: gzip,deflate
  • time-stamp: 1437528688233
  • data-signature: BF706E6AC693BA3B1BABD32E6713431D
  • 请求方式 POST
    请求体
  • {
  • "productReuestId":12429,
  • "appId": "abcdefghijklmn"
  • }
  • 参数名 是否必须 类型 说明
    appId String A店向B店订货,传A店的AppId
    productReuestId Long 订货单ID
    返回结果
  • {
  • "status": "success",
  • "messages": [],
  • "data": {
  • "createUserAppId": "hanskang_appid",
  • "createUserAccount": "hanskang",
  • "items": [
  • {
  • "productUid": 832101480292933201,
  • "supplierUid": 0,
  • "quantity": 1,
  • "productUnitUid": 1457686229942839743
  • }
  • ],
  • "processItems": [
  • {
  • "supplierUid": 0,
  • "createdDatetime": "2021-10-09 15:43:18",
  • "status": 1,
  • "stockFlowId": 193483
  • }
  • ],
  • "id":14726234055,
  • "mergedId": 14726234058,
  • "targetUserAppId": "testAccountAppId",
  • "targetUserAccount": "testAccount",
  • "processUserAppId": "hanskang_appid",
  • "processUserAccount": "hanskang",
  • "createdDatetime": "2016-08-31 14:39:52",
  • "status": 2,
  • "alreadyPayAmount": 0,
  • "remarks": "备注信息",
  • "isFinished": 0,
  • "specifiedDeliveryTime": "2016-08-31 14:39:52",
  • "specifiedArriveTime": "2016-08-31 14:39:52",
  • "cashierUid": 1472623405529432999,
  • "orderNumber": "DH-20211009154318-786"
  • }
  • }
  • 字段名 类型 说明
    status String 是否正确处理请求,返回success或error,不区分大小写
    messages String[] 处理结果的消息
    errorCode int 业务处理的错误代码,参见错误代码表
    data Json
    id Long 订货单Id
    mergedId Long 并单时创建新订单的id
    createUserAppId String A店向B店订货,这个字段表示A店的AppId
    createUserAccount String A店向B店订货,这个字段表示A店的账号
    targetUserAppId String A店向B店订货,这个字段表示B店的AppId
    targetUserAccount String A店向B店订货,这个字段表示B店的账号
    createdDatetime String 订货单创建时间
    status int 订货单状态:已拒绝 = -1, 待审核 = 0, 配货中 = 1, 已完成 = 2, 已作废 = 3,被合并 = -2
    alreadyPayAmount BigDecimal 预付款金额
    remarks String 备注信息
    isFinished int 是否已配货 0 - 未完成配货 1- 已配货
    specifiedDeliveryTime String 指定送货时间
    specifiedArriveTime String 指定到货时间
    cashierUid Long 收银员Uid
    orderNumber String 订货单号
    items List 订货单中指定的订货商品
    productUid Long 订货商品Uid
    supplierUid Long 供应商Uid
    quantity BigDecimal 订货数量
    productUnitUid Long 订货门店的订货单位uid,如箱、包、吨quantity-productUnitUid 3箱、100包0或null表示默认基准单位
    pageSize Int 服务器想返回的条数。Result.size为实际返回条数Result.size = pageSzie时进行下一页查询
    processUserAppId String 进行拆单操作的用户APPID,拆单行成的多个配送进各归属于同一个用户。
    processUserAccount String 进行拆单操作的用户账号,拆单行成的多个配送进各归属于同一个用户。
    processItems List 拆单情况下有多个配送流程
    supplierUid Long 供货商Uid
    createdDatetime Date 创建时间—>拆单时间
    status Int 预留状态,只能是1=完成状态
    stockFlowId Long 调货\进货单ID

    4. 分页查询所有货单(调货\进货\退货)(所有门店创建的贷流单)


    接口地址 http://host:port/pospal-api2/openapi/v1/stockFlowOpenApi/queryStockFlowPages
    请求头
  • User-Agent: openApi
  • Content-Type: application/json; charset=utf-8
  • accept-encoding: gzip,deflate
  • time-stamp: 1437528688233
  • data-signature: BF706E6AC693BA3B1BABD32E6713431D
  • 请求方式 POST
    请求体
  • {
  • "startTime": "2013-01-01 00:00:00", //开始时间(包含)
  • "excludeEndTime": "2018-01-01 00:00:00",//结束时间(不包含)
  • "postBackParameter": {
  • "parameterType":"abcdef", 从返回结果中直接取出
  • "parameterValue": "abcdef", 从返回结果中直接取出
  • },
  • "appId": "abcdefghijklmn",
  • }
  • }
    参数名 是否必须 类型 说明
    appId String Pospal配置的访问凭证
    startTime String 格式为yyyy-MM-dd HH:mm:ss
    excludeEndTime String 格式为yyyy-MM-dd HH:mm:ss
    endTime - startTime <= 5天
    postBackParameter Json 查询首页时可以不传,之后的内容从返回结果中取出
    parameterType String 从返回结果中取出
    parameterValue String 从返回结果中取出
    返回结果
  • {
  • "status": "success",
  • "messages": [],
  • "data": {
  • "postBackParameter": {
  • "parameterType": "abcdef从返回结果中直接取出",
  • "parameterValue": "abcdef从返回结果中直接取出"
  • },
  • "result": [
  • {
  • "toUserAppId": "lytest456_appId",
  • "toUserAccount": "lytest456",
  • "operatorUserAppId": "lytest456_appId",
  • "operatorUserAccount": "lytest456",
  • "nextStockFlowUserAppId": "lytest456_appId",
  • "nextStockFlowUserAccount": "lytest456",
  • "items": [
  • {
  • "productUid": 832101480292933201,
  • "categoryUid": 1496807057969574765,
  • "supplierUid": 0,
  • "productName": "橙子",
  • "barcode": "1496643727743",
  • "updateStock": 50,
  • "actualQuantity":49,
  • "buyPrice": 7,
  • "sellPrice": 15,
  • "remarks": "
  • }
  • ],
  • "id":195327,
  • "confirmationRequired": 1,
  • "createdDateTime": "2017-06-08 16:40:51",
  • "stockflowTypeNumber": 12,
  • "confirmed": 1,
  • "varianceConfirmation": 0,
  • "confirmedTime": "2017-06-08 16:41:01",
  • "remarks": "123",
  • "productRequestId": 13071,
  • "updateByCashierUid": 832101480292933201
  • }
  • ],
  • "pageSize": 100
  • }
  • }
  • 字段名 类型 说明
    status String 是否正确处理请求,返回success或error,不区分大小写
    messages String[] 处理结果的消息
    errorCode int 业务处理的错误代码,参见错误代码表
    data Json
    postBackParameter Json 分页查询回传到服务器的参数结构从第二页开始必须回传,如果没传,每次查询都是第一页
    parameterType String 从返回结果中直接取出用于回传,不能变其值
    parameterValue String 从返回结果中直接取出用于回传,不能变其值
    result List 货单情况—参考根据货单id查询货单返回字段

    5. 根据订货单id查询所有单(调货\进货\退货)


    接口地址 http://host:port/pospal-api2/openapi/v1/stockFlowOpenApi/queryStockFlowDetailByProductReuqestId
    请求头
  • User-Agent: openApi
  • Content-Type: application/json; charset=utf-8
  • accept-encoding: gzip,deflate
  • time-stamp: 1437528688233
  • data-signature: BF706E6AC693BA3B1BABD32E6713431D
  • 请求方式 POST
    请求体
  • {
  • "productRequestId": 13087,
  • "appId": "abcdefghijklmn"
  • }
  • 参数名 是否必须 类型 说明
    productRequestId Long 订货单ID
    appId String A店向B店订货,传A店的AppId
    返回结果
  • {
  • "status": "success",
  • "messages": [],
  • "data":[
  • {
  • "toUserAppId": "lytest456_appId",
  • "toUserAccount": "lytest456",
  • "operatorUserAppId": "lytest456_appId",
  • "operatorUserAccount": "lytest456",
  • "nextStockFlowUserAppId": "lytest456_appId",
  • "nextStockFlowUserAccount": "lytest456",
  • "items": [
  • {
  • "productUid": 832101480292933201,
  • "categoryUid": 1496807057969574765,
  • "supplierUid": 0,
  • "productName": "橙子",
  • "barcode": "1496643727743",
  • "updateStock": 50,
  • "actualQuantity":49,
  • "buyPrice": 7,
  • "sellPrice": 15,
  • "remarks": "
  • }
  • ],
  • "id":195327,
  • "confirmationRequired": 1,
  • "createdDateTime": "2017-06-08 16:40:51",
  • "stockflowTypeNumber": 12,
  • "confirmed": 1,
  • "varianceConfirmation": 0,
  • "confirmedTime": "2017-06-08 16:41:01",
  • "remarks": "123",
  • "productRequestId": 13071,
  • "updateByCashierUid": 832101480292933201
  • }
  • ],
  • }
  • 字段名 类型 说明
    status String 是否正确处理请求,返回success或error,不区分大小写
    messages String[] 处理结果的消息
    errorCode int 业务处理的错误代码,参见错误代码表
    data List 详细字段参考根据Id查询调货\进货\退货单返回字段

    6. 根据货单id查询货单


    接口地址 http://host:port/pospal-api2/openapi/v1/stockFlowOpenApi/queryStockFlowDetailById
    请求头
  • User-Agent: openApi
  • Content-Type: application/json; charset=utf-8
  • accept-encoding: gzip,deflate
  • time-stamp: 1437528688233
  • data-signature: BF706E6AC693BA3B1BABD32E6713431D
  • 请求方式 POST
    请求体
  • {
  • "stockFlowId": 13087,
  • "appId": "abcdefghijklmn"
  • }
  • 参数名 是否必须 类型 说明
    stockFlowId Long 货流单ID
    appId String 如果是出货单,传出货门店appId
    如果是进货单,传进货门店appId
    对应 queryStockFlowPages 的toUserAppId
    返回结果
  • {
  • "status": "success",
  • "messages": [],
  • "data": {
  • "toUserAppId": "lytest456_appId",
  • "toUserAccount": "lytest456",
  • "operatorUserAppId": "lytest456_appId",
  • "operatorUserAccount": "lytest456",
  • "nextStockFlowUserAppId": "lytest456_appId",
  • "nextStockFlowUserAccount": "lytest456",
  • "id":195327,
  • "nextStockFlowId": "400980",
  • "prevStockFlowId": "400988",
  • "confirmationRequired": 1,
  • "createdDateTime": "2021-10-09 15:43:44",
  • "stockflowTypeNumber": 12,
  • "confirmed": 1,
  • "varianceConfirmation": 0,
  • "confirmedTime": "2021-10-09 15:43:47",
  • "remarks": "123",
  • "productRequestId": 13071,
  • "updateByCashierUid": 832101480292933201
  • "items": [
  • {
  • "productUid": 832101480292933201,
  • "categoryUid": 1496807057969574765,
  • "supplierUid": 0,
  • "productName": "橙子",
  • "barcode": "1496643727743",
  • "updateStock": 50,
  • "actualQuantity":49,
  • "buyPrice": 7,
  • "sellPrice": 15,
  • "remarks": "
  • }
  • ]
  • }
  • }
  • 字段名 类型 说明
    status String 是否正确处理请求,返回success或error,不区分大小写
    messages String[] 处理结果的消息
    errorCode int 业务处理的错误代码,参见错误代码表
    result Json
    toUserAppId String 货单指向账号的appId
    toUserAccount String 货单指向账号的账号
    operatorUserAppId String 生成货单账号的appId
    operatorUserAccount String 生成货单账号的账号
    nextStockFlowUserAppId String 指定下一步货单的toUserAppId
    nextStockFlowUserAccount String 指定下一步货单的toUserAccount
    id Long 货单id
    nextStockFlowId Long 下一环节货流id
    prevStockFlowId Long 上一环节货流id
    confirmationRequired Int 是否需要确认货流,1:需要确认,0:不需要确认
    createdDateTime Date 1:货单创建时间,格式为yyyy-MM-dd HH:mm:ss
    2:当stockflowTypeNumber=13,对应后台的货流单号
    需自己转化为yyyyMMddHHmmss格式
    举例: 2021-10-09 15:43:44 对应货流单号:20211009154344
    stockflowTypeNumber Int 进货 = 12, 出货 = 13, 退货 = 14, 调拨退货=16, 出库单=17
    confirmed Int 0- 未确认,1- 已确认, 2- 拒绝进货/出货,3- 被拒绝收货
    varianceConfirmation Int 确认进货时,货流差异时,是否需要确认。出货单和退货单无效1:需要确认,0:不需要确认
    paid BigDecimal 已支付金额
    confirmedTime Date 确认货流时间,格式为yyyy-MM-dd HH:mm:ss
    remarks String 货单备注信息
    productRequestId Long 订货单id,从哪个订货单生成货(调货\进货)单
    updateByCashierUid Long 进行更新操作的收银员Uid
    items List 货单条目
    productUid Long 货单条目商品uid
    categoryUid Long 货单条目商品分类uid
    supplierUid Long 货单条目商品供应商uid
    productName String 货单条目商品名称
    barcode String 货单条目商品条码
    updateStock BigDecimal 按基准单位换算过的货量
    actualQuantity BigDecimal 实际进货量
    buyPrice BigDecimal 进货价
    sellPrice BigDecimal 销售价
    item-> remarks String 单品备注信息
    productUnitUid Long 货单条目商品单位Uid
    unitQuantity BigDecimal 按商品单位的货量
    unitBuyPrice BigDecimal 按商品单位的进货价

    7. 创建货流单


    接口地址 http://host:port/pospal-api2/openapi/v1/stockFlowOpenApi/createStockFlow
    请求头
  • User-Agent: openApi
  • Content-Type: application/json; charset=utf-8
  • accept-encoding: gzip,deflate
  • time-stamp: 1437528688233
  • data-signature: BF706E6AC693BA3B1BABD32E6713431D
  • 请求方式 POST
    接口重点提醒
  • 1、 确保商品信息在FUN官网网系统已经存在
  • 2、 商品有单位换算规则时,productUnitUid为必传字段,否则进货单位会出现错误。
  • 3、 商品有单位换算规则时,确保换算规则在出货门店与进货门店同时存在
  • ==》假设商品 香烟,barcode= cigarette,有单位箱、条、包
  • 那么,些时出货单、进货单必须指定进货单位 箱、条、包
  • ==》如果货流单为出货(调货),确保出进货门店也有对应的单位信息。
  • 否则,出货门店 调货 n箱香烟,进货门却以 n条进货,数据就会出现错误。
  • 4、 接口会根据appId,toUserAppId,createdDateTime判重。如果2次请求,这3个参数都一样,第二次请求会报错:数据重复提交
  • 请求体
  • {
  • "appId": "abcdefghijklmn",
  • "stockFlow": {
  • "toUserAppId": "1111C555BBF382E7F6C7BCCCCCCCCCCCCCCCCCCC",
  • "nextStockFlowUserAppId": "2222C555BBF382E7F6C7BBBBBBBBBBB"
  • "paid": 0,
  • "createdDateTime": "2017-08-07 15:11:45",
  • "stockflowTypeNumber": 12,
  • "remarks": "Junit Test",
  • "items": [
  • {
  • "barcode": "6960215383217",
  • "productUnitUid": 1458565279922897482,
  • "unitQuantity": 10,
  • "unitBuyPrice": 100,
  • remarks": "Junit Test StockFlow add Item"
  • }
  • ]
  • }
  • }
  • 参数名 是否必须 类型 说明
    appId String Pospal配置的访问凭证
    stockFlow Json 货流单详情
    toUserAppId String 货流单类型为出货(调货)单时,表示出货门店appId;
    货流单类型为进货单时,些字段为进货门店appId;
    nextStockFlowUserAppId String 货流单类型为出货(调货)单时,此时段表示进货门店AppId。
    stockflowTypeNumber=12时,不需要传
    stockflowTypeNumber=13时,为必传
    paid BigDecimal 预付款
    createdDateTime String 格式为yyyy-MM-dd HH:mm:ss
    stockflowTypeNumber Int 12:进货单, 13:出货(调货)单
    remarks String 备注内容,100字以内
    items List
    barcode String 商品条码
    进货单时,保证门店有条码对应的商品信息。
    出货单时,保证出货门店与进货门店都有条码对应的商品信息。
    productUnitUid Long 商品单位Uid
    货流单为出货(调货)时,传出货门店的单位;
    货流单为进货单时,传进货门店的单位
    unitQuantity BigDecimal 单位出货量,如 出货 5 箱
    unitBuyPrice BigDecimal 单位进货价,出货价
    Items->remarks String 条目备注内容,100字以内
    返回结果
    字段名 类型 说明
    status String 是否正确处理请求,返回success或error,不区分大小写
    messages String[] 处理结果的消息
    errorCode int 业务处理的错误代码,参见错误代码表
    data Json 详添加成功返回货流单实体数据
    字段参照根据货单id查询货单

    8. 确认出货


    接口地址 http://host:port/pospal-api2/openapi/v1/stockFlowOpenApi/acceptStockFlowOut
    请求头
  • User-Agent: openApi
  • Content-Type: application/json; charset=utf-8
  • accept-encoding: gzip,deflate
  • time-stamp: 1437528688233
  • data-signature: BF706E6AC693BA3B1BABD32E6713431D
  • 请求方式 POST
    接口重点提醒
  • 以a门店向b门店出货为例:
  • 1:a 调用createStockFlow创建出货单
  • 2:a 调用acceptStockFlowOut同意出货(用createStockFlow返回的id)
  • 3:b 调用acceptStockFlowIn 同意进货(用acceptStockFlowOut返回的id)
  • 请求体
  • {
  • "appId": "abcdefghijklmn",
  • "stockFlowId": 3742661
  • }
  • 参数名 是否必须 类型 说明
    appId String Pospal配置的访问凭证
    stockFlowId Int 货流单id
    返回结果
    字段名 类型 说明
    status String 是否正确处理请求,返回success或error,不区分大小写
    messages String[] 处理结果的消息
    errorCode int 业务处理的错误代码,参见错误代码表
    data Json 详添加成功返回货流单实体数据
    字段参照根据货单id查询货单

    9. 确认进货


    接口地址 http://host:port/pospal-api2/openapi/v1/stockFlowOpenApi/acceptStockFlowIn
    请求头
  • User-Agent: openApi
  • Content-Type: application/json; charset=utf-8
  • accept-encoding: gzip,deflate
  • time-stamp: 1437528688233
  • data-signature: BF706E6AC693BA3B1BABD32E6713431D
  • 请求方式 POST
    接口重点提醒
  • 请求体
  • {
  • "appId": "abcdefghijklmn",
  • "stockFlowId": 3742662
  • }
  • 参数名 是否必须 类型 说明
    appId String Pospal配置的访问凭证
    stockFlowId Int 货流单id
    返回结果
    字段名 类型 说明
    status String 是否正确处理请求,返回success或error,不区分大小写
    messages String[] 处理结果的消息

    10. 拒绝出货


    接口地址 http://host:port/pospal-api2/openapi/v1/stockFlowOpenApi/rejectStockFlowOut
    请求头
  • User-Agent: openApi
  • Content-Type: application/json; charset=utf-8
  • accept-encoding: gzip,deflate
  • time-stamp: 1437528688233
  • data-signature: BF706E6AC693BA3B1BABD32E6713431D
  • 请求方式 POST
    接口重点提醒
  • 请求体
  • {
  • "appId": "abcdefghijklmn",
  • "stockFlowId": 3742662
  • }
  • 参数名 是否必须 类型 说明
    appId String Pospal配置的访问凭证
    stockFlowId Int 货流单id
    返回结果
    字段名 类型 说明
    status String 是否正确处理请求,返回success或error,不区分大小写
    messages String[] 处理结果的消息

    11. 拒绝进货


    接口地址 http://host:port/pospal-api2/openapi/v1/stockFlowOpenApi/rejectStockFlowIn
    请求头
  • User-Agent: openApi
  • Content-Type: application/json; charset=utf-8
  • accept-encoding: gzip,deflate
  • time-stamp: 1437528688233
  • data-signature: BF706E6AC693BA3B1BABD32E6713431D
  • 请求方式 POST
    接口重点提醒
  • 请求体
  • {
  • "appId": "abcdefghijklmn",
  • "stockFlowId": 3742662
  • }
  • 参数名 是否必须 类型 说明
    appId String Pospal配置的访问凭证
    stockFlowId Int 货流单id
    返回结果
    字段名 类型 说明
    status String 是否正确处理请求,返回success或error,不区分大小写
    messages String[] 处理结果的消息

    12.分页查询采购单


    接口地址 http://host:port/pospal-api2/openapi/v1/stockFlowOpenApi/queryProductPurchasePages
    请求头
  • User-Agent: openApi
  • Content-Type: application/json; charset=utf-8
  • accept-encoding: gzip,deflate
  • time-stamp: 1437528688233
  • data-signature: BF706E6AC693BA3B1BABD32E6713431D
  • 请求方式 POST
    请求体
  • {
  • "startTime":"2013-01-01 00:00:00",//开始时间(包含)
  • "excludeEndTime": "2018-01-01 00:00:00",//结束时间(不包含)
  • "postBackParameter": {
  • "parameterType":"abcdef", 从返回结果中直接取出
  • "parameterValue": "abcdef" 从返回结果中直接取出
  • },
  • "appId": "abcdefghijklmn"
  • }
  • 参数名 是否必须 类型 说明
    appId String Pospal配置的访问凭证
    startTime String 格式为yyyy-MM-dd HH:mm:ss
    excludeEndTime String 格式为yyyy-MM-dd HH:mm:ss endTime - startTime <= 5天
    postBackParameter Json 查询首页时可以不传,之后的内容从返回结果中取出
    parameterType String 从返回结果中取出
    postBackParameter String 从返回结果中取出
    返回结果
  • {
  • "status": "success",
  • "messages": [],
  • "data": {
  • "postBackParameter": {
  • "parameterType": "abcdef从返回结果中直接取出",
  • "parameterValue": "abcdef从返回结果中直接取出"
  • },
  • "result": [
  • {
  • "items": [
  • {
  • "productPurchaseUid": 3457245266573,
  • "productUid": 832101480292933201,
  • "quantity": 10.00,
  • "giftQuantity": 1.00,
  • "purchasePrice": 12,
  • "remark": "6666"
  • }
  • ],
  • "processItems": [
  • {
  • "createdDatetime": "2016-08-30 17:52:26",
  • "status": 1,
  • "stockFlowId": 193483
  • }
  • ],
  • "supplierName":"供货FUN官网网1",
  • "uid": 1544671877081880574,
  • "orderNumber": "CG20181213113038",
  • "supplierUid": "886263699231969848",
  • "purchaseAmount": 58,
  • "purchaseNum": 3,
  • "createdDatetime": "2016-08-31 14:39:52",
  • "status": 1,
  • "remarks": "6666666"
  • }
  • ],
  • "pageSize": 100
  • }
  • }
  • 字段名 类型 说明
    status String 是否正确处理请求,返回success或error,不区分大小写
    messages String[] 处理结果的消息
    errorCode int 业务处理的错误代码,参见错误代码表
    data List 实体信息
    postBackParameter Json 分页查询回传到服务器的参数结构从第二页开始必须回传,如果没传,每次查询都是第一页
    parameterType String 从返回结果中直接取出用于回传,不能变其值
    parameterValue String 从返回结果中直接取出用于回传,不能变其值
    result List 采购单列表
    uid Long 采购单在FUN官网网的唯一标识
    orderNumber String 采购单号
    supplierUid Long 供应商在FUN官网网的唯一标识
    supplierName String 供应商名称
    purchaseNum BigDecimal 采购总数量(实际入库量以货流入库单为主)
    purchaseAmount BigDecimal 采购金额(实际金额以货流入库单为主)
    status int 采购单状态 0:待入库 1:已入库 -1:已作废
    createdDateTime String 制单日期
    remarks String 备注
    items List 采购单明细列表
    productPurchaseUid Long 采购单在FUN官网网的唯一标识, ProductPurchase.uid=item. productPurchaseUid
    productUid Long 采购商品在FUN官网网的唯一标识
    quantity BigDecimal 采购量(实际入库量以货流入库单为主)
    giftQuantity BigDecimal 赠送量(实际入库量以货流入库单为主)
    purchasePrice BigDecimal 采购价
    remark String 备注
    processItems List 采购已处理列表
    stockFlowId Long 货流id
    createdDatetime String 操作时间
    status int 状态 1:已入库