|
@@ -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> |