adtec-core-package 2.6.0 → 2.6.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adtec-core-package",
3
- "version": "2.6.0",
3
+ "version": "2.6.2",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -4,58 +4,73 @@
4
4
  <!--修改时间: 2024/11/14 上午11:45-->
5
5
  <template>
6
6
  <div ref="taskFlexRef">
7
- <el-flex align="center" justify="flex-end" v-loading="taskLoading">
7
+ <el-flex align="center" justify="flex-end">
8
8
  <slot name="left"></slot>
9
- <el-button :loading="butLoading" v-if="params?.cancelBtnText !== ''" @click="params?.cancelFunction">{{
9
+ <el-button :loading="butLoading || taskLoading" v-if="params?.cancelBtnText !== ''"
10
+ @click="params?.cancelFunction">{{
10
11
  params?.cancelBtnText ?? '取消'
11
- }}</el-button>
12
- <el-button v-if="showProcessBtn" type="info" @click="processShow = true">流程详情</el-button>
12
+ }}
13
+ </el-button>
14
+ <el-button v-if="showProcessBtn && task?.taskId" type="info" :loading="butLoading || taskLoading" @click="processShow = true">
15
+ 流程详情
16
+ </el-button>
13
17
  <template v-if="isAssignee">
14
- <el-button type="primary" @click="openDialog('assignee')">指定执行人</el-button>
18
+ <el-button type="primary" :loading="butLoading || taskLoading" @click="openDialog('assignee')">指定执行人
19
+ </el-button>
15
20
  </template>
16
21
  <template v-if="!isAssignee && task?.taskId && task?.operations">
17
- <el-button :loading="butLoading" v-if="params?.saveBtnText" type="primary" @click="params?.saveFunction">{{
22
+ <el-button :loading="butLoading || taskLoading" v-if="params?.saveBtnText" type="primary"
23
+ @click="params?.saveFunction">{{
18
24
  params?.saveBtnText
19
- }}</el-button>
25
+ }}
26
+ </el-button>
20
27
  <el-button
21
28
  v-if="task?.operations.indexOf('addMulti') > -1"
22
29
  type="warning"
30
+ :loading="butLoading || taskLoading"
23
31
  @click="openDialog('addMulti')"
24
- >加签</el-button
32
+ >加签
33
+ </el-button
25
34
  >
26
35
  <el-button
27
36
  v-if="task?.operations.indexOf('minusMulti') > -1"
28
37
  type="danger"
38
+ :loading="butLoading || taskLoading"
29
39
  @click="openDialog('minusMulti')"
30
- >减签</el-button
40
+ >减签
41
+ </el-button
31
42
  >
32
43
  <el-button
33
- :loading="butLoading"
44
+ :loading="butLoading || taskLoading"
34
45
  v-if="task?.operations.indexOf('refuse') > -1 && params?.refuseBtnText !== ''"
35
46
  type="danger"
36
47
  @click="openDialog('refuse')"
37
- >{{ params?.refuseBtnText ?? '终止' }}</el-button
48
+ >{{ params?.refuseBtnText ?? '终止' }}
49
+ </el-button
38
50
  >
39
51
  <el-button
40
- :loading="butLoading"
52
+ :loading="butLoading || taskLoading"
41
53
  v-if="task?.operations.indexOf('transfer') > -1 && params?.transferBtnText !== ''"
42
54
  type="warning"
43
55
  @click="openDialog('transfer')"
44
- >{{ params?.transferBtnText ?? '转办' }}</el-button
56
+ >{{ params?.transferBtnText ?? '转办' }}
57
+ </el-button
45
58
  >
46
59
  <el-button
47
- :loading="butLoading"
60
+ :loading="butLoading || taskLoading"
48
61
  v-if="task?.operations.indexOf('back') > -1 && params?.backBtnText !== ''"
49
62
  type="danger"
50
63
  @click="openDialog('back')"
51
- >{{ params?.backBtnText ?? '退回' }}</el-button
64
+ >{{ params?.backBtnText ?? '退回' }}
65
+ </el-button
52
66
  >
53
67
  <el-button
54
- :loading="butLoading"
68
+ :loading="butLoading || taskLoading"
55
69
  v-if="task?.operations.indexOf('complete') > -1 && params?.completeBtnText !== ''"
56
70
  type="primary"
57
71
  @click="openDialog('complete')"
58
- >{{ params?.completeBtnText ?? '同意' }}</el-button
72
+ >{{ params?.completeBtnText ?? '同意' }}
73
+ </el-button
59
74
  >
60
75
  </template>
61
76
  <slot name="right"></slot>
@@ -100,7 +115,7 @@ const $props = defineProps({
100
115
  taskId: { type: String, required: true },
101
116
  showProcessBtn: { type: Boolean, required: false, default: false },
102
117
  butLoading: { type: Boolean, required: false, default: false },
103
- params: { type: Object as PropType<ITaskOperate>, required: false },
118
+ params: { type: Object as PropType<ITaskOperate>, required: false }
104
119
  })
105
120
 
106
121
  const emit = defineEmits(['success'])
@@ -144,7 +159,7 @@ const openDialog = async (type: string) => {
144
159
  userId: userInfoStore().getUserInfo.id,
145
160
  comment: '同意。',
146
161
  procInsId: task.value.procInsId,
147
- procDefKey: task.value.procDefKey,
162
+ procDefKey: task.value.procDefKey
148
163
  })
149
164
  if (res === false) return
150
165
  if (res?.readonly) {
@@ -185,7 +200,7 @@ const operSuccess = (taskVo: IWfTaskVo) => {
185
200
  // 向上定义递归查找函数
186
201
  const findParentWithClass = (
187
202
  element: HTMLElement | null,
188
- targetClass: string,
203
+ targetClass: string
189
204
  ): HTMLElement | null => {
190
205
  if (!element) {
191
206
  return null
@@ -80,6 +80,16 @@ const init = async (procDefId: string, procInstId: string) => {
80
80
  ver.value.workflowCode === 'CompanyProjectApplyWorkflow' &&
81
81
  ver.value.version === 4
82
82
  ) {
83
+ //调整显示
84
+ if (taskGroup.value.length) {
85
+ const find = taskGroup.value.find(item => item.parentExecutionId === 'node_c9zht:2025-11-19 15:44:56')
86
+ if (find) {
87
+ const task = find.tasks.filter(item => item.businessId === '1963833051911258114')
88
+ task[0].comment = ''
89
+ task[0].finishTime = undefined
90
+ find.tasks = task
91
+ }
92
+ }
83
93
  if (taskGroup.value.length) {
84
94
  // 判断taskGroup.value中的专家预审的位置index
85
95
  const expertPretrialIndex = taskGroup.value.findIndex(