@lambo-design-mobile/workflow-approve 1.0.0-beta.2 → 1.0.0-beta.20

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/CHANGELOG.md CHANGED
@@ -1,6 +1,107 @@
1
1
  # Changelog
2
- ## [1.0.0-beta.2](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/compare/@lambo-design-mobile/workflow-approve@1.0.0-beta.1...@lambo-design-mobile/workflow-approve@1.0.0-beta.2) (2024-10-10)
2
+ ## [1.0.0-beta.20](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/compare/@lambo-design-mobile/workflow-approve@1.0.0-beta.19...@lambo-design-mobile/workflow-approve@1.0.0-beta.20) (2025-08-21)
3
3
 
4
+
5
+ ### ✨ Features | 新功能
6
+
7
+ * **workflow-approve:** 发起时间支持范围筛选 ([831f12d](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/commit/831f12dae1b9ecdb7bab2ba666a568183a747ae2))
8
+
9
+ ## [1.0.0-beta.19](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/compare/@lambo-design-mobile/workflow-approve@1.0.0-beta.18...@lambo-design-mobile/workflow-approve@1.0.0-beta.19) (2025-05-14)
10
+
11
+ ## [1.0.0-beta.18](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/compare/@lambo-design-mobile/workflow-approve@1.0.0-beta.17...@lambo-design-mobile/workflow-approve@1.0.0-beta.18) (2025-04-25)
12
+
13
+
14
+ ### ♻️ Code Refactoring | 代码重构
15
+
16
+ * **workflow-approve:** 修改 TodoListCard 组件中样品单号为申请编号 ([0b6a571](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/commit/0b6a571f0592a775343b89908c6c0e58dc473250))
17
+
18
+ ## [1.0.0-beta.17](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/compare/@lambo-design-mobile/workflow-approve@1.0.0-beta.16...@lambo-design-mobile/workflow-approve@1.0.0-beta.17) (2025-04-17)
19
+
20
+ ## [1.0.0-beta.16](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/compare/@lambo-design-mobile/workflow-approve@1.0.0-beta.15...@lambo-design-mobile/workflow-approve@1.0.0-beta.16) (2025-04-11)
21
+
22
+
23
+ ### ✨ Features | 新功能
24
+
25
+ * **workflow-approve:** 优化批量审批功能 ([95989fc](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/commit/95989fc8652a210321251f7191786e59fbbba966))
26
+
27
+ ## [1.0.0-beta.15](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/compare/@lambo-design-mobile/workflow-approve@1.0.0-beta.14...@lambo-design-mobile/workflow-approve@1.0.0-beta.15) (2025-03-19)
28
+
29
+ ## [1.0.0-beta.14](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/compare/@lambo-design-mobile/workflow-approve@1.0.0-beta.13...@lambo-design-mobile/workflow-approve@1.0.0-beta.14) (2025-03-18)
30
+
31
+
32
+ ### ✨ Features | 新功能
33
+
34
+ * **workflow-approve:** 初始化流程历史记录的展开项 ([3e653e7](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/commit/3e653e7cbadcfead327f731eb73ac9235bf85430))
35
+
36
+ ## [1.0.0-beta.13](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/compare/@lambo-design-mobile/workflow-approve@1.0.0-beta.12...@lambo-design-mobile/workflow-approve@1.0.0-beta.13) (2025-03-18)
37
+
38
+ ## [1.0.0-beta.12](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/compare/@lambo-design-mobile/workflow-approve@1.0.0-beta.11...@lambo-design-mobile/workflow-approve@1.0.0-beta.12) (2025-03-18)
39
+
40
+
41
+ ### ✨ Features | 新功能
42
+
43
+ * **workflow-approve:** 优化 FlowApproval 组件底部按钮逻辑 ([e351b86](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/commit/e351b86fab17bbd634e7b4f0320520bdcef1bac1))
44
+
45
+ ## [1.0.0-beta.11](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/compare/@lambo-design-mobile/workflow-approve@1.0.0-beta.10...@lambo-design-mobile/workflow-approve@1.0.0-beta.11) (2025-03-18)
46
+
47
+ ## [1.0.0-beta.10](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/compare/@lambo-design-mobile/workflow-approve@1.0.0-beta.9...@lambo-design-mobile/workflow-approve@1.0.0-beta.10) (2025-03-18)
48
+
49
+ ## [1.0.0-beta.9](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/compare/@lambo-design-mobile/workflow-approve@1.0.0-beta.8...@lambo-design-mobile/workflow-approve@1.0.0-beta.9) (2025-03-18)
50
+
51
+
52
+ ### ✨ Features | 新功能
53
+
54
+ * **workflow-approve:** 添加审批意见折叠功能 ([52d1709](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/commit/52d170906d24b7ffb587f95807f2e81a7debb6fe))
55
+
56
+ ## [1.0.0-beta.8](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/compare/@lambo-design-mobile/workflow-approve@1.0.0-beta.7...@lambo-design-mobile/workflow-approve@1.0.0-beta.8) (2025-03-17)
57
+
58
+
59
+ ### ♻️ Code Refactoring | 代码重构
60
+
61
+ * **workflow-approve:** 修改 getNextNodes 请求方法为 POST ([5486961](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/commit/54869618e32ee13f26dcef21507e2309d8ac2469))
62
+
63
+
64
+ ### 🐛 Bug Fixes | Bug 修复
65
+
66
+ * **workflow-approve:** 修复待办列表卡片中的表单链接错误 ([0575ae8](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/commit/0575ae81a488766cdad79f335d24fa2ecf2450da))
67
+
68
+ ## [1.0.0-beta.7](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/compare/@lambo-design-mobile/workflow-approve@1.0.0-beta.6...@lambo-design-mobile/workflow-approve@1.0.0-beta.7) (2024-12-03)
69
+
70
+
71
+ ### ✨ Features | 新功能
72
+
73
+ * **workflow-approve:** 优化审批页面功能 ([f18679c](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/commit/f18679c7769644df4606d0832d6ec7c558dfe189))
74
+
75
+ ## [1.0.0-beta.6](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/compare/@lambo-design-mobile/workflow-approve@1.0.0-beta.5...@lambo-design-mobile/workflow-approve@1.0.0-beta.6) (2024-11-22)
76
+
77
+
78
+ ### 🐛 Bug Fixes | Bug 修复
79
+
80
+ * **workflow-approve:** 选择处理人时重置用户ID ([d2c880e](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/commit/d2c880ec9a4bde5a28c7451c0d4269a4587df4e5))
81
+
82
+
83
+ ### ✨ Features | 新功能
84
+
85
+ * **workflow-approve:** 动态获取组织结构类型 ([b118a59](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/commit/b118a5917fb77377401b199d321c4bc32954b2c2))
86
+
87
+ ## [1.0.0-beta.5](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/compare/@lambo-design-mobile/workflow-approve@1.0.0-beta.4...@lambo-design-mobile/workflow-approve@1.0.0-beta.5) (2024-11-18)
88
+
89
+
90
+ ### 🐛 Bug Fixes | Bug 修复
91
+
92
+ * **@lambo-design-mobile/workflow-approve:** 修复流程审批中执行完成的参数传递问题 ([6d1fa59](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/commit/6d1fa590cb665c848f1159de33085476ad2daf88))
93
+
94
+ ## [1.0.0-beta.4](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/compare/@lambo-design-mobile/workflow-approve@1.0.0-beta.3...@lambo-design-mobile/workflow-approve@1.0.0-beta.4) (2024-11-11)
95
+
96
+
97
+ ### 🐛 Bug Fixes | Bug 修复
98
+
99
+ * **@lambo-design-mobile/workflow-approve:** 修复待办列表卡片组件中的 URL错误 ([8ca75a9](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/commit/8ca75a9278313ebc4679b9e14546066085678e81))
100
+
101
+ ## [1.0.0-beta.3](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/compare/@lambo-design-mobile/workflow-approve@1.0.0-beta.2...@lambo-design-mobile/workflow-approve@1.0.0-beta.3) (2024-11-04)
102
+
103
+ ## [1.0.0-beta.2](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/compare/@lambo-design-mobile/workflow-approve@1.0.0-beta.1...@lambo-design-mobile/workflow-approve@1.0.0-beta.2) (2024-10-10)
104
+
4
105
  ## 1.0.0-beta.1 (2024-10-09)
