直转审核详情
This commit is contained in:
parent
3592bba376
commit
15d7e404b2
|
|
@ -301,10 +301,10 @@ export default {
|
|||
this.getTaskInfo()
|
||||
// this.getAuditInfo()
|
||||
if (this.$route.query) {
|
||||
const { nodeId, flowId } = this.$route.query
|
||||
const { nodeId, flowId, taskId } = this.$route.query
|
||||
this.auditingParams.taskId = flowId
|
||||
this.currentNodeId = nodeId
|
||||
this.getLeaseTaskDetailFun(flowId)
|
||||
this.getLeaseTaskDetailFun(flowId || taskId)
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
|
|||
|
|
@ -86,7 +86,6 @@
|
|||
size="mini"
|
||||
icon="el-icon-search"
|
||||
@click="handleEdit(scope.row, 1)"
|
||||
v-if="scope.row.flowStatus == 2 || scope.row.flowStatus == 3"
|
||||
>
|
||||
查看
|
||||
</el-button>
|
||||
|
|
|
|||
|
|
@ -66,9 +66,7 @@
|
|||
>
|
||||
<!-- 插槽 -->
|
||||
<template v-slot="scope" v-if="column.prop == 'status'">
|
||||
<el-tag v-if="scope.row.status == '0'" type="warning" size="mini" style="margin-right: 5px">
|
||||
待审核
|
||||
</el-tag>
|
||||
<el-tag v-if="scope.row.status == '0'" type="warning" size="mini" style="margin-right: 5px">待审核</el-tag>
|
||||
<el-tag v-else-if="scope.row.status == '1'" size="mini" style="margin-right: 5px">审核中</el-tag>
|
||||
<el-tag v-else-if="scope.row.status == '2'" type="success" size="mini" style="margin-right: 5px">
|
||||
已完成
|
||||
|
|
@ -203,13 +201,22 @@ export default {
|
|||
console.log('编辑', row)
|
||||
let params = {}
|
||||
if (type === 1) {
|
||||
params = { type: 'detail', id: row.id }
|
||||
this.$router.push({ path: '/transition/groundDirect', query: params })
|
||||
// params = { type: 'detail', id: row.id }
|
||||
// this.$router.push({ path: '/transition/groundDirect', query: params })
|
||||
this.$router.push({
|
||||
name: 'direct-rotation-apply',
|
||||
query: {
|
||||
id: row.id,
|
||||
flowId: row.flowId,
|
||||
taskId: row.id,
|
||||
type: 'detail',
|
||||
nodeId: row.nodeId
|
||||
}
|
||||
})
|
||||
} else {
|
||||
params = { type: 'edit', id: row.id }
|
||||
this.$router.push({ path: '/business/businessHandling/directApply', query: params })
|
||||
}
|
||||
|
||||
},
|
||||
// 删除
|
||||
handleDelete(row) {
|
||||
|
|
@ -231,17 +238,17 @@ export default {
|
|||
// 导出数据
|
||||
handleExport() {
|
||||
try {
|
||||
const formatTime = (date) => {
|
||||
const year = date.getFullYear();
|
||||
const month = String(date.getMonth() + 1).padStart(2, '0');
|
||||
const day = String(date.getDate()).padStart(2, '0');
|
||||
const hours = String(date.getHours()).padStart(2, '0');
|
||||
const minutes = String(date.getMinutes()).padStart(2, '0');
|
||||
const seconds = String(date.getSeconds()).padStart(2, '0');
|
||||
return `${year}${month}${day}_${hours}${minutes}${seconds}`;
|
||||
};
|
||||
const formatTime = date => {
|
||||
const year = date.getFullYear()
|
||||
const month = String(date.getMonth() + 1).padStart(2, '0')
|
||||
const day = String(date.getDate()).padStart(2, '0')
|
||||
const hours = String(date.getHours()).padStart(2, '0')
|
||||
const minutes = String(date.getMinutes()).padStart(2, '0')
|
||||
const seconds = String(date.getSeconds()).padStart(2, '0')
|
||||
return `${year}${month}${day}_${hours}${minutes}${seconds}`
|
||||
}
|
||||
|
||||
const currentTime = formatTime(new Date());
|
||||
const currentTime = formatTime(new Date())
|
||||
let fileName = `直转记录_${currentTime}.xLsx`
|
||||
let url = '/material/directRotation/export'
|
||||
const params = { ...this.queryParams }
|
||||
|
|
|
|||
Loading…
Reference in New Issue