文档
测试

[web]接收App传递过来的物资申请单信息接口

POST
http://{domain}/{ctx待定}/nw/api/material/commit

接口描述

本接口用于接收App传递过来的物资申清单信息并封装数据

请求参数

参数名
类型
描述
必填
data
Json
示例:[sign:null,data:{ "receiveusercode":"27010001", "receiveuserid":"张三","receiveuserphone":"13535623744".....}]
必填

响应参数

参数名
类型
描述
必填
result
String
示例:true:创建成功;false:创建失败
必填
message
String
示例:提示信息
必填
receiveno
String
示例:物资申请单Id,SYD-27451300-2020-0002
必填

说明 / 示例

### 1. 物资申请单数据数据封装. 接口详情: - **地址**(URL): http://{domain}/{ctx待定}/nw/api/material/commit - **请求方法**(HTTP Method): POST - **是否加密**:是 - **请求接口示例:** ```json http://localhost:8080/bd/nw/api/material/commit ``` - **封装参数示例**:格式 ```json { "receiveusercode":"27010001", "receiveuserid":"张三", "receiveuserphone":"13535623744", "deptcode":"27010000", "warehouseid":"98232224905694595", "warehousemanagername":"李四", "warehousemanagerphone":"13729627744", "reserve1":"", "destination":"1", "senddeptcode":"", "sendwarehouseid":"", "purpose":"线路检修", "purposedesc":"", "mats":[ { "matid":"98130924193356942", "matname":"熔丝(保险丝),20A", "matcode":"500032682", "matclass":"1", "innum":"7", "meins":"1924", "wbscode":"", "wbsdesc":"", "supplier":"", "suppliercode":"", "purchasingno":"", "projectcode":"", "projectname":"", "projectdesc":"" }, { "matid":"98130924193356940", "matname":"熔丝(保险丝),10A", "matcode":"500032680", "matclass":"1", "innum":"2", "meins":"1924", "wbscode":"", "wbsdesc":"", "supplier":"", "suppliercode":"", "purchasingno":"", "projectcode":"", "projectname":"", "projectdesc":"" } ] } ``` - **响应体**(Response Body):格式 ```json { "result": "true:创建成功;false:创建失败", "message": "提示信息", "receiveno":"物资申请单Id" } ``` - **响应示例:** ```json { "result": "true", "message": "创建成功" "receiveno":"SYD-27010000-2020-0003" } ```