@lambo-design/workflow-approve 1.0.0-beta.87 → 1.0.0-beta.88
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
CHANGED
|
@@ -278,6 +278,10 @@ export default {
|
|
|
278
278
|
onOk(){
|
|
279
279
|
let self = this
|
|
280
280
|
let idSelectedArr = self.idSelectedArr
|
|
281
|
+
if (self.idSelectedArr.length === 0) {
|
|
282
|
+
self.onCancel()
|
|
283
|
+
return
|
|
284
|
+
}
|
|
281
285
|
self.loading = true
|
|
282
286
|
if (self.helpBoxType ==='addMultitaskInstance'){
|
|
283
287
|
idSelectedArr = [...new Set(idSelectedArr)]
|
|
@@ -59,6 +59,11 @@ export default {
|
|
|
59
59
|
UploadFile
|
|
60
60
|
},
|
|
61
61
|
props: {
|
|
62
|
+
value: {
|
|
63
|
+
type: String,
|
|
64
|
+
required: false,
|
|
65
|
+
default: ''
|
|
66
|
+
},
|
|
62
67
|
attachmentFile:{
|
|
63
68
|
type: Boolean,
|
|
64
69
|
default: false,
|
|
@@ -289,7 +294,7 @@ export default {
|
|
|
289
294
|
},
|
|
290
295
|
},
|
|
291
296
|
mounted() {
|
|
292
|
-
this.auditOpinion = this.defaultAuditOpinion
|
|
297
|
+
this.auditOpinion = this.defaultAuditOpinion || this.value
|
|
293
298
|
},
|
|
294
299
|
watch: {
|
|
295
300
|
auditOpinionText(label) {
|
|
@@ -298,6 +303,9 @@ export default {
|
|
|
298
303
|
auditOpinion(val) {
|
|
299
304
|
this.$emit('input', val)
|
|
300
305
|
},
|
|
306
|
+
value(newVal) {
|
|
307
|
+
this.auditOpinion = newVal;
|
|
308
|
+
},
|
|
301
309
|
defaultAuditOpinion(val) {
|
|
302
310
|
this.auditOpinion = this.defaultAuditOpinion
|
|
303
311
|
this.$emit('input', val)
|
|
@@ -198,6 +198,11 @@ export default {
|
|
|
198
198
|
LamboPagingTable,
|
|
199
199
|
},
|
|
200
200
|
props: {
|
|
201
|
+
value: {
|
|
202
|
+
type: String,
|
|
203
|
+
required: false,
|
|
204
|
+
default: ''
|
|
205
|
+
},
|
|
201
206
|
isDetail: {
|
|
202
207
|
type: Boolean,
|
|
203
208
|
required: false,
|
|
@@ -515,11 +520,15 @@ export default {
|
|
|
515
520
|
mounted() {
|
|
516
521
|
this.getAttachList(this.taskId)
|
|
517
522
|
this.processInfoWidth = this.inHorizontal ? 1000 : this.portraitWidth
|
|
523
|
+
this.form.auditOpinion = this.value;
|
|
518
524
|
},
|
|
519
525
|
watch: {
|
|
520
526
|
'form.auditOpinion'(val) {
|
|
521
527
|
this.$emit('input', val)
|
|
522
528
|
},
|
|
529
|
+
value(newVal) {
|
|
530
|
+
this.form.auditOpinion = newVal;
|
|
531
|
+
},
|
|
523
532
|
defaultAuditOpinion(val) {
|
|
524
533
|
this.auditOpinion = this.defaultAuditOpinion
|
|
525
534
|
this.$emit('input', val)
|
package/src/portrait.vue
CHANGED
|
@@ -165,9 +165,7 @@
|
|
|
165
165
|
</Table>
|
|
166
166
|
</Modal>
|
|
167
167
|
<!-- 下一环节设置弹框 -->
|
|
168
|
-
<Modal v-model="appointBoxShow" title="下一环节设置"
|
|
169
|
-
@on-cancel="appointBoxShow = false" width="600"
|
|
170
|
-
@on-ok="appointOk">
|
|
168
|
+
<Modal v-model="appointBoxShow" title="下一环节设置" width="600">
|
|
171
169
|
<Card v-for="(item,index) of nextNodesFormList" :key="index" style="margin-bottom: 10px"
|
|
172
170
|
v-if="handleButtons && (handleButtons.includes('appointHandler') || handleButtons.includes('appointTimeoutTime'))">
|
|
173
171
|
<Form ref="appointBox" justify="center" :label-width="100" :model="item"
|
|
@@ -250,6 +248,10 @@
|
|
|
250
248
|
</div>
|
|
251
249
|
</Form>
|
|
252
250
|
</Card>
|
|
251
|
+
<template slot="footer">
|
|
252
|
+
<Button @click="appointBoxShow = false">取消</Button>
|
|
253
|
+
<Button type="primary" @click="appointOk">确定</Button>
|
|
254
|
+
</template>
|
|
253
255
|
</Modal>
|
|
254
256
|
<Modal v-model="rejectAttributesBoxShow" title="驳回的节点通过后"
|
|
255
257
|
@on-cancel="rejectAttributesCancel"
|
|
@@ -1301,6 +1303,7 @@ export default {
|
|
|
1301
1303
|
}
|
|
1302
1304
|
if (self.form.auditOpinion == '' || self.form.auditOpinion == null) {
|
|
1303
1305
|
if (self.auditResult === '30') {
|
|
1306
|
+
self.form.auditOpinion = '通过'
|
|
1304
1307
|
self.auditParams.auditOpinion = '通过'
|
|
1305
1308
|
self.businessFormSave ? self.businessFormSave(self.handleSaveResult, auditResult) : self.handleSaveResult(true)
|
|
1306
1309
|
return
|
|
@@ -1765,6 +1768,7 @@ export default {
|
|
|
1765
1768
|
appointOk() {
|
|
1766
1769
|
const self = this
|
|
1767
1770
|
let oldSettings
|
|
1771
|
+
let illegalNodes = []
|
|
1768
1772
|
let params = this.nextNodesFormList.reduce((acc, item) => {
|
|
1769
1773
|
acc[item.id] = {
|
|
1770
1774
|
needUpdate: 'false',
|
|
@@ -1779,17 +1783,25 @@ export default {
|
|
|
1779
1783
|
acc[item.id].timeLimit = ''
|
|
1780
1784
|
}
|
|
1781
1785
|
oldSettings = self.nextNodesOldSettings.filter(oldSetting => oldSetting.id === item.id)[0]
|
|
1786
|
+
if ((!item.assignee && !oldSettings.assignee && !item.candidateGroups && !oldSettings.candidates) || (item.isMultiInstance && !item.candidateGroups && !oldSettings.candidates)){
|
|
1787
|
+
illegalNodes = [...illegalNodes, item.name]
|
|
1788
|
+
}
|
|
1782
1789
|
if (oldSettings.assignee !== item.assignee || self.checkGroupsUpdate(oldSettings.candidates, item.candidateGroups, item.isMultiInstance) || self.checkTimeLimitUpdate(oldSettings.timeLimit, timeLimit)) {
|
|
1783
1790
|
acc[item.id].needUpdate = 'true'
|
|
1784
1791
|
}
|
|
1785
1792
|
return acc
|
|
1786
1793
|
}, {})
|
|
1794
|
+
if (illegalNodes.length > 0){
|
|
1795
|
+
self.$Message.error(`请选择节点${illegalNodes.join(',')}的审批人!`);
|
|
1796
|
+
return
|
|
1797
|
+
}
|
|
1787
1798
|
self.auditParams.nodeConfigMaps = JSON.stringify(params)
|
|
1788
1799
|
self.doPass((execResult, instanceId, taskIds, auditResult, curTaskId) => {
|
|
1789
1800
|
if (this.executionCompleted) {
|
|
1790
1801
|
this.executionCompleted(execResult, instanceId, taskIds, auditResult, curTaskId)
|
|
1791
1802
|
}
|
|
1792
1803
|
})
|
|
1804
|
+
self.appointBoxShow = false
|
|
1793
1805
|
},
|
|
1794
1806
|
checkGroupsUpdate(oldSetting, newSetting, isMultiInstance) {
|
|
1795
1807
|
if (oldSetting && newSetting) {
|