yxk-20260513-党委会流程表单

实现点击办理之前,自动保存基础信息(业务表单数据)和流程信息功能(是否办结、部门经办人)
This commit is contained in:
ye1023
2026-05-13 14:46:28 +08:00
parent 496f9714d0
commit 6314b7eb35
3 changed files with 67 additions and 11 deletions
@@ -172,6 +172,10 @@
selnextUserStatus:{
type: Boolean,
default: true,
},
beforeHandle: {
type: Function,
default: undefined,
}
},
emits: ['success'],
@@ -372,6 +376,11 @@
params.fileList = isString(params.fileList) ? params.fileList : JSON.stringify(params.fileList);
}
try {
const canHandle = await runBeforeHandle();
if (!canHandle) {
loading.value = false;
return;
}
console.log('流程提交->params', params);
let json = await taskComplete(params);
console.log('流程提交-result', json);
@@ -383,6 +392,14 @@
}
}
async function runBeforeHandle() {
if (typeof props.beforeHandle !== 'function') {
return true;
}
const result = await props.beforeHandle();
return result !== false;
}
async function initDict() {
const dictData = await initDictOptions('approval_remarks');
console.log('dic', dictData);