@lambo-design/workflow-approve 1.0.0-beta.27 → 1.0.0-beta.29
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 +389 -389
- package/src/portrait.vue +173 -153
package/src/portrait.vue
CHANGED
|
@@ -188,107 +188,108 @@
|
|
|
188
188
|
<Modal title="查看附件" v-model="modalDocx" fullscreen scrollable :mask="false">
|
|
189
189
|
<div ref="file"></div>
|
|
190
190
|
</Modal>
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
191
|
+
</lamboIndicatorCard>
|
|
192
|
+
</transition>
|
|
193
|
+
|
|
194
|
+
<Modal v-model="modal1" title="选择节点"
|
|
195
|
+
@on-cancel="cancel"
|
|
196
|
+
@on-ok="doPass">
|
|
197
|
+
<Table border
|
|
198
|
+
:data="allNode"
|
|
199
|
+
:columns="nodeColumn"
|
|
200
|
+
highlight-row
|
|
201
|
+
@on-current-change="selectNode">
|
|
202
|
+
</Table>
|
|
203
|
+
</Modal>
|
|
204
|
+
<assigneeBox ref="assigneeHelpBox" :execution-completed="executionCompleted"
|
|
205
|
+
@update-selected="handleSelectedUser" @update-next-node-assignee="updateNextNodeAssignee"
|
|
206
|
+
:data="assigneeBoxData" :smart-flow-server-context="smartFlowServerContext"
|
|
207
|
+
:upms-server-context="upmsServerContext"/>
|
|
208
|
+
<Modal v-model="modalBoxShow" width="1000" title="流程跟踪图">
|
|
209
|
+
<Workflow_Diagram ref="processTrace" :instanceId="process.instanceId" :applyId="process.applyId"
|
|
210
|
+
:procId="process.procId" :table-columns="diagramTableColumns"
|
|
211
|
+
:tableData="process.tableData" :hisAudit="hisAudit"
|
|
212
|
+
:smart-flow-server-context="smartFlowServerContext">
|
|
213
|
+
</Workflow_Diagram>
|
|
214
|
+
</Modal>
|
|
215
|
+
<Modal v-model="appointBoxShow" title="下一环节设置"
|
|
216
|
+
@on-cancel="appointBoxShow = false" width="600"
|
|
217
|
+
@on-ok="appointOk">
|
|
218
|
+
<Card v-for="(item,index) of nextNodesFormList" :key="index" style="margin-bottom: 10px"
|
|
219
|
+
v-if="handleButtons && (handleButtons.includes('appointHandler') || handleButtons.includes('appointTimeoutTime'))">
|
|
220
|
+
<Form ref="appointBox" justify="center" :label-width="100" :model="item"
|
|
221
|
+
style="margin: 10px 0 0 10px;" :rules="ruleValidate">
|
|
222
|
+
<div v-if="handleButtons && handleButtons.includes('appointHandler')">
|
|
223
|
+
<FormItem label="下一环节:">
|
|
224
|
+
{{ item.name }}
|
|
225
|
+
</FormItem>
|
|
226
|
+
<FormItem label="人员类型:" v-if="!item.isMultiInstance">
|
|
227
|
+
<RadioGroup v-model="item.actionType">
|
|
228
|
+
<Radio label="ASSIGNEE">办理人</Radio>
|
|
229
|
+
<Radio label="CAND">候选人</Radio>
|
|
230
|
+
</RadioGroup>
|
|
231
|
+
</FormItem>
|
|
232
|
+
<FormItem label="办理人员:" prop="assignee" v-if="!item.isMultiInstance && item.actionType === 'ASSIGNEE'">
|
|
233
|
+
<Input v-model="item.assigneeName"
|
|
234
|
+
placeholder="请选择办理人"
|
|
235
|
+
style="width: 68%"
|
|
236
|
+
icon="md-apps"
|
|
237
|
+
@on-focus="readingRangeClick(item)"
|
|
238
|
+
@on-click="readingRangeClick(item)"/>
|
|
239
|
+
</FormItem>
|
|
240
|
+
<FormItem label="候选人员:" prop="candidateGroups" v-if="item.isMultiInstance || item.actionType === 'CAND'">
|
|
241
|
+
<Input v-model="item.candidateNames"
|
|
242
|
+
placeholder="请选择候选人"
|
|
243
|
+
style="width: 68%"
|
|
244
|
+
icon="md-apps"
|
|
245
|
+
@on-focus="candidateGroupsReadingRangeClick(item)"
|
|
246
|
+
@on-click="candidateGroupsReadingRangeClick(item)"/>
|
|
247
|
+
</FormItem>
|
|
248
|
+
</div>
|
|
249
|
+
<div v-if="handleButtons && handleButtons.includes('appointTimeoutTime')">
|
|
250
|
+
<Row>
|
|
251
|
+
<Col span="12">
|
|
252
|
+
<FormItem label="停留时间:">
|
|
253
|
+
<Input v-model="item.remainDay" style="width: 100px" type="number" :min="0"></Input>
|
|
254
|
+
天
|
|
228
255
|
</FormItem>
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
@on-click="readingRangeClick(item)"/>
|
|
256
|
+
</Col>
|
|
257
|
+
<Col span="12">
|
|
258
|
+
<FormItem>
|
|
259
|
+
<Input v-model="item.remainTime" style="margin-left: -140px; width: 100px" type="number"
|
|
260
|
+
:min="0"></Input>
|
|
261
|
+
小时 自动处理
|
|
236
262
|
</FormItem>
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
263
|
+
</Col>
|
|
264
|
+
</Row>
|
|
265
|
+
<Row>
|
|
266
|
+
<Col span="12">
|
|
267
|
+
<FormItem label="任务提前:">
|
|
268
|
+
<Input v-model="item.inAdvanceDay" style="width: 100px" type="number" :min="0"></Input>
|
|
269
|
+
天
|
|
244
270
|
</FormItem>
|
|
245
|
-
</
|
|
246
|
-
<
|
|
247
|
-
<
|
|
248
|
-
<
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
天
|
|
252
|
-
</FormItem>
|
|
253
|
-
</Col>
|
|
254
|
-
<Col span="12">
|
|
255
|
-
<FormItem>
|
|
256
|
-
<Input v-model="item.remainTime" style="margin-left: -140px; width: 100px" type="number"
|
|
257
|
-
:min="0"></Input>
|
|
258
|
-
小时 自动处理
|
|
259
|
-
</FormItem>
|
|
260
|
-
</Col>
|
|
261
|
-
</Row>
|
|
262
|
-
<Row>
|
|
263
|
-
<Col span="12">
|
|
264
|
-
<FormItem label="任务提前:">
|
|
265
|
-
<Input v-model="item.inAdvanceDay" style="width: 100px" type="number" :min="0"></Input>
|
|
266
|
-
天
|
|
267
|
-
</FormItem>
|
|
268
|
-
</Col>
|
|
269
|
-
<Col span="12">
|
|
270
|
-
<FormItem>
|
|
271
|
-
<Input v-model="item.inAdvanceTime" style="margin-left: -140px;width: 100px" type="number"
|
|
272
|
-
:min="0"></Input>
|
|
273
|
-
小时 标红预警
|
|
274
|
-
</FormItem>
|
|
275
|
-
</Col>
|
|
276
|
-
</Row>
|
|
277
|
-
<FormItem label="处理方式:">
|
|
278
|
-
<Select v-model="item.processing" style="width:200px" placeholder="自动同意">
|
|
279
|
-
<Option v-for="item in handleTypeList" :value="item.value" :key="item.value">
|
|
280
|
-
{{ item.label }}
|
|
281
|
-
</Option>
|
|
282
|
-
</Select>
|
|
271
|
+
</Col>
|
|
272
|
+
<Col span="12">
|
|
273
|
+
<FormItem>
|
|
274
|
+
<Input v-model="item.inAdvanceTime" style="margin-left: -140px;width: 100px" type="number"
|
|
275
|
+
:min="0"></Input>
|
|
276
|
+
小时 标红预警
|
|
283
277
|
</FormItem>
|
|
284
|
-
</
|
|
285
|
-
</
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
278
|
+
</Col>
|
|
279
|
+
</Row>
|
|
280
|
+
<FormItem label="处理方式:">
|
|
281
|
+
<Select v-model="item.processing" style="width:200px" placeholder="自动同意">
|
|
282
|
+
<Option v-for="item in handleTypeList" :value="item.value" :key="item.value">
|
|
283
|
+
{{ item.label }}
|
|
284
|
+
</Option>
|
|
285
|
+
</Select>
|
|
286
|
+
</FormItem>
|
|
287
|
+
</div>
|
|
288
|
+
</Form>
|
|
289
|
+
</Card>
|
|
290
|
+
</Modal>
|
|
291
|
+
<candidateGroupsHelpBox ref="candidateGroupsHelpBox" :show="candidateGroupsHelpBoxShow" @update-cand-groups="updateCandGroups"
|
|
292
|
+
:upms-server-context="upmsServerContext" :smart-flow-server-context="smartFlowServerContext"/>
|
|
292
293
|
<template slot="page-footer">
|
|
293
294
|
<div>
|
|
294
295
|
<slot name="footer-button"></slot>
|
|
@@ -366,6 +367,16 @@ export default {
|
|
|
366
367
|
type: String,
|
|
367
368
|
required: true,
|
|
368
369
|
},
|
|
370
|
+
taskId: {
|
|
371
|
+
type: String,
|
|
372
|
+
required: false,
|
|
373
|
+
default: '',
|
|
374
|
+
},
|
|
375
|
+
auditGroup: {
|
|
376
|
+
type: String,
|
|
377
|
+
required: false,
|
|
378
|
+
default: '',
|
|
379
|
+
},
|
|
369
380
|
//业务表单保存方法
|
|
370
381
|
businessFormSave: {
|
|
371
382
|
type: Function,
|
|
@@ -443,12 +454,12 @@ export default {
|
|
|
443
454
|
loading: false,
|
|
444
455
|
disable: false,
|
|
445
456
|
instanceId: '',
|
|
446
|
-
|
|
457
|
+
curTaskId: '',
|
|
447
458
|
handleButtons: [],
|
|
448
459
|
handleName: '',
|
|
449
460
|
auditOpinionTitle: '',
|
|
450
461
|
auditResult: '',
|
|
451
|
-
|
|
462
|
+
curAuditGroup: '',
|
|
452
463
|
custChange: 'auditInfo',
|
|
453
464
|
auditInfo: "auditInfo",
|
|
454
465
|
auditProcess: "auditProcess",
|
|
@@ -737,60 +748,40 @@ export default {
|
|
|
737
748
|
this.portraitWidth = this.width
|
|
738
749
|
},
|
|
739
750
|
initData() {
|
|
740
|
-
this.getAttachList()
|
|
741
751
|
if (!this.isDetail) {
|
|
742
|
-
this.
|
|
752
|
+
this.getTodoTask()
|
|
743
753
|
} else {
|
|
744
|
-
this.
|
|
754
|
+
this.getDoneTask()
|
|
745
755
|
}
|
|
746
756
|
this.getHandleButtons()
|
|
747
|
-
this.getHisAudit();
|
|
748
|
-
this.getProcessHistory();
|
|
749
757
|
},
|
|
750
|
-
|
|
751
|
-
const self = this
|
|
752
|
-
const param = {
|
|
753
|
-
procId: this.procId,
|
|
754
|
-
applyId: this.applyId
|
|
755
|
-
}
|
|
756
|
-
ajax.get(self.smartFlowServerContext + '/manage/processDone/getAttachmentList', {params: param}).then(function (resp) {
|
|
757
|
-
self.attachmentList = resp.data.data.rows
|
|
758
|
-
self.attachmentList.forEach(item => {
|
|
759
|
-
const index = item.fileName.lastIndexOf(".")
|
|
760
|
-
const fileType = item.fileName.substr(index + 1).toLowerCase()
|
|
761
|
-
const imageList = ['jpg', 'gif', 'png', 'svg']
|
|
762
|
-
const docList = ['doc', 'docx']
|
|
763
|
-
const zipList = ['rar', 'zip']
|
|
764
|
-
const typeList = ['jpg', 'gif', 'png', 'docx']
|
|
765
|
-
item.fileType = imageList.indexOf(fileType) !== -1 ? 'image' : docList.indexOf(fileType) !== -1 ? 'doc' : zipList.indexOf(fileType) !== -1 ? 'zip' : fileType
|
|
766
|
-
item.showPreview = typeList.indexOf(fileType) !== -1
|
|
767
|
-
})
|
|
768
|
-
}).catch(err => {
|
|
769
|
-
console.log(err);
|
|
770
|
-
})
|
|
771
|
-
},
|
|
772
|
-
getTodoTaskId() {
|
|
758
|
+
getTodoTask() {
|
|
773
759
|
const self = this
|
|
774
760
|
let param = {
|
|
775
761
|
procId: this.procId,
|
|
776
762
|
applyId: this.applyId,
|
|
777
|
-
taskNode: this.taskNode
|
|
763
|
+
taskNode: this.taskNode,
|
|
764
|
+
taskId: this.taskId,
|
|
765
|
+
auditGroup: this.auditGroup
|
|
778
766
|
}
|
|
779
767
|
ajax.get(self.smartFlowServerContext + "/manage/processTodo/list", {params: param}).then(function (resp) {
|
|
780
768
|
if (resp.data.code === '200') {
|
|
781
|
-
self.
|
|
769
|
+
self.curTaskId = resp.data.data.rows[0].taskId
|
|
782
770
|
self.instanceId = resp.data.data.rows[0].procInstanceId
|
|
771
|
+
self.curAuditGroup = resp.data.data.rows[0].auditGroup
|
|
783
772
|
let procType = resp.data.data.rows[0].procType
|
|
784
773
|
ajax.get(self.smartFlowServerContext + "/manage/processType/lists?proType=" + procType)
|
|
785
774
|
.then(resp => {
|
|
786
775
|
let data = resp.data.data.rows
|
|
787
776
|
self.permScope = data[0].permScope
|
|
788
|
-
self.auditGroup = data[0].auditGroup
|
|
789
777
|
self.defaultOrganTreeType = data[0].organTreeType ? data[0].organTreeType : '00'
|
|
790
778
|
self.getNodeOrganTreeType(procType)
|
|
791
779
|
}).catch(err => {
|
|
792
780
|
console.log(err);
|
|
793
781
|
})
|
|
782
|
+
self.getAttachList(self.curTaskId)
|
|
783
|
+
self.getHisAudit(self.curTaskId);
|
|
784
|
+
self.getProcessHistory(self.curTaskId);
|
|
794
785
|
} else {
|
|
795
786
|
self.$Message.error(resp.data.message)
|
|
796
787
|
}
|
|
@@ -815,18 +806,20 @@ export default {
|
|
|
815
806
|
console.log(err)
|
|
816
807
|
})
|
|
817
808
|
},
|
|
818
|
-
|
|
809
|
+
getDoneTask() {
|
|
819
810
|
const self = this
|
|
820
811
|
let param = {
|
|
821
812
|
procId: this.procId,
|
|
822
813
|
applyId: this.applyId,
|
|
823
|
-
taskNode: this.taskNode
|
|
814
|
+
taskNode: this.taskNode,
|
|
815
|
+
taskId: this.taskId,
|
|
816
|
+
auditGroup: this.auditGroup
|
|
824
817
|
}
|
|
825
818
|
ajax.get(self.smartFlowServerContext + "/manage/processDone/getDoneDetail", {params: param}).then(function (resp) {
|
|
826
819
|
if (resp.data.code === '200') {
|
|
827
820
|
let rows = resp.data.data.rows
|
|
828
|
-
self.auditGroup = rows[0].auditGroup
|
|
829
821
|
if (rows.length > 0) {
|
|
822
|
+
self.curAuditGroup = rows[0].auditGroup
|
|
830
823
|
self.hisAuditOpinion = []
|
|
831
824
|
let taskList = resp.data.data.rows
|
|
832
825
|
taskList.forEach(item => {
|
|
@@ -835,13 +828,14 @@ export default {
|
|
|
835
828
|
auditTime: timestampToTime(item.auditDate)
|
|
836
829
|
})
|
|
837
830
|
})
|
|
838
|
-
self.
|
|
831
|
+
self.curTaskId = taskList[0].taskId
|
|
839
832
|
self.instanceId = taskList[0].procInstanceId
|
|
840
833
|
} else {
|
|
841
834
|
ajax.get(self.smartFlowServerContext + "/manage/processTodo/list", {params: param}).then(function (todoResp) {
|
|
842
835
|
if (todoResp.data.code === '200') {
|
|
843
|
-
self.
|
|
836
|
+
self.curTaskId = todoResp.data.data.rows[0].taskId
|
|
844
837
|
self.instanceId = todoResp.data.data.rows[0].procInstanceId
|
|
838
|
+
self.curAuditGroup = todoResp.data.data.rows[0].auditGroup
|
|
845
839
|
} else {
|
|
846
840
|
self.$Message.error(todoResp.data.message)
|
|
847
841
|
}
|
|
@@ -849,6 +843,9 @@ export default {
|
|
|
849
843
|
console.log(err)
|
|
850
844
|
})
|
|
851
845
|
}
|
|
846
|
+
self.getAttachList(self.curTaskId)
|
|
847
|
+
self.getHisAudit(self.curTaskId);
|
|
848
|
+
self.getProcessHistory(self.curTaskId);
|
|
852
849
|
} else {
|
|
853
850
|
self.$Message.error(resp.data.message)
|
|
854
851
|
}
|
|
@@ -953,13 +950,36 @@ export default {
|
|
|
953
950
|
console.log(err)
|
|
954
951
|
})
|
|
955
952
|
},
|
|
956
|
-
|
|
953
|
+
getAttachList(taskId) {
|
|
954
|
+
const self = this
|
|
955
|
+
const param = {
|
|
956
|
+
taskId: taskId,
|
|
957
|
+
procId: this.procId,
|
|
958
|
+
applyId: this.applyId
|
|
959
|
+
}
|
|
960
|
+
ajax.get(self.smartFlowServerContext + '/manage/processDone/getAttachmentList', {params: param}).then(function (resp) {
|
|
961
|
+
self.attachmentList = resp.data.data.rows
|
|
962
|
+
self.attachmentList.forEach(item => {
|
|
963
|
+
const index = item.fileName.lastIndexOf(".")
|
|
964
|
+
const fileType = item.fileName.substr(index + 1).toLowerCase()
|
|
965
|
+
const imageList = ['jpg', 'gif', 'png', 'svg']
|
|
966
|
+
const docList = ['doc', 'docx']
|
|
967
|
+
const zipList = ['rar', 'zip']
|
|
968
|
+
const typeList = ['jpg', 'gif', 'png', 'docx']
|
|
969
|
+
item.fileType = imageList.indexOf(fileType) !== -1 ? 'image' : docList.indexOf(fileType) !== -1 ? 'doc' : zipList.indexOf(fileType) !== -1 ? 'zip' : fileType
|
|
970
|
+
item.showPreview = typeList.indexOf(fileType) !== -1
|
|
971
|
+
})
|
|
972
|
+
}).catch(err => {
|
|
973
|
+
console.log(err);
|
|
974
|
+
})
|
|
975
|
+
},
|
|
976
|
+
getHisAudit(taskId) {
|
|
957
977
|
let self = this
|
|
958
978
|
let params = {
|
|
959
979
|
applyId: self.applyId,
|
|
960
980
|
instanceId: self.instanceId,
|
|
961
981
|
procId: self.procId,
|
|
962
|
-
taskId:
|
|
982
|
+
taskId: taskId
|
|
963
983
|
}
|
|
964
984
|
ajax.get(self.smartFlowServerContext + '/manage/processTodo/getHisAudit', {params: params}).then(function (resp) {
|
|
965
985
|
if (resp.data.code === '200') {
|
|
@@ -973,13 +993,13 @@ export default {
|
|
|
973
993
|
}
|
|
974
994
|
})
|
|
975
995
|
},
|
|
976
|
-
getProcessHistory() {
|
|
996
|
+
getProcessHistory(taskId) {
|
|
977
997
|
let self = this
|
|
978
998
|
let params = {
|
|
979
999
|
applyId: self.applyId,
|
|
980
1000
|
instanceId: self.instanceId,
|
|
981
1001
|
procId: self.procId,
|
|
982
|
-
taskId:
|
|
1002
|
+
taskId: taskId
|
|
983
1003
|
}
|
|
984
1004
|
ajax.get(self.smartFlowServerContext + '/manage/processTodo/getProcessHis', {params: params}).then(function (resp) {
|
|
985
1005
|
if (resp.data.code === '200') {
|
|
@@ -998,7 +1018,7 @@ export default {
|
|
|
998
1018
|
self.auditParams = {
|
|
999
1019
|
procId: self.procId,
|
|
1000
1020
|
applyId: self.applyId,
|
|
1001
|
-
taskId: self.
|
|
1021
|
+
taskId: self.curTaskId,
|
|
1002
1022
|
auditOpinion: self.form.auditOpinion,
|
|
1003
1023
|
fileListStr: JSON.stringify(self.fileList),
|
|
1004
1024
|
auditResult: self.auditResult,
|
|
@@ -1057,7 +1077,7 @@ export default {
|
|
|
1057
1077
|
self.$Message.warning(result.message)
|
|
1058
1078
|
//避免未提示消息直接回调
|
|
1059
1079
|
setTimeout(() => {
|
|
1060
|
-
self.executionCompleted(false, null, null, auditResult, self.
|
|
1080
|
+
self.executionCompleted(false, null, null, auditResult, self.curTaskId);
|
|
1061
1081
|
}, 1000)
|
|
1062
1082
|
} else if (result.code == '30010') {
|
|
1063
1083
|
self.$Modal.confirm({
|
|
@@ -1074,7 +1094,7 @@ export default {
|
|
|
1074
1094
|
self.$Message.success(result.message);
|
|
1075
1095
|
//后端没有返回数据
|
|
1076
1096
|
setTimeout(() => {
|
|
1077
|
-
self.executionCompleted(true, null, null, auditResult, self.
|
|
1097
|
+
self.executionCompleted(true, null, null, auditResult, self.curTaskId);
|
|
1078
1098
|
}, 1000)
|
|
1079
1099
|
bus.$emit('triggerTimer')
|
|
1080
1100
|
} else {
|
|
@@ -1082,7 +1102,7 @@ export default {
|
|
|
1082
1102
|
self.disable = false
|
|
1083
1103
|
self.$Message.error(result.message)
|
|
1084
1104
|
setTimeout(() => {
|
|
1085
|
-
self.executionCompleted(false, null, null, auditResult, self.
|
|
1105
|
+
self.executionCompleted(false, null, null, auditResult, self.curTaskId);
|
|
1086
1106
|
}, 1000)
|
|
1087
1107
|
}
|
|
1088
1108
|
bus.$emit('triggerTimer')
|
|
@@ -1105,16 +1125,16 @@ export default {
|
|
|
1105
1125
|
self.$Message.success(result.message);
|
|
1106
1126
|
if (result.data) {
|
|
1107
1127
|
let taskIds = result.data.map(item => item.id).join(',');
|
|
1108
|
-
self.executionCompleted(true, result.data[0].processInstanceId, taskIds, auditResult, self.
|
|
1128
|
+
self.executionCompleted(true, result.data[0].processInstanceId, taskIds, auditResult, self.curTaskId)
|
|
1109
1129
|
} else {
|
|
1110
|
-
self.executionCompleted(true, null, null, auditResult, self.
|
|
1130
|
+
self.executionCompleted(true, null, null, auditResult, self.curTaskId)
|
|
1111
1131
|
}
|
|
1112
1132
|
} else {
|
|
1113
1133
|
self.loading = false
|
|
1114
1134
|
self.disable = false
|
|
1115
1135
|
self.$Message.error(result.message)
|
|
1116
1136
|
setTimeout(() => {
|
|
1117
|
-
self.executionCompleted(false, null, null, auditResult, self.
|
|
1137
|
+
self.executionCompleted(false, null, null, auditResult, self.curTaskId);
|
|
1118
1138
|
}, 1000)
|
|
1119
1139
|
}
|
|
1120
1140
|
bus.$emit('triggerTimer')
|
|
@@ -1154,11 +1174,11 @@ export default {
|
|
|
1154
1174
|
if (result.data){
|
|
1155
1175
|
let taskIds = result.data.id ? result.data.id : result.data.map(item => item.id).join(',');
|
|
1156
1176
|
setTimeout(() => {
|
|
1157
|
-
self.executionCompleted(true, result.data.id ? result.data.processInstanceId : result.data[0].processInstanceId, taskIds, auditResult, self.
|
|
1177
|
+
self.executionCompleted(true, result.data.id ? result.data.processInstanceId : result.data[0].processInstanceId, taskIds, auditResult, self.curTaskId)
|
|
1158
1178
|
}, 1000)
|
|
1159
1179
|
} else {
|
|
1160
1180
|
setTimeout(() => {
|
|
1161
|
-
self.executionCompleted(true, null, null, auditResult, self.
|
|
1181
|
+
self.executionCompleted(true, null, null, auditResult, self.curTaskId)
|
|
1162
1182
|
}, 1000)
|
|
1163
1183
|
}
|
|
1164
1184
|
} else if (result.code == '20002') {
|
|
@@ -1167,14 +1187,14 @@ export default {
|
|
|
1167
1187
|
self.disable = false
|
|
1168
1188
|
self.$Message.success(result.message)
|
|
1169
1189
|
setTimeout(() => {
|
|
1170
|
-
self.executionCompleted(true, '流程已结束', '流程已结束', auditResult, self.
|
|
1190
|
+
self.executionCompleted(true, '流程已结束', '流程已结束', auditResult, self.curTaskId)
|
|
1171
1191
|
}, 1000)
|
|
1172
1192
|
} else {
|
|
1173
1193
|
self.loading = false
|
|
1174
1194
|
self.disable = false
|
|
1175
1195
|
self.$Message.error(result.message ? result.message : `${self.handleName}失败`)
|
|
1176
1196
|
setTimeout(() => {
|
|
1177
|
-
self.executionCompleted(false, null, null, auditResult, self.
|
|
1197
|
+
self.executionCompleted(false, null, null, auditResult, self.curTaskId)
|
|
1178
1198
|
}, 1000)
|
|
1179
1199
|
}
|
|
1180
1200
|
bus.$emit('triggerTimer')
|
|
@@ -1237,7 +1257,7 @@ export default {
|
|
|
1237
1257
|
applyId: self.applyId,
|
|
1238
1258
|
instanceId: self.instanceId,
|
|
1239
1259
|
procId: self.procId,
|
|
1240
|
-
taskId: self.
|
|
1260
|
+
taskId: self.curTaskId,
|
|
1241
1261
|
}
|
|
1242
1262
|
ajax.get(self.smartFlowServerContext + '/manage/processTodo/getPrintData', {params: params}).then(function (resp) {
|
|
1243
1263
|
let result = resp.data.data
|
|
@@ -1277,7 +1297,7 @@ export default {
|
|
|
1277
1297
|
let self = this
|
|
1278
1298
|
let params = {
|
|
1279
1299
|
processDefId: self.procId,
|
|
1280
|
-
taskId: self.
|
|
1300
|
+
taskId: self.curTaskId,
|
|
1281
1301
|
}
|
|
1282
1302
|
ajax.get(self.smartFlowServerContext + '/manage/processTodo/getAllPreNodes', {params: params}).then(function (resp) {
|
|
1283
1303
|
if (resp.data.code === '200') {
|
|
@@ -1296,7 +1316,7 @@ export default {
|
|
|
1296
1316
|
let self = this
|
|
1297
1317
|
let params = {
|
|
1298
1318
|
processDefId: self.procId,
|
|
1299
|
-
taskId: self.
|
|
1319
|
+
taskId: self.curTaskId,
|
|
1300
1320
|
}
|
|
1301
1321
|
ajax.get(self.smartFlowServerContext + '/manage/processTodo/getNodesBehind', {params: params}).then(function (resp) {
|
|
1302
1322
|
if (resp.data.code === '200') {
|