审批中心移动APP审批API

来源:互联网 发布:矩阵张量积计算公式 编辑:程序博客网 时间:2024/04/29 14:55

说明:审批中心移动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": "/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,              "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/7ae6a7e5-ff03-11e6-b98a-067a8600043d/7aedacd3-ff03-11e6-b98a-067a8600043d/",        "_id": {          "$oid": "58b7a41be4b0c6bd93f62ca8"        },        "userId": "89136b2b-849d-45f3-90d6-3c8f8a85572a",        "userName": "db001",        "historyTaskUrl": "/gwmanage/mygwapp/approve/service/query/history-tasks/pb2349et/5020938c-db99-11e6-b9ce-067a8600043d/7ae6a7e5-ff03-11e6-b98a-067a8600043d",        "taskExistUrl": "/gwmanage/mygwapp/approve/service/confirm/taskExist/pb2349et/5020938c-db99-11e6-b9ce-067a8600043d/7aedacd3-ff03-11e6-b98a-067a8600043d",        "dr": 0,        "billType": "ycdecisionnotice",        "userCode": "db001",        "status": "pushed",        "task": {          "tenantId": "46678fd6-db99-11e6-b9ce-067a8600043d",          "createTime": 1488430109376,          "assigneeParticipant": {            "id": "5020938c-db99-11e6-b9ce-067a8600043d",            "name": "db001",            "code": "db001"          },          "formKey": null,          "executionId": "7aeb62df-ff03-11e6-b98a-067a8600043d",          "id": "7aedacd3-ff03-11e6-b98a-067a8600043d",          "revision": 0,          "initialAssignee": null,          "processInstanceId": "7ae6a7e5-ff03-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&245",            "currentActivityId": null,            "tenantCode": "nfsngfgs",            "currentActivityName": null,            "id": "7ae6a7e5-ff03-11e6-b98a-067a8600043d",            "parentId": null,            "category": null,            "processInstanceId": "7ae6a7e5-ff03-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": "/gwmanage/uapprove/diagram-viewer/index.html?processDefinitionId=process3703:8:3e7cca86-fcb3-11e6-9620-067a8600043d&processInstanceId=7ae6a7e5-ff03-11e6-b98a-067a8600043d&tenantId=pb2349et",        "tenantCode": "nfsngfgs",        "ccreationtime": "2017-03-02 12:48:27",        "_class": "com.yonyou.nccloud.gwm.bpm.vo.Task",        "userMobile": "18039201205",        "billDetailUrl": "http://yc.yonyou.com/cpu-fe-bid/dist/submitbidnoticeapp/index.html?projectId=245"      }    ]  }}

返回字段说明:

key 字段类型 说明 status int 请求状态,1表示成功,0表示失败 data.itemCount int 消息总数 data.pageIndex int 当前页码 data.pageSize int 每页显示记录数 data.pageCount int 总页数 data.hasPre boolean 是否有上一页 data.hasNext boolean 是否有下一页 data.items array 任务数组

错误返回:

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

返回字段说明::

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

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

