点击【暂存、完成】接口

简要描述
  • 暂存,完成接口
请求URL
  • http://192.168.2.107:8080/ops/customize/zheshang/inspection/task/add
请求方式
  • POST
参数
{
    "taskId": "e7544f56f72d46adad40fef36b0614ba",
    "finish": false,
    "item": [
        {
            "itemId": "c6506e4d924749188f9e5350f30c8757",
            "content": [
                {
                    "result": "正常",
                    "value": "好的",
                    "abnormal": [],
                    "contentDetailsId": "09ef3cb54d42484984d72870b9b40144",
                    "type": "人工判断"
                },
                {
                    "result": "异常",
                    "value": {
                        "explain": "金科技科技科技6666666666666666666666666",
                        "checkBooxAttr": [
                            {
                                "selectValue": "蔬菜",
                                "checked": false,
                                "selectLabel": "蔬菜"
                            },
                            {
                                "selectValue": "肉类",
                                "checked": false,
                                "selectLabel": "肉类"
                            }
                        ],
                        "openErrorStatus": "开启"
                    },
                    "abnormal": [
                        {
                            "path": "/ops/static/20211011203159_bccf1086d729472896fb41daa1a09f41.jpg",
                            "imgId": "92ca1a5f34b944f5a09ffd0ed2fb7eb1",
                            "describe": "sdfsfdsdfsdf"
                        }
                    ],
                    "contentDetailsId": "21beefd3cae4458a860425fe8e2325de",
                    "type": "复选框"
                },
                {
                    "result": "正常",
                    "value": "76666",
                    "abnormal": [],
                    "contentDetailsId": "d770e1606634490a83702610cfb65b61",
                    "type": "数值型自动判断"
                }
            ]
        }
    ],
    "cabinet": []
}
参数名 必选 类型 说明
finish boolean 如果点击暂存传递false,点击完成传递true
type string 如果type是等于复选框,则value是个对象,对象的值是从 inspection/task/getTaskDetails接口返回的explain的值 获取
item.content.checkBooxAttr.checked boolean 如果是true表示已经勾选,false没有勾选
返回示例
{
    "errorCode": 0,
    "message": "成功",
    "time": 1634006644885,
    "responseBody": null
}