菜单

查询单据列表

接口URL:https://api.kingdee.com/weigusoft/wg_cost/loadList?access_token=&authority_info=

Content-Type:application/json

请求方式:post

接口备注:暂无描述

authority_info(控制用户权限字段)参数生成规则:

例:access_token:17464962873ecbcaebacdebe9b82fdce 用户id:10102023

1、access_token+','+用户id ,例:17464962873ecbcaebacdebe9b82fdce,10102023

2、用户id是获取当前用户信息接口(https://api.kingdee.com/weigusoft/basedata/get_current_user_info )返回的id

获取当前用户信息curl

curl ^"https://api.kingdee.com/weigusoft/basedata/get_current_user_info?access_token=17464962873ecbcaebacdebe9b82fdce^" ^
  -H ^"Accept: */*^" ^
  -H ^"Accept-Language: zh-CN,zh;q=0.9^" ^
  -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: 17464962873ecbcaebacdebe9b82fdce^" ^
  -H ^"accountId: 1675743896569628608^" ^
  -H ^"groupName: ns-isv5^" ^
  --data-raw ^"^{^}^"

3、拼接后需要用AES加密

authority_info:YiyLl+eZDehXLRo2mpBLziNDxg5w6wjrfZ4AxgROyyyORJYkB7sQbQxjK9gO33E/

AES加密线上生成链接:https://www.toolhelper.cn/SymmetricEncryption/AES

AES加密:秘钥 key=2c17e560c500f55c

偏移量 iv=5e8y6w45ju8w9jq8

请求头参数:

  • 所有的接口必须携带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
 

请求体参数:

参数名

示例值

参数类型

是否必填

参数描述

entityName

wg_loan_bill

String

单据标识

pageindex

1

Number

暂无描述

pagesize

10

Number

暂无描述

selectProperties

billno,wg_biztype,wg_reason,

wg_totalamount,wg_dept,

wg_dept.name,entryentity.wg_account,

wg_billdate

String

查询字段

orQfilters

 

Array

或条件

orQfilters.property

billno

String

条件字段标识

orQfilters.cp

=

String

条件符号,

cp传"in"时,

orQfilters.value值传数组格式.['值1','值2']

orQfilters.value

JK-20240219-00001

String

条件值,like的要加%

andQfilters

 

Array

与条件

andQfilters.property

billno

String

暂无描述

andQfilters.cp

=

String

暂无描述

andQfilters.value

JK-20240219-00001

String

暂无描述

onlyBasic

true

Boolean

是否只获取基本信息,名称和编码

onlyCount

false

Boolean

是否只获取数量

srcType

wg_utility_bill

String

上一个页面单据类型

srcId

0

String

上一个页面单据id

exclude

false

Boolean

是否有排除的

level

1

String

基础资料查到哪一次

haveMatPic

 

String

是否返回物料图片

请求示例:

{
    "entityName": "wg_loan_bill",
    "pageindex": 1,
    "pagesize": 10,
    "selectProperties": "billno,wg_biztype,wg_reason,wg_totalamount,wg_dept,wg_dept.name,entryentity.wg_account,wg_billdate",
    "orQfilters": [
        {
            "property": "billno",
            "cp": "=",
            "value": "JK-20240219-00001"
        }
    ],
    "andQfilters": [
        {
            "property": "billno",
            "cp": "=",
            "value": "JK-20240219-00001"
        }
    ],
    "onlyBasic": true,
    "onlyCount": false,
    "haveMatPic": false,
    "srcType": "wg_utility_bill",
    "srcId": "0",
    "exclude": false,
    "level": "1"
}

相应示例:(成功200,失败201)

{
    "data": {
        "currentPageSize": 10,
        "currentPageIndex": 1,
        "totalPages": 1,
        "count": 1,
        "list": [
            {
                "wg_dept_id": "1358532443941896192",
                "wg_dept_name": "测试部门",
                "entryentity": [
                    {
                        "wg_account_id": "1888349443388868608",
                        "wg_account_number": "SKZH-014",
                        "wg_account_name": "9999",
                        "id": "1888349678714489859"
                    }
                ],
                "wg_biztype": "2",
                "wg_totalamount": "200",
                "wg_dept_number": "BM00002",
                "wg_billdate": "2024-02-19",
                "id": "1888349678714488834",
                "billno": "JK-20240219-00001",
                "wg_reason": "测试"
            }
        ]
    },
    "errorCode": "success",
    "status": true,
    "success": true
}

 

分享文章
最近修改: 2025-07-21