|
@@ -62,10 +62,8 @@ import WorkflowSearch from './WorkflowSearch.vue';
|
|
|
import { ajaxApi } from '../api/workflow/workflow.js';
|
|
import { ajaxApi } from '../api/workflow/workflow.js';
|
|
|
import { message } from 'ant-design-vue';
|
|
import { message } from 'ant-design-vue';
|
|
|
import { approvedColumns } from './configData.js';
|
|
import { approvedColumns } from './configData.js';
|
|
|
-import TaskOpenUtil from './TaskOpenUtil.js';
|
|
|
|
|
-import WindowService from '../common/WindowService.js';
|
|
|
|
|
import CustomerTask from './CustomerTask.vue';
|
|
import CustomerTask from './CustomerTask.vue';
|
|
|
-import { Notify } from 'pc-component-v3';
|
|
|
|
|
|
|
+import { Uuid } from 'pc-component-v3';
|
|
|
|
|
|
|
|
const emit = defineEmits(['refreshStasticCount']);
|
|
const emit = defineEmits(['refreshStasticCount']);
|
|
|
const customerTask = ref(null);
|
|
const customerTask = ref(null);
|
|
@@ -160,27 +158,25 @@ const searchApprove = (params, isSearch) => {
|
|
|
|
|
|
|
|
// 选择了taskInfo
|
|
// 选择了taskInfo
|
|
|
const selectTaskInfo = taskInfo => {
|
|
const selectTaskInfo = taskInfo => {
|
|
|
- TaskOpenUtil.openTask(taskInfo).then(
|
|
|
|
|
- successData => {
|
|
|
|
|
- if (successData.type === 'newWindow') {
|
|
|
|
|
- WindowService.open(successData.url, '待处理', function () {
|
|
|
|
|
- searchDatas();
|
|
|
|
|
- emit('refreshStasticCount');
|
|
|
|
|
- });
|
|
|
|
|
- } else if (successData.type === 'customerTask') {
|
|
|
|
|
- // 打开自定义的界面
|
|
|
|
|
- selectedTaskId.value = taskInfo.id;
|
|
|
|
|
- customerTask.value.show();
|
|
|
|
|
- searchDatas();
|
|
|
|
|
- emit('refreshStasticCount');
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- errorData => {
|
|
|
|
|
- if (errorData != null) {
|
|
|
|
|
- Notify.error(errorData.title, errorData.message, false);
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- );
|
|
|
|
|
|
|
+ const type = 'view';
|
|
|
|
|
+ const windowNo = taskInfo.windowNo;
|
|
|
|
|
+ const tabIndex = taskInfo.tabIndex;
|
|
|
|
|
+ const recordId = taskInfo.recordId;
|
|
|
|
|
+ const url =
|
|
|
|
|
+ '/desktop/window/window-read/' +
|
|
|
|
|
+ type +
|
|
|
|
|
+ '/' +
|
|
|
|
|
+ windowNo +
|
|
|
|
|
+ '/' +
|
|
|
|
|
+ tabIndex +
|
|
|
|
|
+ '/' +
|
|
|
|
|
+ recordId +
|
|
|
|
|
+ '?workflowType=approve&taskInfoId=' +
|
|
|
|
|
+ taskInfo.id +
|
|
|
|
|
+ '&currIndex=1&totalCount=1&canGoBack=false&uuid=' +
|
|
|
|
|
+ Uuid.createUUID();
|
|
|
|
|
+
|
|
|
|
|
+ window.open(Common.getRedirectUrl('#' + url));
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
// 处理content json
|
|
// 处理content json
|