请求方式:
GET
请求地址:
https://api.eshouhou.cn/open/v2/WorkOrder/GetEditWorkOrderFields?access_token=eXNoNTRkZDRmOGFyaW5meCY2YTgyNTFiYS1jZTY0LTQ2YjctYTUwNS1hNGU1NjAwMzI3MDYmMTIw
请求参数:
参数 | 类型 | 必填 | 名称 | 备注 |
serviceSpaceId | string | 是 | 服务空间id | |
serviceNetworkId | string | 是 | 服务网点id | |
serviceNetworkType | int | 是 | 网点类型 | 网点类型(1总部,2网点);默认1 |
返回参数:
参数 | 类型 | 必填 | 名称 |
ResultCode | String | 是 | 返回编码 |
ErrorMsg | String | 否 | 返回信息 |
ResultValue | Object | 否 | 返回对象 |
ResultValue对象:
参数 | 类型 | 必填 | 名称 | 备注 |
CusObj | Object | 是 | 客户信息 | |
fildes | Array | 是 | 工单字段信息 |
CusObj对象:
参数 | 类型 | 必填 | 名称 | 备注 |
Key | string | 否 | 客户id | |
Value | string | 否 | 客户名称 |
fildes对象集合:
参数 | 类型 | 必填 | 名称 | 备注 |
ID | string | 是 | 字段id | |
Name | string | 是 | 字段名称 | |
FiledType | string | 是 | 字段类型 | 0-10为系统默认字段: 其余为列外字段。 0:默认,1:单行文本,2:多行文本,3:纯数字,4:邮箱,5:勾选项,6:下拉框,7:日期,8:小数,9:单选列表,10:复选列表,11:客户,12:上传图片,13:产品型号(包含产品和客户设备), 14:联系人,15:产品序列号,16:所属区域,17:客户设备,20:服务项目,21:使用备件,22 客户签名,25 国家,26 编号,27 所属项目,28 选择产品(只包含产品),29 默认服务网点,30 维护人员,31 客户标签,32 国家代码,34 联系人手机号,35带有选择地图的地址,36经度,37维度,40子表格,41满意度评价,42预约服务时间,51附件,52扫码 |
Options | Array | 否 | 单选,复选值 | |
IsRequired | string | 否 | 是否必填 | |
SelectValue | Array | 否 | 下拉值 | |
ImgPaths | Array | 否 | 图片集合 | List<string> |
TextValue | string | 否 | 显示值 | |
IsShow | string | 是 | 是否显示该字段 |
Options对象集合:
参数 | 类型 | 必填 | 名称 | 备注 |
Key | string | 否 | 选项id | |
Value | string | 否 | 选项名称 | |
isChecked | Bool | 否 | 是否选中 |
SelectValue对象集合:
参数 | 类型 | 必填 | 名称 | 备注 |
Key | string | 否 | 选项id | |
Value | string | 否 | 选项值 |
请求示例:
https://api.eshouhou.cn/open/v2/WorkOrder/GetEditWorkOrderFields?serviceSpaceId=6a8251ba-ce64-46b7-a505-a4e560032706&serviceNetworkType=1&workorderid=d46e6986-3f33-4c6d-9046-1c250d8c1d6c
返回成功示例:
{ "ResultCode": 0, "ErrorMsg": "", "ResultValue": { "CusObj": { "Key": "dc540ce7-5bc5-4275-b8fa-2004eb5839e3", "Value": "胡效鑫1", "ObjList": [], "Exception": false, "TableType": 0, "FiledType": 0, "Icon": "" }, "fildes": [ { "ID": "CustomerID", "Name": "客户", "FiledType": 11, "Options": [], "IsRequired": true, "SelectValue": { "Key": "dc540ce7-5bc5-4275-b8fa-2004eb5839e3", "Value": "胡效鑫1", "ObjList": [], "Exception": false, "TableType": 0, "FiledType": 0, "Icon": "" }, "ImgPaths": [], "TextValue": "", "IsShow": true, "additionalData": null }, { "ID": "Description", "Name": "服务请求", "FiledType": 2, "Options": [], "IsRequired": false, "SelectValue": { "Key": "", "Value": "", "ObjList": [], "Exception": false, "TableType": 0, "FiledType": 0, "Icon": "" }, "ImgPaths": [], "TextValue": "", "IsShow": true, "additionalData": null }, { "ID": "Priority", "Name": "优先级", "FiledType": 6, "Options": [ { "Key": "1", "Value": "一般", "ObjArray": [], "isChecked": false }, { "Key": "2", "Value": "紧急", "ObjArray": [], "isChecked": false }, { "Key": "3", "Value": "非常紧急", "ObjArray": [], "isChecked": false } ], "IsRequired": false, "SelectValue": { "Key": "0", "Value": "", "ObjList": [], "Exception": false, "TableType": 0, "FiledType": 0, "Icon": "" }, "ImgPaths": [], "TextValue": "", "IsShow": true, "additionalData": null }, { "ID": "Contact", "Name": "联系人", "FiledType": 14, "Options": [], "IsRequired": false, "SelectValue": { "Key": "0f0197e3-eaef-4f8e-9e23-558b58f2f76c", "Value": "", "ObjList": [], "Exception": false, "TableType": 0, "FiledType": 0, "Icon": "" }, "ImgPaths": [], "TextValue": "", "IsShow": true, "additionalData": null }, { "ID": "ContactNumber", "Name": "联系电话", "FiledType": 34, "Options": [], "IsRequired": true, "SelectValue": { "Key": "", "Value": "", "ObjList": [], "Exception": false, "TableType": 0, "FiledType": 0, "Icon": "" }, "ImgPaths": [], "TextValue": "", "IsShow": true, "additionalData": null }, { "ID": "ContactArea", "Name": "所属区域", "FiledType": 16, "Options": [], "IsRequired": true, "SelectValue": { "Key": "", "Value": "", "ObjList": [], "Exception": false, "TableType": 0, "FiledType": 0, "Icon": "" }, "ImgPaths": [], "TextValue": "", "IsShow": true, "additionalData": null }, { "ID": "ContactAddress", "Name": "详细地址", "FiledType": 35, "Options": [], "IsRequired": true, "SelectValue": { "Key": "", "Value": "", "ObjList": [], "Exception": false, "TableType": 0, "FiledType": 0, "Icon": "" }, "ImgPaths": [], "TextValue": "", "IsShow": true, "additionalData": null }, { "ID": "UploadWorkOrderImg", "Name": "上传图片", "FiledType": 12, "Options": [], "IsRequired": false, "SelectValue": { "Key": "", "Value": "", "ObjList": [], "Exception": false, "TableType": 0, "FiledType": 0, "Icon": "" }, "ImgPaths": [], "TextValue": "", "IsShow": true, "additionalData": null } ] } } |