审批中心移动APP审批API

这篇博客详细介绍了审批中心移动APP的API接口,包括获取待办已办任务、审批状态查询、历史记录和执行审批操作等功能,旨在辅助移动端开发者进行调试和应用开发。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

说明:审批中心移动APP审批,提供待办已办的分类及查询,审批、驳回、查看历史等服务。供移动端开发调试使用。

目录

  1. 获取审批任务分类及分类下的待审批任务条数
  2. 获取审批任务分类及分类下的已审批任务条数
  3. 获取某个用户的待审批任务
  4. 获取某个用户的已审批任务
  5. 获取某个审批任务的状态
  6. 获取审批历史列表
  7. 执行审批任务
  8. 执行驳回任务

获取审批任务分类及分类下的待审批任务条数

用途:
初始化待办页面时,取得待办的分类及各个分类下的待办数量
版本:
V1
URL:
http://ip:port/gwmanage/mobile/approve/service/category/query/todo?appid=xxx&tenantId=xxx&userId=xxx
Method:
GET

URL参数::

key 参数类型 是否必须 备注
appid string 授权的应用ID
tenantId string 当前租户ID
userId string 当前用户ID

成功返回:

{
  "status": 1,
  "data": {
    "ycquotation": 0,
    "categorys": [
      {
        "dataversion": 0,
        "dataenable": 0,
        "id": "a484930d-f36f-11e6-bab5-067a8600043d",
        "_id": {
          "$oid": "58a437aedaa81856a4d3a201"
        },
        "name": "友云采",
        "isLeaf": false,
        "categoryId": "yc",
        "parent": null,
        "code": "yuncai"
      },
      {
        "dataversion": 0,
        "dataenable": 0,
        "id": "abdb639e-f36f-11e6-bab5-067a8600043d",
        "_id": {
          "$oid": "58a437b1daa81856a4d3a202"
        },
        "name": "询报价",
        "isLeaf": false,
        "categoryId": "ycquotation",
        "parent": "a484930d-f36f-11e6-bab5-067a8600043d",
        "code": "quotation"
      },
      {
        "dataversion": 0,
        "dataenable": 0,
        "id": "ac018940-f36f-11e6-bab5-067a8600043d",
        "_id": {
          "$oid": "58a437b1daa81856a4d3a204"
        },
        "name": "云采超市",
        "isLeaf": false,
        "categoryId": "ycmall",
        "parent": "a484930d-f36f-11e6-bab5-067a8600043d",
        "code": "mall"
      },
      {
        "dataversion": 0,
        "dataenable": 0,
        "id": "ac29f8d3-f36f-11e6-bab5-067a8600043d",
        "_id": {
          "$oid": "58a437b2daa81856a4d3a207"
        },
        "name": "招投标",
        "isLeaf": false,
        "categoryId": "ycbid",
        "parent": "a484930d-f36f-11e6-bab5-067a8600043d",
        "code": "bid"
      }
    ],
    "ycbid": 0,
    "yc": 0,
    "ycmall": 0
  }
}

错误返回:

{
    "status": 0,
    "msg": "NullPointerException: Message destination system code is null!"
}

返回字段说明::

key 字段类型 说明
status int 请求状态
msg string 错误信息

获取审批任务分类及分类下的已审批任务条数

用途:
初始化已办页面时,取得已办的分类及各个分类下的已办数量
版本:
V1
URL:
http://ip:port/gwmanage/mobile/approve/service/category/query/done?appid=xxx&tenantId=xxx&userId=xxx
Method:
GET

URL参数::

key 参数类型 是否必须 备注
appid string 授权的应用ID
tenantId string 当前租户ID
userId string 当前用户ID

成功返回:

