|
|
@@ -118,6 +118,9 @@
|
|
|
<span v-if="scope.row.children">
|
|
|
{{ getParentNodeIndex(scope.row) }}
|
|
|
</span>
|
|
|
+ <span v-else-if="curOrg == '企业单位'">
|
|
|
+ {{ scope.$index + 1 }}
|
|
|
+ </span>
|
|
|
<span v-else></span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
@@ -173,91 +176,128 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" align="center" width="260">
|
|
|
<template slot-scope="scope">
|
|
|
- <span v-if="!scope.row.isSubTask" class="action-buttons">
|
|
|
- <el-button
|
|
|
- type="text"
|
|
|
- size="small"
|
|
|
- @click="handleViewTaskDetail(scope.row)"
|
|
|
- >
|
|
|
- 任务详情
|
|
|
- </el-button>
|
|
|
- <el-button
|
|
|
- type="text"
|
|
|
- size="small"
|
|
|
- @click="handleOpenMainDetails(scope.row)"
|
|
|
- >
|
|
|
- 任务办理
|
|
|
- </el-button>
|
|
|
- <el-button
|
|
|
- type="text"
|
|
|
- size="small"
|
|
|
- @click="handleCheckRecord(scope.row)"
|
|
|
- >
|
|
|
- 备忘录
|
|
|
- </el-button>
|
|
|
- </span>
|
|
|
- <span v-if="scope.row.isSubTask" class="action-buttons">
|
|
|
+ <div v-if="curOrg == '企业单位'">
|
|
|
<el-button
|
|
|
v-if="
|
|
|
- scope.row.currentNode === 'clcs' &&
|
|
|
- (scope.row.status === '200' || scope.row.status === '600')
|
|
|
+ (scope.row.currentNode === 'clcs' ||
|
|
|
+ scope.row.currentNode === 'tjcl') &&
|
|
|
+ (scope.row.status === '100' ||
|
|
|
+ scope.row.status === '500' ||
|
|
|
+ scope.row.status === '600')
|
|
|
"
|
|
|
+ size="mini"
|
|
|
type="text"
|
|
|
- size="small"
|
|
|
- @click="handleOpenDetails(scope.row)"
|
|
|
+ @click="handleEdit(scope.row)"
|
|
|
>
|
|
|
- 资料初审
|
|
|
- </el-button>
|
|
|
- <el-button
|
|
|
- v-if="
|
|
|
- (scope.row.currentNode === 'sdsh' ||
|
|
|
- scope.row.currentNode === 'yjfk') &&
|
|
|
- scope.row.status === '200'
|
|
|
- "
|
|
|
- type="text"
|
|
|
- size="small"
|
|
|
- @click="handleOpenDetails(scope.row)"
|
|
|
- >
|
|
|
- 成本审核
|
|
|
- </el-button>
|
|
|
- <el-button
|
|
|
- v-if="
|
|
|
- scope.row.currentNode === 'yjgz' &&
|
|
|
- scope.row.status === '200'
|
|
|
- "
|
|
|
- type="text"
|
|
|
- size="small"
|
|
|
- @click="handleOpenDetails(scope.row)"
|
|
|
- >
|
|
|
- 意见告知
|
|
|
+ 填报任务
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
v-if="
|
|
|
scope.row.currentNode === 'yjfk' &&
|
|
|
- scope.row.status === '260'
|
|
|
+ scope.row.status === '250'
|
|
|
"
|
|
|
+ size="mini"
|
|
|
type="text"
|
|
|
- size="small"
|
|
|
- @click="handleOpenDetails(scope.row)"
|
|
|
- >
|
|
|
- 审核
|
|
|
- </el-button>
|
|
|
- <el-button
|
|
|
- v-if="scope.row.status === '300'"
|
|
|
- type="text"
|
|
|
- size="small"
|
|
|
- @click="handleHf(scope.row)"
|
|
|
+ @click="handleEdit(scope.row)"
|
|
|
>
|
|
|
- 恢复
|
|
|
+ 意见反馈
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
+ size="mini"
|
|
|
type="text"
|
|
|
- size="small"
|
|
|
- @click="handleMessage(scope.row, 'chengben')"
|
|
|
+ @click="handleMessage(scope.row)"
|
|
|
>
|
|
|
查看
|
|
|
</el-button>
|
|
|
- </span>
|
|
|
+ </div>
|
|
|
+ <div v-else>
|
|
|
+ <span v-if="!scope.row.isSubTask" class="action-buttons">
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ size="small"
|
|
|
+ @click="handleViewTaskDetail(scope.row)"
|
|
|
+ >
|
|
|
+ 任务详情
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ size="small"
|
|
|
+ @click="handleOpenMainDetails(scope.row)"
|
|
|
+ >
|
|
|
+ 任务办理
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ size="small"
|
|
|
+ @click="handleCheckRecord(scope.row)"
|
|
|
+ >
|
|
|
+ 备忘录
|
|
|
+ </el-button>
|
|
|
+ </span>
|
|
|
+ <span v-if="scope.row.isSubTask" class="action-buttons">
|
|
|
+ <el-button
|
|
|
+ v-if="
|
|
|
+ scope.row.currentNode === 'clcs' &&
|
|
|
+ (scope.row.status === '200' ||
|
|
|
+ scope.row.status === '600')
|
|
|
+ "
|
|
|
+ type="text"
|
|
|
+ size="small"
|
|
|
+ @click="handleOpenDetails(scope.row)"
|
|
|
+ >
|
|
|
+ 资料初审
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ v-if="
|
|
|
+ (scope.row.currentNode === 'sdsh' ||
|
|
|
+ scope.row.currentNode === 'yjfk') &&
|
|
|
+ scope.row.status === '200'
|
|
|
+ "
|
|
|
+ type="text"
|
|
|
+ size="small"
|
|
|
+ @click="handleOpenDetails(scope.row)"
|
|
|
+ >
|
|
|
+ 成本审核
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ v-if="
|
|
|
+ scope.row.currentNode === 'yjgz' &&
|
|
|
+ scope.row.status === '200'
|
|
|
+ "
|
|
|
+ type="text"
|
|
|
+ size="small"
|
|
|
+ @click="handleOpenDetails(scope.row)"
|
|
|
+ >
|
|
|
+ 意见告知
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ v-if="
|
|
|
+ scope.row.currentNode === 'yjfk' &&
|
|
|
+ scope.row.status === '260'
|
|
|
+ "
|
|
|
+ type="text"
|
|
|
+ size="small"
|
|
|
+ @click="handleOpenDetails(scope.row)"
|
|
|
+ >
|
|
|
+ 审核
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ v-if="scope.row.status === '300'"
|
|
|
+ type="text"
|
|
|
+ size="small"
|
|
|
+ @click="handleHf(scope.row)"
|
|
|
+ >
|
|
|
+ 恢复
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ size="small"
|
|
|
+ @click="handleMessage(scope.row, 'chengben')"
|
|
|
+ >
|
|
|
+ 查看
|
|
|
+ </el-button>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -497,7 +537,7 @@
|
|
|
import { memoManageMixin } from '@/views/costAudit/projectInfo/auditProjectManage/memoManage/memoManageMixin'
|
|
|
import { doProcessBtn } from '@/api/dataPreliminaryReview'
|
|
|
import { getReviewTaskList } from '@/api/audit/auditIndex'
|
|
|
- import { getChartList, getMsgList } from '@/api/home'
|
|
|
+ import { getChartList, getMsgList, getEnterpriseList } from '@/api/home'
|
|
|
import detailsDialog from '@/views/costAudit/auditInfo/auditManage/details.vue'
|
|
|
import mainDetailsDialog from '@/views/costAudit/auditInfo/auditManage/mainDetails.vue'
|
|
|
import taskInfo from '@/components/task/taskInfo.vue'
|
|
|
@@ -545,6 +585,7 @@
|
|
|
cbjsInfoVisible: false,
|
|
|
cbjsInfoData: null,
|
|
|
mainDetailsVisible: false,
|
|
|
+ curOrg: '',
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
|
@@ -564,6 +605,7 @@
|
|
|
mounted() {
|
|
|
this.$el.querySelector('div.el-calendar__header').remove()
|
|
|
let user = this.$permission.getUserInfo()
|
|
|
+ this.curOrg = this.$store.state.user.userInfo.curOrg
|
|
|
if (user.dataScope === 0) {
|
|
|
this.areaCode = user.provinceCode
|
|
|
} else if (user.dataScope === 1) {
|
|
|
@@ -578,7 +620,11 @@
|
|
|
},
|
|
|
methods: {
|
|
|
getTodoList() {
|
|
|
- this.loadAuditProjectList()
|
|
|
+ if (this.curOrg === '企业单位') {
|
|
|
+ this.getEnterpriseTodoList()
|
|
|
+ } else {
|
|
|
+ this.loadAuditProjectList()
|
|
|
+ }
|
|
|
},
|
|
|
// 加载最新消息
|
|
|
async loadNewsList() {
|
|
|
@@ -596,6 +642,27 @@
|
|
|
this.currentPage = 1
|
|
|
this.loadAuditProjectList()
|
|
|
},
|
|
|
+ // 获取企业待办列表
|
|
|
+ async getEnterpriseTodoList() {
|
|
|
+ try {
|
|
|
+ this.loading = true
|
|
|
+ const params = {
|
|
|
+ currentPage: this.currentPage,
|
|
|
+ pageSize: this.pageSize,
|
|
|
+ projectName: this.todoSearchQuery,
|
|
|
+ }
|
|
|
+ const response = await getEnterpriseList(params)
|
|
|
+
|
|
|
+ if (response.state && response.value) {
|
|
|
+ const records = response.value.records || []
|
|
|
+ this.todoList = records
|
|
|
+ }
|
|
|
+ } catch (error) {
|
|
|
+ console.error('获取企业待办列表失败:', error)
|
|
|
+ } finally {
|
|
|
+ this.loading = false
|
|
|
+ }
|
|
|
+ },
|
|
|
// 加载审核项目列表
|
|
|
async loadAuditProjectList() {
|
|
|
try {
|