用途:
按任务分类获取某个用户的已审批任务
版本:
V1
URL:
http://ip:port/gwmanage/mobile/approve/service/task/query/done?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": 163,    "pageIndex": 2,    "pageSize": 2,    "pageCount": 82,    "hasPre": true,    "hasNext": true,    "items": [      {        "dataversion": 0,        "dataenable": 0,        "tenantId": "pb2349et",        "completeUrl": "/gwmanage/mygwapp/approve/service/pb2349et/db001/5020938c-db99-11e6-b9ce-067a8600043d/b0e5d849-00ab-11e7-96ba-067a8600043d/",        "busiaction": "approve_ycbiddecision",        "msgBillDetailUrl": "/gwmanage/gwportal/pages/approval/approval_detail.html?tenantId=pb2349et&userId=5020938c-db99-11e6-b9ce-067a8600043d&processInstanceId=b0e3673a-00ab-11e7-96ba-067a8600043d&taskId=b0e5d849-00ab-11e7-96ba-067a8600043d&userCode=db001",        "data": {          "head": {            "createTime": null,            "phone": null,            "ts": null,            "buyofferTime": null,            "subject": "测试移动审批sxl001",            "deprecaterName": null,            "orderPsnId": null,            "projectId": 1353,            "contact": null,            "deprecaterId": null,            "creator": null,            "id": 543,            "erpProductVersion": null,            "corpAccountid": "48307",            "fbillstatus": null,            "description": null,            "erpVender": null,            "totalAmount": null,            "postedERP": false,            "corpSubAccountid": null,            "corpSubAccount": "7455",            "sugSupplierHasFlow": false,            "processor": null,            "dr": null,            "materialsJ": null,            "erpBillstatus": null,            "corpAccount": "南方水泥有限公司",            "status": "5",            "enterpriseName": null,            "splitRule": "1",            "qtexpiredate": null,            "enterpriseId": 92,            "sysVersion": null,            "deprecateTime": null,            "vbillcode": "测试移动审批sxl001",            "modifier": null,            "buyofferid": -1,            "openbidTime": "2017-03-04 15:24:25",            "deprecateReason": null,            "modifiedtime": null,            "extFields": null,            "sortItemMap": null          },          "progressPOs": null,          "bodys": [            {              "quotaNum": 222,              "supEnterpriseId": 286,              "supplierName": "tlys",              "ts": null,              "materiaNo": null,              "freightRate": "11",              "suppProductName": null,              "skuId": null,              "supplierPhone": "15924356789",              "supplierId": 772,              "status": null,              "reqOrgName": null,              "modifier": null,              "ecPriceId": null,              "bidCommitTime": null,              "materialCode": null,              "modifiedtime": null,              "receiveAddress": null,              "quotaPrice": 11,              "supbidBid": 6580,              "sortItemMap": null,              "quotaofferdetailid": -1,              "spec": null,              "bidNum": 222,              "createTime": null,              "materialDesc": null,              "model": null,              "memo": null,              "materialId": 635953,              "materialUrl": null,              "nnum": 222,              "ecPriceDetailId": null,              "reqDate": null,              "creator": null,              "ecSupplierId": null,              "id": 1164,              "taxrate": "11",              "quotaReason": null,              "ectype": null,              "scaleNum": null,              "suppProductId": null,              "cunit": "吨",              "buyofferdetailid": -1,              "dr": null,              "supEnterpriseName": "铜陵有色有限公司",              "materialName": "无烟煤",              "exportScore": null,              "enterpriseName": null,              "pritemid": null,              "materialClassName": "煤",              "enterpriseId": null,              "supplierCode": null,              "supbidHid": 2946,              "quotaMoney": 2453,              "skuCode": null,              "sysVersion": null,              "buyofferid": -1,              "suppProductUrl": null,              "hasWonBid": false,              "materialClassId": 8512,              "quotaofferid": -1,              "reqOrgId": null,              "cpuPricedecisionId": 543,              "taxMoney": null,              "freight": 11,              "extFields": null            },            {              "quotaNum": 3333,              "supEnterpriseId": 286,              "supplierName": "tlys",              "ts": null,              "materiaNo": null,              "freightRate": "11",              "suppProductName": null,              "skuId": null,              "supplierPhone": "15924356789",              "supplierId": 772,              "status": null,              "reqOrgName": null,              "modifier": null,              "ecPriceId": null,              "bidCommitTime": null,              "materialCode": null,              "modifiedtime": null,              "receiveAddress": null,              "quotaPrice": 11,              "supbidBid": 6581,              "sortItemMap": null,              "quotaofferdetailid": -1,              "spec": null,              "bidNum": 3333,              "createTime": null,              "materialDesc": null,              "model": null,              "memo": null,              "materialId": 635952,              "materialUrl": null,              "nnum": 3333,              "ecPriceDetailId": null,              "reqDate": null,              "creator": null,              "ecSupplierId": null,              "id": 1165,              "taxrate": "11",              "quotaReason": null,              "ectype": null,              "scaleNum": null,              "suppProductId": null,              "cunit": "吨",              "buyofferdetailid": -1,              "dr": null,              "supEnterpriseName": "铜陵有色有限公司",              "materialName": "烟煤",              "exportScore": null,              "enterpriseName": null,              "pritemid": null,              "materialClassName": "煤",              "enterpriseId": null,              "supplierCode": null,              "supbidHid": 2946,              "quotaMoney": 36674,              "skuCode": null,              "sysVersion": null,              "buyofferid": -1,              "suppProductUrl": null,              "hasWonBid": false,              "materialClassId": 8512,              "quotaofferid": -1,              "reqOrgId": null,              "cpuPricedecisionId": 543,              "taxMoney": null,              "freight": 11,              "extFields": null            }          ],          "billSummary": "您有【测试移动审批sxl001】的【定标】审批待办"        },        "appcode": "yyys",        "rejectUrl": "/gwmanage/mygwapp/approve/service/reject/pb2349et/5020938c-db99-11e6-b9ce-067a8600043d/b0e3673a-00ab-11e7-96ba-067a8600043d/b0e5d849-00ab-11e7-96ba-067a8600043d/",        "_id": {          "$oid": "58ba6bdfe4b03724c9b1b0ea"        },        "userId": "89136b2b-849d-45f3-90d6-3c8f8a85572a",        "userName": "db001",        "historyTaskUrl": "/gwmanage/mygwapp/approve/service/query/history-tasks/pb2349et/5020938c-db99-11e6-b9ce-067a8600043d/b0e3673a-00ab-11e7-96ba-067a8600043d",        "taskExistUrl": "/gwmanage/mygwapp/approve/service/confirm/taskExist/pb2349et/5020938c-db99-11e6-b9ce-067a8600043d/b0e5d849-00ab-11e7-96ba-067a8600043d",        "dr": 0,        "billType": "ycbiddecision",        "userCode": "db001",        "status": "complete",        "task": {          "tenantId": "46678fd6-db99-11e6-b9ce-067a8600043d",          "createTime": 1488612306535,          "assigneeParticipant": {            "id": "5020938c-db99-11e6-b9ce-067a8600043d",            "name": "db001",            "code": "db001"          },          "formKey": null,          "executionId": "b0e36745-00ab-11e7-96ba-067a8600043d",          "id": "b0e5d849-00ab-11e7-96ba-067a8600043d",          "revision": 0,          "initialAssignee": null,          "processInstanceId": "b0e3673a-00ab-11e7-96ba-067a8600043d",          "priority": 50,          "description": null,          "name": "南方水泥二级审批",          "dueDate": null,          "parentTaskId": null,          "processDefinitionId": "process3860:6:35c9290e-fcb3-11e6-9620-067a8600043d",          "deleteReason": null,          "identityLinksInitialized": false,          "suspensionState": 1,          "assignee": "5020938c-db99-11e6-b9ce-067a8600043d",          "processInstance": {            "tenantId": "46678fd6-db99-11e6-b9ce-067a8600043d",            "businessKey": "ycbiddecision&543",            "currentActivityId": null,            "tenantCode": "nfsngfgs",            "currentActivityName": null,            "id": "b0e3673a-00ab-11e7-96ba-067a8600043d",            "parentId": null,            "category": null,            "processInstanceId": "b0e3673a-00ab-11e7-96ba-067a8600043d",            "name": "定标审批",            "eventName": null,            "processDefinitionId": "process3860:6:35c9290e-fcb3-11e6-9620-067a8600043d",            "deleteReason": null          },          "tenantCode": "nfsngfgs",          "deleted": false,          "category": "abf5a25f-f36f-11e6-bab5-067a8600043d",          "taskDefinitionKey": "approveUserTask_10e25516283a45d082995331684314",          "owner": null,          "eventName": "create",          "delegationState": null        },        "historyProcessUrl": "/gwmanage/uapprove/diagram-viewer/index.html?processDefinitionId=process3860:6:35c9290e-fcb3-11e6-9620-067a8600043d&processInstanceId=b0e3673a-00ab-11e7-96ba-067a8600043d&tenantId=pb2349et",        "tenantCode": "nfsngfgs",        "ccreationtime": "2017-03-04 15:25:19",        "_class": "com.yonyou.nccloud.gwm.bpm.vo.Task",        "userMobile": "18039201205",        "billDetailUrl": "http://yc.yonyou.com/cpu-fe-bid/dist/recomsupdetailsapp/index.html?id=543"      },      {        "dataversion": 0,        "dataenable": 0,        "tenantId": "pb2349et",        "completeUrl": "/gwmanage/mygwapp/approve/service/pb2349et/db001/5020938c-db99-11e6-b9ce-067a8600043d/9490147f-00aa-11e7-96ba-067a8600043d/",        "busiaction": "approve_ycprequalfication",        "msgBillDetailUrl": "/gwmanage/gwportal/pages/approval/approval_detail.html?tenantId=pb2349et&userId=5020938c-db99-11e6-b9ce-067a8600043d&processInstanceId=94867781-00aa-11e7-96ba-067a8600043d&taskId=9490147f-00aa-11e7-96ba-067a8600043d&userCode=db001",        "data": {          "purchaseHeaderName": "李红",          "bidFee": null,          "ts": null,          "bidOrgName": "南方水泥有限公司",          "bidOrgId": 48307,          "bidStartTime": "2017-03-01 15:11:58",          "billStatus": null,          "contacts": 7455,          "bidbuyendtime": null,          "materials": null,          "bidOfferStartTime": "2017-03-01 15:11:55",          "signupEndtime": "2017-04-01 15:11:53",          "fax": null,          "purchaseType": 1,          "publishStatus": 1,          "modifier": null,          "supplierList": [            {              "supEnterpriseId": 286,              "createTime": null,              "supplierName": "铜陵有色有限公司",              "ts": null,              "mainProduct": "0",              "projectSupplierId": null,              "creator": null,              "id": 1777,              "supplierClassId": null,              "levelStatus": null,              "signUpTime": "2017-03-04 00:00:00",              "suggestReason": null,              "bidsupId": 2945,              "businessAddress": "安徽铜陵铜陵市",              "dr": 0,              "sourceType": 0,              "supplierId": null,              "status": 1,              "enterpriseName": null,              "enterpriseId": null,              "supplierClassName": null,              "sysVersion": null,              "businessModel": "0",              "modifier": null,              "bidNoticeId": 616,              "modifiedtime": null,              "rowStatus": "unchange",              "extFields": null,              "sortItemMap": null            }          ],          "otherCertificates": null,          "email": "135123456@01",          "modifiedtime": "2017-03-04 15:12:09",          "contactType": 3,          "isBidFee": null,          "bidType": 1,          "purchaseHeader": 7471,          "bidNoticeStatus": 2,          "sortItemMap": null,          "createTime": null,          "projectCode": "测试移动审批sxl001",          "scope": "1",          "isCertificates": 1,          "materialList": [            {              "createTime": null,              "ts": "2017-03-04 15:12:06",              "materialId": 635960,              "projectMaterialId": 2683,              "demander": null,              "creator": null,              "amount": 222,              "id": 1965,              "description": null,              "name": "电石渣",              "dr": 0,              "pureqId": null,              "enterpriseName": null,              "enterpriseId": null,              "sysVersion": null,              "modifier": null,              "bidNoticeId": 616,              "unit": "吨",              "category": "石渣",              "address": null,              "materialClassId": 8517,              "reqOrgId": null,              "requiredTime": null,              "modifiedtime": null,              "rowStatus": "unchange",              "extFields": null,              "sortItemMap": null            }          ],          "bidEnsureFee": 11111,          "openTime": null,          "contactTel": "13512345601",          "projectId": 1355,          "projectTitle": "测试移动审批sxl003",          "isExpertReview": "0",          "contactsName": "吴国潮",          "creator": null,          "id": 616,          "isBidEnsureFee": 1,          "note": "http://oss-yc-dev.oss-cn-beijing.aliyuncs.com/pb2349et/8291b6b7-76f2-4f0c-9cab-d5c253e9de8e_temp1488611289890.html",          "billSummary": "您有【测试移动审批sxl003】的【资格预审】审批待办",          "dr": 0,          "bidOfferEndTime": "2017-04-01 15:11:57",          "enterpriseName": "南方水泥有限公司",          "enterpriseId": 92,          "signupStarttime": "2017-03-01 15:11:50",          "sysVersion": null,          "projectSummary": null,          "workFlowStatus": null,          "bidEndTime": "2017-04-01 15:12:00",          "openTenderType": "1",          "supplierMinNum": 1,          "channel": "1",          "extFields": null        },        "appcode": "yyys",        "rejectUrl": "/gwmanage/mygwapp/approve/service/reject/pb2349et/5020938c-db99-11e6-b9ce-067a8600043d/94867781-00aa-11e7-96ba-067a8600043d/9490147f-00aa-11e7-96ba-067a8600043d/",        "_id": {          "$oid": "58ba69dfe4b03724c9b1b0e2"        },        "userId": "89136b2b-849d-45f3-90d6-3c8f8a85572a",        "userName": "db001",        "historyTaskUrl": "/gwmanage/mygwapp/approve/service/query/history-tasks/pb2349et/5020938c-db99-11e6-b9ce-067a8600043d/94867781-00aa-11e7-96ba-067a8600043d",        "taskExistUrl": "/gwmanage/mygwapp/approve/service/confirm/taskExist/pb2349et/5020938c-db99-11e6-b9ce-067a8600043d/9490147f-00aa-11e7-96ba-067a8600043d",        "dr": 0,        "billType": "ycprequalfication",        "userCode": "db001",        "status": "complete",        "task": {          "tenantId": "46678fd6-db99-11e6-b9ce-067a8600043d",          "createTime": 1488611829500,          "assigneeParticipant": {            "id": "5020938c-db99-11e6-b9ce-067a8600043d",            "name": "db001",            "code": "db001"          },          "formKey": null,          "executionId": "9488e88b-00aa-11e7-96ba-067a8600043d",          "id": "9490147f-00aa-11e7-96ba-067a8600043d",          "revision": 0,          "initialAssignee": null,          "processInstanceId": "94867781-00aa-11e7-96ba-067a8600043d",          "priority": 50,          "description": null,          "name": "审批任务",          "dueDate": null,          "parentTaskId": null,          "processDefinitionId": "process2717:3:3a4932f2-fcb3-11e6-9620-067a8600043d",          "deleteReason": null,          "identityLinksInitialized": false,          "suspensionState": 1,          "assignee": "5020938c-db99-11e6-b9ce-067a8600043d",          "processInstance": {            "tenantId": "46678fd6-db99-11e6-b9ce-067a8600043d",            "businessKey": "ycprequalfication&616",            "currentActivityId": null,            "tenantCode": "nfsngfgs",            "currentActivityName": null,            "id": "94867781-00aa-11e7-96ba-067a8600043d",            "parentId": null,            "category": null,            "processInstanceId": "94867781-00aa-11e7-96ba-067a8600043d",            "name": "资格预审审批",            "eventName": null,            "processDefinitionId": "process2717:3:3a4932f2-fcb3-11e6-9620-067a8600043d",            "deleteReason": null          },          "tenantCode": "nfsngfgs",          "deleted": false,          "category": "ac3f7ca5-f36f-11e6-bab5-067a8600043d",          "taskDefinitionKey": "approveUserTask5325",          "owner": null,          "eventName": "create",          "delegationState": null        },        "historyProcessUrl": "/gwmanage/uapprove/diagram-viewer/index.html?processDefinitionId=process2717:3:3a4932f2-fcb3-11e6-9620-067a8600043d&processInstanceId=94867781-00aa-11e7-96ba-067a8600043d&tenantId=pb2349et",        "tenantCode": "nfsngfgs",        "ccreationtime": "2017-03-04 15:16:47",        "_class": "com.yonyou.nccloud.gwm.bpm.vo.Task",        "userMobile": "18039201205",        "billDetailUrl": "http://yc.yonyou.com/cpu-fe-bid/dist/prequalificationshowapp/index.html?id=616"      }    ]  }}

