接口文档 / 商品接口

获取调拨单详情

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

响应参数

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

数据

object
id可选

调拨单ID

integer
amount可选

调拨总金额(含税)

number
count可选

所有调拨商品转成大包装的数量的累加

number
kindCount可选

种类数量(调拨单里面有几种类型的药)

integer
orderNo可选

可读的调拨库单号

string
transType可选

调拨单类型0:门店间调拨1:药房间调拨

integer
transCostPriceType可选

调拨价格类型(0:同价调拨(调出方改入库成本加,会影响到掉入方的成本)1:异价调拨)

integer
created可选

出库单创建时间

格式:date-time

string
reviewDate可选

总部审核时间

格式:date-time

string
inConfirmDate可选

调拨单调入确认时间

格式:date-time

string
lastModified可选

最近一次修改时间

格式:date-time

string
status必填

调拨单状态 0:待出库房确认 5:待总部审核 9:拒绝 10:待入库方确认 20:调拨完成 31:撤回

示例:1

integer

响应示例

json
{
  "data": {
    "id": 0,
    "amount": 0,
    "count": 0,
    "kindCount": 0,
    "orderNo": "string",
    "transType": 0,
    "transCostPriceType": 0,
    "createdUser": {
      "id": "string",
      "name": "string"
    },
    "created": "2026-01-01T00:00:00Z",
    "reviewDate": "2026-01-01T00:00:00Z",
    "reviewUser": {
      "id": "string",
      "name": "string"
    },
    "inConfirmDate": "2026-01-01T00:00:00Z",
    "inConfirmUser": {
      "id": "string",
      "name": "string"
    },
    "toOrgan": {
      "id": "string",
      "name": "string"
    },
    "inPharmacy": {
      "no": 0
    },
    "fromOrgan": {
      "id": "string",
      "name": "string"
    },
    "outPharmacy": {
      "no": 0
    },
    "lastModified": "2026-01-01T00:00:00Z",
    "lastModifiedUser": {
      "id": "string",
      "name": "string"
    },
    "status": 1,
    "items": [
      {
        "applicationPackageCount": 0,
        "applicationPieceCount": 0,
        "packageCount": 0,
        "pieceCount": 0,
        "goods": {
          "id": "string",
          "name": "阿莫西林",
          "typeId": 1,
          "typeName": "药品",
          "customTypeId": 213,
          "customTypeName": "抗生素",
          "manufacturer": "拜耳",
          "medicineNmpn": "H20000001",
          "barCode": "string",
          "pieceUnit": "支",
          "pieceNum": 10,
          "piecePrice": 10.5,
          "packageUnit": "盒",
          "packagePrice": 105,
          "shortId": "K1001",
          "specification": "1ml:0.5mg*10支/盒",
          "otcType": 1,
          "status": 1,
          "lastModified": "2022-05-13 12:22:56",
          "goodsSpu": {
            "id": "string",
            "name": "string",
            "brandName": "string",
            "material": "string"
          },
          "goodsSpec": {
            "color": "string",
            "spec": "string"
          },
          "remark": "abc",
          "dosageFormType": 0,
          "dosageFormTypeName": "string",
          "priceType": 0,
          "priceMakeupPercent": 0
        },
        "outTotalCostPrice": 0,
        "outPackageCostPrice": 0,
        "bathes": [
          {
            "stockId": 0,
            "batchNo": "string",
            "expiryDate": "string",
            "packageCount": 0,
            "pieceCount": 0,
            "outPackageCostPrice": 0
          }
        ],
        "transInBatches": [
          {
            "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
          }
        ],
        "lastModified": "2026-01-01T00:00:00Z"
      }
    ]
  },
  "error": null
}

业务失败包装示意

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

查看 HTTP 状态与业务码排查

ABC 开放平台 · 诊所管家

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

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

诊所管家