adtec-core-package 1.5.7 → 1.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/bpmntree/views/flowDesign/nodes/PopoverView.vue +1 -1
- package/src/components/workflow/TaskOperation.vue +5 -6
- package/src/components/workflow/WorkflowTodoDialog.vue +1 -0
- package/src/components/workflow/components/CheckDialog.vue +6 -3
- package/src/components/workflow/components/ProcessInstanceStep.vue +1 -1
package/package.json
CHANGED
|
@@ -52,7 +52,7 @@ const getStatus = (task: IWfTaskVo) => {
|
|
|
52
52
|
return '提交'
|
|
53
53
|
}
|
|
54
54
|
if (task.commentList && task.commentList.length > 0) {
|
|
55
|
-
return ['待办', '
|
|
55
|
+
return ['待办', '已办', '已办', '终止', '委派', '转办', '终止', '撤回'][
|
|
56
56
|
Number(task.commentList[task.commentList.length - 1].type)
|
|
57
57
|
]
|
|
58
58
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<div ref="taskFlexRef">
|
|
7
7
|
<el-flex align="center" justify="flex-end" v-loading="taskLoading">
|
|
8
8
|
<slot name="left"></slot>
|
|
9
|
-
<el-button v-if="
|
|
9
|
+
<el-button v-if="params?.cancelBtnText !== ''" @click="params?.cancelFunction">{{ params?.cancelBtnText ?? '取消' }}</el-button>
|
|
10
10
|
<el-button v-if="showProcessBtn" type="info" @click="processShow = true">流程详情</el-button>
|
|
11
11
|
<template v-if="isAssignee">
|
|
12
12
|
<el-button type="primary" @click="openDialog('assignee')">指定执行人</el-button>
|
|
@@ -31,25 +31,25 @@
|
|
|
31
31
|
>减签</el-button
|
|
32
32
|
>
|
|
33
33
|
<el-button
|
|
34
|
-
v-if="task?.operations.indexOf('refuse') > -1"
|
|
34
|
+
v-if="task?.operations.indexOf('refuse') > -1 && params?.refuseBtnText !== ''"
|
|
35
35
|
type="danger"
|
|
36
36
|
@click="openDialog('refuse')"
|
|
37
37
|
>{{ params?.refuseBtnText ?? '终止' }}</el-button
|
|
38
38
|
>
|
|
39
39
|
<el-button
|
|
40
|
-
v-if="task?.operations.indexOf('transfer') > -1"
|
|
40
|
+
v-if="task?.operations.indexOf('transfer') > -1 && params?.transferBtnText !== ''"
|
|
41
41
|
type="warning"
|
|
42
42
|
@click="openDialog('transfer')"
|
|
43
43
|
>{{ params?.transferBtnText ?? '转办' }}</el-button
|
|
44
44
|
>
|
|
45
45
|
<el-button
|
|
46
|
-
v-if="task?.operations.indexOf('back') > -1"
|
|
46
|
+
v-if="task?.operations.indexOf('back') > -1 && params?.backBtnText !== ''"
|
|
47
47
|
type="danger"
|
|
48
48
|
@click="openDialog('back')"
|
|
49
49
|
>{{ params?.backBtnText ?? '退回' }}</el-button
|
|
50
50
|
>
|
|
51
51
|
<el-button
|
|
52
|
-
v-if="task?.operations.indexOf('complete') > -1"
|
|
52
|
+
v-if="task?.operations.indexOf('complete') > -1 && params?.completeBtnText !== ''"
|
|
53
53
|
type="primary"
|
|
54
54
|
@click="openDialog('complete')"
|
|
55
55
|
>{{ params?.completeBtnText ?? '同意' }}</el-button
|
|
@@ -94,7 +94,6 @@ const $props = defineProps({
|
|
|
94
94
|
// modelValue: { type: Object, required: false },
|
|
95
95
|
taskId: { type: String, required: true },
|
|
96
96
|
showProcessBtn: { type: Boolean, required: false, default: false },
|
|
97
|
-
showCancelBtn: { type: Boolean, required: false, default: true },
|
|
98
97
|
params: { type: Object as PropType<ITaskOperate>, required: false },
|
|
99
98
|
})
|
|
100
99
|
|
|
@@ -197,6 +197,10 @@ const handleComplete = async () => {
|
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
199
|
if (dialogType.value === 'complete') {
|
|
200
|
+
if (!task.value.comment) {
|
|
201
|
+
ElMessage.warning('请填写审批意见!')
|
|
202
|
+
return
|
|
203
|
+
}
|
|
200
204
|
//同意
|
|
201
205
|
const askVo = {
|
|
202
206
|
taskId: task.value.taskId,
|
|
@@ -215,10 +219,9 @@ const handleComplete = async () => {
|
|
|
215
219
|
} else {
|
|
216
220
|
task.value = await workflowInstApi.taskComplete(askVo)
|
|
217
221
|
}
|
|
218
|
-
dialogVisible.value = false
|
|
219
222
|
//需要动态制定审批人
|
|
220
223
|
if (task.value.operations && task.value.operations?.indexOf('assignee') > -1) {
|
|
221
|
-
|
|
224
|
+
dialogVisible.value = false
|
|
222
225
|
emit('openAssignee', task.value.taskId)
|
|
223
226
|
return
|
|
224
227
|
}
|
|
@@ -295,8 +298,8 @@ const handleComplete = async () => {
|
|
|
295
298
|
task.value = await workflowInstApi.taskTransfer(askVo)
|
|
296
299
|
}
|
|
297
300
|
}
|
|
298
|
-
dialogVisible.value = false
|
|
299
301
|
emit('success', task.value)
|
|
302
|
+
dialogVisible.value = false
|
|
300
303
|
} catch (err: any) {
|
|
301
304
|
frameworkUtils.messageError(err)
|
|
302
305
|
} finally {
|
|
@@ -118,7 +118,7 @@ const getStatus = (task: IWfTaskVo) => {
|
|
|
118
118
|
return '提交'
|
|
119
119
|
}
|
|
120
120
|
if (task.commentList && task.commentList.length > 0) {
|
|
121
|
-
return ['待办', '
|
|
121
|
+
return ['待办', '已办', '已办', '终止', '委派', '转办', '终止', '撤回'][
|
|
122
122
|
Number(task.commentList[task.commentList.length - 1].type)
|
|
123
123
|
]
|
|
124
124
|
}
|