文档
测试

新增退货订单

POST
172.18.2.20:8804/WTS/neworder

接口描述

测试地址:172.18.10.230:8804

请求头

参数名
类型
描述
必填
Content-Type
application/json
必填

请求参数

参数名
类型
描述
必填
mainTable
object
数据字典
必填
orgcde
string
示例:0126 餐厅编码
必填
orgname
string
示例:test 餐厅名称
必填
purno
string
示例:test3333 订单号(确保唯一)
必填
puser
string
示例:王二 申请人
必填
pdate
string
示例:2022-06-08
必填
notes
string
示例:订单主档备注
可选
fcttype
string
示例:N 餐厅类型(N 新店 O 老店)
必填
rcvrby
string
示例:张三 收货人
可选
rcvrphone
string
示例:133330086 收货人电话
可选
applyemail
string
示例:dangdangzzn@163.com 申请人邮箱
必填
mainID
string
工程大系统退货订单主档ID
必填
FEntity
array
数据列表
必填
mtbar
string
示例:test55 物料编码
必填
mttxt
string
示例:test222 物料名称
必填
spec
string
示例:dfadf 规格
必填
sunit
string
示例:件 单位
必填
pnum
string
示例:10 数量
必填
note
string
示例:test 定制物料备注描述
可选
FEntityID
string
工程大系统退货订单明细档ID
必填
FSourceId
string
工程大系统原订单明细档ID
必填

响应参数

参数名
类型
描述
必填
msg
string
示例:描述
必填
code
string
示例:200 成功 500 失败
必填

说明 / 示例

请求示例: { "mainTable": { "orgcde": "0126", "orgname": "test", "purno": "test88333", "puser": "tesst", "pdate": "2022-06-08", "notes": "eee", "fcttype": "N", "rcvrby": "张三", "rcvrphone": "10086", "applyemail": "dangdangzzn@163.com", "mainID":"dabcdefa23231", "FEntity": [ { "mtbar": "test55", "mttxt": "test222", "spec": "dfadf", "sunit": "d", "pnum": "10", "note": "test", "FEntityID":"6585dfassdfasdf", "FSourceId": "30" }, { "mtbar": "test66", "mttxt": "test333", "spec": "dfadf", "sunit": "d", "pnum": "10", "note": "test", "FEntityID":"6585dfassdfa232", "FSourceId": "31" } ] } } 响应示例: { "msg": "保存成功", "code": "200" }