流程发起和审核,验证选项卡必填项

zzq
刘妍 2024-06-14 10:41:49 +08:00
parent d02369b785
commit fe84dda83b
2 changed files with 31 additions and 22 deletions

View File

@ -303,6 +303,9 @@
formBoxRef.value
.getForm()
.then(async (res) => {
if (!res) {
createMessage.error('请检查表单必填项');
} else {
res[designerData.formCurrentNode.formRelationId] = processId;
for (var item in res) {
if (res[item] == undefined) {
@ -317,6 +320,7 @@
if (formValue) {
handleCreateFlow(processId);
}
}
})
.catch((error) => {
console.log(error);

View File

@ -605,6 +605,10 @@
formBoxRef.value
.getForm()
.then(async (res) => {
console.log(res);
if (!res) {
createMessage.error('请检查表单必填项');
} else {
res[designerData.formCurrentNode.formRelationId] = instanceInfo.pkeyValue;
for (var item in res) {
if (res[item] == undefined) {
@ -619,6 +623,7 @@
if (formValue) {
handleSubmit(btn);
}
}
})
.catch((error) => {
console.log(error);