事件订阅 / 商品与库存

采购单创建

采购单创建后发送事件。

字段值说明
eventModule3事件模块编号
eventType350具体事件编号

事件结构

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

消息 ID,作为接收端幂等键;同一次业务通知的重试使用同一消息 ID

string
clinicId可选

授权门店 ID

string
eventModule可选

枚举:3

integer
eventType可选

枚举:350

integer
eventName可选

枚举:采购单创建

string
callbackCount可选
integer

结构示例

json
{
  "id": "string",
  "clinicId": "string",
  "eventModule": 3,
  "eventType": 350,
  "eventName": "采购单创建",
  "callbackCount": 0,
  "eventData": {
    "comment": {
      "time": "2026-01-01T00:00:00Z",
      "content": "string",
      "employeeId": "string",
      "employeeName": "string"
    },
    "id": 0,
    "orderNo": "CG2024110600001",
    "purchaseOrderItemList": [
      {
        "id": 123123,
        "productId": "ffffffff000000003473c049d7ab4000",
        "productShortId": "000251",
        "productName": "阿莫西林胶囊",
        "pieceCount": 0,
        "packageCount": "盒"
      }
    ],
    "status": 0,
    "supplierId": "ffffffff0000000034af4ae82d69c000",
    "orderType": 0,
    "supplier": "测试供应商",
    "purchaseOrganName": "string",
    "receiveOrganId": "ffffffff0000000034d6d4adbec04000",
    "purchaseOrganId": "string",
    "receiveOrganName": "abc",
    "applyEmployeeId": "string",
    "applyEmployeeName": "string",
    "purchaseOrderDate": "2024-11-06 16:51:03",
    "created": "2024-11-06 16:51:03"
  }
}

返回事件目录

ABC 开放平台 · 诊所管家

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

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

诊所管家