Merge branch 'dev' of https://fcd.gdyditc.com/itc-framework/ma/2024/front into dev-zhao
This commit is contained in:
@ -60,7 +60,7 @@
|
|||||||
import { useMultipleTabStore } from '/@/store/modules/multipleTab';
|
import { useMultipleTabStore } from '/@/store/modules/multipleTab';
|
||||||
import { CloseOutlined, SendOutlined, ClockCircleOutlined, PrinterOutlined, ApartmentOutlined } from '@ant-design/icons-vue';
|
import { CloseOutlined, SendOutlined, ClockCircleOutlined, PrinterOutlined, ApartmentOutlined } from '@ant-design/icons-vue';
|
||||||
import { nextTick, onMounted, ref, toRaw, reactive } from 'vue';
|
import { nextTick, onMounted, ref, toRaw, reactive } from 'vue';
|
||||||
import { postDraft, putDraft } from '/@/api/workflow/process';
|
import { deleteDraft, postDraft, putDraft } from '/@/api/workflow/process';
|
||||||
import { useI18n } from '/@/hooks/web/useI18n';
|
import { useI18n } from '/@/hooks/web/useI18n';
|
||||||
import { separator } from '/@bpmn/config/info';
|
import { separator } from '/@bpmn/config/info';
|
||||||
import { message } from 'ant-design-vue';
|
import { message } from 'ant-design-vue';
|
||||||
@ -290,7 +290,8 @@
|
|||||||
/*stampId: values.stampId,
|
/*stampId: values.stampId,
|
||||||
stampPassword: values.password,*/
|
stampPassword: values.password,*/
|
||||||
isOldSystem: system,
|
isOldSystem: system,
|
||||||
nextTaskUser: approvalData.nextTaskUser
|
nextTaskUser: approvalData.nextTaskUser,
|
||||||
|
draftId: rDraftsId,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -27,23 +27,27 @@
|
|||||||
<div class="form-right" :style="{ paddingLeft: formRight }">
|
<div class="form-right" :style="{ paddingLeft: formRight }">
|
||||||
<div v-for="(item, index) in forms.configs" :key="index" :tab="item.formName">
|
<div v-for="(item, index) in forms.configs" :key="index" :tab="item.formName">
|
||||||
<div v-show="activeIndex == index">
|
<div v-show="activeIndex == index">
|
||||||
<SystemForm
|
<div class="page-bg-wrap">
|
||||||
class="form-box"
|
<div class="top-toolbar">
|
||||||
v-if="item.formType == FormType.SYSTEM"
|
<SystemForm
|
||||||
:systemComponent="item.systemComponent"
|
class="form-box"
|
||||||
:isViewProcess="props.disabled"
|
v-if="item.formType == FormType.SYSTEM"
|
||||||
:formModel="item.formModel"
|
:systemComponent="item.systemComponent"
|
||||||
:workflowConfig="item"
|
:isViewProcess="props.disabled"
|
||||||
:ref="setItemRef"
|
:formModel="item.formModel"
|
||||||
/>
|
:workflowConfig="item"
|
||||||
<SimpleForm
|
:ref="setItemRef"
|
||||||
v-else-if="item.formType == FormType.CUSTOM"
|
/>
|
||||||
class="form-box"
|
<SimpleForm
|
||||||
:ref="setItemRef"
|
v-else-if="item.formType == FormType.CUSTOM"
|
||||||
:formProps="item.formProps"
|
class="form-box"
|
||||||
:formModel="item.formModel"
|
:ref="setItemRef"
|
||||||
:isWorkFlow="true"
|
:formProps="item.formProps"
|
||||||
/>
|
:formModel="item.formModel"
|
||||||
|
:isWorkFlow="true"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -469,4 +473,14 @@
|
|||||||
padding-top: 20px;
|
padding-top: 20px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.page-bg-wrap {
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.top-toolbar {
|
||||||
|
min-height: 44px;
|
||||||
|
margin-bottom: 12px;
|
||||||
|
border-bottom: 1px solid #eee;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
<div style="margin:20px;">
|
<div style="margin:20px;">
|
||||||
当前流程审批人:{{currentTaskAssigneeNames.replaceAll(",","、")}}
|
当前流程审批人:{{currentTaskAssigneeNames.replaceAll(",","、")}}
|
||||||
</div>
|
</div>
|
||||||
<div style="margin:20px;">
|
<div style="margin:20px;" v-if="currentTaskAssignees">
|
||||||
节点审批人:
|
节点审批人:
|
||||||
<div v-for="(assignees,taskKey) in currentTaskAssignees" :key="taskKey">
|
<div v-for="(assignees,taskKey) in currentTaskAssignees" :key="taskKey">
|
||||||
<span>{{assignees[0].taskName}}{{currentTaskInfo?.taskDefinitionKey==taskKey?'(当前审批节点)':''}}:</span>
|
<span>{{assignees[0].taskName}}{{currentTaskInfo?.taskDefinitionKey==taskKey?'(当前审批节点)':''}}:</span>
|
||||||
|
|||||||
@ -15,11 +15,13 @@ import userTaskTable from './../../hooks/userTaskTable';
|
|||||||
import LaunchProcess from './../LaunchProcess.vue';
|
import LaunchProcess from './../LaunchProcess.vue';
|
||||||
import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
||||||
import { deleteDraft, getDraftInfo, getSchemaTask } from '/@/api/workflow/process';
|
import { deleteDraft, getDraftInfo, getSchemaTask } from '/@/api/workflow/process';
|
||||||
import { reactive } from 'vue';
|
import { reactive, onMounted } from 'vue';
|
||||||
import { notification } from 'ant-design-vue';
|
import { notification } from 'ant-design-vue';
|
||||||
import { TaskTypeUrl } from '/@/enums/workflowEnum';
|
import { TaskTypeUrl } from '/@/enums/workflowEnum';
|
||||||
import { useI18n } from '/@/hooks/web/useI18n';
|
import { useI18n } from '/@/hooks/web/useI18n';
|
||||||
import { useRouter } from 'vue-router';
|
import { useRouter } from 'vue-router';
|
||||||
|
import useEventBus from '/@/hooks/event/useEventBus';
|
||||||
|
const { bus, CREATE_FLOW } = useEventBus();
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
@ -72,6 +74,10 @@ const [registerTable, { reload }] = useTable({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
bus.on(CREATE_FLOW, handleRefresh);
|
||||||
|
});
|
||||||
|
|
||||||
function tableActions(record) {
|
function tableActions(record) {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
@ -98,7 +104,10 @@ async function handleEdit(record) {
|
|||||||
processData.visible = true;*/
|
processData.visible = true;*/
|
||||||
localStorage.setItem('draftsJsonStr', res.formData);
|
localStorage.setItem('draftsJsonStr', res.formData);
|
||||||
router.push({
|
router.push({
|
||||||
path: `/flow/${res.schemaId}/${record.id}/createFlow`
|
path: `/flow/${res.schemaId}/${record.id}/createFlow`,
|
||||||
|
query: {
|
||||||
|
createType: 'drafts'
|
||||||
|
}
|
||||||
});
|
});
|
||||||
} catch (error) { }
|
} catch (error) { }
|
||||||
}
|
}
|
||||||
@ -122,6 +131,11 @@ async function handleDelete(record) {
|
|||||||
}
|
}
|
||||||
} catch (error) { }
|
} catch (error) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function handleRefresh() {
|
||||||
|
reload();
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped></style>
|
<style scoped></style>
|
||||||
|
|||||||
Reference in New Issue
Block a user