|
...
|
...
|
@@ -293,6 +293,7 @@ |
|
|
|
|
|
|
|
<script>
|
|
|
|
import { listContract, getContract, delContract, addContract, updateContract } from "@/api/compliancemanagement/contract";
|
|
|
|
import {startProcess,stopProcess} from "@/api/workflow/process"
|
|
|
|
import VuePdf from 'vue-pdf';
|
|
|
|
export default {
|
|
|
|
name: "Contract",
|
|
...
|
...
|
@@ -483,10 +484,11 @@ export default { |
|
|
|
if (this.form.id != null) {
|
|
|
|
updateContract(this.form)
|
|
|
|
.then((response) => {
|
|
|
|
this.$modal.msgSuccess("合同变更成功,流程已启动");
|
|
|
|
this.$modal.msgSuccess("合同变更成功,已重新启动流程");
|
|
|
|
this.open = false;
|
|
|
|
this.getList();
|
|
|
|
this.handleAgain(this.biangeng)
|
|
|
|
console.log("变更列表值:",this.biangeng)
|
|
|
|
this.handleAgain2(this.biangeng)
|
|
|
|
})
|
|
|
|
.finally(() => {
|
|
|
|
this.buttonLoading = false;
|
|
...
|
...
|
@@ -536,6 +538,7 @@ export default { |
|
|
|
},
|
|
|
|
/** 流程流转记录 */
|
|
|
|
handleFlowRecord(row) {
|
|
|
|
console.log(row)
|
|
|
|
this.$router.push({
|
|
|
|
path: "/workflow/process/detail/" + row.procInsId,
|
|
|
|
query: {
|
|
...
|
...
|
@@ -555,15 +558,26 @@ export default { |
|
|
|
},
|
|
|
|
handleAgain(row) {
|
|
|
|
console.log(row)
|
|
|
|
this.$router.push({
|
|
|
|
path: "/workflow/process/start/" + row.deployId,
|
|
|
|
query: {
|
|
|
|
definitionId: row.procDefId,
|
|
|
|
procInsId: row.procInsId,
|
|
|
|
},
|
|
|
|
});
|
|
|
|
console.log(row);
|
|
|
|
startProcess(row.procDefId,row).then((res) =>{
|
|
|
|
if(res){
|
|
|
|
this.$modal.msgSuccess("流程重启动成功");
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
// this.$router.push({
|
|
|
|
// path: "/workflow/process/start/" + row.deployId,
|
|
|
|
// query: {
|
|
|
|
// definitionId: row.procDefId,
|
|
|
|
// procInsId: row.procInsId,
|
|
|
|
// },
|
|
|
|
// });
|
|
|
|
// console.log(row);
|
|
|
|
},
|
|
|
|
handleAgain2(row) {
|
|
|
|
console.log(row)
|
|
|
|
startProcess(row.procDefId,row).then((res) =>{
|
|
|
|
})
|
|
|
|
}
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script> |
...
|
...
|
|