硬件开发工具链平台云服务-分页查询工单:操作步骤

时间:2024-11-20 11:10:43

操作步骤

  1. 获取接口相关信息。

    URI格式:POST /wom/openapi/v1/wos/batch-detail

    详情请参见分页查询工单

  2. 在Request Header中增加“X-Auth-Token”。
  3. 发送“POST https://{MBM Endpoint}/wom/openapi/v1/wos/batch-detail”

    Body

    {
      "wo_id" : "1417639245421830258",
      "wo_order" : "WOP123456",
      "erp_wo_order" : "QWERTYUI",
      "part_no" : "TEST2023",
      "wo_type_list" : [ "10" ],
      "site_no" : "TEST210213",
      "wo_status_list" : [ "10" ],
      "start_time" : "2023-08-14 00:00:00",
      "end_time" : "2023-08-14 00:00:00",
      "actual_start_time" : "2023-08-14 00:00:00",
      "actual_end_time" : "2023-08-14 00:00:00",
      "split_flag" : "1",
      "solution_flag" : "2",
      "hold_flag" : "0"
    }

  4. 查看请求响应结果。

    请求成功时,响应参数如下:

    {
      "status" : "200",
      "message" : "success",
      "data" : {
        "count" : 1,
        "limit" : 20,
        "offset" : 0,
        "data" : [ {
          "tenant_id" : "xdm_ytjtest",
          "created_by" : "zhangsan",
          "created_date" : "2023-07-11 00:00:00",
          "created_by_name" : "张三",
          "last_updated_by" : "wangwu",
          "last_updated_date" : "2023-07-11 00:00:00",
          "last_updated_by_name" : "王五",
          "wo_id" : "1417639245421830258",
          "wo_order" : "WOP123456",
          "erp_wo_id" : "1457698771257845",
          "erp_wo_order" : "QWERTYUI",
          "parent_wo_id" : "1478932452572618",
          "parent_wo_order" : "WOP147369",
          "wo_type" : "10",
          "part_id" : "1564789221484123",
          "part_no" : "TEST2023",
          "part_desc" : "MODEL测试",
          "part_revision" : "1",
          "lot_unit" : 1,
          "wo_qty" : 100,
          "site_id" : "22DF4572394G485KF502",
          "site_no" : "TEST210213",
          "completed_qty" : 1,
          "wo_status" : "10",
          "hold_flag" : "0",
          "split_flag" : "1",
          "solution_flag" : "2",
          "sn_generate_flag" : "0",
          "erp_plan_start_date" : "2023-07-11 00:00:00",
          "erp_plan_end_date" : "2023-07-11 00:00:00",
          "data_source" : "MANUAL",
          "actual_wo_start_date" : "2023-07-11 00:00:00",
          "actual_wo_complete_date" : "2023-07-11 00:00:00",
          "org_id" : "1",
          "org_code" : "1",
          "synchronization_date" : "2023-07-11 00:00:00",
          "production_mode" : "10"
        } ]
      }
    }

    请求异常时,错误码请参见错误码

support.huaweicloud.com/api-craftartsipdcenter/mbm_api_0007.html