@lambo-design-mobile/workflow-approve 1.0.0-beta.4 → 1.0.0-beta.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/CHANGELOG.md CHANGED
@@ -1,4 +1,23 @@
1
1
  # Changelog
2
+ ## [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)
3
+
4
+
5
+ ### 🐛 Bug Fixes | Bug 修复
6
+
7
+ * **workflow-approve:** 选择处理人时重置用户ID ([d2c880e](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/commit/d2c880ec9a4bde5a28c7451c0d4269a4587df4e5))
8
+
9
+
10
+ ### ✨ Features | 新功能
11
+
12
+ * **workflow-approve:** 动态获取组织结构类型 ([b118a59](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/commit/b118a5917fb77377401b199d321c4bc32954b2c2))
13
+
14
+ ## [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)
15
+
16
+
17
+ ### 🐛 Bug Fixes | Bug 修复
18
+
19
+ * **@lambo-design-mobile/workflow-approve:** 修复流程审批中执行完成的参数传递问题 ([6d1fa59](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/commit/6d1fa590cb665c848f1159de33085476ad2daf88))
20
+
2
21
  ## [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)
3
22
 
4
23
 
package/api.js CHANGED
@@ -260,7 +260,7 @@ export const getUserList = (offset, limit, searchForm = {}) => {
260
260
  const params = {
261
261
  offset: offset,
262
262
  limit: limit,
263
- orgTreeType: "00",
263
+ orgTreeType: searchForm.orgTreeType || '00',
264
264
  permScopeList: searchForm.permScopeList || 'all',
265
265
  userId: searchForm.userId || '',
266
266
  userName: searchForm.userName || '',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lambo-design-mobile/workflow-approve",
3
- "version": "1.0.0-beta.4",
3
+ "version": "1.0.0-beta.6",
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.9",
17
16
  "@lambo-design-mobile/lambo-scan-code": "^1.0.0-beta.1",
18
- "@lambo-design-mobile/shared": "^1.0.0-beta.12"
17
+ "@lambo-design-mobile/shared": "^1.0.0-beta.12",
18
+ "@lambo-design-mobile/upload-file": "^1.0.0-beta.9"
19
19
  },
20
20
  "scripts": {
21
21
  "release": "pnpm release-beta && git push --follow-tags && pnpm re-publish",
@@ -24,12 +24,14 @@
24
24
  />
25
25
  <div v-if="approvalForm.nextNode!==''">
26
26
  <van-cell title="下一环节" :value="approvalForm.nextNode"/>
27
- <van-cell @click="nextNodePopupShow = true" title="办理人员" value-class="approvalForm-value"
28
- :value="approvalForm.handlingPersonnel">
29
- <template #right-icon>
30
- <van-icon name="friends-o" size="16" style="line-height: inherit;padding-left: 5px"/>
31
- </template>
32
- </van-cell>
27
+ <div v-if="handleButtons.includes('appointHandler')">
28
+ <van-cell @click="nextNodePopupShow = true" title="办理人员" value-class="approvalForm-value"
29
+ :value="approvalForm.handlingPersonnel">
30
+ <template #right-icon>
31
+ <van-icon name="friends-o" size="16" style="line-height: inherit;padding-left: 5px"/>
32
+ </template>
33
+ </van-cell>
34
+ </div>
33
35
  <div class="van-hairline--bottom"></div>
34
36
  </div>
35
37
  <div v-else>
@@ -237,17 +239,17 @@
237
239
  </div>
238
240
  </template>
239
241
  </van-cell>
242
+ <van-field
243
+ readonly
244
+ clickable
245
+ input-align="right"
246
+ name="picker"
247
+ :value="(handleTypeList.find(handleType => handleType.value === item.processing) || {}).label"
248
+ label="处理方式"
249
+ placeholder="点击选择处理方式"
250
+ @click="$set(showPicker, index, true)"
251
+ />
240
252
  </div>
241
- <van-field
242
- readonly
243
- clickable
244
- input-align="right"
245
- name="picker"
246
- :value="(handleTypeList.find(handleType => handleType.value === item.processing) || {}).label"
247
- label="处理方式"
248
- placeholder="点击选择处理方式"
249
- @click="$set(showPicker, index, true)"
250
- />
251
253
  <van-popup v-model="showPicker[index]" position="bottom">
252
254
  <van-picker
253
255
  show-toolbar
@@ -364,7 +366,11 @@ export default {
364
366
  processTraceRouterName: {
365
367
  type: String,
366
368
  required: true,
367
- }
369
+ },
370
+ activeFirstTab: {
371
+ type: Boolean,
372
+ default: false,
373
+ },
368
374
  },
369
375
  data() {
370
376
  return {
@@ -461,7 +467,7 @@ export default {
461
467
  this.nextNodeProcessedData = this.processData(result.data);
462
468
  this.approvalForm.nextNode = result.data.map(node => node.name).join(',');
463
469
  this.approvalForm.handlingPersonnel = result.data
464
- .map(node => node.assignee?.name || '未指定')
470
+ .map(node => node.assignee?.name || '候选人')
465
471
  .join(',');
466
472
  }
467
473
  })
@@ -621,7 +627,7 @@ export default {
621
627
  }, {});
622
628
  this.approvalForm.nodeConfigMaps = JSON.stringify(params)
623
629
  this.approvalForm.handlingPersonnel = this.nextNodeProcessedData
624
- .map(node => node.assignee?.name || '未指定')
630
+ .map(node => node.personType === "assignee" ? node.assignee?.name : '候选人')
625
631
  .join(',');
626
632
  this.nextNodePopupShow = false;
627
633
  } else {
@@ -846,7 +852,7 @@ export default {
846
852
  this.executionCompleted(true, result.data.processInstanceId, taskIds, auditResult, self.taskId);
847
853
  }
848
854
  } else {
849
- this.executionCompleted(true, null, null);
855
+ this.executionCompleted(true, null, null, auditResult, self.taskId);
850
856
  }
851
857
  Toast.success(result.message);
852
858
  } else if (result.code === '20002') {
@@ -983,12 +989,16 @@ export default {
983
989
  },
984
990
  },
985
991
  activated() {
986
- this.updateActiveTab();
992
+ if (!this.activeFirstTab) {
993
+ this.updateActiveTab();
994
+ }
987
995
  },
988
996
  mounted() {
989
997
  this.initData()
990
998
  // 默认选中最后一个tab页
991
- this.updateActiveTab();
999
+ if (!this.activeFirstTab) {
1000
+ this.updateActiveTab();
1001
+ }
992
1002
  }
993
1003
 
994
1004
  };
@@ -98,6 +98,7 @@ export default {
98
98
  searchFilterBadge: false,
99
99
  searchForm: {
100
100
  userId: '',
101
+ orgTreeType: '',
101
102
  userName: '',
102
103
  permScopeList: '',
103
104
  organId: '',
@@ -125,6 +126,7 @@ export default {
125
126
  if (result.code === 1) {
126
127
  this.searchForm.organId = result.data[0].organId;
127
128
  this.searchForm.organTitle = result.data[0].organName;
129
+ this.searchForm.userId = '';
128
130
  }
129
131
  this.handleLoad()
130
132
  })
@@ -136,8 +138,8 @@ export default {
136
138
 
137
139
  getProcessType(this.procType).then(res => {
138
140
 
141
+ this.searchForm.orgTreeType = res.data.data.rows[0].organTreeType;
139
142
  const userArray = this.extractUsers(res.data.data.rows[0].permScope);
140
- console.log(userArray)
141
143
  if (userArray.length > 0) {
142
144
  this.searchForm.permScopeList = userArray.join(',')
143
145
  }