{
  "status": 1,
  "data": {
    "ycquotation": 0,
    "categorys": [
      {
        "dataversion": 0,
        "dataenable": 0,
        "id": "a484930d-f36f-11e6-bab5-067a8600043d",
        "_id": {
          "$oid": "58a437aedaa81856a4d3a201"
        },
        "name": "友云采",
        "isLeaf": false,
        "categoryId": "yc",
        "parent": null,
        "code": "yuncai"
      },
      {
        "dataversion": 0,
        "dataenable": 0,
        "id": "abdb639e-f36f-11e6-bab5-067a8600043d",
        "_id": {
          "$oid": "58a437b1daa81856a4d3a202"
        },
        "name": "询报价",
        "isLeaf": false,
        "categoryId": "ycquotation",
        "parent": "a484930d-f36f-11e6-bab5-067a8600043d",
        "code": "quotation"
      },
      {
        "dataversion": 0,
        "dataenable": 0,
        "id": "ac018940-f36f-11e6-bab5-067a8600043d",
        "_id": {
          "$oid": "58a437b1daa81856a4d3a204"
        },
        "name": "云采超市",
        "isLeaf": false,
        "categoryId": "ycmall",
        "parent": "a484930d-f36f-11e6-bab5-067a8600043d",
        "code": "mall"
      },
      {
        "dataversion": 0,
        "dataenable": 0,
        "id": "ac29f8d3-f36f-11e6-bab5-067a8600043d",
        "_id": {
          "$oid": "58a437b2daa81856a4d3a207"
        },
        "name": "招投标",
        "isLeaf": false,
        "categoryId": "ycbid",
        "parent": "a484930d-f36f-11e6-bab5-067a8600043d",
        "code": "bid"
      }
    ],
    "ycbid": 97,
    "yc": 97,
    "ycmall": 0
  }
}

错误返回:

{
    "status": 0,
    "msg": "租户不能为空;"
}

返回字段说明::

key 字段类型 说明
status int 请求状态
msg string 错误信息

获取某个用户的待审批任务

用途:
按任务分类获取某个用户的待审批任务
版本:
V1
URL:
http://ip:port/gwmanage/mobile/approve/service/task/query/todo?appid=xxx&tenantId=xxx&userId=xxx&categoryId=xxx&pageSize=xxx&pageNo=xxx
Method:
GET

URL参数::

key 参数类型 是否必须 备注
appid string 授权的应用ID
tenantId string 当前租户ID
userId string 当前用户ID
categoryId string 目录返回结果对应的字段值(eg:ycbid)
pageSize string 每页大小
pageNo string 查询第几页

成功返回:

