@lambo-design/workflow-approve 1.0.0-beta.67 → 1.0.0-beta.68
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 +3 -3
- package/src/portrait.vue +15 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lambo-design/workflow-approve",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.68",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "lambo",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"axios": "^0.24.0",
|
|
14
14
|
"axios-cache-plugin": "^0.1.0",
|
|
15
|
-
"@lambo-design/
|
|
16
|
-
"@lambo-design/
|
|
15
|
+
"@lambo-design/core": "^4.7.1-beta.158",
|
|
16
|
+
"@lambo-design/shared": "^1.0.0-beta.253"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"bpmn-js": "^7.3.1",
|
package/src/portrait.vue
CHANGED
|
@@ -205,11 +205,11 @@
|
|
|
205
205
|
highlight-row
|
|
206
206
|
@on-current-change="selectNode">
|
|
207
207
|
</Table>
|
|
208
|
-
<Card
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
208
|
+
<Card v-if="showProcessControl && auditResult == '90'">
|
|
209
|
+
<p slot="title">选择驳回后流程流转方式:</p>
|
|
210
|
+
<RadioGroup v-model="rejectAttribute">
|
|
211
|
+
<Radio v-for="(item, index) in rejectAttributeList" :key="index" :label="item.type">{{item.name}}</Radio>
|
|
212
|
+
</RadioGroup>
|
|
213
213
|
</Card>
|
|
214
214
|
</Modal>
|
|
215
215
|
<assigneeBox ref="assigneeHelpBox" :execution-completed="executionCompleted"
|
|
@@ -457,6 +457,12 @@ export default {
|
|
|
457
457
|
required: false,
|
|
458
458
|
default: 'click',
|
|
459
459
|
},
|
|
460
|
+
//驳回后是否可控制流程流转
|
|
461
|
+
showProcessControl: {
|
|
462
|
+
type: Boolean,
|
|
463
|
+
required: false,
|
|
464
|
+
default: true,
|
|
465
|
+
},
|
|
460
466
|
//业务表单保存方法
|
|
461
467
|
businessFormSave: {
|
|
462
468
|
type: Function,
|
|
@@ -1319,7 +1325,7 @@ export default {
|
|
|
1319
1325
|
self.getNodesBehind()
|
|
1320
1326
|
} else if (self.auditResult === '90') {
|
|
1321
1327
|
//驳回到前序指定节点
|
|
1322
|
-
self.getProcessAttributes()
|
|
1328
|
+
self.showProcessControl ? self.getProcessAttributes() : ''
|
|
1323
1329
|
self.getAllPreNodes()
|
|
1324
1330
|
} else if (self.auditResult === '40') {
|
|
1325
1331
|
//驳回到上一级
|
|
@@ -1378,14 +1384,14 @@ export default {
|
|
|
1378
1384
|
self.executionCompleted(true, null, null, auditResult, self.curTaskId)
|
|
1379
1385
|
}, 1000)
|
|
1380
1386
|
} else {
|
|
1381
|
-
self.getProcessAttributes()
|
|
1387
|
+
self.showProcessControl ? self.getProcessAttributes() : self.doPass()
|
|
1382
1388
|
}
|
|
1383
1389
|
})
|
|
1384
1390
|
} else {
|
|
1385
1391
|
if (self.auditResult === '30' && !self.rejectedTask && (!self.handleButtons || self.handleButtons.includes('appointHandler') || self.handleButtons.includes('appointTimeoutTime'))) {
|
|
1386
1392
|
self.getNextNodes()
|
|
1387
1393
|
self.appointBoxShow = true
|
|
1388
|
-
} else if (self.auditResult === '70'){
|
|
1394
|
+
} else if (self.showProcessControl && self.auditResult === '70'){
|
|
1389
1395
|
self.getProcessAttributes()
|
|
1390
1396
|
} else {
|
|
1391
1397
|
self.doPass()
|
|
@@ -1866,7 +1872,7 @@ export default {
|
|
|
1866
1872
|
|
|
1867
1873
|
ajax.get(self.smartFlowServerContext + '/manage/processTodo/getProcessAttributes', { params: params }).then(function (resp) {
|
|
1868
1874
|
if (resp.data.code === '200') {
|
|
1869
|
-
if ((self.auditParams.auditResult == '70' && !resp.data.data.jumpFirstNode) || (self.auditParams.auditResult == '40' && resp.data.data.multiNode)){
|
|
1875
|
+
if ((self.auditParams.auditResult == '70' && !resp.data.data.jumpFirstNode) || (self.auditParams.auditResult == '40' && (resp.data.data.multiNode || resp.data.data.preNodeGateway))){
|
|
1870
1876
|
self.doPass()
|
|
1871
1877
|
return
|
|
1872
1878
|
} else {
|