提交审批流程隐藏取消等
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<a-modal :mask-closable="false" :title="dialogTitle" :visible="isOpen" :width="500" centered class="geg" @cancel="onClickCancel">
|
||||
<a-modal :mask-closable="false" :title="dialogTitle" :visible="isOpen" :width="500" centered class="geg" @cancel="onClickCancel" :closable="actionType!='submit'">
|
||||
<template #footer>
|
||||
<a-button :disabled="loading" @click="onClickCancel">取消</a-button>
|
||||
<a-button :disabled="loading" @click="onClickCancel" v-if="actionType!=='submit'">取消</a-button>
|
||||
<a-button :loading="loading" type="primary" @click="onClickOK">确定</a-button>
|
||||
</template>
|
||||
<div class="dialog-wrap">
|
||||
@ -51,7 +51,7 @@
|
||||
</a-form-item>
|
||||
</template>
|
||||
|
||||
<a-form-item label="审批意见" :required="_action == 'reject'" name="opinion">
|
||||
<a-form-item label="审批意见" :required="_action == 'reject'" name="opinion" v-if="actionType!=='submit'">
|
||||
<a-textarea v-model:value="formState.opinion" :disabled="loading" :maxlength="200" :rows="3" placeholder="请输入审批意见,不超过200字" />
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
@ -72,6 +72,7 @@
|
||||
const isEnd = ref(false);
|
||||
|
||||
let _action = ref('agree');
|
||||
const actionType= ref('')
|
||||
let _processId = '';
|
||||
let _taskId = '';
|
||||
let flowNextNodes = ref([]);
|
||||
@ -95,14 +96,15 @@
|
||||
return flowNextNodes.value.length > 1 ? '多个节点,请确认流向节点' : flowNextNodes?.value[0]?.activityName;
|
||||
}
|
||||
|
||||
function toggleDialog({ isClose, action, callback, rejectCancel, processId, taskId, nextNodes } = {}) {
|
||||
if (isClose) {
|
||||
isOpen.value = false;
|
||||
loading.value = false;
|
||||
return;
|
||||
}
|
||||
isOpen.value = true;
|
||||
_action.value = action;
|
||||
function toggleDialog({ isClose, action, callback, rejectCancel, processId, taskId, nextNodes,actionFlowType } = {}) {
|
||||
if (isClose) {
|
||||
isOpen.value = false;
|
||||
loading.value = false;
|
||||
return;
|
||||
}
|
||||
isOpen.value = true;
|
||||
_action.value = action;
|
||||
actionType.value = actionFlowType
|
||||
_callback = callback;
|
||||
_onCancel = rejectCancel;
|
||||
_processId = processId;
|
||||
|
||||
Reference in New Issue
Block a user