返回字段说明:

key 字段类型 说明 status int 请求状态,1表示成功,0表示失败 data.itemCount int 消息总数 data.pageIndex int 当前页码 data.pageSize int 每页显示记录数 data.pageCount int 总页数 data.hasPre boolean 是否有上一页 data.hasNext boolean 是否有下一页 data.items array 任务数组

获取某个审批任务的状态

用途:
根据任务ID查询任务是否存在
版本:
V1
URL:
http://ip:port/gwmanage/mobile/approve/service/task/confirm/taskExist?appid=xxx&tenantId=xxx&userId=xxx&taskId=xxx
Method:
GET

URL参数::

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

成功返回:

{  "status": 1}

失败返回:

{  "status": 0,  "msg": "查询任务失败:无法找到ID为dbcea4db-00ab-11e7-96ba-067a8600043d的任务。"}

获取审批历史列表

用途:
根据任务ID查询任务是否存在
版本:
V1
URL:
http://ip:port/gwmanage/mobile/approve/service/task/query/history?appid=xxx&tenantId=xxx&userId=xxx&billType=xxx&billId=xxx
Method:
GET

URL参数::

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

成功返回:

{  "status": 1,  "data": [    {      "status": "submit",      "taskComments": "提交单据!",      "userName": "zb001",      "endTime": 1488348254000    }  ]}

