发起督办收集流程可以选择是否直接发起收集流程,添加对应弹窗并将该信息写到中间表的json_data内
This commit is contained in:
@@ -98,6 +98,7 @@
|
|||||||
<!-- 审批记录 -->
|
<!-- 审批记录 -->
|
||||||
<BpmPictureModal @register="registerBpmModal" />
|
<BpmPictureModal @register="registerBpmModal" />
|
||||||
<FlowScheduleStartModal ref="flowScheduleModalRef" @confirm="handleFlowScheduleConfirm" />
|
<FlowScheduleStartModal ref="flowScheduleModalRef" @confirm="handleFlowScheduleConfirm" />
|
||||||
|
<FeedbackRightNowModal ref="feedbackRightNowModalRef" @confirm="handleFeedbackRightNowConfirm" />
|
||||||
<BusinessProcessListModal ref="businessProcessListModalRef" />
|
<BusinessProcessListModal ref="businessProcessListModalRef" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -116,6 +117,7 @@
|
|||||||
import SUploadFile from '/@/components/semri/fileComponent/SUploadFile.vue';
|
import SUploadFile from '/@/components/semri/fileComponent/SUploadFile.vue';
|
||||||
import BusinessProcessListModal from '/src/components/semri/process/BusinessProcessListModal.vue';
|
import BusinessProcessListModal from '/src/components/semri/process/BusinessProcessListModal.vue';
|
||||||
import FlowScheduleStartModal from '/src/components/semri/process/FlowScheduleStartModal.vue';
|
import FlowScheduleStartModal from '/src/components/semri/process/FlowScheduleStartModal.vue';
|
||||||
|
import FeedbackRightNowModal from './components/FeedbackRightNowModal.vue';
|
||||||
import { columns as taskTaskColumns } from '/@/views/taskProcess/TaskTask.data';
|
import { columns as taskTaskColumns } from '/@/views/taskProcess/TaskTask.data';
|
||||||
import { columns, superQuerySchema, bgXiSpeakFeedbackColumns } from './BgXiSpeak.data';
|
import { columns, superQuerySchema, bgXiSpeakFeedbackColumns } from './BgXiSpeak.data';
|
||||||
import {
|
import {
|
||||||
@@ -144,7 +146,9 @@
|
|||||||
const toggleSearchStatus = ref<boolean>(false);
|
const toggleSearchStatus = ref<boolean>(false);
|
||||||
const registerModal = ref();
|
const registerModal = ref();
|
||||||
const flowScheduleModalRef = ref();
|
const flowScheduleModalRef = ref();
|
||||||
|
const feedbackRightNowModalRef = ref();
|
||||||
const businessProcessListModalRef = ref();
|
const businessProcessListModalRef = ref();
|
||||||
|
const pendingFeedbackRightNow = ref(0);
|
||||||
const processColumns = taskTaskColumns;
|
const processColumns = taskTaskColumns;
|
||||||
const selectedFeedbackId = ref<string | number | null>(null);
|
const selectedFeedbackId = ref<string | number | null>(null);
|
||||||
const feedbackTableData = reactive<Record<string, Recordable[]>>({});
|
const feedbackTableData = reactive<Record<string, Recordable[]>>({});
|
||||||
@@ -532,6 +536,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function handleProcess(record) {
|
function handleProcess(record) {
|
||||||
|
feedbackRightNowModalRef.value?.open(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleFeedbackRightNowConfirm({ record, feedbackRightNow }) {
|
||||||
|
pendingFeedbackRightNow.value = feedbackRightNow;
|
||||||
flowScheduleModalRef.value?.open({
|
flowScheduleModalRef.value?.open({
|
||||||
title: '发起督办计划收集流程',
|
title: '发起督办计划收集流程',
|
||||||
payload: { record },
|
payload: { record },
|
||||||
@@ -581,6 +590,7 @@
|
|||||||
isNeedAppro: options.isNeedAppro ?? record.needSdwApproval ?? '',
|
isNeedAppro: options.isNeedAppro ?? record.needSdwApproval ?? '',
|
||||||
supDeptleaderid: options.supDeptleaderid ?? record.sdwLeaderList ?? '',
|
supDeptleaderid: options.supDeptleaderid ?? record.sdwLeaderList ?? '',
|
||||||
supervisionCount: nextSuperviseCount,
|
supervisionCount: nextSuperviseCount,
|
||||||
|
feedback_right_now: flowCode === FLOW_CODE ? pendingFeedbackRightNow.value : undefined,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (flowCode === FLOW_CODE_JBR) {
|
if (flowCode === FLOW_CODE_JBR) {
|
||||||
|
|||||||
@@ -0,0 +1,55 @@
|
|||||||
|
<template>
|
||||||
|
<JModal
|
||||||
|
title="发起督办计划收集流程"
|
||||||
|
:width="480"
|
||||||
|
:visible="visible"
|
||||||
|
:confirmLoading="confirming"
|
||||||
|
okText="确认"
|
||||||
|
cancelText="取消"
|
||||||
|
@ok="handleOk"
|
||||||
|
@cancel="handleCancel"
|
||||||
|
>
|
||||||
|
<a-form :label-col="{ style: { width: '100%' } }">
|
||||||
|
<a-form-item>
|
||||||
|
<a-radio-group v-model:value="feedbackRightNow">
|
||||||
|
<a-space direction="vertical">
|
||||||
|
<a-radio :value="1">督办计划收集流程结束后需要立即反馈</a-radio>
|
||||||
|
<a-radio :value="0">无需立即反馈</a-radio>
|
||||||
|
</a-space>
|
||||||
|
</a-radio-group>
|
||||||
|
</a-form-item>
|
||||||
|
</a-form>
|
||||||
|
</JModal>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts" setup>
|
||||||
|
import { ref } from 'vue';
|
||||||
|
import JModal from '/@/components/Modal/src/JModal/JModal.vue';
|
||||||
|
|
||||||
|
const emit = defineEmits(['confirm']);
|
||||||
|
|
||||||
|
const visible = ref(false);
|
||||||
|
const confirming = ref(false);
|
||||||
|
const feedbackRightNow = ref(0);
|
||||||
|
const contextRecord = ref<any>(null);
|
||||||
|
|
||||||
|
function open(record: any) {
|
||||||
|
feedbackRightNow.value = 0;
|
||||||
|
contextRecord.value = record;
|
||||||
|
visible.value = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleCancel() {
|
||||||
|
visible.value = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleOk() {
|
||||||
|
emit('confirm', {
|
||||||
|
record: contextRecord.value,
|
||||||
|
feedbackRightNow: feedbackRightNow.value,
|
||||||
|
});
|
||||||
|
visible.value = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
defineExpose({ open });
|
||||||
|
</script>
|
||||||
Reference in New Issue
Block a user