5
106
 
6
107
 
package/api.js CHANGED
@@ -52,9 +52,11 @@ export const getProcessTodoList = (offset, limit, searchForm = {}) => {
52
52
  const params = {
53
53
  offset: offset,
54
54
  limit: limit,
55
+ client: 'app',
55
56
  detailName: searchForm.detailName || '',
56
57
  applyId: searchForm.applyId || '',
57
- startDate: searchForm.startDate || '',
58
+ startDateBegin: searchForm.startDateBegin || '',
59
+ startDateEnd: searchForm.startDateEnd || '',
58
60
  procName: searchForm.procName || '',
59
61
  taskName: searchForm.taskName || '',
60
62
  procType: searchForm.procType || '',
@@ -72,9 +74,11 @@ export const getProcessDoneList = (offset, limit, searchForm = {}) => {
72
74
  const params = {
73
75
  offset: offset,
74
76
  limit: limit,
77
+ client: 'app',
75
78
  detailName: searchForm.detailName || '',
76
79
  applyId: searchForm.applyId || '',
77
- startDate: searchForm.startDate || '',
80
+ startDateBegin: searchForm.startDateBegin || '',
81
+ startDateEnd: searchForm.startDateEnd || '',
78
82
  procName: searchForm.procName || '',
79
83
  taskName: searchForm.taskName || '',
80
84
  procType: searchForm.procType || '',
@@ -165,7 +169,7 @@ export const getNextNodes = (procId, taskNode) => {
165
169
  };
166
170
  return ajax.request({
167
171
  url: config.smartFlowServerContext + "/manage/processTodo/getNextNodes",
168
- method: 'get',
172
+ method: 'post',
169
173
  params: params,
170
174
  })
171
175
  }
@@ -243,14 +247,25 @@ export const batchApproval = (status, flowIds, auditOpinion) => {
243
247
  }));
244
248
  }
