adtec-core-package 1.2.4 → 1.2.6
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/README.en.md +36 -36
- package/eslint.config.js +11 -21
- package/package.json +66 -64
- package/src/api/BasicApi.ts +26 -26
- package/src/api/DeptInfoApi.ts +19 -19
- package/src/api/DocumentApi.ts +27 -27
- package/src/api/EmployeeInfoApi.ts +17 -17
- package/src/api/SysDictCacheApi.ts +29 -29
- package/src/api/SysUserApi.ts +35 -35
- package/src/api/framework.ts +12 -12
- package/src/api/workflow/workflow.ts +31 -31
- package/src/api/workflow/workflowInstApi.ts +72 -72
- package/src/assets/style/ant.scss +19 -19
- package/src/assets/style/index.less +180 -180
- package/src/components/ElFlex/ElFlex.vue +297 -297
- package/src/components/ElTotalTools.vue +70 -70
- package/src/components/OperationAuth/operationAuth.vue +26 -26
- package/src/components/RichTextEditor/RichTextEditor.vue +144 -144
- package/src/components/Scrollbars/ElScrollbars.vue +21 -21
- package/src/components/Search/ElIconSearch.vue +267 -267
- package/src/components/Search/ElSearch.vue +154 -154
- package/src/components/SelectInDicators/SelectInDicators.vue +225 -225
- package/src/components/SelectInDicators/api/DataIndicatorsApi.ts +28 -28
- package/src/components/SelectInDicators/interface/IComIndex.ts +26 -26
- package/src/components/SelectInDicators/interface/IComIndexAttri.ts +18 -18
- package/src/components/Table/ElTableColumnDynamic.vue +25 -25
- package/src/components/Table/ElTableColumnEdit.vue +264 -263
- package/src/components/Table/ElTableTool.ts +37 -37
- package/src/components/Title/ElTitle.vue +53 -53
- package/src/components/autoToolTip/ElAutoToolTip.vue +62 -62
- package/src/components/baseEcharts/index.vue +48 -48
- package/src/components/bpmntree/api/modules/role.ts +31 -31
- package/src/components/bpmntree/api/modules/user.ts +17 -17
- package/src/components/bpmntree/components/AdvancedFilter/Operator.vue +112 -112
- package/src/components/bpmntree/components/AdvancedFilter/Trigger.vue +23 -23
- package/src/components/bpmntree/components/AdvancedFilter/index.vue +230 -230
- package/src/components/bpmntree/components/AdvancedFilter/type.ts +20 -20
- package/src/components/bpmntree/components/FlowIcon/index.scss +7 -7
- package/src/components/bpmntree/components/FlowIcon/index.tsx +68 -68
- package/src/components/bpmntree/components/Render/render.vue +90 -90
- package/src/components/bpmntree/components/Render/type.ts +12 -12
- package/src/components/bpmntree/components/RoleSelector/RolePicker.vue +264 -264
- package/src/components/bpmntree/components/RoleSelector/RoleTag.vue +48 -48
- package/src/components/bpmntree/components/RoleSelector/index.vue +113 -113
- package/src/components/bpmntree/components/UserSelector/UserTag.vue +73 -73
- package/src/components/bpmntree/components/UserSelector/index.vue +140 -140
- package/src/components/bpmntree/hooks/useDraggableScroll.ts +44 -44
- package/src/components/bpmntree/typings/index.d.ts +1 -1
- package/src/components/bpmntree/views/flowDesign/index.vue +652 -652
- package/src/components/bpmntree/views/flowDesign/nodes/Add.vue +184 -184
- package/src/components/bpmntree/views/flowDesign/nodes/ApprovalNode.vue +127 -127
- package/src/components/bpmntree/views/flowDesign/nodes/CcNode.vue +93 -93
- package/src/components/bpmntree/views/flowDesign/nodes/ConcurrentNode.vue +61 -61
- package/src/components/bpmntree/views/flowDesign/nodes/ConditionNode.vue +59 -59
- package/src/components/bpmntree/views/flowDesign/nodes/EndNode.vue +80 -80
- package/src/components/bpmntree/views/flowDesign/nodes/ExclusiveNode.vue +20 -20
- package/src/components/bpmntree/views/flowDesign/nodes/GatewayNode.vue +173 -173
- package/src/components/bpmntree/views/flowDesign/nodes/InclusiveNode.vue +20 -20
- package/src/components/bpmntree/views/flowDesign/nodes/JumpNode.vue +49 -49
- package/src/components/bpmntree/views/flowDesign/nodes/Node.vue +346 -346
- package/src/components/bpmntree/views/flowDesign/nodes/NotifyNode.vue +115 -115
- package/src/components/bpmntree/views/flowDesign/nodes/ParallelNode.vue +20 -20
- package/src/components/bpmntree/views/flowDesign/nodes/PopoverView.vue +78 -78
- package/src/components/bpmntree/views/flowDesign/nodes/StartNode.vue +84 -84
- package/src/components/bpmntree/views/flowDesign/nodes/TimerNode.vue +50 -50
- package/src/components/bpmntree/views/flowDesign/nodes/TreeNode.vue +45 -45
- package/src/components/bpmntree/views/flowDesign/nodes/type.ts +192 -192
- package/src/components/bpmntree/views/flowDesign/panels/ApprovalPanel.vue +516 -516
- package/src/components/bpmntree/views/flowDesign/panels/AssigneePanel.vue +120 -120
- package/src/components/bpmntree/views/flowDesign/panels/CcPanel.vue +99 -99
- package/src/components/bpmntree/views/flowDesign/panels/ConditionPanel.vue +41 -41
- package/src/components/bpmntree/views/flowDesign/panels/EndPanel.vue +18 -18
- package/src/components/bpmntree/views/flowDesign/panels/ExecutionListeners.vue +110 -110
- package/src/components/bpmntree/views/flowDesign/panels/JumpPanel.vue +32 -32
- package/src/components/bpmntree/views/flowDesign/panels/NotifyPanel.vue +101 -101
- package/src/components/bpmntree/views/flowDesign/panels/ParaPanel.vue +248 -248
- package/src/components/bpmntree/views/flowDesign/panels/StartPanel.vue +159 -159
- package/src/components/bpmntree/views/flowDesign/panels/TaskListeners.vue +110 -110
- package/src/components/bpmntree/views/flowDesign/panels/TimerPanel.vue +51 -51
- package/src/components/bpmntree/views/flowDesign/panels/index.vue +85 -85
- package/src/components/bpmntree/views/view.index.vue +291 -291
- package/src/components/business/comp.userForm.vue +292 -286
- package/src/components/business/userSelect.vue +413 -413
- package/src/components/icon/ElIconBtn.vue +210 -210
- package/src/components/upload/ElUploads.vue +285 -285
- package/src/components/upload/FileView.vue +159 -159
- package/src/components/upload/FileViewComponents.vue +56 -56
- package/src/components/workflow/TaskOperation.vue +212 -212
- package/src/components/workflow/WorkflowTodoDialog.vue +81 -81
- package/src/components/workflow/components/AddOrMinusMultiDialog.vue +159 -159
- package/src/components/workflow/components/CheckDialog.vue +315 -316
- package/src/components/workflow/components/ProcessDetailComp.vue +133 -133
- package/src/components/workflow/components/ProcessDetailDialog.vue +129 -129
- package/src/components/workflow/components/ProcessInstance.vue +117 -117
- package/src/components/workflow/components/ProcessInstanceStep.vue +226 -226
- package/src/components/workflow/components/SelectAssigneeDialog.vue +109 -109
- package/src/components/workflow/components/SelectReturnActivityDialog.vue +104 -104
- package/src/config/ElementPlusConfig.ts +95 -95
- package/src/config/VxeTableConfig.ts +35 -0
- package/src/css/elementUI/autocomplete.scss +89 -89
- package/src/css/elementUI/common/var.scss +1549 -1549
- package/src/css/elementUI/date-picker/picker.scss +219 -219
- package/src/css/elementUI/descriptions.scss +152 -152
- package/src/css/elementUI/drawer.scss +164 -164
- package/src/css/elementUI/table.scss +694 -694
- package/src/css/elementUI/tabs.scss +659 -659
- package/src/css/vxeTableUI/all.scss +7 -0
- package/src/css/vxeTableUI/base.scss +16 -0
- package/src/css/vxeTableUI/components/colgroup.scss +0 -0
- package/src/css/vxeTableUI/components/column.scss +0 -0
- package/src/css/vxeTableUI/components/grid.scss +83 -0
- package/src/css/vxeTableUI/components/icon.scss +205 -0
- package/src/css/vxeTableUI/components/old-icon.scss +715 -0
- package/src/css/vxeTableUI/components/table-module/all.scss +7 -0
- package/src/css/vxeTableUI/components/table-module/custom.scss +491 -0
- package/src/css/vxeTableUI/components/table-module/edit.scss +0 -0
- package/src/css/vxeTableUI/components/table-module/export.scss +130 -0
- package/src/css/vxeTableUI/components/table-module/filter.scss +128 -0
- package/src/css/vxeTableUI/components/table-module/keyboard.scss +0 -0
- package/src/css/vxeTableUI/components/table-module/menu.scss +86 -0
- package/src/css/vxeTableUI/components/table-module/validator.scss +0 -0
- package/src/css/vxeTableUI/components/table.scss +2242 -0
- package/src/css/vxeTableUI/components/toolbar.scss +100 -0
- package/src/css/vxeTableUI/components/ui.scss +0 -0
- package/src/css/vxeTableUI/components/v-x-e-table.scss +0 -0
- package/src/css/vxeTableUI/cssvar.scss +3 -0
- package/src/css/vxeTableUI/default.scss +3 -0
- package/src/css/vxeTableUI/helpers/baseMixin.scss +82 -0
- package/src/css/vxeTableUI/icon/iconfont.ttf +0 -0
- package/src/css/vxeTableUI/icon/iconfont.woff +0 -0
- package/src/css/vxeTableUI/icon/iconfont.woff2 +0 -0
- package/src/css/vxeTableUI/index.scss +4 -0
- package/src/css/vxeTableUI/modules.scss +5 -0
- package/src/css/vxeTableUI/theme/base.scss +89 -0
- package/src/css/vxeTableUI/theme/dark.scss +46 -0
- package/src/css/vxeTableUI/theme/light.scss +42 -0
- package/src/css/vxeTableUI/variable.scss +41 -0
- package/src/directives/vKeydown.ts +91 -91
- package/src/hooks/useDictHooks.ts +119 -119
- package/src/hooks/useEcharts.ts +58 -58
- package/src/hooks/useFileView.ts +34 -11
- package/src/hooks/useMessageHooks.ts +132 -132
- package/src/hooks/usePermissionToolHooks.ts +21 -21
- package/src/hooks/useResetRefHooks.ts +18 -18
- package/src/hooks/userWorkflowHooks.ts +92 -92
- package/src/interface/BaseEntity.ts +30 -30
- package/src/interface/IMdmDept.ts +84 -84
- package/src/interface/IMdmEmployee.ts +134 -134
- package/src/interface/IMdmEmployeeQuery.ts +20 -19
- package/src/interface/IMdmOrg.ts +29 -29
- package/src/interface/IMdmOrgQuery.ts +13 -13
- package/src/interface/IOrgDeptInfo.ts +12 -12
- package/src/interface/ISysDictDataCacheVo.ts +46 -46
- package/src/interface/ISysDictType.ts +37 -37
- package/src/interface/ISysMenuDataVo.ts +22 -22
- package/src/interface/ISysMenuInfoVo.ts +83 -83
- package/src/interface/ISysMenuOperationVo.ts +21 -21
- package/src/interface/ISysUploadFiles.ts +16 -16
- package/src/interface/ISysUserInfo.ts +70 -70
- package/src/interface/IUserPermissionVo.ts +34 -34
- package/src/interface/Message.ts +73 -73
- package/src/interface/PageData.ts +17 -17
- package/src/interface/ResponseData.ts +16 -16
- package/src/interface/dictMapType.ts +11 -11
- package/src/interface/enum/MessageEnum.ts +41 -41
- package/src/interface/workflow/IWfProcessDefVo.ts +14 -14
- package/src/interface/workflow/IWfReturnNodeVo.ts +15 -16
- package/src/interface/workflow/IWfTaskAskVo.ts +61 -65
- package/src/interface/workflow/IWfTaskQueryVo.ts +30 -30
- package/src/interface/workflow/IWfTaskUsersVo.ts +21 -21
- package/src/interface/workflow/IWfTaskVo.ts +187 -187
- package/src/interface/workflow/workflow.ts +22 -22
- package/src/mixin/globalMixin.ts +45 -45
- package/src/packages/index.ts +18 -18
- package/src/packages/text.vue +13 -13
- package/src/plugins/echartsConfig.ts +73 -73
- package/src/plugins/plugins.ts +12 -12
- package/src/plugins/renderDialog.ts +74 -74
- package/src/stores/dictStore.ts +51 -51
- package/src/stores/messageStore.ts +49 -49
- package/src/stores/permissionStore.ts +108 -108
- package/src/stores/storeConfig.ts +23 -23
- package/src/stores/userInfoStore.ts +31 -31
- package/src/utils/AxiosConfig.ts +219 -219
- package/src/utils/modules.ts +8 -8
- package/src/utils/request.ts +76 -76
- package/adtec-core-package/adtec-core-package.css +0 -1
- package/adtec-core-package/adtec-core-package.js +0 -41605
- package/adtec-core-package/adtec-core-package.umd.cjs +0 -79
- package/adtec-core-package/favicon.ico +0 -0
|
@@ -1,516 +1,516 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { ApprovalNode, FlowNode, FormProperty } from '../nodes/type'
|
|
3
|
-
import type { Field } from '../../../components/Render/type'
|
|
4
|
-
import AssigneePanel from './AssigneePanel.vue'
|
|
5
|
-
import { computed, h, inject, ref, type Ref, watchEffect } from 'vue'
|
|
6
|
-
import TaskListeners from './TaskListeners.vue'
|
|
7
|
-
import { ElDivider } from 'element-plus'
|
|
8
|
-
import useDictHooks from '../../../../../hooks/useDictHooks'
|
|
9
|
-
|
|
10
|
-
const { getDictTypeData } = useDictHooks(['SysMsgType', 'SysTaskPriority']) //消息通知类型
|
|
11
|
-
const { fields, getParentNodes } = inject<{
|
|
12
|
-
fields: Ref<Field[]>
|
|
13
|
-
admin: string[]
|
|
14
|
-
getParentNodes: (id: string) => FlowNode[]
|
|
15
|
-
}>('flowDesign', {
|
|
16
|
-
fields: ref([]),
|
|
17
|
-
admin: [],
|
|
18
|
-
getParentNodes: () => [],
|
|
19
|
-
})
|
|
20
|
-
const props = defineProps<{
|
|
21
|
-
activeData: ApprovalNode
|
|
22
|
-
}>()
|
|
23
|
-
const spacer = h(ElDivider)
|
|
24
|
-
const activeName = ref('properties')
|
|
25
|
-
const allReadonly = computed({
|
|
26
|
-
get() {
|
|
27
|
-
return props.activeData.formProperties.every((e) => e.readonly)
|
|
28
|
-
},
|
|
29
|
-
set(val) {
|
|
30
|
-
props.activeData.formProperties.forEach((e) => (e.readonly = val))
|
|
31
|
-
if (val) {
|
|
32
|
-
allHidden.value = false
|
|
33
|
-
allRequired.value = false
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
})
|
|
37
|
-
const allHidden = computed({
|
|
38
|
-
get() {
|
|
39
|
-
return props.activeData.formProperties.every((e) => e.hidden)
|
|
40
|
-
},
|
|
41
|
-
set(val) {
|
|
42
|
-
props.activeData.formProperties.forEach((e) => (e.hidden = val))
|
|
43
|
-
if (val) {
|
|
44
|
-
allRequired.value = false
|
|
45
|
-
allReadonly.value = false
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
})
|
|
49
|
-
const allRequired = computed({
|
|
50
|
-
get() {
|
|
51
|
-
return props.activeData.formProperties.every((e) => e.required)
|
|
52
|
-
},
|
|
53
|
-
set(val) {
|
|
54
|
-
props.activeData.formProperties.forEach((e) => (e.required = val))
|
|
55
|
-
if (val) {
|
|
56
|
-
allReadonly.value = false
|
|
57
|
-
allHidden.value = false
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
})
|
|
61
|
-
|
|
62
|
-
const changeReadonly = (row: FormProperty) => {
|
|
63
|
-
if (row.readonly) {
|
|
64
|
-
row.required = false
|
|
65
|
-
row.hidden = false
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
const changeRequired = (row: FormProperty) => {
|
|
69
|
-
if (row.required) {
|
|
70
|
-
row.readonly = false
|
|
71
|
-
row.hidden = false
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
const changeHidden = (row: FormProperty) => {
|
|
75
|
-
if (row.hidden) {
|
|
76
|
-
row.readonly = false
|
|
77
|
-
row.required = false
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
const getBackNodes = () => {
|
|
81
|
-
if (getParentNodes) {
|
|
82
|
-
return getParentNodes(props.activeData.id)
|
|
83
|
-
} else {
|
|
84
|
-
return []
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
// const deleteParaItem = (row: FormProperty) => {
|
|
88
|
-
// deleteFormItem(row.id)
|
|
89
|
-
// }
|
|
90
|
-
watchEffect(() => {
|
|
91
|
-
// console.log('fields', fields)
|
|
92
|
-
const formProperties = props.activeData.formProperties
|
|
93
|
-
props.activeData.formProperties = fields.value.map((field) => ({
|
|
94
|
-
id: field.id,
|
|
95
|
-
name: field.label,
|
|
96
|
-
readonly: field.readonly || false,
|
|
97
|
-
hidden: field.hidden,
|
|
98
|
-
required: field.required || false,
|
|
99
|
-
}))
|
|
100
|
-
props.activeData.formProperties.forEach((item) => {
|
|
101
|
-
const properties = formProperties.find((f) => f.id === item.id)
|
|
102
|
-
if (properties) {
|
|
103
|
-
item.readonly = properties.readonly
|
|
104
|
-
item.hidden = properties.hidden
|
|
105
|
-
item.required = properties.required
|
|
106
|
-
}
|
|
107
|
-
})
|
|
108
|
-
})
|
|
109
|
-
</script>
|
|
110
|
-
|
|
111
|
-
<template>
|
|
112
|
-
<el-tabs v-model="activeName" stretch style="width: 100%">
|
|
113
|
-
<el-tab-pane label="审批设置" name="properties">
|
|
114
|
-
<el-form label-position="top" label-width="90px">
|
|
115
|
-
<AssigneePanel :active-data="activeData" :fields="fields" type="审批">
|
|
116
|
-
<!-- <el-col :span="8">-->
|
|
117
|
-
<!-- <el-radio value="autoRefuse">自动拒绝</el-radio>-->
|
|
118
|
-
<!-- </el-col>-->
|
|
119
|
-
</AssigneePanel>
|
|
120
|
-
<el-form-item prop="filterUsers">
|
|
121
|
-
<template #label>
|
|
122
|
-
<el-flex align="center">
|
|
123
|
-
<span style="margin-right: 3px">审批人过滤</span>
|
|
124
|
-
<el-tooltip content="流程自动对审批对象进行的进一步筛选逻辑" placement="top">
|
|
125
|
-
<el-icons model-value="adtec-info"></el-icons>
|
|
126
|
-
</el-tooltip>
|
|
127
|
-
</el-flex>
|
|
128
|
-
</template>
|
|
129
|
-
<el-radio-group v-model="activeData.filterUsers" class="flex-col important-items-start">
|
|
130
|
-
<el-radio value="no">不过滤</el-radio>
|
|
131
|
-
<el-radio value="initiatorOrg">发起人部门</el-radio>
|
|
132
|
-
<el-radio value="assigneeOrg">上环节提交人部门</el-radio>
|
|
133
|
-
</el-radio-group>
|
|
134
|
-
</el-form-item>
|
|
135
|
-
<el-form-item prop="sameUser" label="审批人与提交人为同一人时">
|
|
136
|
-
<el-radio-group v-model="activeData.sameUser" class="flex-col important-items-start">
|
|
137
|
-
<el-radio value="normal">正常审批</el-radio>
|
|
138
|
-
<el-radio value="auto">自动完成</el-radio>
|
|
139
|
-
</el-radio-group>
|
|
140
|
-
</el-form-item>
|
|
141
|
-
<el-form-item prop="manualUsers">
|
|
142
|
-
<template #label>
|
|
143
|
-
<el-flex align="center">
|
|
144
|
-
<span style="margin-right: 3px">是否动态指定</span>
|
|
145
|
-
<el-tooltip
|
|
146
|
-
content="上一步骤提交后,由上一步骤提交人进行该步骤审批人指定"
|
|
147
|
-
placement="top"
|
|
148
|
-
>
|
|
149
|
-
<el-icons model-value="adtec-info"></el-icons>
|
|
150
|
-
</el-tooltip>
|
|
151
|
-
</el-flex>
|
|
152
|
-
</template>
|
|
153
|
-
<el-radio-group v-model="activeData.manualUsers" class="flex-col important-items-start">
|
|
154
|
-
<el-radio :value="false">否</el-radio>
|
|
155
|
-
<el-radio :value="true">是</el-radio>
|
|
156
|
-
</el-radio-group>
|
|
157
|
-
</el-form-item>
|
|
158
|
-
<el-form-item prop="method" label="审批方式">
|
|
159
|
-
<el-radio-group v-model="activeData.multi" class="flex-col important-items-start">
|
|
160
|
-
<!-- <el-radio value="sequential">依次审批(按顺序审批)</el-radio>-->
|
|
161
|
-
<el-radio value="joint">会签(需所有审批人通过)</el-radio>
|
|
162
|
-
<el-radio value="all">会签(需所有审批人完成审批)</el-radio>
|
|
163
|
-
<el-radio value="single">或签(一名审批人通过即可)</el-radio>
|
|
164
|
-
</el-radio-group>
|
|
165
|
-
<!-- <el-text v-if="activeData.multi === 'joint'">-->
|
|
166
|
-
<!-- 需要-->
|
|
167
|
-
<!-- <el-input-number v-model="activeData.multiPercent" :min="1" :max="100" />-->
|
|
168
|
-
<!-- %人员通过-->
|
|
169
|
-
<!-- </el-text>-->
|
|
170
|
-
</el-form-item>
|
|
171
|
-
<el-form-item prop="types">
|
|
172
|
-
<template #label>
|
|
173
|
-
<el-flex align="center">
|
|
174
|
-
<span style="margin-right: 3px">可回退步骤</span>
|
|
175
|
-
<el-tooltip content="执行“退回”操作时可选的步骤" placement="top">
|
|
176
|
-
<el-icons model-value="adtec-info"></el-icons>
|
|
177
|
-
</el-tooltip>
|
|
178
|
-
</el-flex>
|
|
179
|
-
</template>
|
|
180
|
-
<el-select v-model="activeData.backNodes" multiple placeholder="请选择可回退到的步骤">
|
|
181
|
-
<el-option
|
|
182
|
-
v-for="item in getBackNodes()"
|
|
183
|
-
:key="item.id"
|
|
184
|
-
:label="item.name"
|
|
185
|
-
:value="item.id"
|
|
186
|
-
/>
|
|
187
|
-
</el-select>
|
|
188
|
-
</el-form-item>
|
|
189
|
-
<!-- <el-form-item prop="nobody" label="审批人为空时:">-->
|
|
190
|
-
<!-- <el-radio-group v-model="activeData.nobody" class="w-full">-->
|
|
191
|
-
<!-- <el-row>-->
|
|
192
|
-
<!-- <el-col :span="12">-->
|
|
193
|
-
<!-- <el-radio value="pass">自动通过</el-radio>-->
|
|
194
|
-
<!-- </el-col>-->
|
|
195
|
-
<!-- <el-col :span="12">-->
|
|
196
|
-
<!-- <el-radio value="assign">指定人员</el-radio>-->
|
|
197
|
-
<!-- </el-col>-->
|
|
198
|
-
<!-- <el-col :span="12">-->
|
|
199
|
-
<!-- <el-radio value="reject">自动拒绝</el-radio>-->
|
|
200
|
-
<!-- </el-col>-->
|
|
201
|
-
<!-- <el-col :span="12">-->
|
|
202
|
-
<!-- <el-radio value="self">转交流程发起人</el-radio>-->
|
|
203
|
-
<!-- </el-col>-->
|
|
204
|
-
<!-- </el-row>-->
|
|
205
|
-
<!-- </el-radio-group>-->
|
|
206
|
-
<!-- <user-selector-->
|
|
207
|
-
<!-- v-if="activeData.nobody === 'assign'"-->
|
|
208
|
-
<!-- multiple-->
|
|
209
|
-
<!-- v-model="activeData.nobodyUsers"-->
|
|
210
|
-
<!-- placeholder="指定人员"-->
|
|
211
|
-
<!-- />-->
|
|
212
|
-
<!-- </el-form-item>-->
|
|
213
|
-
<el-form-item prop="nodeTag" label="组件路径">
|
|
214
|
-
<template #label>
|
|
215
|
-
<el-flex align="center">
|
|
216
|
-
<span style="margin-right: 3px">组件路径</span>
|
|
217
|
-
<el-tooltip content="前端组件路径,可使用menucode或‘/src/**/*.vue’" placement="top">
|
|
218
|
-
<el-icons model-value="adtec-info"></el-icons>
|
|
219
|
-
</el-tooltip>
|
|
220
|
-
</el-flex>
|
|
221
|
-
</template>
|
|
222
|
-
<el-input
|
|
223
|
-
v-model="activeData.nodeTag"
|
|
224
|
-
:maxlength="100"
|
|
225
|
-
clearable
|
|
226
|
-
placeholder="请输入组件路径"
|
|
227
|
-
/>
|
|
228
|
-
</el-form-item>
|
|
229
|
-
<el-form-item prop="nodeParam" label="组件参数">
|
|
230
|
-
<template #label>
|
|
231
|
-
<el-flex align="center">
|
|
232
|
-
<span style="margin-right: 3px">组件参数</span>
|
|
233
|
-
<el-tooltip content="前端组件参数" placement="top">
|
|
234
|
-
<el-icons model-value="adtec-info"></el-icons>
|
|
235
|
-
</el-tooltip>
|
|
236
|
-
</el-flex>
|
|
237
|
-
</template>
|
|
238
|
-
<el-input
|
|
239
|
-
v-model="activeData.nodeParam"
|
|
240
|
-
:maxlength="100"
|
|
241
|
-
clearable
|
|
242
|
-
placeholder="请输入组件参数"
|
|
243
|
-
/>
|
|
244
|
-
</el-form-item>
|
|
245
|
-
<el-form-item prop="taskListeners" label="任务监听器:">
|
|
246
|
-
<TaskListeners :node="activeData" />
|
|
247
|
-
</el-form-item>
|
|
248
|
-
</el-form>
|
|
249
|
-
</el-tab-pane>
|
|
250
|
-
<el-tab-pane label="通知设置" name="msgProps">
|
|
251
|
-
<el-form label-position="top">
|
|
252
|
-
<el-form-item prop="types" label="通知类型">
|
|
253
|
-
<el-checkbox-group v-model="activeData.msgTypes">
|
|
254
|
-
<el-checkbox
|
|
255
|
-
v-for="item in getDictTypeData('SysMsgType')"
|
|
256
|
-
:key="item.id"
|
|
257
|
-
:label="item.label"
|
|
258
|
-
:value="item.value"
|
|
259
|
-
:disabled="item.value === 'site'"
|
|
260
|
-
/>
|
|
261
|
-
<!-- <el-checkbox label="站内" disabled value="site" />-->
|
|
262
|
-
<!-- <el-checkbox label="邮件" value="email" />-->
|
|
263
|
-
<!-- <el-checkbox label="短信" value="sms" />-->
|
|
264
|
-
<!-- <el-checkbox label="企业微信" value="wechat" />-->
|
|
265
|
-
</el-checkbox-group>
|
|
266
|
-
</el-form-item>
|
|
267
|
-
<el-form-item prop="msgLevel" label="优先级">
|
|
268
|
-
<el-radio-group v-model="activeData.msgLevel" class="flex-col important-items-start">
|
|
269
|
-
<el-radio
|
|
270
|
-
v-for="item in getDictTypeData('SysTaskPriority')"
|
|
271
|
-
:key="item.id"
|
|
272
|
-
:label="item.label"
|
|
273
|
-
:value="item.value"
|
|
274
|
-
></el-radio>
|
|
275
|
-
<!-- <el-radio value="5">高</el-radio>-->
|
|
276
|
-
<!-- <el-radio value="3">标准</el-radio>-->
|
|
277
|
-
<!-- <el-radio value="1">低</el-radio>-->
|
|
278
|
-
</el-radio-group>
|
|
279
|
-
</el-form-item>
|
|
280
|
-
<el-form-item prop="subject" label="消息主题">
|
|
281
|
-
<!-- <template #label>-->
|
|
282
|
-
<!-- <div class="flex-items-center gap3px">-->
|
|
283
|
-
<!-- <el-tooltip content="可以使用 ${字段名} 字段名填充内容" placement="top">-->
|
|
284
|
-
<!-- <el-icon>-->
|
|
285
|
-
<!-- <QuestionFilled />-->
|
|
286
|
-
<!-- </el-icon>-->
|
|
287
|
-
<!-- </el-tooltip>-->
|
|
288
|
-
<!-- <span>消息主题</span>-->
|
|
289
|
-
<!-- </div>-->
|
|
290
|
-
<!-- </template>-->
|
|
291
|
-
<el-input
|
|
292
|
-
v-model="activeData.msgSubject"
|
|
293
|
-
:maxlength="255"
|
|
294
|
-
clearable
|
|
295
|
-
placeholder="请输入消息主题"
|
|
296
|
-
/>
|
|
297
|
-
</el-form-item>
|
|
298
|
-
<el-form-item prop="content" label="消息内容">
|
|
299
|
-
<!-- <template #label>-->
|
|
300
|
-
<!-- <div class="flex-items-center gap3px">-->
|
|
301
|
-
<!-- <el-tooltip content="可以使用 ${字段名} 字段名填充内容" placement="top">-->
|
|
302
|
-
<!-- <el-icon>-->
|
|
303
|
-
<!-- <QuestionFilled />-->
|
|
304
|
-
<!-- </el-icon>-->
|
|
305
|
-
<!-- </el-tooltip>-->
|
|
306
|
-
<!-- <span>消息内容</span>-->
|
|
307
|
-
<!-- </div>-->
|
|
308
|
-
<!-- </template>-->
|
|
309
|
-
<el-input
|
|
310
|
-
v-model="activeData.msgContent"
|
|
311
|
-
:autosize="{ minRows: 6, maxRows: 8 }"
|
|
312
|
-
type="textarea"
|
|
313
|
-
:maxlength="1000"
|
|
314
|
-
show-word-limit
|
|
315
|
-
placeholder="请输入消息内容"
|
|
316
|
-
>
|
|
317
|
-
</el-input>
|
|
318
|
-
</el-form-item>
|
|
319
|
-
</el-form>
|
|
320
|
-
</el-tab-pane>
|
|
321
|
-
<el-tab-pane label="参数设置" name="formPermissions">
|
|
322
|
-
<el-table width="100%" :data="activeData.formProperties">
|
|
323
|
-
<el-table-column prop="name" label="字段" />
|
|
324
|
-
<el-table-column prop="readonly">
|
|
325
|
-
<template #header>
|
|
326
|
-
<el-checkbox v-model="allReadonly" label="只读" />
|
|
327
|
-
</template>
|
|
328
|
-
<template #default="{ row }">
|
|
329
|
-
<el-checkbox v-model="row.readonly" @change="changeReadonly(row)" />
|
|
330
|
-
</template>
|
|
331
|
-
</el-table-column>
|
|
332
|
-
<el-table-column prop="required">
|
|
333
|
-
<template #header>
|
|
334
|
-
<el-checkbox v-model="allRequired" label="必填" />
|
|
335
|
-
</template>
|
|
336
|
-
<template #default="{ row }">
|
|
337
|
-
<el-checkbox v-model="row.required" @change="changeRequired(row)" />
|
|
338
|
-
</template>
|
|
339
|
-
</el-table-column>
|
|
340
|
-
<el-table-column prop="hidden">
|
|
341
|
-
<template #header>
|
|
342
|
-
<el-checkbox v-model="allHidden" label="隐藏" />
|
|
343
|
-
</template>
|
|
344
|
-
<template #default="{ row }">
|
|
345
|
-
<el-checkbox v-model="row.hidden" @change="changeHidden(row)" />
|
|
346
|
-
</template>
|
|
347
|
-
</el-table-column>
|
|
348
|
-
<!-- <el-table-column width="60" prop="hidden">-->
|
|
349
|
-
<!-- <template #default="{ row }">-->
|
|
350
|
-
<!-- <span @click.stop>-->
|
|
351
|
-
<!-- <el-popconfirm-->
|
|
352
|
-
<!-- title="删除后该参数在流程中将不可用,您确定要删除该参数吗?"-->
|
|
353
|
-
<!-- width="200"-->
|
|
354
|
-
<!-- :hide-after="0"-->
|
|
355
|
-
<!-- placement="left-end"-->
|
|
356
|
-
<!-- @confirm="deleteParaItem(row)"-->
|
|
357
|
-
<!-- >-->
|
|
358
|
-
<!-- <template #reference>-->
|
|
359
|
-
<!-- <el-button size="small" type="danger" text :icon="CloseBold"> </el-button>-->
|
|
360
|
-
<!-- </template>-->
|
|
361
|
-
<!-- </el-popconfirm>-->
|
|
362
|
-
<!-- </span>-->
|
|
363
|
-
<!-- </template>-->
|
|
364
|
-
<!-- </el-table-column>-->
|
|
365
|
-
</el-table>
|
|
366
|
-
<!-- <ParaPanel />-->
|
|
367
|
-
</el-tab-pane>
|
|
368
|
-
<el-tab-pane label="操作权限" name="operationPermissions">
|
|
369
|
-
<el-space fill :size="0" direction="horizontal" :spacer="spacer">
|
|
370
|
-
<div class="opt-item">
|
|
371
|
-
<el-icon :size="32" class="opt-item__icon">
|
|
372
|
-
<CircleCheck />
|
|
373
|
-
</el-icon>
|
|
374
|
-
<div class="opt-item__content">
|
|
375
|
-
<el-text tag="b"> 同意</el-text>
|
|
376
|
-
<div class="opt-item__second">审批通过,流转到下一个节点</div>
|
|
377
|
-
</div>
|
|
378
|
-
<el-switch
|
|
379
|
-
v-model="activeData.operations.complete"
|
|
380
|
-
inline-prompt
|
|
381
|
-
active-text="开"
|
|
382
|
-
inactive-text="关"
|
|
383
|
-
/>
|
|
384
|
-
</div>
|
|
385
|
-
<div class="opt-item">
|
|
386
|
-
<el-icon :size="32" class="opt-item__icon">
|
|
387
|
-
<Back />
|
|
388
|
-
</el-icon>
|
|
389
|
-
<div class="opt-item__content">
|
|
390
|
-
<el-text tag="b"> 退回</el-text>
|
|
391
|
-
<div class="opt-item__second">
|
|
392
|
-
若审批内容存在问题,当前任务将中止并回退至特定历史任务节点
|
|
393
|
-
</div>
|
|
394
|
-
</div>
|
|
395
|
-
<el-switch
|
|
396
|
-
v-model="activeData.operations.back"
|
|
397
|
-
inline-prompt
|
|
398
|
-
active-text="开"
|
|
399
|
-
inactive-text="关"
|
|
400
|
-
/>
|
|
401
|
-
</div>
|
|
402
|
-
<div class="opt-item">
|
|
403
|
-
<el-icon :size="32" class="opt-item__icon">
|
|
404
|
-
<CircleClose />
|
|
405
|
-
</el-icon>
|
|
406
|
-
<div class="opt-item__content">
|
|
407
|
-
<el-text tag="b"> 终止</el-text>
|
|
408
|
-
<div class="opt-item__second">当终止任务时,当前任务被终止,并结束整个流程</div>
|
|
409
|
-
</div>
|
|
410
|
-
<el-switch
|
|
411
|
-
v-model="activeData.operations.refuse"
|
|
412
|
-
inline-prompt
|
|
413
|
-
active-text="开"
|
|
414
|
-
inactive-text="关"
|
|
415
|
-
/>
|
|
416
|
-
</div>
|
|
417
|
-
<div class="opt-item">
|
|
418
|
-
<el-icon :size="32" class="opt-item__icon">
|
|
419
|
-
<Switch />
|
|
420
|
-
</el-icon>
|
|
421
|
-
<div class="opt-item__content">
|
|
422
|
-
<el-text tag="b"> 转交</el-text>
|
|
423
|
-
<div class="opt-item__second">
|
|
424
|
-
将当前任务移交给其他人处理,以便他们继续执行所需的操作
|
|
425
|
-
</div>
|
|
426
|
-
</div>
|
|
427
|
-
<el-switch
|
|
428
|
-
v-model="activeData.operations.transfer"
|
|
429
|
-
inline-prompt
|
|
430
|
-
active-text="开"
|
|
431
|
-
inactive-text="关"
|
|
432
|
-
/>
|
|
433
|
-
</div>
|
|
434
|
-
<!-- <div class="opt-item">-->
|
|
435
|
-
<!-- <el-icon :size="32" class="opt-item__icon">-->
|
|
436
|
-
<!-- <UserFilled />-->
|
|
437
|
-
<!-- </el-icon>-->
|
|
438
|
-
<!-- <div class="opt-item__content">-->
|
|
439
|
-
<!-- <el-text tag="b"> 委派</el-text>-->
|
|
440
|
-
<!-- <div class="opt-item__second">将当前任务暂时交由他人处理,待其完成后再交回自己处理</div>-->
|
|
441
|
-
<!-- </div>-->
|
|
442
|
-
<!-- <el-switch-->
|
|
443
|
-
<!-- v-model="activeData.operations.delegate"-->
|
|
444
|
-
<!-- inline-prompt-->
|
|
445
|
-
<!-- active-text="开"-->
|
|
446
|
-
<!-- inactive-text="关"-->
|
|
447
|
-
<!-- />-->
|
|
448
|
-
<!-- </div>-->
|
|
449
|
-
<div class="opt-item">
|
|
450
|
-
<!-- <flow-icon class-name="opt-item__icon" name="add-user" :size="32" />-->
|
|
451
|
-
<el-icon :size="32" class="opt-item__icon">
|
|
452
|
-
<Plus />
|
|
453
|
-
</el-icon>
|
|
454
|
-
<div class="opt-item__content">
|
|
455
|
-
<el-text tag="b"> 加签</el-text>
|
|
456
|
-
<div class="opt-item__second">
|
|
457
|
-
在当前任务上额外添加新人员,以处理相关事项或提供必要的审批或意见
|
|
458
|
-
</div>
|
|
459
|
-
</div>
|
|
460
|
-
<el-switch
|
|
461
|
-
v-model="activeData.operations.addMulti"
|
|
462
|
-
inline-prompt
|
|
463
|
-
active-text="开"
|
|
464
|
-
inactive-text="关"
|
|
465
|
-
/>
|
|
466
|
-
</div>
|
|
467
|
-
<div class="opt-item">
|
|
468
|
-
<!-- <flow-icon class-name="opt-item__icon" name="reduce-user" :size="32" />-->
|
|
469
|
-
<el-icon :size="32" class="opt-item__icon">
|
|
470
|
-
<Minus />
|
|
471
|
-
</el-icon>
|
|
472
|
-
<div class="opt-item__content">
|
|
473
|
-
<el-text tag="b"> 减签</el-text>
|
|
474
|
-
<div class="opt-item__second">
|
|
475
|
-
在当前任务中减少处理人员数量,以简化流程或重新分配责任
|
|
476
|
-
</div>
|
|
477
|
-
</div>
|
|
478
|
-
<el-switch
|
|
479
|
-
v-model="activeData.operations.minusMulti"
|
|
480
|
-
inline-prompt
|
|
481
|
-
active-text="开"
|
|
482
|
-
inactive-text="关"
|
|
483
|
-
/>
|
|
484
|
-
</div>
|
|
485
|
-
</el-space>
|
|
486
|
-
</el-tab-pane>
|
|
487
|
-
</el-tabs>
|
|
488
|
-
</template>
|
|
489
|
-
<!--@import '@/components/bpmntree/styles/el-segmented.scss';-->
|
|
490
|
-
|
|
491
|
-
<style scoped lang="scss">
|
|
492
|
-
.opt-item {
|
|
493
|
-
display: flex;
|
|
494
|
-
align-items: center;
|
|
495
|
-
|
|
496
|
-
.opt-item__icon {
|
|
497
|
-
background: var(--el-color-primary);
|
|
498
|
-
color: var(--el-color-white);
|
|
499
|
-
border-radius: 7px;
|
|
500
|
-
padding: 3px;
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
.opt-item__content {
|
|
504
|
-
box-sizing: border-box;
|
|
505
|
-
flex: 1;
|
|
506
|
-
margin-left: 20px;
|
|
507
|
-
font-size: 14px;
|
|
508
|
-
|
|
509
|
-
.opt-item__second {
|
|
510
|
-
margin-top: 3px;
|
|
511
|
-
font-size: 12px;
|
|
512
|
-
color: var(--el-text-color-placeholder);
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
</style>
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { ApprovalNode, FlowNode, FormProperty } from '../nodes/type'
|
|
3
|
+
import type { Field } from '../../../components/Render/type'
|
|
4
|
+
import AssigneePanel from './AssigneePanel.vue'
|
|
5
|
+
import { computed, h, inject, ref, type Ref, watchEffect } from 'vue'
|
|
6
|
+
import TaskListeners from './TaskListeners.vue'
|
|
7
|
+
import { ElDivider } from 'element-plus'
|
|
8
|
+
import useDictHooks from '../../../../../hooks/useDictHooks'
|
|
9
|
+
|
|
10
|
+
const { getDictTypeData } = useDictHooks(['SysMsgType', 'SysTaskPriority']) //消息通知类型
|
|
11
|
+
const { fields, getParentNodes } = inject<{
|
|
12
|
+
fields: Ref<Field[]>
|
|
13
|
+
admin: string[]
|
|
14
|
+
getParentNodes: (id: string) => FlowNode[]
|
|
15
|
+
}>('flowDesign', {
|
|
16
|
+
fields: ref([]),
|
|
17
|
+
admin: [],
|
|
18
|
+
getParentNodes: () => [],
|
|
19
|
+
})
|
|
20
|
+
const props = defineProps<{
|
|
21
|
+
activeData: ApprovalNode
|
|
22
|
+
}>()
|
|
23
|
+
const spacer = h(ElDivider)
|
|
24
|
+
const activeName = ref('properties')
|
|
25
|
+
const allReadonly = computed({
|
|
26
|
+
get() {
|
|
27
|
+
return props.activeData.formProperties.every((e) => e.readonly)
|
|
28
|
+
},
|
|
29
|
+
set(val) {
|
|
30
|
+
props.activeData.formProperties.forEach((e) => (e.readonly = val))
|
|
31
|
+
if (val) {
|
|
32
|
+
allHidden.value = false
|
|
33
|
+
allRequired.value = false
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
})
|
|
37
|
+
const allHidden = computed({
|
|
38
|
+
get() {
|
|
39
|
+
return props.activeData.formProperties.every((e) => e.hidden)
|
|
40
|
+
},
|
|
41
|
+
set(val) {
|
|
42
|
+
props.activeData.formProperties.forEach((e) => (e.hidden = val))
|
|
43
|
+
if (val) {
|
|
44
|
+
allRequired.value = false
|
|
45
|
+
allReadonly.value = false
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
})
|
|
49
|
+
const allRequired = computed({
|
|
50
|
+
get() {
|
|
51
|
+
return props.activeData.formProperties.every((e) => e.required)
|
|
52
|
+
},
|
|
53
|
+
set(val) {
|
|
54
|
+
props.activeData.formProperties.forEach((e) => (e.required = val))
|
|
55
|
+
if (val) {
|
|
56
|
+
allReadonly.value = false
|
|
57
|
+
allHidden.value = false
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
})
|
|
61
|
+
|
|
62
|
+
const changeReadonly = (row: FormProperty) => {
|
|
63
|
+
if (row.readonly) {
|
|
64
|
+
row.required = false
|
|
65
|
+
row.hidden = false
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
const changeRequired = (row: FormProperty) => {
|
|
69
|
+
if (row.required) {
|
|
70
|
+
row.readonly = false
|
|
71
|
+
row.hidden = false
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
const changeHidden = (row: FormProperty) => {
|
|
75
|
+
if (row.hidden) {
|
|
76
|
+
row.readonly = false
|
|
77
|
+
row.required = false
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
const getBackNodes = () => {
|
|
81
|
+
if (getParentNodes) {
|
|
82
|
+
return getParentNodes(props.activeData.id)
|
|
83
|
+
} else {
|
|
84
|
+
return []
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
// const deleteParaItem = (row: FormProperty) => {
|
|
88
|
+
// deleteFormItem(row.id)
|
|
89
|
+
// }
|
|
90
|
+
watchEffect(() => {
|
|
91
|
+
// console.log('fields', fields)
|
|
92
|
+
const formProperties = props.activeData.formProperties
|
|
93
|
+
props.activeData.formProperties = fields.value.map((field) => ({
|
|
94
|
+
id: field.id,
|
|
95
|
+
name: field.label,
|
|
96
|
+
readonly: field.readonly || false,
|
|
97
|
+
hidden: field.hidden,
|
|
98
|
+
required: field.required || false,
|
|
99
|
+
}))
|
|
100
|
+
props.activeData.formProperties.forEach((item) => {
|
|
101
|
+
const properties = formProperties.find((f) => f.id === item.id)
|
|
102
|
+
if (properties) {
|
|
103
|
+
item.readonly = properties.readonly
|
|
104
|
+
item.hidden = properties.hidden
|
|
105
|
+
item.required = properties.required
|
|
106
|
+
}
|
|
107
|
+
})
|
|
108
|
+
})
|
|
109
|
+
</script>
|
|
110
|
+
|
|
111
|
+
<template>
|
|
112
|
+
<el-tabs v-model="activeName" stretch style="width: 100%">
|
|
113
|
+
<el-tab-pane label="审批设置" name="properties">
|
|
114
|
+
<el-form label-position="top" label-width="90px">
|
|
115
|
+
<AssigneePanel :active-data="activeData" :fields="fields" type="审批">
|
|
116
|
+
<!-- <el-col :span="8">-->
|
|
117
|
+
<!-- <el-radio value="autoRefuse">自动拒绝</el-radio>-->
|
|
118
|
+
<!-- </el-col>-->
|
|
119
|
+
</AssigneePanel>
|
|
120
|
+
<el-form-item prop="filterUsers">
|
|
121
|
+
<template #label>
|
|
122
|
+
<el-flex align="center">
|
|
123
|
+
<span style="margin-right: 3px">审批人过滤</span>
|
|
124
|
+
<el-tooltip content="流程自动对审批对象进行的进一步筛选逻辑" placement="top">
|
|
125
|
+
<el-icons model-value="adtec-info"></el-icons>
|
|
126
|
+
</el-tooltip>
|
|
127
|
+
</el-flex>
|
|
128
|
+
</template>
|
|
129
|
+
<el-radio-group v-model="activeData.filterUsers" class="flex-col important-items-start">
|
|
130
|
+
<el-radio value="no">不过滤</el-radio>
|
|
131
|
+
<el-radio value="initiatorOrg">发起人部门</el-radio>
|
|
132
|
+
<el-radio value="assigneeOrg">上环节提交人部门</el-radio>
|
|
133
|
+
</el-radio-group>
|
|
134
|
+
</el-form-item>
|
|
135
|
+
<el-form-item prop="sameUser" label="审批人与提交人为同一人时">
|
|
136
|
+
<el-radio-group v-model="activeData.sameUser" class="flex-col important-items-start">
|
|
137
|
+
<el-radio value="normal">正常审批</el-radio>
|
|
138
|
+
<el-radio value="auto">自动完成</el-radio>
|
|
139
|
+
</el-radio-group>
|
|
140
|
+
</el-form-item>
|
|
141
|
+
<el-form-item prop="manualUsers">
|
|
142
|
+
<template #label>
|
|
143
|
+
<el-flex align="center">
|
|
144
|
+
<span style="margin-right: 3px">是否动态指定</span>
|
|
145
|
+
<el-tooltip
|
|
146
|
+
content="上一步骤提交后,由上一步骤提交人进行该步骤审批人指定"
|
|
147
|
+
placement="top"
|
|
148
|
+
>
|
|
149
|
+
<el-icons model-value="adtec-info"></el-icons>
|
|
150
|
+
</el-tooltip>
|
|
151
|
+
</el-flex>
|
|
152
|
+
</template>
|
|
153
|
+
<el-radio-group v-model="activeData.manualUsers" class="flex-col important-items-start">
|
|
154
|
+
<el-radio :value="false">否</el-radio>
|
|
155
|
+
<el-radio :value="true">是</el-radio>
|
|
156
|
+
</el-radio-group>
|
|
157
|
+
</el-form-item>
|
|
158
|
+
<el-form-item prop="method" label="审批方式">
|
|
159
|
+
<el-radio-group v-model="activeData.multi" class="flex-col important-items-start">
|
|
160
|
+
<!-- <el-radio value="sequential">依次审批(按顺序审批)</el-radio>-->
|
|
161
|
+
<el-radio value="joint">会签(需所有审批人通过)</el-radio>
|
|
162
|
+
<el-radio value="all">会签(需所有审批人完成审批)</el-radio>
|
|
163
|
+
<el-radio value="single">或签(一名审批人通过即可)</el-radio>
|
|
164
|
+
</el-radio-group>
|
|
165
|
+
<!-- <el-text v-if="activeData.multi === 'joint'">-->
|
|
166
|
+
<!-- 需要-->
|
|
167
|
+
<!-- <el-input-number v-model="activeData.multiPercent" :min="1" :max="100" />-->
|
|
168
|
+
<!-- %人员通过-->
|
|
169
|
+
<!-- </el-text>-->
|
|
170
|
+
</el-form-item>
|
|
171
|
+
<el-form-item prop="types">
|
|
172
|
+
<template #label>
|
|
173
|
+
<el-flex align="center">
|
|
174
|
+
<span style="margin-right: 3px">可回退步骤</span>
|
|
175
|
+
<el-tooltip content="执行“退回”操作时可选的步骤" placement="top">
|
|
176
|
+
<el-icons model-value="adtec-info"></el-icons>
|
|
177
|
+
</el-tooltip>
|
|
178
|
+
</el-flex>
|
|
179
|
+
</template>
|
|
180
|
+
<el-select v-model="activeData.backNodes" multiple placeholder="请选择可回退到的步骤">
|
|
181
|
+
<el-option
|
|
182
|
+
v-for="item in getBackNodes()"
|
|
183
|
+
:key="item.id"
|
|
184
|
+
:label="item.name"
|
|
185
|
+
:value="item.id"
|
|
186
|
+
/>
|
|
187
|
+
</el-select>
|
|
188
|
+
</el-form-item>
|
|
189
|
+
<!-- <el-form-item prop="nobody" label="审批人为空时:">-->
|
|
190
|
+
<!-- <el-radio-group v-model="activeData.nobody" class="w-full">-->
|
|
191
|
+
<!-- <el-row>-->
|
|
192
|
+
<!-- <el-col :span="12">-->
|
|
193
|
+
<!-- <el-radio value="pass">自动通过</el-radio>-->
|
|
194
|
+
<!-- </el-col>-->
|
|
195
|
+
<!-- <el-col :span="12">-->
|
|
196
|
+
<!-- <el-radio value="assign">指定人员</el-radio>-->
|
|
197
|
+
<!-- </el-col>-->
|
|
198
|
+
<!-- <el-col :span="12">-->
|
|
199
|
+
<!-- <el-radio value="reject">自动拒绝</el-radio>-->
|
|
200
|
+
<!-- </el-col>-->
|
|
201
|
+
<!-- <el-col :span="12">-->
|
|
202
|
+
<!-- <el-radio value="self">转交流程发起人</el-radio>-->
|
|
203
|
+
<!-- </el-col>-->
|
|
204
|
+
<!-- </el-row>-->
|
|
205
|
+
<!-- </el-radio-group>-->
|
|
206
|
+
<!-- <user-selector-->
|
|
207
|
+
<!-- v-if="activeData.nobody === 'assign'"-->
|
|
208
|
+
<!-- multiple-->
|
|
209
|
+
<!-- v-model="activeData.nobodyUsers"-->
|
|
210
|
+
<!-- placeholder="指定人员"-->
|
|
211
|
+
<!-- />-->
|
|
212
|
+
<!-- </el-form-item>-->
|
|
213
|
+
<el-form-item prop="nodeTag" label="组件路径">
|
|
214
|
+
<template #label>
|
|
215
|
+
<el-flex align="center">
|
|
216
|
+
<span style="margin-right: 3px">组件路径</span>
|
|
217
|
+
<el-tooltip content="前端组件路径,可使用menucode或‘/src/**/*.vue’" placement="top">
|
|
218
|
+
<el-icons model-value="adtec-info"></el-icons>
|
|
219
|
+
</el-tooltip>
|
|
220
|
+
</el-flex>
|
|
221
|
+
</template>
|
|
222
|
+
<el-input
|
|
223
|
+
v-model="activeData.nodeTag"
|
|
224
|
+
:maxlength="100"
|
|
225
|
+
clearable
|
|
226
|
+
placeholder="请输入组件路径"
|
|
227
|
+
/>
|
|
228
|
+
</el-form-item>
|
|
229
|
+
<el-form-item prop="nodeParam" label="组件参数">
|
|
230
|
+
<template #label>
|
|
231
|
+
<el-flex align="center">
|
|
232
|
+
<span style="margin-right: 3px">组件参数</span>
|
|
233
|
+
<el-tooltip content="前端组件参数" placement="top">
|
|
234
|
+
<el-icons model-value="adtec-info"></el-icons>
|
|
235
|
+
</el-tooltip>
|
|
236
|
+
</el-flex>
|
|
237
|
+
</template>
|
|
238
|
+
<el-input
|
|
239
|
+
v-model="activeData.nodeParam"
|
|
240
|
+
:maxlength="100"
|
|
241
|
+
clearable
|
|
242
|
+
placeholder="请输入组件参数"
|
|
243
|
+
/>
|
|
244
|
+
</el-form-item>
|
|
245
|
+
<el-form-item prop="taskListeners" label="任务监听器:">
|
|
246
|
+
<TaskListeners :node="activeData" />
|
|
247
|
+
</el-form-item>
|
|
248
|
+
</el-form>
|
|
249
|
+
</el-tab-pane>
|
|
250
|
+
<el-tab-pane label="通知设置" name="msgProps">
|
|
251
|
+
<el-form label-position="top">
|
|
252
|
+
<el-form-item prop="types" label="通知类型">
|
|
253
|
+
<el-checkbox-group v-model="activeData.msgTypes">
|
|
254
|
+
<el-checkbox
|
|
255
|
+
v-for="item in getDictTypeData('SysMsgType')"
|
|
256
|
+
:key="item.id"
|
|
257
|
+
:label="item.label"
|
|
258
|
+
:value="item.value"
|
|
259
|
+
:disabled="item.value === 'site'"
|
|
260
|
+
/>
|
|
261
|
+
<!-- <el-checkbox label="站内" disabled value="site" />-->
|
|
262
|
+
<!-- <el-checkbox label="邮件" value="email" />-->
|
|
263
|
+
<!-- <el-checkbox label="短信" value="sms" />-->
|
|
264
|
+
<!-- <el-checkbox label="企业微信" value="wechat" />-->
|
|
265
|
+
</el-checkbox-group>
|
|
266
|
+
</el-form-item>
|
|
267
|
+
<el-form-item prop="msgLevel" label="优先级">
|
|
268
|
+
<el-radio-group v-model="activeData.msgLevel" class="flex-col important-items-start">
|
|
269
|
+
<el-radio
|
|
270
|
+
v-for="item in getDictTypeData('SysTaskPriority')"
|
|
271
|
+
:key="item.id"
|
|
272
|
+
:label="item.label"
|
|
273
|
+
:value="item.value"
|
|
274
|
+
></el-radio>
|
|
275
|
+
<!-- <el-radio value="5">高</el-radio>-->
|
|
276
|
+
<!-- <el-radio value="3">标准</el-radio>-->
|
|
277
|
+
<!-- <el-radio value="1">低</el-radio>-->
|
|
278
|
+
</el-radio-group>
|
|
279
|
+
</el-form-item>
|
|
280
|
+
<el-form-item prop="subject" label="消息主题">
|
|
281
|
+
<!-- <template #label>-->
|
|
282
|
+
<!-- <div class="flex-items-center gap3px">-->
|
|
283
|
+
<!-- <el-tooltip content="可以使用 ${字段名} 字段名填充内容" placement="top">-->
|
|
284
|
+
<!-- <el-icon>-->
|
|
285
|
+
<!-- <QuestionFilled />-->
|
|
286
|
+
<!-- </el-icon>-->
|
|
287
|
+
<!-- </el-tooltip>-->
|
|
288
|
+
<!-- <span>消息主题</span>-->
|
|
289
|
+
<!-- </div>-->
|
|
290
|
+
<!-- </template>-->
|
|
291
|
+
<el-input
|
|
292
|
+
v-model="activeData.msgSubject"
|
|
293
|
+
:maxlength="255"
|
|
294
|
+
clearable
|
|
295
|
+
placeholder="请输入消息主题"
|
|
296
|
+
/>
|
|
297
|
+
</el-form-item>
|
|
298
|
+
<el-form-item prop="content" label="消息内容">
|
|
299
|
+
<!-- <template #label>-->
|
|
300
|
+
<!-- <div class="flex-items-center gap3px">-->
|
|
301
|
+
<!-- <el-tooltip content="可以使用 ${字段名} 字段名填充内容" placement="top">-->
|
|
302
|
+
<!-- <el-icon>-->
|
|
303
|
+
<!-- <QuestionFilled />-->
|
|
304
|
+
<!-- </el-icon>-->
|
|
305
|
+
<!-- </el-tooltip>-->
|
|
306
|
+
<!-- <span>消息内容</span>-->
|
|
307
|
+
<!-- </div>-->
|
|
308
|
+
<!-- </template>-->
|
|
309
|
+
<el-input
|
|
310
|
+
v-model="activeData.msgContent"
|
|
311
|
+
:autosize="{ minRows: 6, maxRows: 8 }"
|
|
312
|
+
type="textarea"
|
|
313
|
+
:maxlength="1000"
|
|
314
|
+
show-word-limit
|
|
315
|
+
placeholder="请输入消息内容"
|
|
316
|
+
>
|
|
317
|
+
</el-input>
|
|
318
|
+
</el-form-item>
|
|
319
|
+
</el-form>
|
|
320
|
+
</el-tab-pane>
|
|
321
|
+
<el-tab-pane label="参数设置" name="formPermissions">
|
|
322
|
+
<el-table width="100%" :data="activeData.formProperties">
|
|
323
|
+
<el-table-column prop="name" label="字段" />
|
|
324
|
+
<el-table-column prop="readonly">
|
|
325
|
+
<template #header>
|
|
326
|
+
<el-checkbox v-model="allReadonly" label="只读" />
|
|
327
|
+
</template>
|
|
328
|
+
<template #default="{ row }">
|
|
329
|
+
<el-checkbox v-model="row.readonly" @change="changeReadonly(row)" />
|
|
330
|
+
</template>
|
|
331
|
+
</el-table-column>
|
|
332
|
+
<el-table-column prop="required">
|
|
333
|
+
<template #header>
|
|
334
|
+
<el-checkbox v-model="allRequired" label="必填" />
|
|
335
|
+
</template>
|
|
336
|
+
<template #default="{ row }">
|
|
337
|
+
<el-checkbox v-model="row.required" @change="changeRequired(row)" />
|
|
338
|
+
</template>
|
|
339
|
+
</el-table-column>
|
|
340
|
+
<el-table-column prop="hidden">
|
|
341
|
+
<template #header>
|
|
342
|
+
<el-checkbox v-model="allHidden" label="隐藏" />
|
|
343
|
+
</template>
|
|
344
|
+
<template #default="{ row }">
|
|
345
|
+
<el-checkbox v-model="row.hidden" @change="changeHidden(row)" />
|
|
346
|
+
</template>
|
|
347
|
+
</el-table-column>
|
|
348
|
+
<!-- <el-table-column width="60" prop="hidden">-->
|
|
349
|
+
<!-- <template #default="{ row }">-->
|
|
350
|
+
<!-- <span @click.stop>-->
|
|
351
|
+
<!-- <el-popconfirm-->
|
|
352
|
+
<!-- title="删除后该参数在流程中将不可用,您确定要删除该参数吗?"-->
|
|
353
|
+
<!-- width="200"-->
|
|
354
|
+
<!-- :hide-after="0"-->
|
|
355
|
+
<!-- placement="left-end"-->
|
|
356
|
+
<!-- @confirm="deleteParaItem(row)"-->
|
|
357
|
+
<!-- >-->
|
|
358
|
+
<!-- <template #reference>-->
|
|
359
|
+
<!-- <el-button size="small" type="danger" text :icon="CloseBold"> </el-button>-->
|
|
360
|
+
<!-- </template>-->
|
|
361
|
+
<!-- </el-popconfirm>-->
|
|
362
|
+
<!-- </span>-->
|
|
363
|
+
<!-- </template>-->
|
|
364
|
+
<!-- </el-table-column>-->
|
|
365
|
+
</el-table>
|
|
366
|
+
<!-- <ParaPanel />-->
|
|
367
|
+
</el-tab-pane>
|
|
368
|
+
<el-tab-pane label="操作权限" name="operationPermissions">
|
|
369
|
+
<el-space fill :size="0" direction="horizontal" :spacer="spacer">
|
|
370
|
+
<div class="opt-item">
|
|
371
|
+
<el-icon :size="32" class="opt-item__icon">
|
|
372
|
+
<CircleCheck />
|
|
373
|
+
</el-icon>
|
|
374
|
+
<div class="opt-item__content">
|
|
375
|
+
<el-text tag="b"> 同意</el-text>
|
|
376
|
+
<div class="opt-item__second">审批通过,流转到下一个节点</div>
|
|
377
|
+
</div>
|
|
378
|
+
<el-switch
|
|
379
|
+
v-model="activeData.operations.complete"
|
|
380
|
+
inline-prompt
|
|
381
|
+
active-text="开"
|
|
382
|
+
inactive-text="关"
|
|
383
|
+
/>
|
|
384
|
+
</div>
|
|
385
|
+
<div class="opt-item">
|
|
386
|
+
<el-icon :size="32" class="opt-item__icon">
|
|
387
|
+
<Back />
|
|
388
|
+
</el-icon>
|
|
389
|
+
<div class="opt-item__content">
|
|
390
|
+
<el-text tag="b"> 退回</el-text>
|
|
391
|
+
<div class="opt-item__second">
|
|
392
|
+
若审批内容存在问题,当前任务将中止并回退至特定历史任务节点
|
|
393
|
+
</div>
|
|
394
|
+
</div>
|
|
395
|
+
<el-switch
|
|
396
|
+
v-model="activeData.operations.back"
|
|
397
|
+
inline-prompt
|
|
398
|
+
active-text="开"
|
|
399
|
+
inactive-text="关"
|
|
400
|
+
/>
|
|
401
|
+
</div>
|
|
402
|
+
<div class="opt-item">
|
|
403
|
+
<el-icon :size="32" class="opt-item__icon">
|
|
404
|
+
<CircleClose />
|
|
405
|
+
</el-icon>
|
|
406
|
+
<div class="opt-item__content">
|
|
407
|
+
<el-text tag="b"> 终止</el-text>
|
|
408
|
+
<div class="opt-item__second">当终止任务时,当前任务被终止,并结束整个流程</div>
|
|
409
|
+
</div>
|
|
410
|
+
<el-switch
|
|
411
|
+
v-model="activeData.operations.refuse"
|
|
412
|
+
inline-prompt
|
|
413
|
+
active-text="开"
|
|
414
|
+
inactive-text="关"
|
|
415
|
+
/>
|
|
416
|
+
</div>
|
|
417
|
+
<div class="opt-item">
|
|
418
|
+
<el-icon :size="32" class="opt-item__icon">
|
|
419
|
+
<Switch />
|
|
420
|
+
</el-icon>
|
|
421
|
+
<div class="opt-item__content">
|
|
422
|
+
<el-text tag="b"> 转交</el-text>
|
|
423
|
+
<div class="opt-item__second">
|
|
424
|
+
将当前任务移交给其他人处理,以便他们继续执行所需的操作
|
|
425
|
+
</div>
|
|
426
|
+
</div>
|
|
427
|
+
<el-switch
|
|
428
|
+
v-model="activeData.operations.transfer"
|
|
429
|
+
inline-prompt
|
|
430
|
+
active-text="开"
|
|
431
|
+
inactive-text="关"
|
|
432
|
+
/>
|
|
433
|
+
</div>
|
|
434
|
+
<!-- <div class="opt-item">-->
|
|
435
|
+
<!-- <el-icon :size="32" class="opt-item__icon">-->
|
|
436
|
+
<!-- <UserFilled />-->
|
|
437
|
+
<!-- </el-icon>-->
|
|
438
|
+
<!-- <div class="opt-item__content">-->
|
|
439
|
+
<!-- <el-text tag="b"> 委派</el-text>-->
|
|
440
|
+
<!-- <div class="opt-item__second">将当前任务暂时交由他人处理,待其完成后再交回自己处理</div>-->
|
|
441
|
+
<!-- </div>-->
|
|
442
|
+
<!-- <el-switch-->
|
|
443
|
+
<!-- v-model="activeData.operations.delegate"-->
|
|
444
|
+
<!-- inline-prompt-->
|
|
445
|
+
<!-- active-text="开"-->
|
|
446
|
+
<!-- inactive-text="关"-->
|
|
447
|
+
<!-- />-->
|
|
448
|
+
<!-- </div>-->
|
|
449
|
+
<div class="opt-item">
|
|
450
|
+
<!-- <flow-icon class-name="opt-item__icon" name="add-user" :size="32" />-->
|
|
451
|
+
<el-icon :size="32" class="opt-item__icon">
|
|
452
|
+
<Plus />
|
|
453
|
+
</el-icon>
|
|
454
|
+
<div class="opt-item__content">
|
|
455
|
+
<el-text tag="b"> 加签</el-text>
|
|
456
|
+
<div class="opt-item__second">
|
|
457
|
+
在当前任务上额外添加新人员,以处理相关事项或提供必要的审批或意见
|
|
458
|
+
</div>
|
|
459
|
+
</div>
|
|
460
|
+
<el-switch
|
|
461
|
+
v-model="activeData.operations.addMulti"
|
|
462
|
+
inline-prompt
|
|
463
|
+
active-text="开"
|
|
464
|
+
inactive-text="关"
|
|
465
|
+
/>
|
|
466
|
+
</div>
|
|
467
|
+
<div class="opt-item">
|
|
468
|
+
<!-- <flow-icon class-name="opt-item__icon" name="reduce-user" :size="32" />-->
|
|
469
|
+
<el-icon :size="32" class="opt-item__icon">
|
|
470
|
+
<Minus />
|
|
471
|
+
</el-icon>
|
|
472
|
+
<div class="opt-item__content">
|
|
473
|
+
<el-text tag="b"> 减签</el-text>
|
|
474
|
+
<div class="opt-item__second">
|
|
475
|
+
在当前任务中减少处理人员数量,以简化流程或重新分配责任
|
|
476
|
+
</div>
|
|
477
|
+
</div>
|
|
478
|
+
<el-switch
|
|
479
|
+
v-model="activeData.operations.minusMulti"
|
|
480
|
+
inline-prompt
|
|
481
|
+
active-text="开"
|
|
482
|
+
inactive-text="关"
|
|
483
|
+
/>
|
|
484
|
+
</div>
|
|
485
|
+
</el-space>
|
|
486
|
+
</el-tab-pane>
|
|
487
|
+
</el-tabs>
|
|
488
|
+
</template>
|
|
489
|
+
<!--@import '@/components/bpmntree/styles/el-segmented.scss';-->
|
|
490
|
+
|
|
491
|
+
<style scoped lang="scss">
|
|
492
|
+
.opt-item {
|
|
493
|
+
display: flex;
|
|
494
|
+
align-items: center;
|
|
495
|
+
|
|
496
|
+
.opt-item__icon {
|
|
497
|
+
background: var(--el-color-primary);
|
|
498
|
+
color: var(--el-color-white);
|
|
499
|
+
border-radius: 7px;
|
|
500
|
+
padding: 3px;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.opt-item__content {
|
|
504
|
+
box-sizing: border-box;
|
|
505
|
+
flex: 1;
|
|
506
|
+
margin-left: 20px;
|
|
507
|
+
font-size: 14px;
|
|
508
|
+
|
|
509
|
+
.opt-item__second {
|
|
510
|
+
margin-top: 3px;
|
|
511
|
+
font-size: 12px;
|
|
512
|
+
color: var(--el-text-color-placeholder);
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
</style>
|