yxk-20260429-增加/saveBpmForm接口,保存业务数据的同时更新流程的json_data
This commit is contained in:
@@ -12,6 +12,7 @@ enum Api {
|
||||
deleteBatch = '/bgpartymatter/bgPartymatter/deleteBatch',
|
||||
importExcel = '/bgpartymatter/bgPartymatter/importExcel',
|
||||
exportXls = '/bgpartymatter/bgPartymatter/exportXls',
|
||||
saveBpmForm = '/bgpartymatter/bgPartymatter/saveBpmForm',
|
||||
bgPartymatterFeedbackList = '/bgpartymatter/bgPartymatter/listBgPartymatterFeedbackByMainId',
|
||||
bgPartymatterFeedbackSave= '/bgpartymatter/bgPartymatter/addBgPartymatterFeedback',
|
||||
bgPartymatterFeedbackEdit= '/bgpartymatter/bgPartymatter/editBgPartymatterFeedback',
|
||||
@@ -73,6 +74,10 @@ export const saveOrUpdate = (params, isUpdate) => {
|
||||
return defHttp.post({ url: url, params },{ isTransformResponse: false });
|
||||
}
|
||||
|
||||
export const saveBpmForm = (params) => {
|
||||
return defHttp.post({ url: Api.saveBpmForm, params }, { isTransformResponse: false });
|
||||
}
|
||||
|
||||
/**
|
||||
* 列表接口
|
||||
* @param params
|
||||
|
||||
@@ -153,7 +153,7 @@
|
||||
import { defHttp } from '/@/utils/http/axios';
|
||||
import { useMessage } from '/@/hooks/web/useMessage';
|
||||
import JSelectDept from '/@/components/Form/src/jeecg/components/JSelectDept.vue';
|
||||
import { bgPartymatterFeedbackList, bgPartymatterFeedbackSaveOrUpdate, saveOrUpdate } from '../BgPartymatter.api';
|
||||
import { bgPartymatterFeedbackList, bgPartymatterFeedbackSaveOrUpdate, saveBpmForm } from '../BgPartymatter.api';
|
||||
import { usePermission } from '/@/hooks/web/usePermission';
|
||||
const { isDisabledAuth, hasPermission, initBpmFormData} = usePermission();
|
||||
|
||||
@@ -290,7 +290,11 @@
|
||||
try {
|
||||
const processInstanceId = processInfo.value.processInstanceId;
|
||||
console.log('BgPartymatter BPM process info', { ...processInfo.value, processInstanceId });
|
||||
const res = await saveOrUpdate({ ...mainForm }, true);
|
||||
const res = await saveBpmForm({
|
||||
processInstanceId,
|
||||
varField: 'json_data',
|
||||
formData: { ...mainForm },
|
||||
});
|
||||
if (res.success) {
|
||||
createMessage.success(res.message || '保存成功');
|
||||
emit('ok');
|
||||
|
||||
Reference in New Issue
Block a user