基本信息
- 用途说明:产品追溯号录入单据列表查询接口(单据标识:wg_prd_tranceinput)
- 请求方式:POST
- 请求地址:https://api.kingdee.com/weigusoft/wg_cost/loadList?access_token=&authority_info=
headers参数
- 所有的接口必须携带header参数
| 参数名称 | 参数示例 | 是否必填 | 参数说明 |
|---|---|---|---|
| Content-Type | application/json | true | 固定传:application/json |
| groupName | ns-v7g6 | true | 分组名称,获取授权信息时返回的groupName |
| accountId | 16xxxxxxxxxxxx | true | 账套ID,获取授权信息时返回的accountId |
| X-GW-Router-Addr | https://tf.jdy.com | true | IDC域名,获取授权信息时返回的domain |
| Appuserid | 10102023 | true | 当前登录用户id |
params参数
| 参数名称 | 参数类型 | 是否必填 | 参数说明 |
|---|---|---|---|
| access_token | string | true | 金蝶云通行证token |
| authority_info | string | true | 见文档authority_info参数说明 |
body参数
| 参数名称 | 必选 | 类型 | 说明 |
|---|---|---|---|
| entityName | true | String | 单据标识:wg_prd_tranceinput |
| pageindex | true | Number | 当前页(默认1) |
| pagesize | true | Number | 每页显示条数 |
| selectProperties | true | String | 查询字段属性,列表需要显示哪些字段就传哪些,例:'billno,billstatus,billdate,wg_productcode,wg_cp_code.number,wg_cp_code.name,wg_cp_code.model,wg_producttraceno,wg_trace_remark,wg_isadd,createtime,wg_cp_model' |
| andQfilters | false | Array |
"andQfilters": [ { "property": "number", "cp": "=", "value": "CRML-2024-04-01-190c28c6" }], //与条件 |
| orQfilters | false | Array |
orQfilters": [ { "property": "contactperson", //条件字段标识 "cp": "=", //条件符号 或 like "value": "test" //条件值,like的要加% 例:%test% }], //或条件 |
| onlyBasic | false | Boolean |
是否只获取基本信息,名称和编码 |
| onlyCount | false | Boolean |
是否只获取数量 |
| haveMatPic | false | Boolean |
是否返回物料图片 |
| srcType | false | String |
上一个页面单据类型 |
| srcId | false | String |
上一个页面单据id |
| exclude | false | Boolean |
是否有排除的 |
| level | false | String |
基础资料查到哪一层,例:"1" |
| orderBy | false | String |
排序,“number asc” |
请求示例
"pageindex": 1,
"pagesize": 10,
"entityName": "wg_prd_tranceinput",
"selectProperties": "billno,billstatus,billdate,wg_productcode,wg_cp_code.number,wg_cp_code.name,wg_cp_code.model,wg_producttraceno,wg_trace_remark,wg_isadd,createtime,wg_cp_model",
"orQfilters": [
{
"property": "billno",
"cp": "like",
"value": "%CPZS-20260130-00000019%"
},
{
"property": "entryentity.wg_productcode",
"cp": "like",
"value": "%CPZS-20260130-00000019%"
},
{
"property": "entryentity.wg_cp_code.name",
"cp": "like",
"value": "%CPZS-20260130-00000019%"
},
{
"property": "entryentity.wg_cp_code.model",
"cp": "like",
"value": "%CPZS-20260130-00000019%"
}
],
"andQfilters": [
{
"property": "billdate",
"cp": ">=",
"value": "2026-01-01"
},
{
"property": "billdate",
"cp": "<=",
"value": "2026-02-01"
}
]
}
响应示例
{
"data": {
"currentPageSize": 10,
"currentPageIndex": 1,
"totalPages": 1,
"count": 1,
"list": [
{
"createtime": "2026-01-30 16:26:41",
"entryentity": [
{
"wg_cp_code_id": "1834707500792855552",
"wg_cp_code_mullabel": [
{
"number": "BQNZ0002",
"name": "滞销",
"id": "2"
}
],
"sub_entryentity": [
{
"wg_trace_remark": "",
"wg_producttraceno": "20290130-0001",
"id": "2403852939530737664",
"wg_isadd": true
}
],
"wg_cp_code_number": "ET-000000001028",
"wg_productcode": "SCJG-20251223-00001",
"wg_cp_code_name": "7-追溯成品1",
"id": "2403852939530738688"
}
],
"billstatus": "C",
"billdate": "2026-01-30",
"id": "2403852938356332544",
"billno": "CPZS-20260130-00000019"
}
],
"qtycount": 0,
"allamount": 0
},
"errorCode": "success",
"status": true,
"success": true
}
curl:
curl ^"https://api.kingdee.com/weigusoft/wg_cost/loadList?access_token=17667199780d4cbc8ca5cc39910a9df1^&authority_info=MD7Y6R6LmmbAbSDfyZnQmNWqSfaFXo8V+hjbh6AFPd09a8CtKXrcW1zMMOuDg1LZ^" ^
-H ^"Accept: */*^" ^
-H ^"Accept-Language: zh-CN,zh;q=0.9^" ^
-H ^"Appuserid: 10102023^" ^
-H ^"Connection: keep-alive^" ^
-H ^"Content-Type: application/json;charset=UTF-8^" ^
-H ^"Origin: http://localhost:5173^" ^
-H ^"Referer: http://localhost:5173/^" ^
-H ^"Sec-Fetch-Dest: empty^" ^
-H ^"Sec-Fetch-Mode: cors^" ^
-H ^"Sec-Fetch-Site: cross-site^" ^
-H ^"User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1^" ^
-H ^"X-GW-Router-Addr: https://tf-ek.jdy.com^" ^
-H ^"access_token: 17667199780d4cbc8ca5cc39910a9df1^" ^
-H ^"accountId: 1675743896569628608^" ^
-H ^"groupName: ns-isv5^" ^
--data-raw ^"^{^\^"pageindex^\^":1,^\^"pagesize^\^":10,^\^"entityName^\^":^\^"wg_prd_tranceinput^\^",^\^"selectProperties^\^":^\^"billno,billstatus,billdate,wg_productcode,wg_cp_code.number,wg_cp_code.name,wg_cp_code.model,wg_producttraceno,wg_trace_remark,wg_isadd,createtime,wg_cp_model^\^",^\^"orQfilters^\^":^[^{^\^"property^\^":^\^"billno^\^",^\^"cp^\^":^\^"like^\^",^\^"value^\^":^\^"^%^CPZS-20260130-00000019^%^\^"^},^{^\^"property^\^":^\^"entryentity.wg_productcode^\^",^\^"cp^\^":^\^"like^\^",^\^"value^\^":^\^"^%^CPZS-20260130-00000019^%^\^"^},^{^\^"property^\^":^\^"entryentity.wg_cp_code.name^\^",^\^"cp^\^":^\^"like^\^",^\^"value^\^":^\^"^%^CPZS-20260130-00000019^%^\^"^},^{^\^"property^\^":^\^"entryentity.wg_cp_code.model^\^",^\^"cp^\^":^\^"like^\^",^\^"value^\^":^\^"^%^CPZS-20260130-00000019^%^\^"^}^],^\^"andQfilters^\^":^[^{^\^"property^\^":^\^"billdate^\^",^\^"cp^\^":^\^"^>=^\^",^\^"value^\^":^\^"2026-01-01^\^"^},^{^\^"property^\^":^\^"billdate^\^",^\^"cp^\^":^\^"^<=^\^",^\^"value^\^":^\^"2026-02-01^\^"^}^]^}^"