接口文档 / 商品接口

获取出库单详情

GET/api/v2/open-agency/products/out-order-detail/{orderId}在线调试

响应参数

名称说明类型
Body 参数
data可选

数据

object
id可选

出库单id

integer
orderNo可选

出库单号

示例:CK20220526000001

string
status可选

出库单状态 0:待确认 1:待审核 2:已完成 9:已拒绝 31:撤回

示例:0

integer
organName可选

门店

示例:高新大源店

string
type可选

出库单类型 1:科室出库 2:报损出库 3:退货出库

示例:0

integer
kindCount可选

品种数量

示例:5

integer
count可选

数量

示例:12

number
amount可选

含税金额

示例:6033.23

number
receiver可选

领取人

string
operator可选

操作人(出库人)

string
effectiveDate可选

生效时间

示例:2022-04-07 15:12:53

格式:date-time

string
lastModified可选

最后修改时间

示例:2022-05-13 12:22:56

格式:date-time

string
inOrderId可选

关联的入库单id

示例:1928374567678

string

响应示例

json
{
  "data": {
    "comment": {
      "time": "2026-01-01T00:00:00Z",
      "content": "string",
      "employeeId": "string",
      "employeeName": "string"
    },
    "id": 0,
    "outOrderItemList": [
      {
        "id": 0,
        "productId": "string",
        "productShortId": "string",
        "productName": "string",
        "specification": "string",
        "pieceNum": 5,
        "pieceUnit": "片",
        "packageUnit": "盒",
        "packageCount": 0,
        "pieceCount": 0,
        "packageCostPrice": 0,
        "stockInId": 0,
        "amount": 0,
        "lastModified": "2022-05-13 12:22:56",
        "stockOutBatches": [
          {
            "stockId": 12312,
            "stockInOutDetailId": 12312,
            "batchId": 12312,
            "supplier": {
              "id": "string",
              "name": "string"
            },
            "batchNo": 555555,
            "productionDate": "2023-01-11",
            "expiryDate": "2023-01-11",
            "packageCount": 1,
            "pieceCount": 1,
            "packageCostPrice": 1,
            "pieceNum": 10,
            "costPrice": 1,
            "packagePrice": 1
          }
        ]
      }
    ],
    "orderNo": "CK20220526000001",
    "status": 0,
    "organName": "高新大源店",
    "type": 0,
    "kindCount": 5,
    "count": 12,
    "amount": 6033.23,
    "receiver": "string",
    "operator": "string",
    "effectiveDate": "2022-04-07 15:12:53",
    "lastModified": "2022-05-13 12:22:56",
    "inOrderId": 1928374567678,
    "pharmacy": {
      "no": 0
    }
  },
  "error": null
}

业务失败包装示意

json
{
  "data": null,
  "error": {
    "code": 11003,
    "message": "不支持的授权类型{grantType}"
  }
}

查看 HTTP 状态与业务码排查

ABC 开放平台 · 诊所管家

如有疑问,请扫码加入企业微信群咨询。

企业微信群二维码
没有匹配结果

诊所管家