|
|
@@ -61,8 +61,14 @@ export async function getTodoList(query, loding = true) {
|
|
|
}
|
|
|
|
|
|
|
|
|
+export async function rejectTask(data) {
|
|
|
+ const res = await putJ(Vue.prototype.apiUrl + `/bpm/task/reject`, data, true)
|
|
|
+ if (res.code == 0) {
|
|
|
+ return res.data;
|
|
|
+ }
|
|
|
+ return Promise.reject(new Error(res.message));
|
|
|
|
|
|
-
|
|
|
+}
|
|
|
|
|
|
//获取已办事项列表
|
|
|
export async function getDoneTaskPage(query) {
|
|
|
@@ -378,76 +384,76 @@ export async function purchaseOrderReturnGetByIdAPI(id) {
|
|
|
*/
|
|
|
//查询量具送检信息
|
|
|
export async function processById(params) {
|
|
|
- const res = await get(Vue.prototype.apiUrl + `/eam/planmaintenance/processById`, params );
|
|
|
- if (res.code == 0) {
|
|
|
- return res.data;
|
|
|
- }
|
|
|
- return Promise.reject(new Error(res.data.message));
|
|
|
+ const res = await get(Vue.prototype.apiUrl + `/eam/planmaintenance/processById`, params);
|
|
|
+ if (res.code == 0) {
|
|
|
+ return res.data;
|
|
|
+ }
|
|
|
+ return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
|
//
|
|
|
// 个人日志列表
|
|
|
export async function getList(params) {
|
|
|
- const res = await get('/eom/planToolLog/list', params );
|
|
|
- if (res.data.code == 0) {
|
|
|
- return res.data;
|
|
|
- }
|
|
|
- return Promise.reject(new Error(res.data.message));
|
|
|
+ const res = await get('/eom/planToolLog/list', params);
|
|
|
+ if (res.data.code == 0) {
|
|
|
+ return res.data;
|
|
|
+ }
|
|
|
+ return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
|
//
|
|
|
//
|
|
|
//
|
|
|
//动态表单 工作流自定义权限过滤表单集合
|
|
|
export async function getBpmCustomFormList(params) {
|
|
|
- const res = await get(Vue.prototype.apiUrl + '/flowable/bpmcustomform/list', params );
|
|
|
- if (res.code == 0) {
|
|
|
- return res.data;
|
|
|
- }
|
|
|
- return Promise.reject(new Error(res.data.message));
|
|
|
- };
|
|
|
+ const res = await get(Vue.prototype.apiUrl + '/flowable/bpmcustomform/list', params);
|
|
|
+ if (res.code == 0) {
|
|
|
+ return res.data;
|
|
|
+ }
|
|
|
+ return Promise.reject(new Error(res.data.message));
|
|
|
+};
|
|
|
//动态表单 我发起的申请
|
|
|
export async function getProcessInstancePage(params) {
|
|
|
- const res = await postJ(Vue.prototype.apiUrl + '/bpm/process-instance/my-page', params );
|
|
|
+ const res = await postJ(Vue.prototype.apiUrl + '/bpm/process-instance/my-page', params);
|
|
|
if (res.code == 0) {
|
|
|
- return res.data;
|
|
|
+ return res.data;
|
|
|
}
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
- };
|
|
|
+};
|
|
|
//动态表单 部门发起的申请
|
|
|
export async function getProcessInstanceDeptPage(query) {
|
|
|
-
|
|
|
- const res = await get(Vue.prototype.apiUrl + '/bpm/process-instance/my-dept-page', params );
|
|
|
+
|
|
|
+ const res = await get(Vue.prototype.apiUrl + '/bpm/process-instance/my-dept-page', params);
|
|
|
if (res.code == 0) {
|
|
|
- return res.data;
|
|
|
+ return res.data;
|
|
|
}
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
- };
|
|
|
+};
|
|
|
//动态表单 通知我的申请
|
|
|
export async function getProcessInstanceNoticePage(data) {
|
|
|
-
|
|
|
- const res = await postJ(Vue.prototype.apiUrl + '/bpm/process-instance/my-notice-page', data );
|
|
|
+
|
|
|
+ const res = await postJ(Vue.prototype.apiUrl + '/bpm/process-instance/my-notice-page', data);
|
|
|
if (res.code == 0) {
|
|
|
- return res.data;
|
|
|
+ return res.data;
|
|
|
}
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
- };
|
|
|
-
|
|
|
- //发起流程通用接口
|
|
|
- export async function processInstanceCreateAPI(params, loding = true) {
|
|
|
- const res = await postJ(
|
|
|
- Vue.prototype.apiUrl + `/bpm/process-instance/create`, params, loding
|
|
|
- );
|
|
|
- if (res.code == 0) {
|
|
|
- return res.data;
|
|
|
- }
|
|
|
- return Promise.reject(new Error(res.message));
|
|
|
- }
|
|
|
- //流程列表
|
|
|
- export async function processInstancePage(params, loding = false) {
|
|
|
- const res = await get(
|
|
|
- Vue.prototype.apiUrl + `/bpm/model/page`, params, loding
|
|
|
- );
|
|
|
- if (res.code == 0) {
|
|
|
- return res.data;
|
|
|
- }
|
|
|
- return Promise.reject(new Error(res.message));
|
|
|
- }
|
|
|
+};
|
|
|
+
|
|
|
+//发起流程通用接口
|
|
|
+export async function processInstanceCreateAPI(params, loding = true) {
|
|
|
+ const res = await postJ(
|
|
|
+ Vue.prototype.apiUrl + `/bpm/process-instance/create`, params, loding
|
|
|
+ );
|
|
|
+ if (res.code == 0) {
|
|
|
+ return res.data;
|
|
|
+ }
|
|
|
+ return Promise.reject(new Error(res.message));
|
|
|
+}
|
|
|
+//流程列表
|
|
|
+export async function processInstancePage(params, loding = false) {
|
|
|
+ const res = await get(
|
|
|
+ Vue.prototype.apiUrl + `/bpm/model/page`, params, loding
|
|
|
+ );
|
|
|
+ if (res.code == 0) {
|
|
|
+ return res.data;
|
|
|
+ }
|
|
|
+ return Promise.reject(new Error(res.message));
|
|
|
+}
|