流程终止
Showing
3 changed files
with
39 additions
and
7 deletions
| ... | @@ -87,7 +87,7 @@ | ... | @@ -87,7 +87,7 @@ |
| 87 | </template> | 87 | </template> |
| 88 | 88 | ||
| 89 | <script> | 89 | <script> |
| 90 | import { rollbackProcess, transitProcess,pretransitProcess } from "@api/user"; | 90 | import { rollbackProcess, transitProcess,pretransitProcess,termProcess } from "@api/user"; |
| 91 | export default { | 91 | export default { |
| 92 | provide() { | 92 | provide() { |
| 93 | return { | 93 | return { |
| ... | @@ -195,6 +195,21 @@ export default { | ... | @@ -195,6 +195,21 @@ export default { |
| 195 | this.sprList = res[0].masterActors; | 195 | this.sprList = res[0].masterActors; |
| 196 | this.spr = res[0].masterActors[0].accountNo; | 196 | this.spr = res[0].masterActors[0].accountNo; |
| 197 | }); | 197 | }); |
| 198 | }, | ||
| 199 | //终止 | ||
| 200 | termProcess(id){ | ||
| 201 | let params = { | ||
| 202 | "keepTrace": true, | ||
| 203 | "message": "", | ||
| 204 | "params": {}, | ||
| 205 | "processInstanceId": id | ||
| 206 | } | ||
| 207 | termProcess(params).then((res) => { | ||
| 208 | this.$message.success("操作成功!") | ||
| 209 | this.$router.push({ | ||
| 210 | path: '/dbx' | ||
| 211 | }) | ||
| 212 | }); | ||
| 198 | } | 213 | } |
| 199 | }, | 214 | }, |
| 200 | watch: { | 215 | watch: { | ... | ... |
| ... | @@ -91,4 +91,14 @@ export function getProcessOutline(data) { | ... | @@ -91,4 +91,14 @@ export function getProcessOutline(data) { |
| 91 | } | 91 | } |
| 92 | }) | 92 | }) |
| 93 | } | 93 | } |
| 94 | /** | ||
| 95 | * 流程强制终止 | ||
| 96 | */ | ||
| 97 | export function termProcess(data) { | ||
| 98 | return request({ | ||
| 99 | url: '/workflow/termProcess', | ||
| 100 | method: 'post', | ||
| 101 | data: data | ||
| 102 | }) | ||
| 103 | } | ||
| 94 | 104 | ... | ... |
| ... | @@ -369,6 +369,7 @@ | ... | @@ -369,6 +369,7 @@ |
| 369 | </div> | 369 | </div> |
| 370 | </div> | 370 | </div> |
| 371 | <div class="sh-btn"> | 371 | <div class="sh-btn"> |
| 372 | <el-button type="primary" @click="lczz" v-if="workFlowData.properties.phase == 'modify'">终止</el-button> | ||
| 372 | <el-button type="primary" @click="thzd">退回</el-button> | 373 | <el-button type="primary" @click="thzd">退回</el-button> |
| 373 | <el-button type="primary" @click="submitZDxx" :disabled="disabled" v-if="!workFlowState">提交</el-button> | 374 | <el-button type="primary" @click="submitZDxx" :disabled="disabled" v-if="!workFlowState">提交</el-button> |
| 374 | <el-button type="primary" @click="shzd" v-if="workFlowState">审核</el-button> | 375 | <el-button type="primary" @click="shzd" v-if="workFlowState">审核</el-button> |
| ... | @@ -483,6 +484,7 @@ | ... | @@ -483,6 +484,7 @@ |
| 483 | SYQLXID: "", | 484 | SYQLXID: "", |
| 484 | }, | 485 | }, |
| 485 | workFlowState:false, | 486 | workFlowState:false, |
| 487 | workFlowData:{} | ||
| 486 | }; | 488 | }; |
| 487 | }, | 489 | }, |
| 488 | mixins: [geoUtils], | 490 | mixins: [geoUtils], |
| ... | @@ -504,6 +506,7 @@ | ... | @@ -504,6 +506,7 @@ |
| 504 | "workitemInstanceId": this.$route.query.workitemInstanceId | 506 | "workitemInstanceId": this.$route.query.workitemInstanceId |
| 505 | } | 507 | } |
| 506 | getActivityDetail(params).then(res => { | 508 | getActivityDetail(params).then(res => { |
| 509 | this.workFlowData= res; | ||
| 507 | this.workFlowState = res.workitemInstance.apps.some(function(item) { | 510 | this.workFlowState = res.workitemInstance.apps.some(function(item) { |
| 508 | return item == 'shenpibiao'; | 511 | return item == 'shenpibiao'; |
| 509 | }); | 512 | }); |
| ... | @@ -965,15 +968,19 @@ | ... | @@ -965,15 +968,19 @@ |
| 965 | //宗地审核流程退回 | 968 | //宗地审核流程退回 |
| 966 | thzd(){ | 969 | thzd(){ |
| 967 | let data = { | 970 | let data = { |
| 968 | bdcdyh:this.formData.bdcdyh, | 971 | "params": {}, |
| 969 | zl:this.formData.zl, | 972 | "targetNodeId": "", |
| 970 | shyj:'', | 973 | "targetNodes": [ |
| 971 | shr:'admin', | 974 | "" |
| 972 | shsj:'2021-01-22' | 975 | ], |
| 976 | "workitemInstanceId": this.workFlowData.processInstance.id | ||
| 973 | } | 977 | } |
| 974 | vm.rollback(data); | 978 | vm.rollback(data); |
| 975 | }, | 979 | }, |
| 976 | 980 | //宗地流程终止 | |
| 981 | lczz(){ | ||
| 982 | vm.termProcess(this.workFlowData.processInstance.id); | ||
| 983 | } | ||
| 977 | }, | 984 | }, |
| 978 | computed: { | 985 | computed: { |
| 979 | zl() { | 986 | zl() { | ... | ... |
-
Please register or sign in to post a comment