|
|
@ -55,7 +55,8 @@ |
|
|
width="160" |
|
|
width="160" |
|
|
label="Action"> |
|
|
label="Action"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<el-link style="cursor: pointer" @click="openApproveDialog(scope.row)">审批 |</el-link> |
|
|
|
|
|
|
|
|
<el-link style="cursor: pointer" v-if="scope.row.flowStatus === 'COMPLETED' || scope.row.flowStatus === 'TERMINATED'" @click="handleRestart(scope.row)">重新审批 |</el-link> |
|
|
|
|
|
<el-link style="cursor: pointer" v-if="scope.row.flowStatus === 'RUNNING'" @click="openApproveDialog(scope.row)">审批 |</el-link> |
|
|
<el-link style="cursor: pointer" @click="editPart(scope.row)">编辑 |</el-link> |
|
|
<el-link style="cursor: pointer" @click="editPart(scope.row)">编辑 |</el-link> |
|
|
<el-link style="cursor: pointer" @click="deletePart(scope.row)">删除</el-link> |
|
|
<el-link style="cursor: pointer" @click="deletePart(scope.row)">删除</el-link> |
|
|
</template> |
|
|
</template> |
|
|
@ -266,7 +267,6 @@ import attachments from './com_part_Attachments' |
|
|
|
|
|
|
|
|
import { |
|
|
import { |
|
|
approveNodeInstance, |
|
|
approveNodeInstance, |
|
|
getFlowPreview, |
|
|
|
|
|
restartFlowInstance |
|
|
restartFlowInstance |
|
|
} from '@/api/workFlow/workFlow.js' |
|
|
} from '@/api/workFlow/workFlow.js' |
|
|
|
|
|
|
|
|
@ -977,19 +977,20 @@ export default { |
|
|
type: 'warning' |
|
|
type: 'warning' |
|
|
}).then(() => { |
|
|
}).then(() => { |
|
|
restartFlowInstance({ |
|
|
restartFlowInstance({ |
|
|
applyNo: row.flowNodeInstanceData.applyNo, |
|
|
|
|
|
site: row.flowNodeInstanceData.site, |
|
|
|
|
|
orderType: row.flowNodeInstanceData.orderType |
|
|
|
|
|
|
|
|
applyNo: row.applyNo, |
|
|
|
|
|
site: row.site, |
|
|
|
|
|
orderType: row.orderType |
|
|
}).then(({ data }) => { |
|
|
}).then(({ data }) => { |
|
|
if (data && data.code === 0) { |
|
|
if (data && data.code === 0) { |
|
|
this.$message.success('重新审批成功') |
|
|
this.$message.success('重新审批成功') |
|
|
this.currentInstance = null |
|
|
|
|
|
|
|
|
this.getMainData() |
|
|
} else { |
|
|
} else { |
|
|
this.$message.error(data.msg || '操作失败') |
|
|
this.$message.error(data.msg || '操作失败') |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}).catch(() => {}) |
|
|
}).catch(() => {}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|