获取材料详情

更新时间:2021-11-26 15:38:20

接口说明

获取材料详情

基本信息

请求方式: GET

请求路径:

https://prod.open-api.mysre.cn/eq/{tenantCode}/api/material-task/get-material-task-detail

请求参数

参数名 参数位置 参数类型 必填 默认值 示例 描述
task_id query string aea8680c-5ab3-4346-b562-d60c47c746c3 任务id
tenantCode path string 租户code

请求示例

{
    "task_id": "aea8680c-5ab3-4346-b562-d60c47c746c3"
}

返回成功示例

{
    "errcode": 0,
    "errmsg": "",
    "data": {
        "id": "aea8680c-5ab3-4346-b562-d60c47c746c3",
        "task_name": "ZB标段ZB材料进场第25批",
        "bidsection_name": "ZB标段",
        "STATUS": "待验收",
        "recipient": "zb21",
        "supervisor": "zb21",
        "constructer": "",
        "task_detail": [
            {
                "id": "789aed87-1321-497b-9e88-70efc22d5d64",
                "material": "ZB材料",
                "brand": "王老吉",
                "material_type": "ZB材料类型",
                "quantity": "147.0000"
            }
        ],
        "image_count": 4,
        "photo_requirement": [
            {
                "id": "0024edb6-22ed-4050-a8be-6f3222aed1ed",
                "task_id": "aea8680c-5ab3-4346-b562-d60c47c746c3",
                "title": "进场拍照",
                "image_file": "[{\"id\":\"8f717d73-5eca-4cd0-9b4a-637d760abe7d\",\"user_id\":\"39f055e2-f388-4381-df8b-fcf17822b21f\",\"url\":\"https://img-test.myysq.com.cn/mobilecheckquality/upload/8f717d73-5eca-4cd0-9b4a-637d760abe7d.jpg\"}]"
            },
            {
                "id": "7146a099-a7f9-11eb-8827-506b4bfde034",
                "task_id": "aea8680c-5ab3-4346-b562-d60c47c746c3",
                "title": "建设单位验收",
                "image_file": "[]"
            },
            {
                "id": "85e0ab0f-a103-11eb-8827-506b4bfde034",
                "task_id": "aea8680c-5ab3-4346-b562-d60c47c746c3",
                "title": "监理验收",
                "image_file": "[]"
            },
            {
                "id": "e1614f3d-f497-448e-9b9e-c00e9a11d3f3",
                "task_id": "aea8680c-5ab3-4346-b562-d60c47c746c3",
                "title": "与施工人员拍照",
                "image_file": "[{\"id\":\"a8756d1f-e05a-4801-9155-70b05991d8b7\",\"user_id\":\"39f055e2-f388-4381-df8b-fcf17822b21f\",\"url\":\"https://img-test.myysq.com.cn/mobilecheckquality/upload/a8756d1f-e05a-4801-9155-70b05991d8b7.jpg\"}]"
            }
        ]
    }
}

返回参数说明(成功)

参数名 参数类型 描述
errcode number
errmsg string
data object
data.id string
data.task_name string
data.bidsection_name string
data.STATUS string
data.recipient string
data.supervisor string
data.constructer string
data.task_detail array
data.task_detail.id string
data.task_detail.material string
data.task_detail.brand string
data.task_detail.material_type string
data.task_detail.quantity string
data.image_count number
data.photo_requirement array
data.photo_requirement.id string
data.photo_requirement.task_id string
data.photo_requirement.title string
data.photo_requirement.image_file string

失败返回示例

{
  "errcode": -1,
  "errmsg": "错误原因"
}

返回参数说明(失败)

参数名 参数类型 描述
errcode number
errmsg string

results matching ""

    No results matching ""