事件订阅 / 商品与库存
盘点单盘点扣库
盘点单完成盘点扣库后发送事件。
| 字段 | 值 | 说明 |
|---|---|---|
eventModule | 3 | 事件模块编号 |
eventType | 331 | 具体事件编号 |
事件结构
| 名称 | 说明 | 类型 |
|---|---|---|
| Body 参数 | ||
id可选 | string | |
clinicId可选 | string | |
eventModule可选 | integer | |
eventType可选 | integer | |
eventName可选 | string | |
callbackCount可选 | integer | |
eventData可选 | object | |
结构示例
{
"id": "string",
"clinicId": "string",
"eventModule": 3,
"eventType": 331,
"eventName": "盘点单盘点扣库",
"callbackCount": 0,
"eventData": {
"checkOrderItemList": [
{
"id": 0,
"productId": "string",
"productShortId": "string",
"productName": "string",
"specification": "string",
"expiryDate": "string",
"productionDate": "yyyy-mm-dd",
"pieceNum": 5,
"pieceUnit": "片",
"packageUnit": "盒",
"stockId": "string",
"packageCostPrice": 0,
"beforePieceCount": 0,
"beforePackageCount": 0,
"afterPieceCount": 0,
"afterPackageCount": 0,
"changePieceCount": 0,
"changePackageCount": 0,
"amount": 0,
"lastModified": "2022-05-13 12:22:56",
"checkBatches": [
{
"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
}
]
}
],
"id": 0,
"orderNo": "PD20220526000001",
"status": 0,
"organId": "ffffffff0000000019b354880922800a",
"organName": "高新大源店",
"count": 12,
"kindCount": 5,
"totalCostPriceChange": 0,
"totalPriceChange": 0,
"operator": "string",
"operatorId": 123456,
"effectiveDate": "2022-04-07 15:12:53",
"lastModified": "2022-05-13 12:22:56"
}
}