计算审批流

This commit is contained in:
ChenXinXin committed 2024-04-24 11:46:38 +08:00
1 parent f6460544f1
commit d418e9b853
6 files changed
+458 -109

No files matched your search

+10 -17
View File
@@ -53,7 +53,7 @@
<template>
<!-- pc端 -->
<template v-if="!isMobile">
<span role="button" class="success--text font-weight-medium font-size-2 mr-2 ml-2" @click="doUiAction('startCreateWorkflow', item)">
<span role="button" class="success--text font-weight-medium font-size-2 mr-2 ml-2" @click="doUiAction('startCreateTask', item)">
<v-icon size="16" class="success--text">mdi-note-edit-outline</v-icon>申请
</span>
<span role="button" class="success--text font-weight-medium font-size-2" @click="doUiAction('openWorkflowEditorDrawer', item)">
@@ -69,7 +69,7 @@
</span>
</template>
<v-list dense>
<v-list-item @click="doUiAction('startCreateWorkflow', item)">
<v-list-item @click="doUiAction('startCreateTask', item)">
<v-list-item-title>申请</v-list-item-title>
</v-list-item>
<v-list-item @click="doUiAction('openWorkflowEditorDrawer', item)">
@@ -99,6 +99,7 @@
<!-- <<<<<<<<<<<<< 页面内容 -->
</div>
<!-- <<<<<<<<<<<<< 创建审批抽屉 -->
<create-task-drawer ref="createTaskDrawer"></create-task-drawer>
<v-navigation-drawer v-model="isCreateDrawerShown" v-click-outside="drawerClickOutside" fixed temporary right width="80%" class="elevation-24">
<v-form v-if="isCreateDrawerShown" ref="createForm" lazy-validation>
<!-- 抽屉标题 -->
@@ -138,7 +139,7 @@
</v-row>
<!--抽屉操作按钮-->
<v-row class="justify-end mx-0 my-8 px-4">
<v-btn color="success" @click="doUiAction('createWorkflow')" small>保存</v-btn>
<v-btn color="success" @click="doUiAction('createTask')" small>保存</v-btn>
<v-btn class="ml-2" @click="isCreateDrawerShown = false" small>取消</v-btn>
</v-row>
</v-form>
@@ -182,6 +183,7 @@
<!-- 加载页面组件 >>>>>>>>>>>>> -->
{% include 'component/formItem.html' %}
{% include 'component/createTaskDrawer.html' %}
{% include 'component/workflowEditorDrawer.html' %}
{% include 'common/jianghuJs/fixedTableHeightV4.html' %}
<!-- <<<<<<<<<<<<< 加载页面组件 -->
@@ -229,11 +231,10 @@
await this.getTableData();
await this.parseTableData();
break;
case 'startCreateWorkflow':
await this.prepareCreateFormData(uiActionData);
await this.openCreateDrawer();
case 'startCreateTask':
await this.openCreateTaskDrawer(uiActionData);
break;
case 'createWorkflow':
case 'createTask':
await this.prepareDoCreateWork();
await this.prepareCreateValidate();
await this.confirmCreateWorkDialog();
@@ -302,16 +303,8 @@
},
// ---------- <<<<<<<<<< 申请项目审核 --------
async prepareCreateFormData(funObj) {
console.log('prepareCreateFormData', funObj);
const { workflowForm, workflowPersonList, workflowId } = funObj;
this.currentWorkflowForm = workflowForm;
this.currentWorkflowPersonList = workflowPersonList;
this.currentWorkflowId = workflowId;
},
async openCreateDrawer() {
this.isCreateDrawerShown = true;
async openCreateTaskDrawer(workflow) {
this.$refs.createTaskDrawer.doUiAction('open', workflow);
},
async prepareDoCreateWork() {
this.currentWorkflowPersonList.forEach(workflowPersonItem => {