失败返回:

 
{
"status": 0,
"msg": "失败原因"
}

返回字段说明:

key 字段类型 说明 data.status string 历史状态(completed\rejected) data.taskComments string 意见内容 data.userName string 处理人 data.endTime long 处理时间

备注:

data.status有三种取值:submit、completed、rejected,分别对应提交、审批、驳回三种状态

执行审批任务

用途:
通过接口调用执行审批动作
版本:
V1
URL:
http://ip:port/gwmanage/mobile/approve/service/task/approve?appid=xxx
Method:
POST
请求格式:
Json

URL参数::

key 参数类型 是否必须 备注 appid string 是 授权的应用ID

请求参数:

{    "tenantId": "租户ID",    "userId": "用户ID",    "taskId": "任务ID",    "auditComment":"审批意见"}

成功返回:

{    "status": 1,    "msg": "任务审批成功!"}

错误返回:

{    "status": 0,    "msg": "失败原因!"}

返回字段说明::

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

执行驳回任务

用途:
通过接口调用执行驳回动作
版本:
V1
URL:
http://ip:port/gwmanage/mobile/approve/service/task/reject?appid=xxx
Method:
POST
请求格式:
Json

URL参数::

key 参数类型 是否必须 备注 appid string 是 授权的应用ID

请求参数:

