公共参数
输入data参数
data参数 | |||||
名称 | 类型 | 字段长度 | 是否必须 | 示例值 | 描述 |
Order | string | 500 | 1 | [{"Shttype":"0","SheetID":"","Status":"0","ClientID":"","Memo":"","Sdate":"","Note":"","Operator":"","StockID":""}] |
订单表,包含参数:SheetType(下单类别), SheetID(单号,可空), Status(订单状态,0草稿 1确认 2已审核 3入账),ClientID(客户代码),Memo(采购备注),Sdate(进货日期),Note(收货备注),Operator(经手人),StockID(仓库编号) |
OrderDetails | string | 500 | 1 | [{"id":"0","GoodsID":"","PackFlag":"0","qty":"","Price":"","Cost":"","TaxRate":"","Saleoff":"","BatchID":"","BatchNo":"","Udate":"","Mfgdate":"","Shelf":"","Checker":"","CheckDate":"","CheckOut":"","QualityStatus":"","SourceID":"","ReturnQty":""},{"id":"0","GoodsID":"","PackFlag":"0","qty":"","Price":"","Cost":"","TaxRate":"","Saleoff":"","BatchID":"","BatchNo":"","Udate":"","Mfgdate":"","Shelf":"","Checker":"","CheckDate":"","CheckOut":"","QualityStatus":"","SourceID":"","ReturnQty":""}]
|
GoodsID(商品代码),PackFlag(单位标识,0大单位,1小单位(基本单位)),qty(进货数量,当前这件商品的数量), Price(单据价格),Cost(传入单件商品成本,后台会处理),TaxRate(税率),Saleoff(折扣价),StockID(仓库编号),BatchID(批号),BatchNo(批次),Udate(有效期),Mfgdate(生产日期),Shelf(货位表),Checker(验收人,拣货人),CheckDate(验收,拣货日期),CheckOut(验收结论 ),QualityStatus(质量状况),SourceID(源单号),ReturnQty(退货数量) |
OrderExtend | string | 500 | 1 | 扩展字段 |
提交实例
{"method":"SaveOrder","token":"用户token信息","data":[{"Order":"[{"Shttype":"0","SheetID":"","Status":"0","ClientID":"","Memo":"","Sdate":"","Note":"","Operator":"","StockID":""}]","OrderDetails":"[{"id":"0","GoodsID":"","PackFlag":"0","qty":"","Price":"","Cost":"","TaxRate":"","Saleoff":"","BatchID":"","BatchNo":"","Udate":"","Mfgdate":"","Shelf":"","Checker":"","CheckDate":"","CheckOut":"","QualityStatus":"","SourceID":"","ReturnQty":""},{"id":"0","GoodsID":"","PackFlag":"0","qty":"","Price":"","Cost":"","TaxRate":"","Saleoff":"","BatchID":"","BatchNo":"","Udate":"","Mfgdate":"","Shelf":"","Checker":"","CheckDate":"","CheckOut":"","QualityStatus":"","SourceID":"","ReturnQty":""}] ","OrderExtend":""}]}
返回结果
名称 | 描述 | 类型 | 备注 | 长度 | 约束 |
code | 响应码 | String | 1:成功,0:失败 | 1 | |
message | 响应信息 | String | 1 | ||
result | 返回数据 | object | 1 | ||
result参数 | |||||
名称 | 描述 | 类型 | 示例 | 长度 | 约束 |
返回实例
{"code":"1","message":"请求成功","result":[]}