请求方式:
GET
请求地址:
https://api.eshouhou.cn/api/CustomerService/GetServiceQuotation?access_token=eXNoNTRkZDRmOGFyaW5meCY2YTgyNTFiYS1jZTY0LTQ2YjctYTUwNS1hNGU1NjAwMzI3MDYmMTIw
请求参数:
参数 | 类型 | 必填 | 名称 | 备注 |
workOrderId | string | 否 | 工单id |
返回参数:
参数 | 类型 | 必填 | 名称 |
ResultCode | String | 是 | 返回编码 |
ErrorMsg | String | 否 | 返回信息 |
ResultValue | Object | 否 | 返回对象 |
ResultValue对象:
参数 | 类型 | 必填 | 名称 | 备注 |
ID | string | 是 | 报价单id | |
ServiceSpaceID | string | 是 | 服务空间id | |
WorkOrderID | string | 是 | 工单id | |
FavorablePrice | string | 是 | 优惠后价格 | |
TotalPrice | string | 是 | 报价总价格 | |
Remark | string | 否 | 备注 | |
Accessorys | Array | 否 | 备件集合 | |
FeeItems | Array | 否 | 服务项目集合 | |
OtherFeeItems | Array | 否 | 其他收费项目 | |
Accessorys | Array | 否 | 配件集合 | |
Accessoryfee | Array | 否 | 材料费用 | |
Servicefee | Array | 否 | 服务费用 | |
Otherfee | Int | 否 | 其他费用 | |
AllAmount | String | 否 | 总费用 | |
IsQuotationBtn | Bool | 是 | 是否显示确认报价按钮 |
请求示例:
https://api.eshouhou.cn /api/CustomerService/GetServiceQuotation?access_token= eXNoNTRkZDRmOGFyaW5meCY2YTgyNTFiYS1jZTY0LTQ2YjctYTUwNS1hNGU1NjAwMzI3MDYmMTI&workOrderId=80404fbe-6b8b-45f1-9de9-e02e8f2ae9e1
返回成功示例:
{ "ResultCode": 0, "ErrorMsg": "", "ResultValue": { "ID": "cb3c0a6c-1363-464c-993d-6e410b86e680", "UserID": null, "ServiceSpaceID": "6a8251ba-ce64-46b7-a505-a4e560032706", "WorkOrderID": "470c951e-59f9-46e7-9ca8-6a14c143534c", "IsEnabledSMS": false, "IsEnabledWeChat": false, "IsEnabledMail": false, "FavorablePrice": 293.00, "TotalPrice": 293.00, "Remark": "", "WorkProcessID": "f2625620-0b34-4dbf-b7f2-6873b239e478", "AccessoryArray": null, "Accessorys": [ { "ServiceSpaceID": null, "WorkOrderID": null, Accessory": { "CategoryID": null, "CategoryName": null, "ServiceSpaceID": null, "ServiceSpaceName": null, "Code": "9320450002", "Name": "水流及温度传感器", "Spec": "", "Type": "1.01.03.121", "Unit": "个", "Brand": null, "Barcode": "", "ImgUrl": "", "Price": null, "CustomerPrice": "64.00", "NetworkPrice": "32.00", "StaffPrice": "40.00", "IsCharged": false, "IsDeleted": false, "WarrantyPeriod": null, "WarrantyPeriodName": null, "ID": "1122" }, "Price": 0.0, "Count": 1 }, { "ServiceSpaceID": null, "WorkOrderID": null, "Accessory": { "CategoryID": null, "CategoryName": null, "ServiceSpaceID": null, "ServiceSpaceName": null, "Code": "9320460001", "Name": "晶智塑料出水管", "Spec": "", "Type": "CSL210079", "Unit": "个", "Brand": null, "Barcode": "", "ImgUrl": "https://esh-resources-test.oss-cn-beijing.aliyuncs.com/product/37f976d8-0e87-4804-b06a-02224e6bc3d6_product.png", "Price": null, "CustomerPrice": "29.00", "NetworkPrice": "14.00", "StaffPrice": "20.00", "IsCharged": false, "IsDeleted": false, "WarrantyPeriod": null, "WarrantyPeriodName": null, "ID": "1124" }, "Price": 0.0, "Count": 1 } ], "FeeItemArray": null, "FeeItems": [ { "ServiceSpaceID": null, "WorkOrderID": null, "FeeItem": { "ServiceSpaceID": "6a8251ba-ce64-46b7-a505-a4e560032706", "CategoryID": "1", "CategoryName": "家电", "Name": "[示例]拆装维修", "Description": "对维修产品进行拆装维修", "CustomerPrice": "50.00", "NetworkPrice": "30.00", "StaffPrice": "5.00", "IsCharged": false, "Amount": 0.0, "Count": 0, "ID": "1" }, "Price": 0.0, "Count": 1 } ], "OtherFeeItemArray": null, "OtherFeeItems": [ { "ServiceSpaceID": null, "WorkOrderID": null, "FeeItem": { "ServiceSpaceID": "6a8251ba-ce64-46b7-a505-a4e560032706", "Name": "差旅费", "Description": "", "CustomerPrice": "50.00", "NetworkPrice": "20.00", "StaffPrice": "20.00", "IsCharged": false, "Amount": 0.0, "ID": "2" }, "Price": 0.0, "Count": 1 } ], "CreateTime": null, "HasAccessory": false, "Accessoryfee": 93.00, "Servicefee": 50.00, "Otherfee": 150.00, "AllAmount": 293.00, "IsQuotationBtn": true, "IsShowCancelBtn": true } } |