API中心

  1. 基本档案
  2. 工艺路线
返回

工艺路线查询

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

参数填写指南

请求方式:POST

请求参数(header):

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

请求参数(body):

参数名类型是否数组必填描述默认值
corp公司
edate失效日期
gcbm工厂
gzzxbmid工作中心
invcode物料编码
page_now当前面
page_size每页条数
pk_rcid工艺分类
sdate生效日期
version工艺版本号
wlbmid产品编码
zyx1自由项1
zyx2自由项2
zyx3自由项3
zyx4自由项4
zyx5自由项5

返回类型参数:

参数名类型是否数组必填描述默认值
billvo工艺路线聚合实体_返回
childrenvo
cpcodestring物料编码
cpmeasnamestring主计量单位
cpnamestring物料名称
cpslstringcpsl
fcpslstring辅产品数量
fjldwidstring辅计量单位
fjldwmcstring辅计量单位名称
fjldwmccodestring辅计量单位编码
flbmstring工序类型编码
flmcstring工序类型名称
fslstring辅消耗数量
gxhstring工序号
gzzxbmstring工作中心编码
gzzxmcstring工作中心名称
hslstring换算率
pk_invbasdocstring物料
pk_rcidstring工序类型ID
pk_wkidstring工作中心ID
slstring消耗数量
versionstring版本号
vfree1string自由项1
vfree2string自由项2
vfree3string自由项3
vfree4string自由项4
vfree5string自由项5
parentvo
calbody_codestring工厂编码
calbody_namestring工厂名称
invcodestring物料编码
invnamestring物料名称
invspecstring物料规格
invtypestring物料型号
meascodestring计量单位编码
measnamestring计量单位名称
pk_calbodystring工厂
pk_corpstring公司
pk_invbasdocstring物料
pk_measdocstring计量单位
unitcodestring公司编码
unitnamestring公司名称
vfree1string自由项1
vfree2string自由项2
vfree3string自由项3
vfree4string自由项4
vfree5string自由项5

请求参数示例:

复制代码

{
    "corp":"NCC",
    "gcbm":"1026",
    "invcode":["IN0001"]
}

正确返回示例:

复制代码

{
    "status": "success",
    "data": "{\"allcount\":1,\"retcount\":1,\"queryallsql\":\"select distinct pro.pk_produce from bd_invbasdoc inv INNER JOIN bd_measdoc b  on inv.pk_measdoc=b.pk_measdoc INNER JOIN bd_produce pro ON inv.pk_invbasdoc=pro.pk_invbasdoc where pro.pk_corp in (select pk_corp from bd_corp where unitcode = 'NCC')  and pro.pk_calbody in (select pk_calbody from bd_calbody where bodycode = '1026')  and pro.pk_invbasdoc in (select pk_invbasdoc from bd_invbasdoc where invcode in ('IN0001'))\",\"datas\":[{\"parentvo\":{\"pk_calbody\":\"1001A1100000000005EU\",\"calbody_code\":\"1026\",\"calbody_name\":\"1026\",\"pk_invbasdoc\":\"0001A1100000000003F4\",\"pk_measdoc\":\"0001A1100000000003F0\",\"meascode\":\"01\",\"measname\":\"袋\",\"invspec\":\"40g\",\"pk_corp\":\"1001\",\"unitcode\":\"NCC\",\"unitname\":\"用友网络科技股份有限公司\",\"invname\":\"乐事\",\"invcode\":\"IN0001\"},\"childrenvo\":[{\"pk_invbasdoc\":\"0001A1100000000003F4\",\"cpmeasname\":\"件\",\"cpsl\":1,\"version\":\"1.0\",\"gxh\":\"10\",\"flmc\":\"0001\",\"flbm\":\"0001\",\"gzzxmc\":\"测试01\",\"gzzxbm\":\"01\",\"sl\":1,\"cpname\":\"加湿器\",\"cpcode\":\"IN0007\"},{\"pk_invbasdoc\":\"0001A1100000000003F4\",\"cpmeasname\":\"件\",\"cpsl\":1,\"version\":\"1.0\",\"gxh\":\"10\",\"gzzxmc\":\"测试01\",\"gzzxbm\":\"01\",\"sl\":4,\"cpname\":\"香薰机\",\"cpcode\":\"IN030141\"}]}]}",
    "taskNumber": "202208240027"
}

错误返回示例:

复制代码

暂无数据