@lambo-design-mobile/workflow-approve 1.0.0-beta.1 → 1.0.0-beta.10

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,8 +1,66 @@
1
1
  # Changelog
2
- ## 1.0.0-beta.1 (2024-10-09)
2
+ ## [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)
3
+
4
+ ## [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)
5
+
6
+
7
+ ### ✨ Features | 新功能
8
+
9
+ * **workflow-approve:** 添加审批意见折叠功能 ([52d1709](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/commit/52d170906d24b7ffb587f95807f2e81a7debb6fe))
10
+
11
+ ## [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)
12
+
13
+
14
+ ### ♻️ Code Refactoring | 代码重构
15
+
16
+ * **workflow-approve:** 修改 getNextNodes 请求方法为 POST ([5486961](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/commit/54869618e32ee13f26dcef21507e2309d8ac2469))
17
+
18
+
19
+ ### 🐛 Bug Fixes | Bug 修复
20
+
21
+ * **workflow-approve:** 修复待办列表卡片中的表单链接错误 ([0575ae8](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/commit/0575ae81a488766cdad79f335d24fa2ecf2450da))
22
+
23
+ ## [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)
24
+
25
+
26
+ ### ✨ Features | 新功能
27
+
28
+ * **workflow-approve:** 优化审批页面功能 ([f18679c](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/commit/f18679c7769644df4606d0832d6ec7c558dfe189))
29
+
30
+ ## [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)
31
+
32
+
33
+ ### 🐛 Bug Fixes | Bug 修复
34
+
35
+ * **workflow-approve:** 选择处理人时重置用户ID ([d2c880e](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/commit/d2c880ec9a4bde5a28c7451c0d4269a4587df4e5))
3
36
 
4
37
 
5
38
  ### ✨ Features | 新功能
6
39
 
7
- * **@lambo-design-mobile/workflow-approve:** 新增流程中心移动端组件 ([bcdf45c](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/commit/bcdf45cb682e1ea5f3205b473a2c04060a660460))
8
- * **@lambo-design-mobile/workflow-approve:** 新增流程中心移动端组件 ([14df440](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/commit/14df44002a9b20f6cb979bebc8902b5cd78bb57f))
40
+ * **workflow-approve:** 动态获取组织结构类型 ([b118a59](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/commit/b118a5917fb77377401b199d321c4bc32954b2c2))
41
+
42
+ ## [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)
43
+
44
+
45
+ ### 🐛 Bug Fixes | Bug 修复
46
+
47
+ * **@lambo-design-mobile/workflow-approve:** 修复流程审批中执行完成的参数传递问题 ([6d1fa59](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/commit/6d1fa590cb665c848f1159de33085476ad2daf88))
48
+
49
+ ## [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)
50
+
51
+
52
+ ### 🐛 Bug Fixes | Bug 修复
53
+
54
+ * **@lambo-design-mobile/workflow-approve:** 修复待办列表卡片组件中的 URL错误 ([8ca75a9](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/commit/8ca75a9278313ebc4679b9e14546066085678e81))
55
+
56
+ ## [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)
57
+
58
+ ## [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)
59
+
60
+ ## 1.0.0-beta.1 (2024-10-09)
61
+
62
+
63
+ ### ✨ Features | 新功能
64
+
65
+ * **@lambo-design-mobile/workflow-approve:** 新增流程中心移动端组件 ([bcdf45c](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/commit/bcdf45cb682e1ea5f3205b473a2c04060a660460))
66
+ * **@lambo-design-mobile/workflow-approve:** 新增流程中心移动端组件 ([14df440](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/commit/14df44002a9b20f6cb979bebc8902b5cd78bb57f))
package/README.md CHANGED
@@ -1,39 +1,3 @@
1
1
  # 工作流
2
-
3
- ### 介绍
4
-
5
-
6
-
7
- ### 引入
8
-
9
- ``` javascript
10
-
11
- ```
12
-
13
- ## 代码演示
14
-
15
- ### 基础用法
16
-
17
- ```html
18
- ```
19
-
20
- ```javascript
21
-
22
-
23
- ```
24
-
25
-
26
-
27
-
28
- ### Props
29
-
30
- | 参数 | 说明 | 类型 | 默认值 | 版本 |
31
- |------------------|-------------------|---------|------------------|----|
32
-
33
-
34
-
35
- ### Events
36
-
37
- | 事件名 | 说明 | 回调参数 |
38
- |------------------|------------|-------|
39
-
2
+ 【腾讯文档】移动端工作流组件库
3
+ https://docs.qq.com/aio/DRGlBZFd5UVRWQU9C
package/api.js CHANGED
@@ -165,7 +165,7 @@ export const getNextNodes = (procId, taskNode) => {
165
165
  };
166
166
  return ajax.request({
167
167
  url: config.smartFlowServerContext + "/manage/processTodo/getNextNodes",
168
- method: 'get',
168
+ method: 'post',
169
169
  params: params,
170
170
  })
171
171
  }
@@ -243,14 +243,25 @@ export const batchApproval = (status, flowIds, auditOpinion) => {
243
243
  }));
244
244
  }
245
245
 