245
249
 
250
+ export const getProcessType = (proType) => {
251
+ const params = {
252
+ proType: proType,
253
+ };
254
+ return ajax.request({
255
+ url: config.smartFlowServerContext + "/manage/processType/lists",
256
+ method: 'get',
257
+ params: params
258
+ })
259
+ }
260
+
246
261
  export const getUserList = (offset, limit, searchForm = {}) => {
247
262
 
248
263
  // 处理 searchForm 的各个字段,确保即使未传值也有默认空字符串
249
264
  const params = {
250
265
  offset: offset,
251
266
  limit: limit,
252
- orgTreeType: "00",
253
- permScopeList: "all",
267
+ orgTreeType: searchForm.orgTreeType || '00',
268
+ permScopeList: searchForm.permScopeList || 'all',
254
269
  userId: searchForm.userId || '',
255
270
  userName: searchForm.userName || '',
256
271
  organId: searchForm.organId || '',
@@ -274,4 +289,45 @@ export const getOrgRootTree = () => {
274
289
  method: 'get',
275
290
  params: params,
276
291
  });
277
- }
292
+ }
293
+
294
+ export const getOrgSubNodes = (organCode) => {
295
+ const params = {
296
+ treeTypeId: "00",
297
+ organCode: organCode,
298
+ };
299
+ return ajax.request({
300
+ url: config.upmsServerContext + "/manage/ucOrgan/getOrgSubNodes",
301
+ method: 'get',
302
+ params: params,
303
+ });
304
+ }
305
+
306
+ export const getPosition = (positionId) => {
307
+ const params = {
308
+ positionId: positionId,
309
+ };
310
+ return ajax.request({
311
+ url: config.smartFlowServerContext + "/manage/position/get",
312
+ method: 'get',
313
+ params: params
314
+ })
315
+ }
316
+
317
+ export const getRole = (roleId) => {
318
+ return ajax.request({
319
+ url: config.upmsServerContext + "/manage/role/get/" + roleId,
320
+ method: 'get',
321
+ })
322
+ }
323
+
324
+ export const getOrgan = (organId) => {
325
+ const data = {
326
+ orgTreeType: "00",
327
+ };
328
+ return ajax.request({
329
+ url: config.upmsServerContext + "/manage/org/get/" + organId,
330
+ method: 'post',
331
+ data
332
+ })
333
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lambo-design-mobile/workflow-approve",
3
- "version": "1.0.0-beta.2",
3
+ "version": "1.0.0-beta.20",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "lambo",
@@ -13,9 +13,9 @@
13
13
  "bpmn-js": "^7.3.1"
14
14
  },
15
15
  "devDependencies": {
16
+ "@lambo-design-mobile/upload-file": "^1.0.0-beta.14",
16
17
  "@lambo-design-mobile/lambo-scan-code": "^1.0.0-beta.1",
17
- "@lambo-design-mobile/upload-file": "^1.0.0-beta.9",
18
- "@lambo-design-mobile/shared": "^1.0.0-beta.8"
18
+ "@lambo-design-mobile/shared": "^1.0.0-beta.18"
19
19
  },
