更新时间:2023-04-07 GMT+08:00
分享

查询工单详情

接口地址:

https://v3-hw-openapi.blacklake.cn/api/openapi/domain/web/v1/route/med/open/v1/work_order/base/_detail

接口功能描述: 查询工单详细信息

请求方式: POST

接口备注: 无

请求体参数(见MES接口文档):

请求样例:

{

"workOrderId": 1

}

响应体样例:

{

"code": 200,

"data": {

"code": "string",

"createdAt": 1636009091344,

"creator": {

"avatarUrl": "string",

"code": "string",

"id": 1,

"name": "string"

},

"customFields": [{

"choiceValues": [{

"choiceCode": "string",

"choiceValue": "string",

"id": 0,

"isDefault": 0,

"sequence": 0

}],

"datetimeFormat": "string",

"decimalNumber": 0,

"defaultValue": "string",

"esField": "string",

"fieldCode": "string",

"fieldExportValue": "object",

"fieldId": 0,

"fieldName": "string",

"fieldRemind": "string",

"fieldType": 0,

"fieldValue": "object",

"id": 0,

"isRefer": 0,

"isRequired": 0,

"isUsed": 0,

"maxLength": 0,

"maxValue": 0,

"objectCode": "string",

"reference": "string",

"targetType": 0

}],

"externalOrderCode": "string",

"files": [

0

],

"id": 1,

"identifier": "string",

"operator": {

"avatarUrl": "string",

"code": "string",

"id": 1,

"name": "string"

},

"pauseFlag": 1,

"plannedFinishTime": 1636009091344,

"plannedStartTime": 1636009091344,

"planningDepartment": {

"code": "string",

"id": 1,

"name": "string"

},

"planningUser": {

"avatarUrl": "string",

"code": "string",

"id": 1,

"name": "string"

},

"productionDepartment": {

"code": "string",

"id": 1,

"name": "string"

},

"productionSupervisor": {

"avatarUrl": "string",

"code": "string",

"id": 1,

"name": "string"

},

"remark": "string",

"resource": {

"code": "string",

"id": 0,

"name": "string"

},

"shift": {

"id": 1,

"name": "string"

},

"sonObjects": [{

"customFields": [{

"choiceValues": [{

"choiceCode": "string",

"choiceValue": "string",

"id": 0,

"isDefault": 0,

"sequence": 0

}],

"datetimeFormat": "string",

"decimalNumber": 0,

"defaultValue": "string",

"esField": "string",

"fieldCode": "string",

"fieldExportValue": "object",

"fieldId": 0,

"fieldName": "string",

"fieldRemind": "string",

"fieldType": 0,

"fieldValue": "object",

"id": 0,

"isRefer": 0,

"isRequired": 0,

"isUsed": 0,

"maxLength": 0,

"maxValue": 0,

"objectCode": "string",

"reference": "string",

"targetType": 0

}],

"objectCode": "string"

}],

"specifiedMaterial": 1,

"status": {

"code": 1,

"message": "string"

},

"updatedAt": 1636009091344,

"workOrderCloseType": {

"code": 1,

"message": "string"

},

"workOrderType": {

"code": 1,

"message": "string"

}

},

"fieldPermission": {

"encoding": "string",

"noAccess": [

"string"

],

"readonly": [

"string"

]

},

"message": "string",

"needCheck": 0,

"subCode": "string"

}

相关文档