{
  "status": 1,
  "data": {
    "itemCount": 39,
    "pageIndex": 2,
    "pageSize": 2,
    "pageCount": 20,
    "hasPre": true,
    "hasNext": true,
    "items": [
      {
        "dataversion": 0,
        "dataenable": 0,
        "tenantId": "pb2349et",
        "completeUrl": "/gwmanage/mygwapp/approve/service/pb2349et/db001/5020938c-db99-11e6-b9ce-067a8600043d/2a33f907-ff04-11e6-b98a-067a8600043d/",
        "busiaction": "approve_ycdecisionnotice",
        "msgBillDetailUrl": "/gwmanage/gwportal/pages/approval/approval_detail.html?tenantId=pb2349et&userId=5020938c-db99-11e6-b9ce-067a8600043d&processInstanceId=2a2f3e09-ff04-11e6-b98a-067a8600043d&taskId=2a33f907-ff04-11e6-b98a-067a8600043d&userCode=db001",
        "data": {
          "bidFee": null,
          "ts": "2017-03-02 12:53:12",
          "isOpenNum": null,
          "purOrgName": "南方水泥有限公司",
          "bidStartTime": null,
          "openType": "1",
          "supervisePsnName": null,
          "bidOpenTime": "2017-03-02 09:58:26",
          "isOpenPrice": null,
          "bidOfferStartTime": null,
          "isOpenMetarial": null,
          "status": "1",
          "priceDecisionTime": null,
          "purchaseType": "1",
          "materialClassIds": "8511A8513A",
          "modifier": null,
          "purPsnName": null,
          "modifiedtime": null,
          "isBidFee": null,
          "isConfirm": null,
          "bidType": null,
          "sortItemMap": null,
          "createTime": null,
          "signEndTime": null,
          "biddocBuyEndtime": null,
          "subject": "物流招标0302008",
          "bidEnsureFee": null,
          "urlName": null,
          "projectId": 1333,
          "creator": null,
          "supervisePsnId": null,
          "id": 249,
          "isExpertScore": "",
          "confirmEndTime": null,
          "supervisePsnPhone": null,
          "totalAmount": 69696,
          "isBidEnsureFee": null,
          "urlValue": "",
          "billSummary": "您有【物流招标0302008】的【中标公告】审批待办",
          "dr": null,
          "supplyNames": "碧桂园new",
          "purPsnId": null,
          "bidOfferEndTime": null,
          "enterpriseName": "南方水泥有限公司",
          "billcode": "物流招标0302008",
          "enterpriseId": 92,
          "signStartTime": null,
          "metarialList": [
            {
              "spec": null,
              "bidNum": 33,
              "createTime": null,
              "supEnterpriseId": 5,
              "materialDesc": null,
              "model": null,
              "ts": null,
              "memo": null,
              "materialId": 635955,
              "demander": null,
              "reqDate": null,
              "creator": null,
              "freightRate": null,
              "id": null,
              "amount": 33,
              "quotaReason": null,
              "description": null,
              "name": "余热电",
              "money": 69696,
              "supEnterpriseName": "碧桂园new",
              "dr": null,
              "enterpriseName": null,
              "reqOrgName": null,
              "enterpriseId": null,
              "sysVersion": null,
              "modifier": null,
              "unit": "千瓦时",
              "category": "电",
              "bidnoticeDetailId": null,
              "address": null,
              "reqOrgId": null,
              "freight": 0,
              "modifiedtime": null,
              "quotaPrice": 2112,
              "extFields": null,
              "sortItemMap": null
            }
          ],
          "sysVersion": null,
          "workFlowStatus": null,
          "bidEndTime": null,
          "purOrgId": 48307,
          "supplierMinNum": 1,
          "extFields": null,
          "bodyPOList": null
        },
        "appcode": "yyys",
        "rejectUrl": "/gwmanage/mygwapp/approve/service/reject/pb2349et/5020938c-db99-11e6-b9ce-067a8600043d/2a2f3e09-ff04-11e6-b98a-067a8600043d/2a33f907-ff04-11e6-b98a-067a8600043d/",
        "_id": {
          "$oid": "58b7a53be4b0c6bd93f62cb6"
        },
        "userId": "89136b2b-849d-45f3-90d6-3c8f8a85572a",
        "userName": "db001",
        "historyTaskUrl": "/gwmanage/mygwapp/approve/service/query/history-tasks/pb2349et/5020938c-db99-11e6-b9ce-067a8600043d/2a2f3e09-ff04-11e6-b98a-067a8600043d",
        "taskExistUrl": "/gwmanage/mygwapp/approve/service/confirm/taskExist/pb2349et/5020938c-db99-11e6-b9ce-067a8600043d/2a33f907-ff04-11e6-b98a-067a8600043d",
        "dr": 0,
        "billType": "ycdecisionnotice",
        "userCode": "db001",
        "status": "pushed",
        "task": {
          "tenantId": "46678fd6-db99-11e6-b9ce-067a8600043d",
          "createTime": 1488430403438,
          "assigneeParticipant": {
            "id": "5020938c-db99-11e6-b9ce-067a8600043d",
            "name": "db001",
            "code": "db001"
          },
          "formKey": null,
          "executionId": "2a318803-ff04-11e6-b98a-067a8600043d",
          "id": "2a33f907-ff04-11e6-b98a-067a8600043d",
          "revision": 0,
          "initialAssignee": null,
          "processInstanceId": "2a2f3e09-ff04-11e6-b98a-067a8600043d",
          "priority": 50,
          "description": null,
          "name": "审批任务",
          "dueDate": null,
          "parentTaskId": null,
          "processDefinitionId": "process3703:8:3e7cca86-fcb3-11e6-9620-067a8600043d",
          "deleteReason": null,
          "identityLinksInitialized": false,
          "suspensionState": 1,
          "assignee": "5020938c-db99-11e6-b9ce-067a8600043d",
          "processInstance": {
            "tenantId": "46678fd6-db99-11e6-b9ce-067a8600043d",
            "businessKey": "ycdecisionnotice&249",
            "currentActivityId": null,
            "tenantCode": "nfsngfgs",
            "currentActivityName": null,
            "id": "2a2f3e09-ff04-11e6-b98a-067a8600043d",
            "parentId": null,
            "category": null,
            "processInstanceId": "2a2f3e09-ff04-11e6-b98a-067a8600043d",
            "name": "招标公告审批",
            "eventName": null,
            "processDefinitionId": "process3703:8:3e7cca86-fcb3-11e6-9620-067a8600043d",
            "deleteReason": null
          },
          "tenantCode": "nfsngfgs",
          "deleted": false,
          "category": "ac4dd486-f36f-11e6-bab5-067a8600043d",
          "taskDefinitionKey": "approveUserTask549",
          "owner": null,
          "eventName": "create",
          "delegationState": null
        },
        "historyProcessUrl": "/https/blog.csdn.net/gwmanage/uapprove/diagram-viewer/index.html?processDefinitionId=process3703:8:3e7cca86-fcb3-11e6-9620-067a8600043d&processInstanceId=2a2f3e09-ff04-11e6-b98a-067a8600043d&tenantId=pb2349et",
        "tenantCode": "nfsngfgs",
        "ccreationtime": "2017-03-02 12:53:15",
        "_class": "com.yonyou.nccloud.gwm.bpm.vo.Task",
        "userMobile": "18039201205",
        "billDetailUrl": "http://yc.yonyou.com/cpu-fe-bid/dist/submitbidnoticeapp/index.html?projectId=249"
      },
      {
        "dataversion": 0,
        "dataenable": 0,
        "tenantId": "pb2349et",
        "completeUrl": "/gwmanage/mygwapp/approve/service/pb2349et/db001/5020938c-db99-11e6-b9ce-067a8600043d/7aedacd3-ff03-11e6-b98a-067a8600043d/",
        "busiaction": "approve_ycdecisionnotice",
        "msgBillDetailUrl": "/gwmanage/gwportal/pages/approval/approval_detail.html?tenantId=pb2349et&userId=5020938c-db99-11e6-b9ce-067a8600043d&processInstanceId=7ae6a7e5-ff03-11e6-b98a-067a8600043d&taskId=7aedacd3-ff03-11e6-b98a-067a8600043d&userCode=db001",
        "data": {
          "bidFee": null,
          "ts": "2017-03-02 12:48:18",
          "isOpenNum": null,
          "purOrgName": "南方水泥有限公司",
          "bidStartTime": null,
          "openType": "1",
          "supervisePsnName": null,
          "bidOpenTime": "2017-03-02 09:58:26",
          "isOpenPrice": null,
          "bidOfferStartTime": null,
          "isOpenMetarial": null,
          "status": "1",
          "priceDecisionTime": null,
          "purchaseType": "1",
          "materialClassIds": "8511A8513A",
          "modifier": null,
          "purPsnName": null,
          "modifiedtime": null,
          "isBidFee": null,
          "isConfirm": null,
          "bidType": null,
          "sortItemMap": null,
          "createTime": null,
          "signEndTime": null,
          "biddocBuyEndtime": null,
          "subject": "物流招标0302008",
          "bidEnsureFee": null,
          "urlName": null,
          "projectId": 1333,
          "creator": null,
          "supervisePsnId": null,
          "id": 245,
          "isExpertScore": "",
          "confirmEndTime": null,
          "supervisePsnPhone": null,
          "totalAmount": 69696,
          "isBidEnsureFee": null,
          "urlValue": "",
          "billSummary": "您有【物流招标0302008】的【中标公告】审批待办",
          "dr": null,
          "supplyNames": "碧桂园new",
          "purPsnId": null,
          "bidOfferEndTime": null,
          "enterpriseName": "南方水泥有限公司",
          "billcode": "物流招标0302008",
          "enterpriseId": 92,
          "signStartTime": null,
          "metarialList": [
            {
              "spec": null,
              "bidNum": 33,
              "createTime": null,
  
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值