作者 雷海东

重新发起流程、证照页面跳转

@@ -102,13 +102,13 @@ export const constantRoutes = [ @@ -102,13 +102,13 @@ export const constantRoutes = [
102 ] 102 ]
103 }, 103 },
104 { 104 {
105 - path: '/contract/compliancemanagement/orginfoCertificate', 105 + path: '/system/orginfo/orginfoCertificate',
106 component: Layout, 106 component: Layout,
107 hidden: true, 107 hidden: true,
108 children: [ 108 children: [
109 { 109 {
110 path: 'orginfoCertificate/index', 110 path: 'orginfoCertificate/index',
111 - component: () => import('@/views/compliancemanagement/orginfoCertificate/index'), 111 + component: () => import('@/views/system/orginfo/orginfoCertificate/index'),
112 name: 'orginfoCertificate', 112 name: 'orginfoCertificate',
113 meta: { title: '证照管理', icon: '' } 113 meta: { title: '证照管理', icon: '' }
114 } 114 }
@@ -293,6 +293,7 @@ @@ -293,6 +293,7 @@
293 293
294 <script> 294 <script>
295 import { listContract, getContract, delContract, addContract, updateContract } from "@/api/compliancemanagement/contract"; 295 import { listContract, getContract, delContract, addContract, updateContract } from "@/api/compliancemanagement/contract";
  296 +import {startProcess,stopProcess} from "@/api/workflow/process"
296 import VuePdf from 'vue-pdf'; 297 import VuePdf from 'vue-pdf';
297 export default { 298 export default {
298 name: "Contract", 299 name: "Contract",
@@ -483,10 +484,11 @@ export default { @@ -483,10 +484,11 @@ export default {
483 if (this.form.id != null) { 484 if (this.form.id != null) {
484 updateContract(this.form) 485 updateContract(this.form)
485 .then((response) => { 486 .then((response) => {
486 - this.$modal.msgSuccess("合同变更成功,流程已启动"); 487 + this.$modal.msgSuccess("合同变更成功,已重新启动流程");
487 this.open = false; 488 this.open = false;
488 this.getList(); 489 this.getList();
489 - this.handleAgain(this.biangeng) 490 + console.log("变更列表值:",this.biangeng)
  491 + this.handleAgain2(this.biangeng)
490 }) 492 })
491 .finally(() => { 493 .finally(() => {
492 this.buttonLoading = false; 494 this.buttonLoading = false;
@@ -536,6 +538,7 @@ export default { @@ -536,6 +538,7 @@ export default {
536 }, 538 },
537 /** 流程流转记录 */ 539 /** 流程流转记录 */
538 handleFlowRecord(row) { 540 handleFlowRecord(row) {
  541 + console.log(row)
539 this.$router.push({ 542 this.$router.push({
540 path: "/workflow/process/detail/" + row.procInsId, 543 path: "/workflow/process/detail/" + row.procInsId,
541 query: { 544 query: {
@@ -555,15 +558,26 @@ export default { @@ -555,15 +558,26 @@ export default {
555 }, 558 },
556 handleAgain(row) { 559 handleAgain(row) {
557 console.log(row) 560 console.log(row)
558 - this.$router.push({  
559 - path: "/workflow/process/start/" + row.deployId,  
560 - query: {  
561 - definitionId: row.procDefId,  
562 - procInsId: row.procInsId,  
563 - },  
564 - });  
565 - console.log(row); 561 + startProcess(row.procDefId,row).then((res) =>{
  562 + if(res){
  563 + this.$modal.msgSuccess("流程重启动成功");
  564 + }
  565 + })
  566 +
  567 + // this.$router.push({
  568 + // path: "/workflow/process/start/" + row.deployId,
  569 + // query: {
  570 + // definitionId: row.procDefId,
  571 + // procInsId: row.procInsId,
  572 + // },
  573 + // });
  574 + // console.log(row);
566 }, 575 },
  576 + handleAgain2(row) {
  577 + console.log(row)
  578 + startProcess(row.procDefId,row).then((res) =>{
  579 + })
  580 + }
567 }, 581 },
568 }; 582 };
569 </script> 583 </script>
@@ -199,7 +199,7 @@ export default { @@ -199,7 +199,7 @@ export default {
199 methods: { 199 methods: {
200 toOrginfoCertificateList(row){ 200 toOrginfoCertificateList(row){
201 console.log('row=====',row) 201 console.log('row=====',row)
202 - this.$router.push({ path: '/contract/compliancemanagement/orginfoCertificate/orginfoCertificate/index', query: {orgcode: row.orgcode }}); 202 + this.$router.push({ path: '/system/orginfo/orginfoCertificate/orginfoCertificate/index', query: {orgcode: row.orgcode }});
203 }, 203 },
204 /** 查询【请填写功能名称】列表 */ 204 /** 查询【请填写功能名称】列表 */
205 getList() { 205 getList() {