作者 雷海东

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

... ... @@ -102,13 +102,13 @@ export const constantRoutes = [
]
},
{
path: '/contract/compliancemanagement/orginfoCertificate',
path: '/system/orginfo/orginfoCertificate',
component: Layout,
hidden: true,
children: [
{
path: 'orginfoCertificate/index',
component: () => import('@/views/compliancemanagement/orginfoCertificate/index'),
component: () => import('@/views/system/orginfo/orginfoCertificate/index'),
name: 'orginfoCertificate',
meta: { title: '证照管理', icon: '' }
}
... ...
... ... @@ -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>
... ...
... ... @@ -199,7 +199,7 @@ export default {
methods: {
toOrginfoCertificateList(row){
console.log('row=====',row)
this.$router.push({ path: '/contract/compliancemanagement/orginfoCertificate/orginfoCertificate/index', query: {orgcode: row.orgcode }});
this.$router.push({ path: '/system/orginfo/orginfoCertificate/orginfoCertificate/index', query: {orgcode: row.orgcode }});
},
/** 查询【请填写功能名称】列表 */
getList() {
... ...