yxk-20260428-改造办理时获取业务表单的页面taskdealmodal(发流程的表单目前是流程中间表,需要改造为真实业务表单)
This commit is contained in:
@@ -95,7 +95,6 @@ export const useModalInner = (callbackFn?: Fn): UseModalInnerReturnType => {
|
|||||||
const modalInstanceRef = ref<Nullable<ModalMethods>>(null);
|
const modalInstanceRef = ref<Nullable<ModalMethods>>(null);
|
||||||
const currentInstance = getCurrentInstance();
|
const currentInstance = getCurrentInstance();
|
||||||
const uidRef = ref<string>('');
|
const uidRef = ref<string>('');
|
||||||
|
|
||||||
const getInstance = () => {
|
const getInstance = () => {
|
||||||
const instance = unref(modalInstanceRef);
|
const instance = unref(modalInstanceRef);
|
||||||
if (!instance) {
|
if (!instance) {
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div v-if="iframeUrl" class="component_div" style="overflow-y: auto">
|
<div v-if="iframeUrl" class="component_div" style="overflow-y: auto">
|
||||||
<DesformView
|
<DesformView
|
||||||
v-if="designFormInfo.status"
|
v-if="designFormInfo.status"
|
||||||
class="desform-view"
|
class="desform-view"
|
||||||
:isOnline="false"
|
:isOnline="false"
|
||||||
mode=""
|
mode=""
|
||||||
:url="designFormInfo.url"
|
:url="designFormInfo.url"
|
||||||
:parentNode="parentNode"
|
:parentNode="parentNode"
|
||||||
@@ -54,17 +54,17 @@
|
|||||||
},
|
},
|
||||||
setup(props) {
|
setup(props) {
|
||||||
const height = window.innerHeight - 120 + 'px';
|
const height = window.innerHeight - 120 + 'px';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 如果是表单设计器表单 需要设置一些参数
|
* 如果是表单设计器表单 需要设置一些参数
|
||||||
*/
|
*/
|
||||||
const designFormInfo = reactive({
|
const designFormInfo = reactive({
|
||||||
status: false,
|
status: false,
|
||||||
code: '',
|
code: '',
|
||||||
url: '',
|
url: '',
|
||||||
dataId: ''
|
dataId: ''
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取表单地址
|
* 获取表单地址
|
||||||
* @type {ComputedRef<unknown>}
|
* @type {ComputedRef<unknown>}
|
||||||
@@ -75,9 +75,9 @@
|
|||||||
// 将任务ID放到计算函数内部 当formData改变的时候会触发iframeUrl重复赋值
|
// 将任务ID放到计算函数内部 当formData改变的时候会触发iframeUrl重复赋值
|
||||||
let TASKID = props.formData.taskDefKey;
|
let TASKID = props.formData.taskDefKey;
|
||||||
let TOKEN = getToken();
|
let TOKEN = getToken();
|
||||||
let DOMAIN_URL = domainUrl
|
let DOMAIN_URL = domainUrl;
|
||||||
// TOKEN = NY5LzSY2VW1BSthYSnJArCFqbgwtZqSuyPQ/OD1n1twWJGU2RN/wkzf+kBVO5DztN85Ca9keeuaRAiwcatr8N0M15+Wv2SmRw82lMwawE2naX5tpJMpkxrUhUUcjnC+BSBL4+PV2JUXBFW8/oOG8HLqYvmPxoP7MMBhMi9D7lRY=
|
// TOKEN = NY5LzSY2VW1BSthYSnJArCFqbgwtZqSuyPQ/OD1n1twWJGU2RN/wkzf+kBVO5DztN85Ca9keeuaRAiwcatr8N0M15+Wv2SmRw82lMwawE2naX5tpJMpkxrUhUUcjnC+BSBL4+PV2JUXBFW8/oOG8HLqYvmPxoP7MMBhMi9D7lRY=
|
||||||
|
|
||||||
// URL支持{{ window.xxx }}占位符变量
|
// URL支持{{ window.xxx }}占位符变量
|
||||||
//const URL = (props.path || '').replace(/{{([^}}]+)?}}/g, (s1, s2) => eval(s2));
|
//const URL = (props.path || '').replace(/{{([^}}]+)?}}/g, (s1, s2) => eval(s2));
|
||||||
const URL = getBpmFormUrl(props.path, TOKEN, DOMAIN_URL, TASKID);
|
const URL = getBpmFormUrl(props.path, TOKEN, DOMAIN_URL, TASKID);
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
import BpmDynamicForm from '/@/views/super/bpm/process/components/BpmDynamicForm.vue';
|
import BpmDynamicForm from '/@/views/super/bpm/process/components/BpmDynamicForm.vue';
|
||||||
import { useTabs } from '/@/hooks/web/useTabs';
|
import { useTabs } from '/@/hooks/web/useTabs';
|
||||||
import { useMessage } from '/@/hooks/web/useMessage';
|
import { useMessage } from '/@/hooks/web/useMessage';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用于办理跳转页面 独立菜单
|
* 用于办理跳转页面 独立菜单
|
||||||
*/
|
*/
|
||||||
@@ -56,21 +56,21 @@
|
|||||||
function handleSuccess(){
|
function handleSuccess(){
|
||||||
closeCurrent();
|
closeCurrent();
|
||||||
}
|
}
|
||||||
|
|
||||||
const taskFormData = ref({});
|
const taskFormData = ref({});
|
||||||
const taskFormUrl = ref('');
|
const taskFormUrl = ref('');
|
||||||
const taskClaimStatus = ref(false)
|
const taskClaimStatus = ref(false)
|
||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
const activeKey = ref('1')
|
const activeKey = ref('1')
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
let taskId = route.params.id as string;
|
let taskId = route.params.id as string;
|
||||||
let taskType = 'run';
|
let taskType = 'run';
|
||||||
|
|
||||||
// 加载节点信息
|
// 加载节点信息
|
||||||
const { getTaskNodeInfo } = useTaskList('run');
|
const { getTaskNodeInfo } = useTaskList('run');
|
||||||
loadNodeInfo();
|
loadNodeInfo();
|
||||||
|
|
||||||
async function loadNodeInfo(){
|
async function loadNodeInfo(){
|
||||||
loading.value = true
|
loading.value = true
|
||||||
const routeQuery:any = route.query;
|
const routeQuery:any = route.query;
|
||||||
@@ -113,7 +113,7 @@
|
|||||||
}
|
}
|
||||||
loading.value = false
|
loading.value = false
|
||||||
}
|
}
|
||||||
|
|
||||||
async function loadHistoryInfo(routeQuery){
|
async function loadHistoryInfo(routeQuery){
|
||||||
let record = {
|
let record = {
|
||||||
id: routeQuery.taskId,
|
id: routeQuery.taskId,
|
||||||
@@ -131,7 +131,7 @@
|
|||||||
taskFormData.value['PROCESS_TAB_TYPE'] = 'run';
|
taskFormData.value['PROCESS_TAB_TYPE'] = 'run';
|
||||||
taskClaimStatus.value = false
|
taskClaimStatus.value = false
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
loading,
|
loading,
|
||||||
activeKey,
|
activeKey,
|
||||||
@@ -142,7 +142,7 @@
|
|||||||
handleClaimSuccess
|
handleClaimSuccess
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
import { taskEntrust, taskClaim, taskComplaint } from './task.handle.api';
|
import { taskEntrust, taskClaim, taskComplaint } from './task.handle.api';
|
||||||
import { useUserStore } from '/@/store/modules/user';
|
import { useUserStore } from '/@/store/modules/user';
|
||||||
import { useMessage } from '/@/hooks/web/useMessage';
|
import { useMessage } from '/@/hooks/web/useMessage';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'TaskRunningList',
|
name: 'TaskRunningList',
|
||||||
components: {
|
components: {
|
||||||
@@ -64,6 +64,7 @@
|
|||||||
//办理
|
//办理
|
||||||
const [registerHandleModal, { openModal: openHandleModal }] = useModal();
|
const [registerHandleModal, { openModal: openHandleModal }] = useModal();
|
||||||
async function handleProcess(record) {
|
async function handleProcess(record) {
|
||||||
|
debugger
|
||||||
let { formData, formUrl } = await getTaskNodeInfo(record);
|
let { formData, formUrl } = await getTaskNodeInfo(record);
|
||||||
formData['PROCESS_TAB_TYPE'] = 'run';
|
formData['PROCESS_TAB_TYPE'] = 'run';
|
||||||
openHandleModal(true, {
|
openHandleModal(true, {
|
||||||
@@ -89,7 +90,7 @@
|
|||||||
taskId: record.id,
|
taskId: record.id,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 委托——回调处理
|
// 委托——回调处理
|
||||||
async function selectedEntruster(params) {
|
async function selectedEntruster(params) {
|
||||||
console.log('委托', params);
|
console.log('委托', params);
|
||||||
@@ -127,7 +128,7 @@
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
arr.push({
|
arr.push({
|
||||||
label: '转办',
|
label: '转办',
|
||||||
onClick: handleComplaintEntruster.bind(null, record),
|
onClick: handleComplaintEntruster.bind(null, record),
|
||||||
@@ -164,8 +165,8 @@
|
|||||||
title: '流程办理',
|
title: '流程办理',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
registerTable,
|
registerTable,
|
||||||
taskNotify,
|
taskNotify,
|
||||||
|
|||||||
@@ -85,7 +85,7 @@
|
|||||||
emit('success');
|
emit('success');
|
||||||
closeModal();
|
closeModal();
|
||||||
}
|
}
|
||||||
|
|
||||||
function claimSuccess(){
|
function claimSuccess(){
|
||||||
claimStatus.value = false;
|
claimStatus.value = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user