20
20
  "scripts": {
21
21
  "release": "pnpm release-beta && git push --follow-tags && pnpm re-publish",
@@ -0,0 +1,115 @@
1
+ <template>
2
+ <van-cell center>
3
+ <template v-slot:icon>
4
+ <div
5
+ v-if="['通过','流程发起','跳转指定节点'].includes(getAuditStatus(item.auditResult).text)"
6
+ class="completed-icon">
7
+ <van-icon class="iconfont" class-prefix='icon' :name=getAuditStatus(item.auditResult).icon
8
+ size="28px" color="#fff"/>
9
+ </div>
10
+ <div v-else class="pending-icon">
11
+ <van-icon class="iconfont" class-prefix='icon' :name=getAuditStatus(item.auditResult).icon
12
+ size="28px" color="#fff"/>
13
+ </div>
14
+ </template>
15
+ <template v-slot:title>
16
+ <div :style="{ color: getAuditStatus(item.auditResult).color }"
17
+ style="font-size: 16px;font-weight: bold;padding:5px 0;">
18
+ {{ Array.isArray(item.auditName) ? item.auditName[0] : item.auditName }}
19
+ </div>
20
+ <div>
21
+ <div v-if="foldingApprovalComments">
22
+ <span v-if="item.auditComment" @click="showAuditDetail(item.auditComment)">
23
+ 审批意见 <van-icon name="comment-circle-o"/>
24
+ </span>
25
+ </div>
26
+ <div v-else >
27
+ <div v-if="item.auditComment">
28
+ 意见: {{ item.auditComment }}
29
+ </div>
30
+ </div>
31
+ </div>
32
+ </template>
33
+ <template v-slot:label>
34
+ <div>{{ item.auditDate || item.createTime }}</div>
35
+ </template>
36
+ <template v-slot:default>
37
+ <span :style="{ color: getAuditStatus(item.auditResult).color }">{{
38
+ getAuditStatus(item.auditResult).text
39
+ }}</span>
40
+ </template>
41
+ </van-cell>
42
+ </template>
43
+
44
+ <script>
45
+ import {Dialog} from "vant";
46
+ import {getAuditStatus} from "./js/global";
47
+
48
+ export default {
49
+ name: "ApprovalNodeCell",
50
+ props: {
51
+ nodeDetail: {
52
+ type: Object,
53
+ required: true
54
+ },
55
+ foldingApprovalComments: {
56
+ type: Boolean,
57
+ default: false
58
+ }
59
+ },
60
+ data() {
61
+ return {
62
+ item: this.nodeDetail
63
+ }
64
+ },
65
+ methods: {
66
+ getAuditStatus,
67
+ showAuditDetail(auditComment) {
68
+ Dialog.alert({
69
+ title: '审批意见',
70
+ message: auditComment,
71
+ }).then(() => {
72
+ // on close
73
+ });
74
+ }
75
+ }
76
+ }
77
+ </script>
78
+
79
+ <style scoped>
80
+ .completed-icon {
81
+ width: 50px;
82
+ height: 50px;
83
+ background-clip: padding-box; /* 使背景不填充边框 */
84
+
85
+ border-radius: 50%;
86
+ margin-right: 1rem;
87
+
88
+ display: flex;
89
+ align-items: center;
90
+ justify-content: center;
91
+
92
+ background: linear-gradient(90deg, #0096FF, #1677FF);
93
+ border: 0.3rem solid rgb(229, 244, 255); /* 半透明边框,颜色和背景色相同 */
94
+ }
95
+
96
+ .pending-icon {
97
+ width: 50px;
98
+ height: 50px;
99
+ background-clip: padding-box; /* 使背景不填充边框 */
100
+
101
+ border-radius: 50%;
102
+ margin-right: 1rem;
103
+
104
+ display: flex;
105
+ align-items: center;
106
+ justify-content: center;
107
+
108
+ background: linear-gradient(90deg, #FF7E00, #FFA200);
109
+ border: 0.4rem solid rgb(255, 245, 229); /* 半透明边框,颜色和背景色相同 */
110
+ }
111
+
112
+ ::v-deep .van-cell__value {
113
+ flex: 0 auto;
114
+ }
115
+ </style>