yxk-20260605-我为四所把把脉
1、改造 BgTakepulseList.vue 的流程发起方式,由原来的普通 startProcess 改为复用 FlowScheduleStartModalForBG 调度弹窗,支持立即督办和重复督办。 2、行操作中新增/调整“发起督办流程”“再次督办”“查询督办流程”,并按 bpmStatus 控制显示。 3、发起流程时组装与 BgPartymatterList.vue 一致的督办流程参数,流程编码使用 dev_task_task_001,流程名称为“我为四所把把脉”。 4、被督办部门改为牵头部门加协办部门,自动去重后带入弹窗。 5、发起成功后回写完成状态为督办中,并自动累加督办次数。 6、新增 BgTakepulseBPMForm.vue,作为“我为四所把把脉”专用 BPM 办理表单。 7、新增 BgTakepulseBPMFeedbackModal.vue,支持流程中新增、编辑、删除执行情况反馈,并支持附件上传。 8、扩展 BgTakepulse.api.ts,新增 BPM 表单保存、流程变量保存、反馈列表和反馈 CRUD 相关接口。
This commit is contained in:
@@ -13,6 +13,13 @@ enum Api {
|
||||
exportXls = '/bqtakepulse/bgTakepulse/exportXls',
|
||||
queryDataById = '/bqtakepulse/bgTakepulse/queryById',
|
||||
bgTakepulseFeedbackList = '/bqtakepulse/bgTakepulse/queryBgTakepulseFeedbackByMainId',
|
||||
saveBpmForm = '/bqtakepulse/bgTakepulse/saveBpmForm',
|
||||
setProcessVariable = '/act/process/setProcessVariable',
|
||||
bgTakepulseBpmFeedbackList = '/bqtakepulse/bgTakepulse/listBgTakepulseFeedbackByMainId',
|
||||
bgTakepulseFeedbackSave = '/bqtakepulse/bgTakepulse/addBgTakepulseFeedback',
|
||||
bgTakepulseFeedbackEdit = '/bqtakepulse/bgTakepulse/editBgTakepulseFeedback',
|
||||
bgTakepulseFeedbackDelete = '/bqtakepulse/bgTakepulse/deleteBgTakepulseFeedback',
|
||||
bgTakepulseFeedbackDeleteBatch = '/bqtakepulse/bgTakepulse/deleteBatchBgTakepulseFeedback',
|
||||
}
|
||||
/**
|
||||
* 导出api
|
||||
@@ -73,9 +80,52 @@ export const saveOrUpdate = (params, isUpdate) => {
|
||||
return defHttp.post({url: url, params});
|
||||
}
|
||||
|
||||
export const saveBpmForm = (params) => {
|
||||
return defHttp.post({ url: Api.saveBpmForm, params }, { isTransformResponse: false });
|
||||
}
|
||||
|
||||
export const setProcessVariable = (params) => {
|
||||
return defHttp.post({ url: Api.setProcessVariable, params }, { isTransformResponse: false });
|
||||
}
|
||||
|
||||
/**
|
||||
* BPM办理页按主表和流程实例查询反馈,避免不同督办轮次的反馈混在一起。
|
||||
*/
|
||||
export const bgTakepulseFeedbackList = (params) => {
|
||||
if (params['mainId']) {
|
||||
return defHttp.get({ url: Api.bgTakepulseBpmFeedbackList, params });
|
||||
}
|
||||
return Promise.resolve({});
|
||||
}
|
||||
|
||||
export const bgTakepulseFeedbackSaveOrUpdate = (params, isUpdate) => {
|
||||
let url = isUpdate ? Api.bgTakepulseFeedbackEdit : Api.bgTakepulseFeedbackSave;
|
||||
return defHttp.post({ url, params }, { isTransformResponse: false });
|
||||
}
|
||||
|
||||
export const bgTakepulseFeedbackDelete = (params, handleSuccess) => {
|
||||
return defHttp.delete({ url: Api.bgTakepulseFeedbackDelete, params }, { joinParamsToUrl: true }).then(() => {
|
||||
handleSuccess();
|
||||
});
|
||||
}
|
||||
|
||||
export const bgTakepulseFeedbackDeleteBatch = (params, handleSuccess) => {
|
||||
createConfirm({
|
||||
iconType: 'warning',
|
||||
title: '确认删除',
|
||||
content: '是否删除选中数据',
|
||||
okText: '确认',
|
||||
cancelText: '取消',
|
||||
onOk: () => {
|
||||
return defHttp.delete({ url: Api.bgTakepulseFeedbackDeleteBatch, data: params }, { joinParamsToUrl: true }).then(() => {
|
||||
handleSuccess();
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询数据
|
||||
* @param params
|
||||
*/
|
||||
export const queryDataById = (id) => defHttp.get({url: Api.queryDataById, params:{ id }});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user