|
@@ -98,9 +98,20 @@
|
|
|
>
|
|
>
|
|
|
<!-- 操作列自定义模板 -->
|
|
<!-- 操作列自定义模板 -->
|
|
|
<template #operation="{ row }">
|
|
<template #operation="{ row }">
|
|
|
- <el-button size="mini" type="text" @click="handleView(row)">
|
|
|
|
|
- 查看
|
|
|
|
|
- </el-button>
|
|
|
|
|
|
|
+ <template v-if="row.isSubTask">
|
|
|
|
|
+ <el-button size="mini" type="text" @click="handleView(row)">
|
|
|
|
|
+ 查看
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template v-else>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ @click="handleViewTaskDetail(row)"
|
|
|
|
|
+ >
|
|
|
|
|
+ 详情
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ </template>
|
|
|
</template>
|
|
</template>
|
|
|
</cost-audit-table>
|
|
</cost-audit-table>
|
|
|
<!-- 分页 -->
|
|
<!-- 分页 -->
|
|
@@ -132,6 +143,15 @@
|
|
|
:visible.sync="taskDetailVisible"
|
|
:visible.sync="taskDetailVisible"
|
|
|
:is-view="isView"
|
|
:is-view="isView"
|
|
|
/>
|
|
/>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 成本监审任务制定弹窗(列表“详情/查看”入口使用) -->
|
|
|
|
|
+ <task-customized-release-dialog
|
|
|
|
|
+ :visible.sync="taskReleaseDialogVisible"
|
|
|
|
|
+ :project="project"
|
|
|
|
|
+ :is-view="true"
|
|
|
|
|
+ @backToList="taskReleaseDialogVisible = false"
|
|
|
|
|
+ @close="taskReleaseDialogVisible = false"
|
|
|
|
|
+ />
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -141,11 +161,14 @@
|
|
|
import CostAuditTable from '@/components/costAudit/CostAuditTable.vue'
|
|
import CostAuditTable from '@/components/costAudit/CostAuditTable.vue'
|
|
|
import { getTaskListStatistics, getItemsCount } from '@/api/home'
|
|
import { getTaskListStatistics, getItemsCount } from '@/api/home'
|
|
|
import TaskDetail from '@/components/task/taskDetail.vue'
|
|
import TaskDetail from '@/components/task/taskDetail.vue'
|
|
|
|
|
+ import TaskCustomizedReleaseDialog from '@/components/task/TaskCustomizedReleaseDialog.vue'
|
|
|
|
|
+ import { getCostProjectDetail } from '@/api/taskCustomizedRelease.js'
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
|
detailTabs,
|
|
detailTabs,
|
|
|
CostAuditTable,
|
|
CostAuditTable,
|
|
|
TaskDetail,
|
|
TaskDetail,
|
|
|
|
|
+ TaskCustomizedReleaseDialog,
|
|
|
},
|
|
},
|
|
|
mixins: [dictMixin, regionMixin],
|
|
mixins: [dictMixin, regionMixin],
|
|
|
data() {
|
|
data() {
|
|
@@ -177,6 +200,7 @@
|
|
|
taskData: {},
|
|
taskData: {},
|
|
|
unitList: [],
|
|
unitList: [],
|
|
|
taskDetailVisible: false,
|
|
taskDetailVisible: false,
|
|
|
|
|
+ taskReleaseDialogVisible: false,
|
|
|
// 表格列配置
|
|
// 表格列配置
|
|
|
tableColumns: [
|
|
tableColumns: [
|
|
|
{
|
|
{
|
|
@@ -392,6 +416,30 @@
|
|
|
this.$refs.taskDetail && this.$refs.taskDetail.open(row, 'chengben')
|
|
this.$refs.taskDetail && this.$refs.taskDetail.open(row, 'chengben')
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+ handleViewTaskDetail(row) {
|
|
|
|
|
+ this.openTaskReleaseDialog(row)
|
|
|
|
|
+ },
|
|
|
|
|
+ openTaskReleaseDialog(row) {
|
|
|
|
|
+ if (!row) return
|
|
|
|
|
+ const projectId =
|
|
|
|
|
+ row.projectId || row.projectID || row.id || row.taskId || ''
|
|
|
|
|
+ if (!projectId) {
|
|
|
|
|
+ this.$message &&
|
|
|
|
|
+ this.$message.warning &&
|
|
|
|
|
+ this.$message.warning('缺少项目ID,无法查看详情')
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+ this.isView = true
|
|
|
|
|
+ getCostProjectDetail({ id: projectId })
|
|
|
|
|
+ .then((res) => {
|
|
|
|
|
+ this.project = (res && res.value) || {}
|
|
|
|
|
+ this.taskReleaseDialogVisible = true
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(() => {
|
|
|
|
|
+ this.project = row || {}
|
|
|
|
|
+ this.taskReleaseDialogVisible = true
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
handleDetailClose() {
|
|
handleDetailClose() {
|
|
|
this.activeView = 'list'
|
|
this.activeView = 'list'
|
|
|
},
|
|
},
|