{    "tenantId": "租户ID",    "userId": "用户ID",    "taskId": "任务ID",    "rejectReason":"审批意见"}

成功返回:

{    "status": 1,    "msg": "任务审批成功!"}

错误返回:

{    "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": "/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,              "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/7ae6a7e5-ff03-11e6-b98a-067a8600043d/7aedacd3-ff03-11e6-b98a-067a8600043d/",        "_id": {          "$oid": "58b7a41be4b0c6bd93f62ca8"        },        "userId": "89136b2b-849d-45f3-90d6-3c8f8a85572a",        "userName": "db001",        "historyTaskUrl": "/gwmanage/mygwapp/approve/service/query/history-tasks/pb2349et/5020938c-db99-11e6-b9ce-067a8600043d/7ae6a7e5-ff03-11e6-b98a-067a8600043d",        "taskExistUrl": "/gwmanage/mygwapp/approve/service/confirm/taskExist/pb2349et/5020938c-db99-11e6-b9ce-067a8600043d/7aedacd3-ff03-11e6-b98a-067a8600043d",        "dr": 0,        "billType": "ycdecisionnotice",        "userCode": "db001",        "status": "pushed",        "task": {          "tenantId": "46678fd6-db99-11e6-b9ce-067a8600043d",          "createTime": 1488430109376,          "assigneeParticipant": {            "id": "5020938c-db99-11e6-b9ce-067a8600043d",            "name": "db001",            "code": "db001"          },          "formKey": null,          "executionId": "7aeb62df-ff03-11e6-b98a-067a8600043d",          "id": "7aedacd3-ff03-11e6-b98a-067a8600043d",          "revision": 0,          "initialAssignee": null,          "processInstanceId": "7ae6a7e5-ff03-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&245",            "currentActivityId": null,            "tenantCode": "nfsngfgs",            "currentActivityName": null,            "id": "7ae6a7e5-ff03-11e6-b98a-067a8600043d",            "parentId": null,            "category": null,            "processInstanceId": "7ae6a7e5-ff03-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": "/gwmanage/uapprove/diagram-viewer/index.html?processDefinitionId=process3703:8:3e7cca86-fcb3-11e6-9620-067a8600043d&processInstanceId=7ae6a7e5-ff03-11e6-b98a-067a8600043d&tenantId=pb2349et",        "tenantCode": "nfsngfgs",        "ccreationtime": "2017-03-02 12:48:27",        "_class": "com.yonyou.nccloud.gwm.bpm.vo.Task",        "userMobile": "18039201205",        "billDetailUrl": "http://yc.yonyou.com/cpu-fe-bid/dist/submitbidnoticeapp/index.html?projectId=245"      }    ]  }}

返回字段说明:

key 字段类型 说明 status int 请求状态,1表示成功,0表示失败 data.itemCount int 消息总数 data.pageIndex int 当前页码 data.pageSize int 每页显示记录数 data.pageCount int 总页数 data.hasPre boolean 是否有上一页 data.hasNext boolean 是否有下一页 data.items array 任务数组

错误返回:

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

返回字段说明::

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

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

用途:
按任务分类获取某个用户的已审批任务
版本:
V1
URL:
http://ip:port/gwmanage/mobile/approve/service/task/query/done?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": 163,    "pageIndex": 2,    "pageSize": 2,    "pageCount": 82,    "hasPre": true,    "hasNext": true,    "items": [      {        "dataversion": 0,        "dataenable": 0,        "tenantId": "pb2349et",        "completeUrl": "/gwmanage/mygwapp/approve/service/pb2349et/db001/5020938c-db99-11e6-b9ce-067a8600043d/b0e5d849-00ab-11e7-96ba-067a8600043d/",        "busiaction": "approve_ycbiddecision",        "msgBillDetailUrl": "/gwmanage/gwportal/pages/approval/approval_detail.html?tenantId=pb2349et&userId=5020938c-db99-11e6-b9ce-067a8600043d&processInstanceId=b0e3673a-00ab-11e7-96ba-067a8600043d&taskId=b0e5d849-00ab-11e7-96ba-067a8600043d&userCode=db001",        "data": {          "head": {            "createTime": null,            "phone": null,            "ts": null,            "buyofferTime": null,            "subject": "测试移动审批sxl001",            "deprecaterName": null,            "orderPsnId": null,            "projectId": 1353,            "contact": null,            "deprecaterId": null,            "creator": null,            "id": 543,            "erpProductVersion": null,            "corpAccountid": "48307",            "fbillstatus": null,            "description": null,            "erpVender": null,            "totalAmount": null,            "postedERP": false,            "corpSubAccountid": null,            "corpSubAccount": "7455",            "sugSupplierHasFlow": false,            "processor": null,            "dr": null,            "materialsJ": null,            "erpBillstatus": null,            "corpAccount": "水泥有限公司",            "status": "5",            "enterpriseName": null,            "splitRule": "1",            "qtexpiredate": null,            "enterpriseId": 92,            "sysVersion": null,            "deprecateTime": null,            "vbillcode": "测试移动审批sxl001",            "modifier": null,            "buyofferid": -1,            "openbidTime": "2017-03-04 15:24:25",            "deprecateReason": null,            "modifiedtime": null,            "extFields": null,            "sortItemMap": null          },          "progressPOs": null,          "bodys": [            {              "quotaNum": 222,              "supEnterpriseId": 286,              "supplierName": "tlys",              "ts": null,              "materiaNo": null,              "freightRate": "11",              "suppProductName": null,              "skuId": null,              "supplierPhone": "15924356789",              "supplierId": 772,              "status": null,              "reqOrgName": null,              "modifier": null,              "ecPriceId": null,              "bidCommitTime": null,              "materialCode": null,              "modifiedtime": null,              "receiveAddress": null,              "quotaPrice": 11,              "supbidBid": 6580,              "sortItemMap": null,              "quotaofferdetailid": -1,              "spec": null,              "bidNum": 222,              "createTime": null,              "materialDesc": null,              "model": null,              "memo": null,              "materialId": 635953,              "materialUrl": null,              "nnum": 222,              "ecPriceDetailId": null,              "reqDate": null,              "creator": null,              "ecSupplierId": null,              "id": 1164,              "taxrate": "11",              "quotaReason": null,              "ectype": null,              "scaleNum": null,              "suppProductId": null,              "cunit": "吨",              "buyofferdetailid": -1,              "dr": null,              "supEnterpriseName": "铜陵有色有限公司",              "materialName": "无烟煤",              "exportScore": null,              "enterpriseName": null,              "pritemid": null,              "materialClassName": "煤",              "enterpriseId": null,              "supplierCode": null,              "supbidHid": 2946,              "quotaMoney": 2453,              "skuCode": null,              "sysVersion": null,              "buyofferid": -1,              "suppProductUrl": null,              "hasWonBid": false,              "materialClassId": 8512,              "quotaofferid": -1,              "reqOrgId": null,              "cpuPricedecisionId": 543,              "taxMoney": null,              "freight": 11,              "extFields": null            },            {              "quotaNum": 3333,              "supEnterpriseId": 286,              "supplierName": "tlys",              "ts": null,              "materiaNo": null,              "freightRate": "11",              "suppProductName": null,              "skuId": null,              "supplierPhone": "15924356789",              "supplierId": 772,              "status": null,              "reqOrgName": null,              "modifier": null,              "ecPriceId": null,              "bidCommitTime": null,              "materialCode": null,              "modifiedtime": null,              "receiveAddress": null,              "quotaPrice": 11,              "supbidBid": 6581,              "sortItemMap": null,              "quotaofferdetailid": -1,              "spec": null,              "bidNum": 3333,              "createTime": null,              "materialDesc": null,              "model": null,              "memo": null,              "materialId": 635952,              "materialUrl": null,              "nnum": 3333,              "ecPriceDetailId": null,              "reqDate": null,              "creator": null,              "ecSupplierId": null,              "id": 1165,              "taxrate": "11",              "quotaReason": null,              "ectype": null,              "scaleNum": null,              "suppProductId": null,              "cunit": "吨",              "buyofferdetailid": -1,              "dr": null,              "supEnterpriseName": "铜陵有色有限公司",              "materialName": "烟煤",              "exportScore": null,              "enterpriseName": null,              "pritemid": null,              "materialClassName": "煤",              "enterpriseId": null,              "supplierCode": null,              "supbidHid": 2946,              "quotaMoney": 36674,              "skuCode": null,              "sysVersion": null,              "buyofferid": -1,              "suppProductUrl": null,              "hasWonBid": false,              "materialClassId": 8512,              "quotaofferid": -1,              "reqOrgId": null,              "cpuPricedecisionId": 543,              "taxMoney": null,              "freight": 11,              "extFields": null            }          ],          "billSummary": "您有【测试移动审批sxl001】的【定标】审批待办"        },        "appcode": "yyys",        "rejectUrl": "/gwmanage/mygwapp/approve/service/reject/pb2349et/5020938c-db99-11e6-b9ce-067a8600043d/b0e3673a-00ab-11e7-96ba-067a8600043d/b0e5d849-00ab-11e7-96ba-067a8600043d/",        "_id": {          "$oid": "58ba6bdfe4b03724c9b1b0ea"        },        "userId": "89136b2b-849d-45f3-90d6-3c8f8a85572a",        "userName": "db001",        "historyTaskUrl": "/gwmanage/mygwapp/approve/service/query/history-tasks/pb2349et/5020938c-db99-11e6-b9ce-067a8600043d/b0e3673a-00ab-11e7-96ba-067a8600043d",        "taskExistUrl": "/gwmanage/mygwapp/approve/service/confirm/taskExist/pb2349et/5020938c-db99-11e6-b9ce-067a8600043d/b0e5d849-00ab-11e7-96ba-067a8600043d",        "dr": 0,        "billType": "ycbiddecision",        "userCode": "db001",        "status": "complete",        "task": {          "tenantId": "46678fd6-db99-11e6-b9ce-067a8600043d",          "createTime": 1488612306535,          "assigneeParticipant": {            "id": "5020938c-db99-11e6-b9ce-067a8600043d",            "name": "db001",            "code": "db001"          },          "formKey": null,          "executionId": "b0e36745-00ab-11e7-96ba-067a8600043d",          "id": "b0e5d849-00ab-11e7-96ba-067a8600043d",          "revision": 0,          "initialAssignee": null,          "processInstanceId": "b0e3673a-00ab-11e7-96ba-067a8600043d",          "priority": 50,          "description": null,          "name": "水泥二级审批",          "dueDate": null,          "parentTaskId": null,          "processDefinitionId": "process3860:6:35c9290e-fcb3-11e6-9620-067a8600043d",          "deleteReason": null,          "identityLinksInitialized": false,          "suspensionState": 1,          "assignee": "5020938c-db99-11e6-b9ce-067a8600043d",          "processInstance": {            "tenantId": "46678fd6-db99-11e6-b9ce-067a8600043d",            "businessKey": "ycbiddecision&543",            "currentActivityId": null,            "tenantCode": "nfsngfgs",            "currentActivityName": null,            "id": "b0e3673a-00ab-11e7-96ba-067a8600043d",            "parentId": null,            "category": null,            "processInstanceId": "b0e3673a-00ab-11e7-96ba-067a8600043d",            "name": "定标审批",            "eventName": null,            "processDefinitionId": "process3860:6:35c9290e-fcb3-11e6-9620-067a8600043d",            "deleteReason": null          },          "tenantCode": "nfsngfgs",          "deleted": false,          "category": "abf5a25f-f36f-11e6-bab5-067a8600043d",          "taskDefinitionKey": "approveUserTask_10e25516283a45d082995331684314",          "owner": null,          "eventName": "create",          "delegationState": null        },        "historyProcessUrl": "/gwmanage/uapprove/diagram-viewer/index.html?processDefinitionId=process3860:6:35c9290e-fcb3-11e6-9620-067a8600043d&processInstanceId=b0e3673a-00ab-11e7-96ba-067a8600043d&tenantId=pb2349et",        "tenantCode": "nfsngfgs",        "ccreationtime": "2017-03-04 15:25:19",        "_class": "com.yonyou.nccloud.gwm.bpm.vo.Task",        "userMobile": "18039201205",        "billDetailUrl": "http://yc.yonyou.com/cpu-fe-bid/dist/recomsupdetailsapp/index.html?id=543"      },      {        "dataversion": 0,        "dataenable": 0,        "tenantId": "pb2349et",        "completeUrl": "/gwmanage/mygwapp/approve/service/pb2349et/db001/5020938c-db99-11e6-b9ce-067a8600043d/9490147f-00aa-11e7-96ba-067a8600043d/",        "busiaction": "approve_ycprequalfication",        "msgBillDetailUrl": "/gwmanage/gwportal/pages/approval/approval_detail.html?tenantId=pb2349et&userId=5020938c-db99-11e6-b9ce-067a8600043d&processInstanceId=94867781-00aa-11e7-96ba-067a8600043d&taskId=9490147f-00aa-11e7-96ba-067a8600043d&userCode=db001",        "data": {          "purchaseHeaderName": "李红",          "bidFee": null,          "ts": null,          "bidOrgName": "水泥有限公司",          "bidOrgId": 48307,          "bidStartTime": "2017-03-01 15:11:58",          "billStatus": null,          "contacts": 7455,          "bidbuyendtime": null,          "materials": null,          "bidOfferStartTime": "2017-03-01 15:11:55",          "signupEndtime": "2017-04-01 15:11:53",          "fax": null,          "purchaseType": 1,          "publishStatus": 1,          "modifier": null,          "supplierList": [            {              "supEnterpriseId": 286,              "createTime": null,              "supplierName": "铜陵有色有限公司",              "ts": null,              "mainProduct": "0",              "projectSupplierId": null,              "creator": null,              "id": 1777,              "supplierClassId": null,              "levelStatus": null,              "signUpTime": "2017-03-04 00:00:00",              "suggestReason": null,              "bidsupId": 2945,              "businessAddress": "安徽铜陵铜陵市",              "dr": 0,              "sourceType": 0,              "supplierId": null,              "status": 1,              "enterpriseName": null,              "enterpriseId": null,              "supplierClassName": null,              "sysVersion": null,              "businessModel": "0",              "modifier": null,              "bidNoticeId": 616,              "modifiedtime": null,              "rowStatus": "unchange",              "extFields": null,              "sortItemMap": null            }          ],          "otherCertificates": null,          "email": "135123456@01",          "modifiedtime": "2017-03-04 15:12:09",          "contactType": 3,          "isBidFee": null,          "bidType": 1,          "purchaseHeader": 7471,          "bidNoticeStatus": 2,          "sortItemMap": null,          "createTime": null,          "projectCode": "测试移动审批sxl001",          "scope": "1",          "isCertificates": 1,          "materialList": [            {              "createTime": null,              "ts": "2017-03-04 15:12:06",              "materialId": 635960,              "projectMaterialId": 2683,              "demander": null,              "creator": null,              "amount": 222,              "id": 1965,              "description": null,              "name": "电石渣",              "dr": 0,              "pureqId": null,              "enterpriseName": null,              "enterpriseId": null,              "sysVersion": null,              "modifier": null,              "bidNoticeId": 616,              "unit": "吨",              "category": "石渣",              "address": null,              "materialClassId": 8517,              "reqOrgId": null,              "requiredTime": null,              "modifiedtime": null,              "rowStatus": "unchange",              "extFields": null,              "sortItemMap": null            }          ],          "bidEnsureFee": 11111,          "openTime": null,          "contactTel": "13512345601",          "projectId": 1355,          "projectTitle": "测试移动审批sxl003",          "isExpertReview": "0",          "contactsName": "吴国潮",          "creator": null,          "id": 616,          "isBidEnsureFee": 1,          "note": "http://oss-yc-dev.oss-cn-beijing.aliyuncs.com/pb2349et/8291b6b7-76f2-4f0c-9cab-d5c253e9de8e_temp1488611289890.html",          "billSummary": "您有【测试移动审批sxl003】的【资格预审】审批待办",          "dr": 0,          "bidOfferEndTime": "2017-04-01 15:11:57",          "enterpriseName": "水泥有限公司",          "enterpriseId": 92,          "signupStarttime": "2017-03-01 15:11:50",          "sysVersion": null,          "projectSummary": null,          "workFlowStatus": null,          "bidEndTime": "2017-04-01 15:12:00",          "openTenderType": "1",          "supplierMinNum": 1,          "channel": "1",          "extFields": null        },        "appcode": "yyys",        "rejectUrl": "/gwmanage/mygwapp/approve/service/reject/pb2349et/5020938c-db99-11e6-b9ce-067a8600043d/94867781-00aa-11e7-96ba-067a8600043d/9490147f-00aa-11e7-96ba-067a8600043d/",        "_id": {          "$oid": "58ba69dfe4b03724c9b1b0e2"        },        "userId": "89136b2b-849d-45f3-90d6-3c8f8a85572a",        "userName": "db001",        "historyTaskUrl": "/gwmanage/mygwapp/approve/service/query/history-tasks/pb2349et/5020938c-db99-11e6-b9ce-067a8600043d/94867781-00aa-11e7-96ba-067a8600043d",        "taskExistUrl": "/gwmanage/mygwapp/approve/service/confirm/taskExist/pb2349et/5020938c-db99-11e6-b9ce-067a8600043d/9490147f-00aa-11e7-96ba-067a8600043d",        "dr": 0,        "billType": "ycprequalfication",        "userCode": "db001",        "status": "complete",        "task": {          "tenantId": "46678fd6-db99-11e6-b9ce-067a8600043d",          "createTime": 1488611829500,          "assigneeParticipant": {            "id": "5020938c-db99-11e6-b9ce-067a8600043d",            "name": "db001",            "code": "db001"          },          "formKey": null,          "executionId": "9488e88b-00aa-11e7-96ba-067a8600043d",          "id": "9490147f-00aa-11e7-96ba-067a8600043d",          "revision": 0,          "initialAssignee": null,          "processInstanceId": "94867781-00aa-11e7-96ba-067a8600043d",          "priority": 50,          "description": null,          "name": "审批任务",          "dueDate": null,          "parentTaskId": null,          "processDefinitionId": "process2717:3:3a4932f2-fcb3-11e6-9620-067a8600043d",          "deleteReason": null,          "identityLinksInitialized": false,          "suspensionState": 1,          "assignee": "5020938c-db99-11e6-b9ce-067a8600043d",          "processInstance": {            "tenantId": "46678fd6-db99-11e6-b9ce-067a8600043d",            "businessKey": "ycprequalfication&616",            "currentActivityId": null,            "tenantCode": "nfsngfgs",            "currentActivityName": null,            "id": "94867781-00aa-11e7-96ba-067a8600043d",            "parentId": null,            "category": null,            "processInstanceId": "94867781-00aa-11e7-96ba-067a8600043d",            "name": "资格预审审批",            "eventName": null,            "processDefinitionId": "process2717:3:3a4932f2-fcb3-11e6-9620-067a8600043d",            "deleteReason": null          },          "tenantCode": "nfsngfgs",          "deleted": false,          "category": "ac3f7ca5-f36f-11e6-bab5-067a8600043d",          "taskDefinitionKey": "approveUserTask5325",          "owner": null,          "eventName": "create",          "delegationState": null        },        "historyProcessUrl": "/gwmanage/uapprove/diagram-viewer/index.html?processDefinitionId=process2717:3:3a4932f2-fcb3-11e6-9620-067a8600043d&processInstanceId=94867781-00aa-11e7-96ba-067a8600043d&tenantId=pb2349et",        "tenantCode": "nfsngfgs",        "ccreationtime": "2017-03-04 15:16:47",        "_class": "com.yonyou.nccloud.gwm.bpm.vo.Task",        "userMobile": "18039201205",        "billDetailUrl": "http://yc.yonyou.com/cpu-fe-bid/dist/prequalificationshowapp/index.html?id=616"      }    ]  }}

返回字段说明:

key 字段类型 说明 status int 请求状态,1表示成功,0表示失败 data.itemCount int 消息总数 data.pageIndex int 当前页码 data.pageSize int 每页显示记录数 data.pageCount int 总页数 data.hasPre boolean 是否有上一页 data.hasNext boolean 是否有下一页 data.items array 任务数组
0 0
原创粉丝点击