| | |
| | | import request from '@/utils/request'; |
| | | import { ProcessDefinitionQuery, ProcessDefinitionVO, ProcessDefinitionXmlVO } from '@/api/workflow/processDefinition/types'; |
| | | import { ProcessDefinitionQuery, ProcessDefinitionVO, definitionXmlVO } from '@/api/workflow/processDefinition/types'; |
| | | import { AxiosPromise } from 'axios'; |
| | | const baseUrl = import.meta.env.VITE_APP_BASE_API; |
| | | |
| | | /** |
| | | * è·åæµç¨å®ä¹å表 |
| | |
| | | * @param processInstanceId æµç¨å®ä¾id |
| | | * @returns |
| | | */ |
| | | export const getProcessDefinitionListByKey = (key: string) => { |
| | | export const getListByKey = (key: string) => { |
| | | return request({ |
| | | url: `/workflow/processDefinition/getProcessDefinitionListByKey/${key}`, |
| | | url: `/workflow/processDefinition/getListByKey/${key}`, |
| | | method: 'get' |
| | | }); |
| | | }; |
| | |
| | | /** |
| | | * éè¿æµç¨å®ä¹idè·åæµç¨å¾ |
| | | */ |
| | | export const processDefinitionImage = (processDefinitionId: string): AxiosPromise<any> => { |
| | | export const definitionImage = (processDefinitionId: string): AxiosPromise<any> => { |
| | | return request({ |
| | | url: `/workflow/processDefinition/processDefinitionImage/${processDefinitionId}` + '?t' + Math.random(), |
| | | url: `/workflow/processDefinition/definitionImage/${processDefinitionId}` + '?t' + Math.random(), |
| | | method: 'get' |
| | | }); |
| | | }; |
| | |
| | | * @param processDefinitionId æµç¨å®ä¹id |
| | | * @returns |
| | | */ |
| | | export const processDefinitionXml = (processDefinitionId: string): AxiosPromise<ProcessDefinitionXmlVO> => { |
| | | export const definitionXml = (processDefinitionId: string): AxiosPromise<definitionXmlVO> => { |
| | | return request({ |
| | | url: `/workflow/processDefinition/processDefinitionXml/${processDefinitionId}`, |
| | | url: `/workflow/processDefinition/definitionXml/${processDefinitionId}`, |
| | | method: 'get' |
| | | }); |
| | | }; |
| | |
| | | * @param processDefinitionId æµç¨å®ä¹id |
| | | * @returns |
| | | */ |
| | | export const updateProcessDefState = (processDefinitionId: string) => { |
| | | export const updateDefinitionState = (processDefinitionId: string) => { |
| | | return request({ |
| | | url: `/workflow/processDefinition/updateProcessDefState/${processDefinitionId}`, |
| | | url: `/workflow/processDefinition/updateDefinitionState/${processDefinitionId}`, |
| | | method: 'put' |
| | | }); |
| | | }; |
| | |
| | | * @param fromProcessDefinitionId |
| | | * @returns |
| | | */ |
| | | export const migrationProcessDefinition = (currentProcessDefinitionId: string, fromProcessDefinitionId: string) => { |
| | | export const migrationDefinition = (currentProcessDefinitionId: string, fromProcessDefinitionId: string) => { |
| | | return request({ |
| | | url: `/workflow/processDefinition/migrationProcessDefinition/${currentProcessDefinitionId}/${fromProcessDefinitionId}`, |
| | | url: `/workflow/processDefinition/migrationDefinition/${currentProcessDefinitionId}/${fromProcessDefinitionId}`, |
| | | method: 'put' |
| | | }); |
| | | }; |
| | | |
| | | /** |
| | | * æ¥è¯¢æµç¨å®ä¹å表 |
| | | * @returns |
| | | */ |
| | | export const getProcessDefinitionList = () => { |
| | | return request({ |
| | | url: `/workflow/processDefinition/getProcessDefinitionList`, |
| | | method: 'get' |
| | | }); |
| | | }; |
| | |
| | | deploymentTime: string; |
| | | } |
| | | |
| | | export interface ProcessDefinitionXmlVO { |
| | | export interface definitionXmlVO { |
| | | xml: string[]; |
| | | xmlStr: string; |
| | | } |
| | |
| | | import request from '@/utils/request'; |
| | | import { ProcessInstanceQuery, ProcessInstanceVO } from '@/api/workflow/processInstance/types'; |
| | | import { AxiosPromise } from 'axios'; |
| | | import { string } from 'vue-types'; |
| | | const baseUrl = import.meta.env.VITE_APP_BASE_API; |
| | | |
| | | /** |
| | | * æ¥è¯¢è¿è¡ä¸å®ä¾å表 |
| | | * @param query |
| | | * @returns {*} |
| | | */ |
| | | export const getProcessInstanceRunningByPage = (query: ProcessInstanceQuery): AxiosPromise<ProcessInstanceVO[]> => { |
| | | export const getPageByRunning = (query: ProcessInstanceQuery): AxiosPromise<ProcessInstanceVO[]> => { |
| | | return request({ |
| | | url: '/workflow/processInstance/getProcessInstanceRunningByPage', |
| | | url: '/workflow/processInstance/getPageByRunning', |
| | | method: 'get', |
| | | params: query |
| | | }); |
| | |
| | | * @param query |
| | | * @returns {*} |
| | | */ |
| | | export const getProcessInstanceFinishByPage = (query: ProcessInstanceQuery): AxiosPromise<ProcessInstanceVO[]> => { |
| | | export const getPageByFinish = (query: ProcessInstanceQuery): AxiosPromise<ProcessInstanceVO[]> => { |
| | | return request({ |
| | | url: '/workflow/processInstance/getProcessInstanceFinishByPage', |
| | | url: '/workflow/processInstance/getPageByFinish', |
| | | method: 'get', |
| | | params: query |
| | | }); |
| | |
| | | /** |
| | | * éè¿æµç¨å®ä¾idè·åå岿µç¨å¾ |
| | | */ |
| | | export const getHistoryProcessImage = (processInstanceId: string) => { |
| | | export const getHistoryImage = (processInstanceId: string) => { |
| | | return request({ |
| | | url: `/workflow/processInstance/getHistoryProcessImage/${processInstanceId}` + '?t' + Math.random(), |
| | | url: `/workflow/processInstance/getHistoryImage/${processInstanceId}` + '?t' + Math.random(), |
| | | method: 'get' |
| | | }); |
| | | }; |
| | | |
| | | /** |
| | | * éè¿æµç¨å®ä¾idè·åå岿µç¨å¾è¿è¡ä¸ï¼åå²çèç¹ |
| | | */ |
| | | export const getHistoryList = (processInstanceId: string) => { |
| | | return request({ |
| | | url: `/workflow/processInstance/getHistoryList/${processInstanceId}` + '?t' + Math.random(), |
| | | method: 'get' |
| | | }); |
| | | }; |
| | |
| | | * @param data åæ° |
| | | * @returns |
| | | */ |
| | | export const deleteRuntimeProcessInst = (data: object) => { |
| | | export const deleteRunInstance = (data: object) => { |
| | | return request({ |
| | | url: `/workflow/processInstance/deleteRuntimeProcessInst`, |
| | | url: `/workflow/processInstance/deleteRunInstance`, |
| | | method: 'post', |
| | | data: data |
| | | }); |
| | |
| | | * @param processInstanceId æµç¨å®ä¾id |
| | | * @returns |
| | | */ |
| | | export const deleteRuntimeProcessAndHisInst = (processInstanceId: string | string[]) => { |
| | | export const deleteRunAndHisInstance = (processInstanceId: string | string[]) => { |
| | | return request({ |
| | | url: `/workflow/processInstance/deleteRuntimeProcessAndHisInst/${processInstanceId}`, |
| | | url: `/workflow/processInstance/deleteRunAndHisInstance/${processInstanceId}`, |
| | | method: 'delete' |
| | | }); |
| | | }; |
| | |
| | | * @param processInstanceId æµç¨å®ä¾id |
| | | * @returns |
| | | */ |
| | | export const deleteFinishProcessAndHisInst = (processInstanceId: string | string[]) => { |
| | | export const deleteFinishAndHisInstance = (processInstanceId: string | string[]) => { |
| | | return request({ |
| | | url: `/workflow/processInstance/deleteFinishProcessAndHisInst/${processInstanceId}`, |
| | | url: `/workflow/processInstance/deleteFinishAndHisInstance/${processInstanceId}`, |
| | | method: 'delete' |
| | | }); |
| | | }; |
| | |
| | | * @param query |
| | | * @returns {*} |
| | | */ |
| | | export const getCurrentSubmitByPage = (query: ProcessInstanceQuery): AxiosPromise<ProcessInstanceVO[]> => { |
| | | export const getPageByCurrent = (query: ProcessInstanceQuery): AxiosPromise<ProcessInstanceVO[]> => { |
| | | return request({ |
| | | url: '/workflow/processInstance/getCurrentSubmitByPage', |
| | | url: '/workflow/processInstance/getPageByCurrent', |
| | | method: 'get', |
| | | params: query |
| | | }); |
| | |
| | | * @param query |
| | | * @returns {*} |
| | | */ |
| | | export const getTaskWaitByPage = (query: TaskQuery): AxiosPromise<TaskVO[]> => { |
| | | export const getPageByTaskWait = (query: TaskQuery): AxiosPromise<TaskVO[]> => { |
| | | return request({ |
| | | url: '/workflow/task/getTaskWaitByPage', |
| | | url: '/workflow/task/getPageByTaskWait', |
| | | method: 'get', |
| | | params: query |
| | | }); |
| | |
| | | * @param query |
| | | * @returns {*} |
| | | */ |
| | | export const getTaskFinishByPage = (query: TaskQuery): AxiosPromise<TaskVO[]> => { |
| | | export const getPageByTaskFinish = (query: TaskQuery): AxiosPromise<TaskVO[]> => { |
| | | return request({ |
| | | url: '/workflow/task/getTaskFinishByPage', |
| | | url: '/workflow/task/getPageByTaskFinish', |
| | | method: 'get', |
| | | params: query |
| | | }); |
| | |
| | | * @param query |
| | | * @returns {*} |
| | | */ |
| | | export const getTaskCopyByPage = (query: TaskQuery): AxiosPromise<TaskVO[]> => { |
| | | export const getPageByTaskCopy = (query: TaskQuery): AxiosPromise<TaskVO[]> => { |
| | | return request({ |
| | | url: '/workflow/task/getTaskCopyByPage', |
| | | url: '/workflow/task/getPageByTaskCopy', |
| | | method: 'get', |
| | | params: query |
| | | }); |
| | |
| | | * @param query |
| | | * @returns {*} |
| | | */ |
| | | export const getAllTaskWaitByPage = (query: TaskQuery): AxiosPromise<TaskVO[]> => { |
| | | export const getPageByAllTaskWait = (query: TaskQuery): AxiosPromise<TaskVO[]> => { |
| | | return request({ |
| | | url: '/workflow/task/getAllTaskWaitByPage', |
| | | url: '/workflow/task/getPageByAllTaskWait', |
| | | method: 'get', |
| | | params: query |
| | | }); |
| | |
| | | * @param query |
| | | * @returns {*} |
| | | */ |
| | | export const getAllTaskFinishByPage = (query: TaskQuery): AxiosPromise<TaskVO[]> => { |
| | | export const getPageByAllTaskFinish = (query: TaskQuery): AxiosPromise<TaskVO[]> => { |
| | | return request({ |
| | | url: '/workflow/task/getAllTaskFinishByPage', |
| | | url: '/workflow/task/getPageByAllTaskFinish', |
| | | method: 'get', |
| | | params: query |
| | | }); |
| | |
| | | |
| | | /** |
| | | * ä¿®æ¹ä»»å¡åç人 |
| | | * @param taskIds |
| | | * @param userId |
| | | * @returns |
| | | * @param taskIds |
| | | * @param userId |
| | | * @returns |
| | | */ |
| | | export const updateAssignee = (taskIds: Array<string>,userId: string) => { |
| | | return request({ |
| | |
| | | * @param query |
| | | * @returns {*} |
| | | */ |
| | | export const getWorkflowAddMultiListByPage = (query: object) => { |
| | | export const getPageByAddMultiInstance = (query: object) => { |
| | | return request({ |
| | | url: '/workflow/user/getWorkflowAddMultiListByPage', |
| | | url: '/workflow/user/getPageByAddMultiInstance', |
| | | method: 'get', |
| | | params: query |
| | | }); |
| | |
| | | * @param query |
| | | * @returns {*} |
| | | */ |
| | | export const getWorkflowDeleteMultiInstanceList = (taskId: string) => { |
| | | export const getListByDeleteMultiInstance = (taskId: string) => { |
| | | return request({ |
| | | url: '/workflow/user/getWorkflowDeleteMultiInstanceList/' + taskId, |
| | | url: '/workflow/user/getListByDeleteMultiInstance/' + taskId, |
| | | method: 'get' |
| | | }); |
| | | }; |
| | |
| | | * @param query |
| | | * @returns {*} |
| | | */ |
| | | export const getUserListByPage = (query: object) => { |
| | | export const getPageByUserList = (query: object) => { |
| | | return request({ |
| | | url: '/workflow/user/getUserListByPage', |
| | | url: '/workflow/user/getPageByUserList', |
| | | method: 'get', |
| | | params: query |
| | | }); |
| | |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | |
| | | |
| | | </el-popover> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | </el-dialog> |
| | | </template> |
| | | <script lang="ts" setup> |
| | | import { getHistoryProcessImage, getHistoryRecord } from '@/api/workflow/processInstance'; |
| | | import { getHistoryImage, getHistoryRecord } from '@/api/workflow/processInstance'; |
| | | const { proxy } = getCurrentInstance() as ComponentInternalInstance; |
| | | import { ref } from 'vue'; |
| | | const props = defineProps({ |
| | |
| | | loading.value = true; |
| | | historyList.value = []; |
| | | graphicInfoVos.value = []; |
| | | getHistoryProcessImage(processInstanceId).then((res) => { |
| | | getHistoryImage(processInstanceId).then((res) => { |
| | | src.value = 'data:image/png;base64,' + res.data |
| | | }); |
| | | getHistoryRecord(processInstanceId).then((response) => { |
ÎļþÃû´Ó src/components/Process/multiInstance-user.vue ÐÞ¸Ä |
| | |
| | | |
| | | <script setup name="User" lang="ts"> |
| | | import { deptTreeSelect } from '@/api/system/user'; |
| | | import { getWorkflowAddMultiListByPage, getWorkflowDeleteMultiInstanceList, getUserListByIds } from '@/api/workflow/workflowUser'; |
| | | import { getPageByAddMultiInstance, getListByDeleteMultiInstance, getUserListByIds } from '@/api/workflow/workflowUser'; |
| | | import { addMultiInstanceExecution, deleteMultiInstanceExecution } from '@/api/workflow/task'; |
| | | import { UserVO } from '@/api/system/user/types'; |
| | | import { DeptVO } from '@/api/system/dept/types'; |
| | |
| | | visible.value = true; |
| | | queryParams.value.taskId = taskId; |
| | | loading.value = true; |
| | | const res = await getWorkflowAddMultiListByPage(queryParams.value); |
| | | const res = await getPageByAddMultiInstance(queryParams.value); |
| | | loading.value = false; |
| | | userList.value = res.rows; |
| | | total.value = res.total; |
| | |
| | | |
| | | const getList = async () => { |
| | | loading.value = true; |
| | | const res = await getWorkflowAddMultiListByPage(queryParams.value); |
| | | const res = await getPageByAddMultiInstance(queryParams.value); |
| | | loading.value = false; |
| | | userList.value = res.rows; |
| | | total.value = res.total; |
| | |
| | | queryParams.value.taskId = taskId; |
| | | multiInstance.value = 'delete'; |
| | | visible.value = true; |
| | | const res = await getWorkflowDeleteMultiInstanceList(taskId); |
| | | const res = await getListByDeleteMultiInstance(taskId); |
| | | taskList.value = res.data; |
| | | loading.value = false; |
| | | }; |
| | |
| | | getAddMultiInstanceList, |
| | | getDeleteMultiInstanceList |
| | | }); |
| | | </script> |
| | | </script> |
ÎļþÃû´Ó src/components/Process/sys-user.vue ÐÞ¸Ä |
| | |
| | | |
| | | <script setup name="User" lang="ts"> |
| | | import { deptTreeSelect } from '@/api/system/user'; |
| | | import { getUserListByPage, getUserListByIds } from '@/api/workflow/workflowUser'; |
| | | import { getPageByUserList, getUserListByIds } from '@/api/workflow/workflowUser'; |
| | | import { UserVO } from '@/api/system/user/types'; |
| | | import { DeptVO } from '@/api/system/dept/types'; |
| | | import { ComponentInternalInstance } from 'vue'; |
| | |
| | | userIds.value = userIdList; |
| | | visible.value = true; |
| | | loading.value = true; |
| | | const res = await getUserListByPage(queryParams.value); |
| | | const res = await getPageByUserList(queryParams.value); |
| | | loading.value = false; |
| | | userList.value = res.rows; |
| | | total.value = res.total; |
| | |
| | | |
| | | const getList = async () => { |
| | | loading.value = true; |
| | | const res = await getUserListByPage(queryParams.value); |
| | | const res = await getPageByUserList(queryParams.value); |
| | | loading.value = false; |
| | | userList.value = res.rows; |
| | | total.value = res.total; |
| | |
| | | <script lang="ts" setup name="processDefinition"> |
| | | import { |
| | | listProcessDefinition, |
| | | processDefinitionImage, |
| | | processDefinitionXml, |
| | | definitionImage, |
| | | definitionXml, |
| | | deleteProcessDefinition, |
| | | updateProcessDefState, |
| | | updateDefinitionState, |
| | | convertToModel, |
| | | deployProcessFile, |
| | | getProcessDefinitionListByKey |
| | | getListByKey |
| | | } from '@/api/workflow/processDefinition'; |
| | | import ProcessPreview from './components/processPreview.vue'; |
| | | import { listCategory } from '@/api/workflow/category'; |
| | |
| | | const getProcessDefinitionHitoryList = async (id: string, key: string) => { |
| | | processDefinitionDialog.visible = true; |
| | | loading.value = true; |
| | | const resp = await getProcessDefinitionListByKey(key); |
| | | const resp = await getListByKey(key); |
| | | if (resp.data && resp.data.length > 0) { |
| | | processDefinitionHistoryList.value = resp.data.filter((item: any) => item.id !== id); |
| | | } |
| | |
| | | //é¢è§å¾ç |
| | | const clickPreviewImg = async (id: string) => { |
| | | loading.value = true; |
| | | const resp = await processDefinitionImage(id); |
| | | const resp = await definitionImage(id); |
| | | if (previewRef.value) { |
| | | url.value = []; |
| | | url.value.push('data:image/png;base64,' + resp.data); |
| | |
| | | //é¢è§xml |
| | | const clickPreviewXML = async (id: string) => { |
| | | loading.value = true; |
| | | const resp = await processDefinitionXml(id); |
| | | const resp = await definitionXml(id); |
| | | if (previewRef.value) { |
| | | url.value = []; |
| | | url.value = resp.data.xml; |
| | |
| | | } |
| | | await proxy?.$modal.confirm(msg); |
| | | loading.value = true; |
| | | await updateProcessDefState(row.id).finally(() => (loading.value = false)); |
| | | await updateDefinitionState(row.id).finally(() => (loading.value = false)); |
| | | await getList(); |
| | | proxy?.$modal.msgSuccess('æä½æå'); |
| | | }; |
| | |
| | | |
| | | <script lang="ts" setup> |
| | | import { |
| | | getProcessInstanceRunningByPage, |
| | | getProcessInstanceFinishByPage, |
| | | deleteRuntimeProcessAndHisInst, |
| | | deleteFinishProcessAndHisInst, |
| | | deleteRuntimeProcessInst |
| | | getPageByRunning, |
| | | getPageByFinish, |
| | | deleteRunAndHisInstance, |
| | | deleteFinishAndHisInstance, |
| | | deleteRunInstance |
| | | } from '@/api/workflow/processInstance'; |
| | | import { getProcessDefinitionListByKey, migrationProcessDefinition } from '@/api/workflow/processDefinition'; |
| | | import { getListByKey, migrationDefinition } from '@/api/workflow/processDefinition'; |
| | | import ApprovalRecord from '@/components/Process/approvalRecord.vue'; |
| | | import { listCategory } from '@/api/workflow/category'; |
| | | import { CategoryVO } from '@/api/workflow/category/types'; |
| | |
| | | //å页 |
| | | const getProcessInstanceRunningList = () => { |
| | | loading.value = true; |
| | | getProcessInstanceRunningByPage(queryParams.value).then((resp) => { |
| | | getPageByRunning(queryParams.value).then((resp) => { |
| | | processInstanceList.value = resp.rows; |
| | | total.value = resp.total; |
| | | loading.value = false; |
| | |
| | | //å页 |
| | | const getProcessInstanceFinishList = () => { |
| | | loading.value = true; |
| | | getProcessInstanceFinishByPage(queryParams.value).then((resp) => { |
| | | getPageByFinish(queryParams.value).then((resp) => { |
| | | processInstanceList.value = resp.rows; |
| | | total.value = resp.total; |
| | | loading.value = false; |
| | |
| | | await proxy?.$modal.confirm('æ¯å¦ç¡®è®¤å é¤id为ã' + id + 'ãçæ°æ®é¡¹ï¼'); |
| | | loading.value = true; |
| | | if ('running' === tab.value) { |
| | | await deleteRuntimeProcessAndHisInst(id).finally(() => (loading.value = false)); |
| | | await deleteRunAndHisInstance(id).finally(() => (loading.value = false)); |
| | | getProcessInstanceRunningList(); |
| | | } else { |
| | | await deleteFinishProcessAndHisInst(id).finally(() => (loading.value = false)); |
| | | await deleteFinishAndHisInstance(id).finally(() => (loading.value = false)); |
| | | getProcessInstanceFinishList(); |
| | | } |
| | | proxy?.$modal.msgSuccess('å 餿å'); |
| | |
| | | processInstanceId: row.id, |
| | | deleteReason: deleteReason.value |
| | | }; |
| | | await deleteRuntimeProcessInst(param).finally(() => (loading.value = false)); |
| | | await deleteRunInstance(param).finally(() => (loading.value = false)); |
| | | getProcessInstanceRunningList(); |
| | | proxy?.$modal.msgSuccess('æä½æå'); |
| | | } |
| | |
| | | processDefinitionDialog.visible = true; |
| | | processDefinitionId.value = id; |
| | | loading.value = true; |
| | | getProcessDefinitionListByKey(key).then((resp) => { |
| | | getListByKey(key).then((resp) => { |
| | | if (resp.data && resp.data.length > 0) { |
| | | processDefinitionHistoryList.value = resp.data.filter((item: any) => item.id !== id); |
| | | } |
| | |
| | | const handleChange = async (id: string) => { |
| | | await proxy?.$modal.confirm('æ¯å¦ç¡®è®¤åæ¢ï¼'); |
| | | loading.value = true; |
| | | migrationProcessDefinition(processDefinitionId.value, id).then((resp) => { |
| | | migrationDefinition(processDefinitionId.value, id).then((resp) => { |
| | | proxy?.$modal.msgSuccess('æä½æå'); |
| | | getProcessInstanceRunningList(); |
| | | processDefinitionDialog.visible = false; |
| | |
| | | <submitVerify ref="submitVerifyRef" :task-id="taskId" @submit-callback="handleQuery" /> |
| | | <!-- å ç¾ç»ä»¶ --> |
| | | <multiInstanceUser ref="multiInstanceUserRef" :title="title" @submit-callback="handleQuery" /> |
| | | <!-- å ç¾ç»ä»¶ --> |
| | | <SysUser ref="sysUserRef" :multiple="true" @submit-callback="submitCallback" /> |
| | | <!-- é人ç»ä»¶ --> |
| | | <selectSysUser ref="selectSysUserRef" :multiple="true" @submit-callback="submitCallback" /> |
| | | </div> |
| | | </template> |
| | | |
| | | <script lang="ts" setup> |
| | | import { getAllTaskWaitByPage, getAllTaskFinishByPage, updateAssignee } from '@/api/workflow/task'; |
| | | import { getPageByAllTaskWait, getPageByAllTaskFinish, updateAssignee } from '@/api/workflow/task'; |
| | | import ApprovalRecord from '@/components/Process/approvalRecord.vue'; |
| | | import SubmitVerify from '@/components/Process/submitVerify.vue'; |
| | | import MultiInstanceUser from '@/components/Process/multiInstance-user.vue'; |
| | | import SysUser from '@/components/Process/sys-user.vue'; |
| | | import MultiInstanceUser from '@/components/Process/multiInstanceUser.vue'; |
| | | import SelectSysUser from '@/components/Process/selectSysUser.vue'; |
| | | import { TaskQuery, TaskVO } from '@/api/workflow/task/types'; |
| | | //æäº¤ç»ä»¶ |
| | | const submitVerifyRef = ref<InstanceType<typeof SubmitVerify>>(); |
| | |
| | | //å ç¾ç»ä»¶ |
| | | const multiInstanceUserRef = ref<InstanceType<typeof MultiInstanceUser>>(); |
| | | //é人ç»ä»¶ |
| | | const sysUserRef = ref<InstanceType<typeof SysUser>>(); |
| | | const selectSysUserRef = ref<InstanceType<typeof SelectSysUser>>(); |
| | | |
| | | const queryFormRef = ref<ElFormInstance>(); |
| | | const { proxy } = getCurrentInstance() as ComponentInternalInstance; |
| | |
| | | //å页 |
| | | const getWaitingList = () => { |
| | | loading.value = true; |
| | | getAllTaskWaitByPage(queryParams.value).then((resp) => { |
| | | getPageByAllTaskWait(queryParams.value).then((resp) => { |
| | | taskList.value = resp.rows; |
| | | total.value = resp.total; |
| | | loading.value = false; |
| | |
| | | }; |
| | | const getFinishList = () => { |
| | | loading.value = true; |
| | | getAllTaskFinishByPage(queryParams.value).then((resp) => { |
| | | getPageByAllTaskFinish(queryParams.value).then((resp) => { |
| | | taskList.value = resp.rows; |
| | | total.value = resp.total; |
| | | loading.value = false; |
| | | }); |
| | | }; |
| | | const handleUpdate = () => { |
| | | if (sysUserRef.value) { |
| | | sysUserRef.value.getUserList([]); |
| | | if (selectSysUserRef.value) { |
| | | selectSysUserRef.value.getUserList([]); |
| | | } |
| | | }; |
| | | //ä¿®æ¹åç人 |
| | | const submitCallback = (data) => { |
| | | if (data && data.value.length > 0) { |
| | | updateAssignee(ids.value, data.value[0].userId).then((resp) => { |
| | | sysUserRef.value.close(); |
| | | selectSysUserRef.value.close(); |
| | | proxy?.$modal.msgSuccess('æä½æå'); |
| | | handleQuery(); |
| | | }); |
| | |
| | | </template> |
| | | |
| | | <script lang="ts" setup> |
| | | import { getCurrentSubmitByPage, deleteRuntimeProcessAndHisInst, cancelProcessApply } from '@/api/workflow/processInstance'; |
| | | import { getPageByCurrent, deleteRunAndHisInstance, cancelProcessApply } from '@/api/workflow/processInstance'; |
| | | import ApprovalRecord from '@/components/Process/approvalRecord.vue'; |
| | | import SubmitVerify from '@/components/Process/submitVerify.vue'; |
| | | import { listCategory } from '@/api/workflow/category'; |
| | |
| | | //å页 |
| | | const getList = () => { |
| | | loading.value = true; |
| | | getCurrentSubmitByPage(queryParams.value).then((resp) => { |
| | | getPageByCurrent(queryParams.value).then((resp) => { |
| | | processInstanceList.value = resp.rows; |
| | | total.value = resp.total; |
| | | loading.value = false; |
| | |
| | | await proxy?.$modal.confirm('æ¯å¦ç¡®è®¤å é¤id为ã' + id + 'ãçæ°æ®é¡¹ï¼'); |
| | | loading.value = true; |
| | | if ('running' === tab.value) { |
| | | await deleteRuntimeProcessAndHisInst(id).finally(() => (loading.value = false)); |
| | | await deleteRunAndHisInstance(id).finally(() => (loading.value = false)); |
| | | getList(); |
| | | } |
| | | proxy?.$modal.msgSuccess('å 餿å'); |
| | |
| | | </template> |
| | | |
| | | <script lang="ts" setup> |
| | | import { getTaskCopyByPage} from '@/api/workflow/task'; |
| | | import { getPageByTaskCopy} from '@/api/workflow/task'; |
| | | import ApprovalRecord from '@/components/Process/approvalRecord.vue'; |
| | | import { TaskQuery, TaskVO } from '@/api/workflow/task/types'; |
| | | //审æ¹è®°å½ç»ä»¶ |
| | |
| | | //å页 |
| | | const getTaskCopyList = () => { |
| | | loading.value = true; |
| | | getTaskCopyByPage(queryParams.value).then((resp) => { |
| | | getPageByTaskCopy(queryParams.value).then((resp) => { |
| | | taskList.value = resp.rows; |
| | | total.value = resp.total; |
| | | loading.value = false; |
| | |
| | | </template> |
| | | |
| | | <script lang="ts" setup> |
| | | import { getTaskFinishByPage } from '@/api/workflow/task'; |
| | | import { getPageByTaskFinish } from '@/api/workflow/task'; |
| | | import ApprovalRecord from '@/components/Process/approvalRecord.vue'; |
| | | import { TaskQuery, TaskVO } from '@/api/workflow/task/types'; |
| | | //审æ¹è®°å½ç»ä»¶ |
| | |
| | | }; |
| | | const getFinishList = () => { |
| | | loading.value = true; |
| | | getTaskFinishByPage(queryParams.value).then((resp) => { |
| | | getPageByTaskFinish(queryParams.value).then((resp) => { |
| | | taskList.value = resp.rows; |
| | | total.value = resp.total; |
| | | loading.value = false; |
| | |
| | | </template> |
| | | |
| | | <script lang="ts" setup> |
| | | import { getTaskWaitByPage, claim, returnTask } from '@/api/workflow/task'; |
| | | import { getPageByTaskWait, claim, returnTask } from '@/api/workflow/task'; |
| | | import ApprovalRecord from '@/components/Process/approvalRecord.vue'; |
| | | import SubmitVerify from '@/components/Process/submitVerify.vue'; |
| | | import { TaskQuery, TaskVO } from '@/api/workflow/task/types'; |
| | |
| | | //å页 |
| | | const getWaitingList = () => { |
| | | loading.value = true; |
| | | getTaskWaitByPage(queryParams.value).then((resp) => { |
| | | getPageByTaskWait(queryParams.value).then((resp) => { |
| | | taskList.value = resp.rows; |
| | | total.value = resp.total; |
| | | loading.value = false; |