yxk-20260513-党委会流程表单
实现点击办理之前,自动保存基础信息(业务表单数据)和流程信息功能(是否办结、部门经办人)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user