事件订阅 / 商品与库存
出库单出库
出库单完成出库后发送事件。
| 字段 | 值 | 说明 |
|---|---|---|
eventModule | 3 | 事件模块编号 |
eventType | 321 | 具体事件编号 |
事件结构
| 名称 | 说明 | 类型 |
|---|---|---|
| Body 参数 | ||
id可选 | string | |
clinicId可选 | string | |
eventModule可选 | integer | |
eventType可选 | integer | |
eventName可选 | string | |
callbackCount可选 | integer | |
eventData可选 | object | |
结构示例
{
"id": "string",
"clinicId": "string",
"eventModule": 3,
"eventType": 321,
"eventName": "出库单出库",
"callbackCount": 0,
"eventData": {
"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
}
}
}