接口文档 / 商品接口
获取进销存明细
支持以下查询方式:
1. 查询指定日期的进销存明细:传 date、offset、limit。
2. 查询出入库单、盘点单、发药单、调拨单进销存明细:传 orderIdList。
3. 查询收费单进销存明细:传 chargeSheetList。
请求参数
| 名称 | 说明 | 类型 |
|---|---|---|
| Body 参数 | ||
date可选 | string | |
orderIdList可选 | array<string> | |
chargeSheetList可选 | array<object> | |
type必填 | integer | |
offset可选 | integer | |
limit可选 | integer | |
请求示例
{
"date": "2020-03-05",
"orderIdList": [
"12334234",
"456667"
],
"chargeSheetList": [
{
"patientOrderId": "string",
"chargeSheetId": "string"
}
],
"type": 1,
"offset": 0,
"limit": 10
}响应参数
| 名称 | 说明 | 类型 |
|---|---|---|
| Body 参数 | ||
data可选 | object | |
detailsList可选 | array<object> | |
total可选 | integer | |
error可选可为空 | object | |
响应示例
{
"data": {
"detailsList": [
{
"stockLogId": 123456,
"date": "2020-03-05 12:00:00",
"productId": "ffffffff00000000347730f37eb54000",
"productShortId": "H12334",
"productName": "阿莫西林",
"pieceCount": 10,
"packageCount": 1,
"action": "发药",
"orderId": 123456,
"orderItemId": 123456789,
"patientOrderId": "ffffffff00000000347ce07462de0001",
"sourceOrderId": "ffffffff00000000347ce07462de0001",
"sourceOrderItemId": "ffffffff00000000347ce07462de0001",
"packageCostPrice": 10,
"batchId": 123456,
"batchNo": 20200305,
"productionDate": "2020-03-05",
"expireDate": "2020-03-05",
"inOrderId": 123456,
"inOrderItemId": 12345678,
"inOrderItemOutDetailId": "X12345678",
"costPrice": -10,
"salePrice": 10,
"pieceNum": 7,
"traceableCodeList": [
{
"no": 86975041000000000000,
"type": 0,
"hisPieceCount": 10,
"hisPackageCount": 1,
"count": 1
}
]
}
],
"total": 10
},
"error": null
}业务失败包装示意
{
"data": null,
"error": {
"code": 11003,
"message": "不支持的授权类型{grantType}"
}
}