@lambo-design/workflow-approve 1.0.0-beta.12 → 1.0.0-beta.13
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/components/history.vue +1 -0
- package/src/portrait.vue +26 -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.13",
|
|
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.139",
|
|
16
|
+
"@lambo-design/shared": "^1.0.0-beta.205"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"bpmn-js": "^7.3.1",
|
|
@@ -243,6 +243,7 @@ export default {
|
|
|
243
243
|
procName: item.procName,
|
|
244
244
|
effectTime: item.startDate,
|
|
245
245
|
expireTime: item.warningDate,
|
|
246
|
+
applyId: item.applyId,
|
|
246
247
|
};
|
|
247
248
|
let url = self.smartFlowServerContext + "/manage/processTodo/sendMessage";
|
|
248
249
|
ajax.post(url, params).then(function (resp) {
|
package/src/portrait.vue
CHANGED
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
:disabled="disable" :loading="loading" @click="audit('70')">驳回到原点
|
|
196
196
|
</Button>
|
|
197
197
|
<Button style="margin-left: 10px;" v-if="(!handleButtons || handleButtons.includes('auditTo40')) && !isDetail"
|
|
198
|
-
:disabled="disable" :loading="loading" @click="audit('40')"
|
|
198
|
+
:disabled="disable" :loading="loading" @click="audit('40')">驳回上一节点
|
|
199
199
|
</Button>
|
|
200
200
|
<Button style="margin-left: 10px;" v-if="(!handleButtons || handleButtons.includes('auditTo90')) && !isDetail"
|
|
201
201
|
:disabled="disable" :loading="loading" @click="audit('90')">驳回指定节点
|
|
@@ -447,7 +447,7 @@ export default {
|
|
|
447
447
|
}
|
|
448
448
|
}, '已跳转到指定节点')
|
|
449
449
|
])
|
|
450
|
-
} else if (params.row.auditResult == '
|
|
450
|
+
} else if (params.row.auditResult == '90' && params.row.taskNode != this.taskNode) {
|
|
451
451
|
return h('div', [
|
|
452
452
|
h('tag', {
|
|
453
453
|
props: {
|
|
@@ -607,9 +607,9 @@ export default {
|
|
|
607
607
|
console.log(err)
|
|
608
608
|
})
|
|
609
609
|
},
|
|
610
|
-
handleSaveResult(saveResult) {
|
|
610
|
+
handleSaveResult(saveResult, businessParams) {
|
|
611
611
|
if (saveResult) {
|
|
612
|
-
this.executeButtonAction((execResult, instanceId, taskIds, auditResult, curTaskId) => {
|
|
612
|
+
this.executeButtonAction(businessParams,(execResult, instanceId, taskIds, auditResult, curTaskId) => {
|
|
613
613
|
if (this.executionCompleted) {
|
|
614
614
|
this.executionCompleted(execResult, instanceId, taskIds, auditResult, curTaskId);
|
|
615
615
|
}
|
|
@@ -618,8 +618,12 @@ export default {
|
|
|
618
618
|
console.error('保存失败');
|
|
619
619
|
}
|
|
620
620
|
},
|
|
621
|
-
executeButtonAction(callback) {
|
|
621
|
+
executeButtonAction(businessParams, callback) {
|
|
622
622
|
const self = this;
|
|
623
|
+
if (businessParams){
|
|
624
|
+
Object.assign(self.datas, businessParams)
|
|
625
|
+
self.auditParams.params = JSON.stringify(self.datas)
|
|
626
|
+
}
|
|
623
627
|
let auditResult = {
|
|
624
628
|
code: self.auditResult,
|
|
625
629
|
name: self.handleButtonsNames[self.auditResult]
|
|
@@ -639,7 +643,14 @@ export default {
|
|
|
639
643
|
let url = self.smartFlowServerContext + '/manage/processTodo/getPreNode'
|
|
640
644
|
ajax.post(url, self.auditParams).then(function (resp) {
|
|
641
645
|
let result = resp.data
|
|
642
|
-
if
|
|
646
|
+
if(result.code == '30013' || result.code == '30014') {
|
|
647
|
+
//前序节点为子流程或当前节点为子流程第一个节点不可驳回上一级节点
|
|
648
|
+
self.$Message.warning(result.message)
|
|
649
|
+
//避免未提示消息直接回调
|
|
650
|
+
setTimeout(() => {
|
|
651
|
+
callback(false, null, null, auditResult, self.taskId);
|
|
652
|
+
}, 1000)
|
|
653
|
+
} else if (result.code == '30010') {
|
|
643
654
|
self.$Modal.confirm({
|
|
644
655
|
title: "提示",
|
|
645
656
|
content: result.message,
|
|
@@ -659,7 +670,9 @@ export default {
|
|
|
659
670
|
self.loading = false
|
|
660
671
|
self.disable = false
|
|
661
672
|
self.$Message.error(result.message)
|
|
662
|
-
|
|
673
|
+
setTimeout(() => {
|
|
674
|
+
callback(false, null, null, auditResult, self.taskId);
|
|
675
|
+
}, 1000)
|
|
663
676
|
}
|
|
664
677
|
bus.$emit('triggerTimer')
|
|
665
678
|
})
|
|
@@ -689,7 +702,9 @@ export default {
|
|
|
689
702
|
self.loading = false
|
|
690
703
|
self.disable = false
|
|
691
704
|
self.$Message.error(result.message)
|
|
692
|
-
|
|
705
|
+
setTimeout(() => {
|
|
706
|
+
callback(false, null, null, auditResult, self.taskId);
|
|
707
|
+
}, 1000)
|
|
693
708
|
}
|
|
694
709
|
bus.$emit('triggerTimer')
|
|
695
710
|
})
|
|
@@ -720,8 +735,10 @@ export default {
|
|
|
720
735
|
} else {
|
|
721
736
|
self.loading = false
|
|
722
737
|
self.disable = false
|
|
723
|
-
callback(false, null, null, auditResult, self.taskId)
|
|
724
738
|
self.$Message.error(result.message)
|
|
739
|
+
setTimeout(() => {
|
|
740
|
+
callback(false, null, null, auditResult, self.taskId);
|
|
741
|
+
}, 1000)
|
|
725
742
|
}
|
|
726
743
|
bus.$emit('triggerTimer')
|
|
727
744
|
})
|