菜单

项目档案编辑

基本信息

  • 用途说明:保存/编辑项目档案
  • 请求方式:POST
  • 请求地址:https://api.kingdee.com/weigusoft/wg_cost/saveBill?access_token=

请求参数

headers参数

参数名称 参数示例 是否必填 参数说明
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

params参数

参数名称 参数类型 是否必填 参数说明
access_token string true 金蝶云通行证token

body参数

参数名称 参数类型 是否必填 参数说明
entityName String true 单据标识:wg_project_files
data Object true 字段具体信息

data参数

参数名称 类型 必选 说明
id String true 项目档案id(修改项目档案时必填)
number String true 项目档案编码,不传递则由后台生成
name String true 项目档案名称
projectgrou_id String true 项目分组id
hproshortname String false 项目档案简称
hbasedatacustomer_id String false 客户id
protype_id String false 项目类型id
wg_projectmanager_id String false 项目经理id
projectstatus_id String false 项目阶段id
wg_hbusunit_id String false 业主单位id
hproaddr String false 项目地址
hbasedatasuperiorpro_id String false 父项目id
hbasedataorg_id String false 归属部门id
wg_labelcolor_id String false 标签颜色id
hprojectdes String false 项目说明
wg_allocationsentry Array true 协作团队

wg_allocationsentry的数据结构:

参数名称 类型 必选 说明
wg_collaborate_newtype_id String false 协作类型
wg_cooperate_staff_id String true 员工id
wg_cooperate_dept_id String true 部门id
wg_cooperate_view Boolean false 查看,默认true
wg_cooperate_edit Boolean false 修改,默认false
wg_cooperate_del Boolean false 删除,默认false
wg_cooperate_allocation Boolean false 协作分配,默认false
assign_remark String false 备注

请求示例

{
    "entityName": "wg_project_files",
    "data": {
        "protype_id": "1444994775844399104",
        "name": "0609项目2",
        "hbasedatacustomer_id": "1561929141568239616",
        "projectgrou_id": "1773954277153272832",
        "wg_allocationsentry": [
            {
                "wg_cooperate_staff_id": "1394084520470297600",
                "wg_cooperate_dept_id": "1358532443941896192",
                "wg_cooperate_view": true,
                "wg_cooperate_edit": true,
                "wg_cooperate_del": true,
                "wg_cooperate_allocation": true
            }
        ]
    }
}

 

响应示例

{
    "data": {
        "id": "2233555184594847744"
    },
    "errorCode": "success",
    "status": true,
    "success": true
}

分享文章
最近修改: 2025-06-10