API中心

  1. 库存管理
  2. 出库申请
返回

出库申请单查询

接口所在U8C版本:U8 cloud3.2以及更高版本
详细描述:用于出库申请单查询
API视频讲解API详情补丁列表常见问题参考
接口地址
请求方式
请求参数header
请求参数body
返回类型参数
代码示例
请求参数示例
正确返回示例
错误返回示例
接口地址:http://ip:port/u8cloud/api/ic/sapply/query

参数填写指南

请求方式:POST

请求参数(header):

参数填写指南
参数名必填描述默认值
Content-Type请求体数据类型application/json
usercode用户
password密码
system系统参数

请求参数(body):

参数名类型是否数组必填描述默认值
calbody表头-申请库存组织
code单据号
corp公司
date_begin单据日期开始(v3.5版本前必填)
date_end单据日期结束(v3.5版本前必填)
inventory存货
maker制单人
page_now当前页
page_size每页的条数
ts_begin开始时间戳
ts_end结束时间戳

返回类型参数:

参数名类型是否数组必填描述默认值
billvo出库申请单聚合VO_返回
childrenvo出库申请单表体VO_返回
appcastnumstring申请辅数量
applynumstring申请数量
castunitidstring辅单位
castunitid_codestring存货编码
castunitid_namestring辅单位名称
cbilltypecodestring单据类型
ccostobjectidstring成本对象
cfirstbillbidstring源头单据表体id
cfirstbillhidstring源头单据表头id
cfirsttypestring源头单据类型
cinvbasidstring存货基本id
cinventoryidstring存货
cinventoryid_namestring存货名称
corp_codestring公司编码
corp_namestring公司名称
cqualitylevelidstring质量等级
crownostring行号
csourcebillbidstring来源单据表体ID
csourcebillhidstring来源单据表头ID
csourcebodytsstring来源表体时间戳
csourceheadtsstring来源表头时间戳
cunitidstring单位
cunitid_codestring单位编码
cunitid_namestring单位名称
cvendoridstring供应
dfirstbilldatestring源头单据制单日期
hslstring换算率
isclosedstring是否关闭
ncorrespondnumstring累计出库数量
pk_corpstring公司
pk_defdoc1string自定义项1
pk_defdoc10string自定义项10
pk_defdoc11string自定义项11
pk_defdoc12string自定义项12
pk_defdoc13string自定义项13
pk_defdoc14string自定义项14
pk_defdoc15string自定义项15
pk_defdoc16string自定义项16
pk_defdoc17string自定义项17
pk_defdoc18string自定义项18
pk_defdoc19string自定义项19
pk_defdoc2string自定义项2
pk_defdoc20string自定义项20
pk_defdoc3string自定义项3
pk_defdoc4string自定义项4
pk_defdoc5string自定义项5
pk_defdoc6string自定义项6
pk_defdoc7string自定义项7
pk_defdoc8string自定义项8
pk_defdoc9string自定义项9
planrecvdatestring计划领用日期
recvmaterwhidstring领料仓库
sapply_bidstring出库申请单表体主键
sapply_hidstring出库申请单单头主键
vendor_codestring供应编码
vendor_namestring供应名称
vfirstbillcodestring源头单据号
vfirstrownostring源头单据行号
vfree1string自由项1
vfree2string自由项2
vfree3string自由项3
vfree4string自由项4
vfree5string自由项5
vnotestring备注
vproductbatchstring生产订单号
vsourcebillcodestring来源单据号
vsourcerownostring来源单据行号
vsourcetypestring来源单据类型
workcenteridstring工作中心
parentvo出库申请单表头VO_返回
approverstring审批人
approver_codestring审批人编码
approver_nemestring审批人名称
cbizidstring申请人
cbizid_codestring申请人编码
cbizid_namestring申请人名称
cdptidstring申请部门
corp_codestring公司编码
corp_namestring公司名称
dapprovedatestring审批日期
dbilldatestring申请日期
dept_codestring申请部门编码
dept_namestring申请部门名称
fstatusflagstring单据状态
modifiedtimestring最后修改时间
modifierstring最后修改人
modifier_codestring最后修改人编码
modifier_nemestring最后修改人名称
operatorstring制单人
operator_codestring制单人编码
operator_nemestring制单人名称
pk_corpstring公司
pk_defdoc1string自定义项1
pk_defdoc10string自定义项10
pk_defdoc11string自定义项11
pk_defdoc12string自定义项12
pk_defdoc13string自定义项13
pk_defdoc14string自定义项14
pk_defdoc15string自定义项15
pk_defdoc16string自定义项16
pk_defdoc17string自定义项17
pk_defdoc18string自定义项18
pk_defdoc19string自定义项19
pk_defdoc2string自定义项2
pk_defdoc20string自定义项20
pk_defdoc3string自定义项3
pk_defdoc4string自定义项4
pk_defdoc5string自定义项5
pk_defdoc6string自定义项6
pk_defdoc7string自定义项7
pk_defdoc8string自定义项8
pk_defdoc9string自定义项9
pk_org_idstring申请库存组织
pk_org_id_codestring申请库存组织编码
pk_org_id_namestring申请库存组织名称
sapply_hidstring表头主键
sapplydbilldatestring记录制单日期
taudittimestring审批时间
tmaketimestring制单时间
totalnumstring总数量
vbillcodestring申请单号
vnotestring备注

请求参数示例:

复制代码

{"corp":"8888","date_begin":"2020-11-06","date_end":"2020-11-06","ts_begin":"2021-08-09 14:32:00","ts_end":"2021-08-10 14:32:00"}

正确返回示例:

复制代码

{
    "status": "success",
    "data": "{\"allcount\":1,\"retcount\":1,\"datas\":[{\"parentvo\":{\"vbillcode\":\"SA2011060002\",\"dbilldate\":\"2020-11-06\",\"operator\":\"000132100000000000UO\",\"operator_code\":\"18242366050\",\"operator_neme\":\"刘云祥\",\"pk_corp\":\"1007\",\"corp_code\":\"8888\",\"corp_name\":\"刘云祥集团\",\"totalnum\":50,\"tmaketime\":\"2020-11-06 09:11:10\",\"modifier\":\"000132100000000000UO\",\"modifier_code\":\"18242366050\",\"modifier_neme\":\"刘云祥\",\"modifiedtime\":\"2020-11-06 09:11:10\",\"pk_org_id\":\"1007121000000000008R\",\"pk_org_id_code\":\"1000\",\"pk_org_id_name\":\"集团组织01\",\"sapplydbilldate\":\"2020-11-06\",\"sapply_hid\":\"1007ZZ10000000001EXE\"},\"childrenvo\":[{\"crowno\":\"10\",\"cinventoryid\":\"IN0003\",\"cinventoryid_name\":\"草莓\",\"cinvbasid\":\"000132100000000002VQ\",\"cunitid\":\"000132100000000002VF\",\"cunitid_code\":\"01\",\"cunitid_name\":\"千克\",\"applynum\":50,\"isclosed\":false,\"planrecvdate\":\"2020-11-06\",\"sapply_bid\":\"1007ZZ10000000001EXF\",\"sapply_hid\":\"1007ZZ10000000001EXE\"}]}]}",
    "taskNumber": "202011060001"
}

错误返回示例:

复制代码

{
    "status": "falied",
    "errorcode": "-32000",
    "errormsg": "下列查询条件必须输入:[corp]",
    "taskNumber": "202011060004"
}