POST HYAPI/AssistantService/AppExtension/InsertOrderByBuilder?station_code={station_code}
施工人员添加工作单------允许操作角色:施工人员(Builder)
服务请求信息
URI 参数
Name | Description | Type | Additional information |
---|---|---|---|
station_code |
搅拌站代号 |
string |
Required |
Body 参数
待添加的工作单信息
OrderInsertModelForAppExtensionName | Description | Type | Additional information |
---|---|---|---|
name |
工作单名称 |
string |
Required |
strength |
工作单强度要求 |
string |
None. |
slump |
工作单塌落度要求 |
string |
None. |
project_desc |
工程名称 |
string |
Required String length: inclusive between 0 and 100 |
project_address |
工程地址 |
string |
String length: inclusive between 0 and 100 |
customer_name |
客户名称 |
string |
Required String length: inclusive between 0 and 60 |
building_parts |
施工部位 |
string |
Required String length: inclusive between 0 and 100 |
dispatch_type |
卸料方式 |
string |
None. |
special_need |
特殊需求 |
string |
None. |
order_qty |
订单数量 |
decimal number |
Matching regular expression pattern: ^[0-9]+(.[0-9]{0,2}$) |
saleman |
业务员 |
string |
None. |
implementation_time |
开工时间 |
date |
None. |
remark |
备注 |
string |
None. |
remark2 |
备注2 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "name": "sample string 1", "strength": "sample string 2", "slump": "sample string 3", "project_desc": "sample string 4", "project_address": "sample string 5", "customer_name": "sample string 6", "building_parts": "sample string 7", "dispatch_type": "sample string 8", "special_need": "sample string 9", "order_qty": 1.0, "saleman": "sample string 10", "implementation_time": "2025-04-17T02:09:34.9422903+08:00", "remark": "sample string 12", "remark2": "sample string 13" }
application/xml, text/xml
Sample:
<OrderInsertModelForAppExtension xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Service.API.Model"> <building_parts>sample string 7</building_parts> <customer_name>sample string 6</customer_name> <dispatch_type>sample string 8</dispatch_type> <implementation_time>2025-04-17T02:09:34.9422903+08:00</implementation_time> <name>sample string 1</name> <order_qty>1</order_qty> <project_address>sample string 5</project_address> <project_desc>sample string 4</project_desc> <remark>sample string 12</remark> <remark2>sample string 13</remark2> <saleman>sample string 10</saleman> <slump>sample string 3</slump> <special_need>sample string 9</special_need> <strength>sample string 2</strength> </OrderInsertModelForAppExtension>
application/x-www-form-urlencoded
Sample:
Sample not available.
服务返回信息
返回数据说明
如果新增成功则Data中返回新加数据ID,否则在Message中返回错误信息
ResponseDataModelOfStringName | Description | Type | Additional information |
---|---|---|---|
State |
返回消息状态 |
integer |
None. |
Message |
操作信息 |
string |
None. |
Data |
返回数据 |
string |
None. |
返回数据范例
application/json, text/json
Sample:
{ "State": 1, "Message": "sample string 2", "Data": "sample string 3" }
application/xml, text/xml
Sample:
<ResponseDataModelOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Service.API.Model"> <Data>sample string 3</Data> <Message>sample string 2</Message> <State>1</State> </ResponseDataModelOfstring>