{"remainingRequest":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\eslint-loader\\index.js??ref--13-0!D:\\jenkins\\workspace\\cssc-fvue\\src\\api\\process.js","dependencies":[{"path":"D:\\jenkins\\workspace\\cssc-fvue\\src\\api\\process.js","mtime":1667804637198},{"path":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\eslint-loader\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import req from \"@/request.js\";\nvar bpmModel = window.context.bpmModel;\nvar bpmRunTime = window.context.bpmRunTime;\nvar portal = window.context.portal;\nexport default {\n //获取流程分类列表\n getFlowTree: function getFlowTree(cb) {\n req.get(portal + '/sys/sysType/v1/getTypesByKey?typeKey=FLOW_TYPE').then(function (response) {\n cb(response);\n });\n },\n //获取待办列表\n getTodoByPagination: function getTodoByPagination(pagination, cb) {\n req.post(bpmRunTime + '/runtime/task/v1/getTodoList', pagination).then(function (response) {\n cb(response);\n });\n },\n //获取领导待办列表\n getLeaderTodoByPagination: function getLeaderTodoByPagination(pagination, cb) {\n req.post(bpmRunTime + '/runtime/task/v1/getLeaderTodoList', pagination).then(function (response) {\n cb(response);\n });\n },\n //获取我转办的列表\n getDelegate: function getDelegate(pagination, cb) {\n req.post(bpmRunTime + '/runtime/task/v1/getDelegate', pagination).then(function (response) {\n cb(response);\n });\n },\n //获取我传阅的任务列表\n getMyNoticeReadList: function getMyNoticeReadList(pagination, cb) {\n req.post(bpmRunTime + '/runtime/task/v1/getMyNoticeReadList', pagination).then(function (response) {\n cb(response);\n });\n },\n //获取待阅列表\n getNoticeTodoReadList: function getNoticeTodoReadList(pagination, cb) {\n req.post(bpmRunTime + '/runtime/task/v1/getNoticeTodoReadList', pagination).then(function (response) {\n cb(response);\n });\n },\n //获取已阅列表\n getNoticeDoneReadList: function getNoticeDoneReadList(pagination, cb) {\n req.post(bpmRunTime + '/runtime/task/v1/getNoticeDoneReadList', pagination).then(function (response) {\n cb(response);\n });\n },\n //获取已办列表\n getDoneByPagination: function getDoneByPagination(pagination, cb) {\n req.post(bpmRunTime + '/runtime/instance/v1/getDoneInstList', pagination).then(function (response) {\n cb(response);\n });\n },\n getDoneInstCount: function getDoneInstCount(pagination) {\n return new Promise(function (resolve, reject) {\n req.post(bpmRunTime + '/runtime/instance/v1/getDoneInstCount', pagination).then(function (response) {\n resolve(response.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n //获取我的请求列表\n getMyRequestByPagination: function getMyRequestByPagination(pagination, cb) {\n req.post(bpmRunTime + '/runtime/instance/v1/myRequest', pagination).then(function (response) {\n cb(response);\n });\n },\n getMyRequestCount: function getMyRequestCount() {\n return new Promise(function (resolve, reject) {\n req.get(bpmRunTime + \"/runtime/instance/v1/myRequestCount\").then(function (response) {\n resolve(response.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n //获取新建流程列表\n getFlowListByPagination: function getFlowListByPagination(pagination, cb) {\n req.post(bpmRunTime + '/runtime/instance/v1/newProcess', pagination).then(function (response) {\n cb(response);\n });\n },\n //撤回\n revokeInstance: function revokeInstance(data, cb) {\n req.post(bpmRunTime + '/runtime/instance/v1/revokeInstance', data).then(function (response) {\n cb(response);\n });\n },\n //获取审批操作按钮\n taskDetail: function taskDetail(data, cb) {\n req.get(bpmRunTime + '/runtime/task/v1/getButtonsBytaskId?taskId=' + data.taskId + '&reqParams=&leaderId=' + data.leaderId).then(function (response) {\n cb(response);\n });\n },\n //获取审批常用语\n getApprovalByDefKeyAndTypeId: function getApprovalByDefKeyAndTypeId(defKey, cb) {\n req.get(bpmModel + '/flow/approvalItem/v1/getApprovalByDefKeyAndTypeId?defKey=' + defKey).then(function (response) {\n cb(response);\n });\n },\n //获取审批记录\n getOpinionsById: function getOpinionsById(param, cb) {\n req.get(bpmRunTime + '/runtime/instance/v1/instanceFlowOpinions?instId=' + param.instId + (param.isRequest ? \"&isRequest=\" + param.isRequest : \"\")).then(function (response) {\n cb(response);\n });\n },\n //获取可跟踪的任务节点\n taskNode: function taskNode(id, cb) {\n req.get(bpmRunTime + '/runtime/task/v1/taskNode?defId=' + id).then(function (response) {\n cb(response);\n });\n },\n //根据流程实例id获取已跟踪的节点\n getFollowedNode: function getFollowedNode(id, cb) {\n req.get(bpmRunTime + '/runtime/taskFollow/v1/getFollowedNode?instId=' + id).then(function (response) {\n cb(response);\n });\n },\n //根据任务ID获取任务明细\n getTaskById: function getTaskById(id, cb) {\n req.get(bpmRunTime + '/runtime/task/v1/get?id=' + id).then(function (response) {\n cb(response);\n });\n },\n //根据任务ID获取任务明细\n getNotice: function getNotice(id, cb) {\n req.get(bpmRunTime + '/runtime/task/v1/getNotice?id=' + id).then(function (response) {\n cb(response);\n });\n },\n //根据实例id获取实例对象\n getInstanceByInstId: function getInstanceByInstId(id, cb) {\n req.get(bpmRunTime + '/runtime/instance/v1/getInstanceByInstId?instId=' + id).then(function (response) {\n cb(response);\n });\n },\n //根据实例ID判断流程是否结束\n isEnd: function isEnd(id, cb) {\n req.post(bpmRunTime + '/runtime/task/v1/isEnd?procInstId=' + id).then(function (response) {\n cb(response);\n });\n },\n //新增,更新任务跟踪表数据\n taskFollowSave: function taskFollowSave(data, cb) {\n req.post(bpmRunTime + '/runtime/taskFollow/v1/save', data).then(function (response) {\n cb(response);\n });\n },\n //驳回设置\n taskToReject: function taskToReject(data, cb) {\n req.get(bpmRunTime + '/runtime/task/v1/taskToReject?taskId=' + data.taskId + '&backModel=' + data.backModel).then(function (response) {\n cb(response);\n });\n },\n //保存驳回设置\n rejectComplete: function rejectComplete(data, cb) {\n req.post(bpmRunTime + '/runtime/task/v1/complete', data).then(function (response) {\n cb(response);\n });\n },\n //保存转办设置\n delegate: function delegate(data, cb) {\n req.post(bpmRunTime + '/runtime/task/v1/delegate', data).then(function (response) {\n cb(response);\n });\n },\n //流程抄送\n transToMore: function transToMore(data, cb) {\n req.post(bpmRunTime + '/runtime/instance/v1/transToMore', data).then(function (response) {\n cb(response);\n });\n },\n //征询设置\n taskToInqu: function taskToInqu(data, cb) {\n req.post(bpmRunTime + '/runtime/task/v1/taskToInqu', data).then(function (response) {\n cb(response);\n });\n },\n //流程终止\n doEndProcess: function doEndProcess(data, cb) {\n req.post(bpmRunTime + '/runtime/instance/v1/doEndProcess', data).then(function (response) {\n cb(response);\n });\n },\n //流转设置\n taskToTrans: function taskToTrans(data, cb) {\n req.post(bpmRunTime + '/runtime/task/v1/taskToTrans', data).then(function (response) {\n cb(response);\n });\n },\n //获取流程实例明细\n instanceFlowImage: function instanceFlowImage(data, cb) {\n req.get(bpmRunTime + '/runtime/instance/v1/instanceFlowImage?proInstId=' + data.instId + \"&nodeId=\" + (data.nodeId || '') + \"&type=\" + (data.type || '') + \"&defId=\" + (data.defId || '')).then(function (response) {\n cb(response);\n });\n },\n //流程图\n getBpmImage: function getBpmImage(id, proInstId, defId, cb) {\n req.get(bpmRunTime + '/runtime/instance/v1/getBpmImage?taskId=&proInstId=' + proInstId + '&defId=' + defId + '&bpmnInstId=' + id, \"text\").then(function (response) {\n cb(response);\n });\n },\n //征询回复\n taskToInquReply: function taskToInquReply(data, cb) {\n req.post(bpmRunTime + '/runtime/task/v1/taskToInquReply', data).then(function (response) {\n cb(response);\n });\n },\n userAddSign: function userAddSign(data, cb) {\n req.post(bpmRunTime + '/runtime/task/v1/userAddSignFeedback', data).then(function (response) {\n cb(response);\n });\n },\n //沟通设置\n communicate: function communicate(data, cb) {\n req.post(bpmRunTime + '/runtime/task/v1/communicate', data).then(function (response) {\n cb(response);\n });\n },\n //沟通反馈\n doNextcommu: function doNextcommu(data, cb) {\n req.post(bpmRunTime + '/runtime/instance/v1/doNextcommu', data).then(function (response) {\n cb(response);\n });\n },\n //传阅回复\n doNextCopyto: function doNextCopyto(data, cb) {\n req.post(bpmRunTime + '/runtime/instance/v1/doNextCopyto', data).then(function (response) {\n cb(response);\n });\n },\n //获取任务是否能锁定\n canLock: function canLock(data, cb) {\n if (data.taskId) {\n req.get(bpmRunTime + '/runtime/task/v1/canLock?taskId=' + data.taskId + \"&leaderId=\" + data.leaderId, \"text\").then(function (response) {\n cb(response);\n });\n } else {\n req.get(bpmRunTime + '/runtime/task/v1/canLock?taskId=' + data, \"text\").then(function (response) {\n cb(response);\n });\n }\n },\n //获取任务锁定状态\n lockUnlock: function lockUnlock(id, cb) {\n req.get(bpmRunTime + '/runtime/task/v1/lockUnlock?taskId=' + id, \"text\").then(function (response) {\n cb(response);\n });\n },\n //处理任务\n complete: function complete(data, cb) {\n req.post(bpmRunTime + '/runtime/task/v1/complete', data).then(function (response) {\n cb(response);\n });\n },\n //启动流程\n start: function start(data, cb, errorCb) {\n req.post(bpmRunTime + '/runtime/instance/v1/start', data).then(function (response) {\n cb(response);\n }).catch(function (err) {\n errorCb(err);\n });\n },\n //保存草稿\n saveDraft: function saveDraft(data, cb) {\n req.post(bpmRunTime + '/runtime/instance/v1/saveDraft', data).then(function (response) {\n cb(response);\n });\n },\n //审批页面保存\n saveTaskDraft: function saveTaskDraft(data, cb) {\n req.post(bpmRunTime + '/runtime/task/v1/saveDraft', data).then(function (response) {\n cb(response);\n });\n },\n //根据流程实例ID获取相关信息\n getRelatedInformationById: function getRelatedInformationById(id, cb) {\n req.get(bpmRunTime + '/runtime/instance/v1/getRelatedInformationById?id=' + id).then(function (response) {\n cb(response);\n });\n },\n //添加阅读记录\n addReadRecord: function addReadRecord(id, cb) {\n req.post(bpmRunTime + '/runtime/task/v1/addReadRecord?taskId=' + id).then(function (response) {\n cb(response);\n });\n },\n //根据流程实例ID获取阅读记录\n getByRecordInstId: function getByRecordInstId(data, cb) {\n req.post(bpmRunTime + '/runtime/instance/v1/getByRecordInstId', data).then(function (response) {\n cb(response);\n });\n },\n //删除草稿\n removeDraftById: function removeDraftById(id, cb) {\n req.remove(bpmRunTime + '/runtime/instance/v1/removeDraftById?ids=' + id).then(function (response) {\n cb(response);\n });\n },\n //逻辑删除流程实例\n restore: function restore(id, cb) {\n req.remove(bpmRunTime + '/runtime/instance/v1/removeDraftById?ids=' + id).then(function (response) {\n cb(response);\n });\n },\n //根据流程实例ID终止流程\n doEndProcessById: function doEndProcessById(id, cb) {\n req.get(bpmRunTime + '/runtime/instance/v1/doEndProcessById?id=' + id).then(function (response) {\n cb(response);\n });\n },\n //根据ID主键ID删除传阅任务\n delBpmTaskNoticeById: function delBpmTaskNoticeById(id, cb) {\n req.post(bpmRunTime + '/runtime/task/v1/delBpmTaskNoticeById?id=' + id).then(function (response) {\n cb(response);\n });\n },\n //知会任务待办转已办\n noticeTurnDode: function noticeTurnDode(id, cb) {\n req.post(bpmRunTime + '/runtime/task/v1/noticeTurnDode?taskId=' + id).then(function (response) {\n cb(response);\n });\n },\n //根据任务id获取最新的延期信息\n bpmTaskDueTime: function bpmTaskDueTime(id, cb) {\n req.get(bpmRunTime + '/runtime/bpmTaskDueTime/v1/getByTaskId?taskId=' + id).then(function (response) {\n cb(response);\n });\n },\n //根据id获取到期时间\n getExpirationDate: function getExpirationDate(data, cb) {\n req.get(bpmRunTime + '/runtime/bpmTaskDueTime/v1/getExpirationDate?id=' + data.id + \"&addDueTime=\" + data.time).then(function (response) {\n cb(response);\n });\n },\n //添加任务期限统计信息\n dueTimeSave: function dueTimeSave(data, cb) {\n req.post(bpmRunTime + '/runtime/bpmTaskDueTime/v1/save', data).then(function (response) {\n cb(response);\n });\n },\n //根据任务id或者定义id获取后续可跳转节点\n getAfterJumpNodes: function getAfterJumpNodes(data, cb) {\n req.post(bpmRunTime + '/runtime/task/v1/getAfterJumpNodes', data).then(function (response) {\n cb(response);\n });\n },\n //保存表单数据\n saveFormData: function saveFormData(data, cb) {\n req.post(bpmRunTime + '/runtime/instance/v1/saveFormData', data).then(function (response) {\n cb(response);\n });\n },\n //保存表单数据\n getCurNodeProperties: function getCurNodeProperties(data, cb) {\n req.get(bpmRunTime + '/runtime/task/v1/getCurNodeProperties?defId=' + data.defId + \"&instId=\" + data.instId + \"&taskId=\" + data.taskId).then(function (response) {\n cb(response);\n });\n },\n //获取首页图表\n getEchartData: function getEchartData(data, cb) {\n req.get(bpmRunTime + '/runtime/report/v1/getEchartsData?reportId=' + data).then(function (response) {\n cb(response);\n });\n },\n //获取审批意见\n getNodeopinions: function getNodeopinions(data, cb) {\n req.get(bpmRunTime + '/runtime/task/v1/nodeOpinion?instId=' + data.instId + \"&nodeId=\" + data.nodeIds + \"&defId=\" + data.defId).then(function (response) {\n cb(response);\n });\n },\n //通过bo数据发起流程\n startForm: function startForm(data, cb) {\n req.post(bpmRunTime + '/runtime/instance/v1/startForm?defKey=' + data.defKey + '&businessKey=' + data.businessKey + '&boAlias=' + data.boAlias + \"&templateAlias=\" + data.templateAlias, {}).then(function (response) {\n cb(response);\n });\n },\n //获取紧急状态配置\n getUrgentStateConf: function getUrgentStateConf(data, cb) {\n req.post(bpmRunTime + '/runtime/instance/v1/getUrgentStateConf', data).then(function (response) {\n cb(response);\n });\n },\n //根据流程实例ID、催办人ID获取催办记录\n getUrgrntById: function getUrgrntById(data, cb) {\n req.post(bpmRunTime + '/runtime/instance/v1/getUrgrntById', data).then(function (response) {\n cb(response);\n });\n },\n //根据流程实例ID获取当前任务节点审批人\n getExcutorNameByInstId: function getExcutorNameByInstId(id, cb) {\n req.get(bpmRunTime + '/runtime/instance/v1/getExcutorNameByInstId?instId=' + id).then(function (response) {\n cb(response);\n });\n },\n //根据流程定义id获取流程信息\n defGet: function defGet(id, cb) {\n req.get(bpmModel + '/flow/def/v1/defGet?defId=' + id).then(function (response) {\n cb(response);\n });\n },\n //发送人工催办\n sendBpmTaskUrgent: function sendBpmTaskUrgent(data, cb) {\n req.post(bpmRunTime + '/runtime/instance/v1/sendBpmTaskUrgent', data).then(function (response) {\n cb(response);\n });\n },\n //取回转办流程\n retrieveBpmTask: function retrieveBpmTask(id, cb) {\n req.get(bpmRunTime + '/runtime/task/v1/retrieveBpmTask?taskId=' + id).then(function (response) {\n cb(response);\n });\n },\n //根据实例id获取当前实例的办理环节\n getDoneByInstId: function getDoneByInstId(pagination, cb) {\n req.post(bpmRunTime + '/runtime/instance/v1/getDoneList?isCheckRevoke=true', pagination).then(function (response) {\n cb(response);\n });\n },\n //并行审批设置\n taskToApproveLine: function taskToApproveLine(data, cb) {\n // 已弃用\n req.post(bpmRunTime + '/runtime/task/v1/taskCustomSignUsers', data).then(function (response) {\n cb(response);\n });\n },\n // 顺序签署设置\n taskToSignSequence: function taskToSignSequence(data, cb) {\n req.post(bpmRunTime + '/runtime/task/v1/taskCustomSignUsers', data).then(function (response) {\n cb(response);\n });\n },\n // 并行签署配置保存\n taskToSignLine: function taskToSignLine(data, cb) {\n req.post(bpmRunTime + '/runtime/task/v1/taskCustomSignUsers', data).then(function (response) {\n cb(response);\n });\n },\n //撤回流转任务\n revokeTrans: function revokeTrans(data, cb) {\n req.post(bpmRunTime + '/runtime/instance/v1/revokeTrans', data).then(function (response) {\n cb(response);\n });\n },\n //撤回顺序签署任务\n revokeCustomSign: function revokeCustomSign(data, cb) {\n req.post(bpmRunTime + '/runtime/instance/v1/revokeCustomSign', data).then(function (response) {\n cb(response);\n });\n },\n revokeSignLine: function revokeSignLine(data, cb) {\n req.post(bpmRunTime + '/runtime/instance/v1/revokeSignLine', data).then(function (response) {\n cb(response);\n });\n },\n getSignLinesInstIdNodeId: function getSignLinesInstIdNodeId(data, cb) {\n req.get(bpmRunTime + '/runtime/customsign/v1/getParallelRevokeTasks?instanceId=' + data.instanceId + \"&nodeId=\" + data.nodeId + \"&taskId=\" + data.taskId).then(function (response) {\n cb(response);\n });\n },\n //根据主键ID获取待办知会任务信息\n getBpmTaskNoticeById: function getBpmTaskNoticeById(id, cb) {\n req.get(bpmRunTime + '/runtime/task/v1/getBpmTaskNoticeById?id=' + id).then(function (response) {\n cb(response);\n });\n },\n //根据主键ID获取已办知会任务信息\n getBpmTaskNoticeDoneById: function getBpmTaskNoticeDoneById(id, cb) {\n req.get(bpmRunTime + '/runtime/task/v1/getBpmTaskNoticeDoneById?id=' + id).then(function (response) {\n cb(response);\n });\n },\n //根据任务Id获取审批历史数据(只有一条)\n getTaskKeyByTaskId: function getTaskKeyByTaskId(id, cb) {\n req.get(bpmRunTime + '/runtime/task/v1/getTaskKeyByTaskId?taskId=' + id).then(function (response) {\n cb(response);\n });\n },\n //根据任务节点ID和流程实例ID获取审批历史数据(只有一条)\n getTaskKeyByNodeId: function getTaskKeyByNodeId(data, cb) {\n req.get(bpmRunTime + '/runtime/task/v1/getTaskKeyByNodeId?nodeId=' + data.nodeId + \"&instId=\" + data.instId).then(function (response) {\n cb(response);\n });\n },\n //根据流程定义ID获取该流程的其它待办,如果获取不到,则返回其它待办(返回一条)\n getNextTaskByDefId: function getNextTaskByDefId(data, cb) {\n req.get(bpmRunTime + \"/runtime/task/v1/nextTask?defId=\" + data.defId + \"&defKey=\" + data.defKey).then(function (resp) {\n cb(resp);\n });\n },\n //根据用户获取各分类下的待办\n getCountByUserId: function getCountByUserId(data) {\n return new Promise(function (resolve, reject) {\n req.post(bpmRunTime + '/runtime/task/v1/getTodoCount', data).then(function (response) {\n resolve(response.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n //根据用户获取各分类下的待办\n getNewProcessCount: function getNewProcessCount(data) {\n return new Promise(function (resolve, reject) {\n req.post(bpmRunTime + '/runtime/instance/v1/newProcessCount', data).then(function (response) {\n resolve(response.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n //获取待阅在各分类下的数量\n getNoticeTodoReadCount: function getNoticeTodoReadCount(param) {\n return new Promise(function (resolve, reject) {\n req.post(bpmRunTime + '/runtime/task/v1/getNoticeTodoReadCount', param).then(function (response) {\n resolve(response.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n getMyNoticeReadCount: function getMyNoticeReadCount(param) {\n return new Promise(function (resolve, reject) {\n req.post(bpmRunTime + '/runtime/task/v1/getMyNoticeReadCount', param).then(function (response) {\n resolve(response.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n getNoticeDoneReadCount: function getNoticeDoneReadCount(param) {\n return new Promise(function (resolve, reject) {\n req.post(bpmRunTime + '/runtime/task/v1/getNoticeDoneReadCount', param).then(function (response) {\n resolve(response.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n getDelegateCount: function getDelegateCount(param) {\n return new Promise(function (resolve, reject) {\n req.post(bpmRunTime + '/runtime/task/v1/getDelegateCount', param).then(function (response) {\n resolve(response.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n //根据当前登录用户ID获取该用户的领导\n getSecretaryByUserId: function getSecretaryByUserId(cb) {\n req.get(bpmRunTime + '/runtime/bpmSecretaryManage/v1/getSecretaryByUserId').then(function (response) {\n cb(response.data);\n });\n },\n //会签任务加签\n taskSignUsers: function taskSignUsers(signParamObject, cb) {\n req.post(bpmRunTime + '/runtime/task/v1/taskSignUsers', signParamObject).then(function (response) {\n cb(response);\n });\n },\n //普通任务加签\n userTaskToSign: function userTaskToSign(data, cb) {\n req.post(bpmRunTime + '/runtime/task/v1/userTaskToSign', data).then(function (response) {\n cb(response);\n });\n },\n //根据用户获取其领导各分类下的待办\n getLeaderTodoCount: function getLeaderTodoCount() {\n return new Promise(function (resolve, reject) {\n req.get(bpmRunTime + '/runtime/task/v1/getLeaderTodoCount').then(function (response) {\n resolve(response.data);\n }, function (error) {\n reject(error);\n });\n });\n }\n};",null]}