246
+ export const getProcessType = (proType) => {
247
+ const params = {
248
+ proType: proType,
249
+ };
250
+ return ajax.request({
251
+ url: config.smartFlowServerContext + "/manage/processType/lists",
252
+ method: 'get',
253
+ params: params
254
+ })
255
+ }
256
+
246
257
  export const getUserList = (offset, limit, searchForm = {}) => {
247
258
 
248
259
  // 处理 searchForm 的各个字段,确保即使未传值也有默认空字符串
249
260
  const params = {
250
261
  offset: offset,
251
262
  limit: limit,
252
- orgTreeType: "00",
253
- permScopeList: "all",
263
+ orgTreeType: searchForm.orgTreeType || '00',
264
+ permScopeList: searchForm.permScopeList || 'all',
254
265
  userId: searchForm.userId || '',
255
266
  userName: searchForm.userName || '',
256
267
  organId: searchForm.organId || '',
@@ -274,4 +285,45 @@ export const getOrgRootTree = () => {
274
285
  method: 'get',
275
286
  params: params,
276
287
  });
288
+ }
289
+
290
+ export const getOrgSubNodes = (organCode) => {
291
+ const params = {
292
+ treeTypeId: "00",
293
+ organCode: organCode,
294
+ };
295
+ return ajax.request({
296
+ url: config.upmsServerContext + "/manage/ucOrgan/getOrgSubNodes",
297
+ method: 'get',
298
+ params: params,
299
+ });
300
+ }
301
+
302
+ export const getPosition = (positionId) => {
303
+ const params = {
304
+ positionId: positionId,
305
+ };
306
+ return ajax.request({
307
+ url: config.smartFlowServerContext + "/manage/position/get",
308
+ method: 'get',
309
+ params: params
310
+ })
311
+ }
312
+
313
+ export const getRole = (roleId) => {
314
+ return ajax.request({
315
+ url: config.upmsServerContext + "/manage/role/get/" + roleId,
316
+ method: 'get',
317
+ })
318
+ }
319
+
320
+ export const getOrgan = (organId) => {
321
+ const data = {
322
+ orgTreeType: "00",
323
+ };
324
+ return ajax.request({
325
+ url: config.upmsServerContext + "/manage/org/get/" + organId,
326
+ method: 'post',
327
+ data
328
+ })
277
329
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lambo-design-mobile/workflow-approve",
3
- "version": "1.0.0-beta.1",
3
+ "version": "1.0.0-beta.10",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "lambo",
@@ -14,8 +14,8 @@
14
14
  },
15
15
  "devDependencies": {
16
16
  "@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"
17
+ "@lambo-design-mobile/upload-file": "^1.0.0-beta.10",
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,114 @@
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>{{ item.taskName }}</div>
21
+ <div>
22
+ <div v-if="foldingApprovalComments">
23
+ <span v-if="item.auditComment" @click="showAuditDetail(item.auditComment)">
24
+ 审批意见 <van-icon name="comment-circle-o"/>
25
+ </span>
26
+ </div>
27
+ <div v-else>
28
+ 意见: {{ item.auditComment }}
29
+ </div>
30
+ </div>
31
+ </template>
32
+ <template v-slot:label>
33
+ <div>{{ item.auditDate || item.createTime }}</div>
34
+ </template>
35
+ <template v-slot:default>
36
+ <span :style="{ color: getAuditStatus(item.auditResult).color }">{{
37
+ getAuditStatus(item.auditResult).text
38
+ }}</span>
39
+ </template>
40
+ </van-cell>
41
+ </template>
42
+
43
+ <script>
44
+ import {Dialog} from "vant";
45
+ import {getAuditStatus} from "./js/global";
46
+
47
+ export default {
48
+ name: "ApprovalNodeCell",
49
+ props: {
50
+ nodeDetail: {
51
+ type: Object,
52
+ required: true
53
+ },
54
+ foldingApprovalComments: {
55
+ type: Boolean,
56
+ default: false
57
+ }
58
+ },
59
+ data() {
60
+ return {
61
+ item: this.nodeDetail
62
+ }
63
+ },
64
+ methods: {
65
+ getAuditStatus,
66
+ showAuditDetail(auditComment) {
67
+ Dialog.alert({
68
+ title: '审批意见',
69
+ message: auditComment,
70
+ }).then(() => {
71
+ // on close
72
+ });
73
+ }
74
+ }
75
+ }
76
+ </script>
77
+
78
+ <style scoped>
79
+ .completed-icon {
80
+ width: 50px;
81
+ height: 50px;
82
+ background-clip: padding-box; /* 使背景不填充边框 */
83
+
84
+ border-radius: 50%;
85
+ margin-right: 1rem;
86
+
87
+ display: flex;
88
+ align-items: center;
89
+ justify-content: center;
90
+
91
+ background: linear-gradient(90deg, #0096FF, #1677FF);
92
+ border: 0.3rem solid rgb(229, 244, 255); /* 半透明边框,颜色和背景色相同 */
93
+ }
94
+
95
+ .pending-icon {
96
+ width: 50px;
97
+ height: 50px;
98
+ background-clip: padding-box; /* 使背景不填充边框 */
99
+
100
+ border-radius: 50%;
101
+ margin-right: 1rem;
102
+
103
+ display: flex;
104
+ align-items: center;
105
+ justify-content: center;
106
+
107
+ background: linear-gradient(90deg, #FF7E00, #FFA200);
108
+ border: 0.4rem solid rgb(255, 245, 229); /* 半透明边框,颜色和背景色相同 */
109
+ }
110
+
111
+ ::v-deep .van-cell__value {
112
+ flex: 0 auto;
113
+ }
114
+ </style>