@lambo-design/workflow-approve 1.0.0-beta.33 → 1.0.0-beta.36
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 +2 -2
- package/src/components/candidate-groups-box.vue +2072 -2074
- package/src/components/history.vue +400 -395
- package/src/portrait.vue +24 -4
- package/src/workflow-diagram.vue +4 -3
package/src/portrait.vue
CHANGED
|
@@ -658,7 +658,11 @@ export default {
|
|
|
658
658
|
render: (h, {row, column, index}) => {
|
|
659
659
|
let label = "";
|
|
660
660
|
let tagColor = "";
|
|
661
|
-
if (row.auditResult == '
|
|
661
|
+
if (row.auditResult == '00'){
|
|
662
|
+
label = '流程发起';
|
|
663
|
+
tagColor = 'green'; // 绿色
|
|
664
|
+
}
|
|
665
|
+
else if (row.auditResult == '30'){
|
|
662
666
|
label = '通过';
|
|
663
667
|
tagColor = 'green'; // 绿色
|
|
664
668
|
}
|
|
@@ -1133,6 +1137,14 @@ export default {
|
|
|
1133
1137
|
self.disable = false
|
|
1134
1138
|
}
|
|
1135
1139
|
})
|
|
1140
|
+
} else if (result.code == '10012') {
|
|
1141
|
+
// 数据同步
|
|
1142
|
+
self.loading = false
|
|
1143
|
+
self.disable = false
|
|
1144
|
+
self.$Message.warning(result.message)
|
|
1145
|
+
setTimeout(() => {
|
|
1146
|
+
self.executionCompleted(true, null, null, auditResult, self.curTaskId)
|
|
1147
|
+
}, 1000)
|
|
1136
1148
|
} else {
|
|
1137
1149
|
self.loading = true
|
|
1138
1150
|
self.disable = true
|
|
@@ -1164,7 +1176,7 @@ export default {
|
|
|
1164
1176
|
}
|
|
1165
1177
|
})
|
|
1166
1178
|
} else {
|
|
1167
|
-
if (!self.handleButtons || self.handleButtons.includes('appointHandler') || self.handleButtons.includes('appointTimeoutTime')){
|
|
1179
|
+
if (self.auditResult === '30' && (!self.handleButtons || self.handleButtons.includes('appointHandler') || self.handleButtons.includes('appointTimeoutTime'))){
|
|
1168
1180
|
self.getNextNodes()
|
|
1169
1181
|
self.appointBoxShow = true
|
|
1170
1182
|
} else {
|
|
@@ -1203,6 +1215,14 @@ export default {
|
|
|
1203
1215
|
self.executionCompleted(true, null, null, auditResult, self.curTaskId)
|
|
1204
1216
|
}, 1000)
|
|
1205
1217
|
}
|
|
1218
|
+
} else if (result.code == '10012') {
|
|
1219
|
+
// 数据同步
|
|
1220
|
+
self.loading = false
|
|
1221
|
+
self.disable = false
|
|
1222
|
+
self.$Message.warning(result.message)
|
|
1223
|
+
setTimeout(() => {
|
|
1224
|
+
self.executionCompleted(true, null, null, auditResult, self.curTaskId)
|
|
1225
|
+
}, 1000)
|
|
1206
1226
|
} else if (result.code == '20002') {
|
|
1207
1227
|
// 流程结束
|
|
1208
1228
|
self.loading = false
|
|
@@ -1472,12 +1492,12 @@ export default {
|
|
|
1472
1492
|
return false
|
|
1473
1493
|
},
|
|
1474
1494
|
readingRangeClick(item) {
|
|
1475
|
-
let permScope = item.
|
|
1495
|
+
let permScope = item.orgTreeType === this.defaultOrganTreeType ? this.permScope : 'all'
|
|
1476
1496
|
let orgTreeType = item.orgTreeType ? item.orgTreeType : this.defaultOrganTreeType
|
|
1477
1497
|
this.$refs.assigneeHelpBox.toggleShowHelpBox(orgTreeType, permScope, 'transferNextTask', item.id)
|
|
1478
1498
|
},
|
|
1479
1499
|
candidateGroupsReadingRangeClick(item) {
|
|
1480
|
-
let permScope = item.
|
|
1500
|
+
let permScope = item.orgTreeType === this.defaultOrganTreeType ? this.permScope : 'all'
|
|
1481
1501
|
let orgTreeType = item.orgTreeType ? item.orgTreeType : this.defaultOrganTreeType
|
|
1482
1502
|
this.$refs.candidateGroupsHelpBox.toggleShowHelpBox(permScope, item.candidates, orgTreeType, item.id);
|
|
1483
1503
|
},
|
package/src/workflow-diagram.vue
CHANGED
|
@@ -53,7 +53,8 @@
|
|
|
53
53
|
<Row>
|
|
54
54
|
<i-col span="12" offset="0">
|
|
55
55
|
<FormItem :label="item.handleName ? item.handleName + '结果:' : '审批结果:'">
|
|
56
|
-
<Tag color="green" v-if="item.auditResult == '
|
|
56
|
+
<Tag color="green" v-if="item.auditResult == '00'">流程发起</Tag>
|
|
57
|
+
<Tag color="green" v-else-if="item.auditResult == '30'">通过</Tag>
|
|
57
58
|
<Tag color="volcano" v-else-if="item.auditResult == '40'">驳回上一节点</Tag>
|
|
58
59
|
<Tag color="red" v-else-if="item.auditResult=='50'">驳回到原点</Tag>
|
|
59
60
|
<Tag color="purple" v-else-if="item.auditResult=='51'">流程终止</Tag>
|
|
@@ -64,8 +65,8 @@
|
|
|
64
65
|
</FormItem>
|
|
65
66
|
</i-col>
|
|
66
67
|
<i-col span="12" offset="0">
|
|
67
|
-
<FormItem v-if="item.startDate" label="
|
|
68
|
-
{{ item.
|
|
68
|
+
<FormItem v-if="item.startDate" label="接收时间:">
|
|
69
|
+
{{ item.createTime }}
|
|
69
70
|
</FormItem>
|
|
70
71
|
<FormItem v-else :label="item.handleName ? item.handleName + '时间:' : '审批时间:'">
|
|
71
72
|
{{ item.auditDate }}
|