|
@@ -227,9 +227,9 @@
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
<el-button v-if="hasPermission('jy_project:info:edit')&&(scope.row.status === '1' || scope.row.status === '3')&&scope.row.createBy === $store.state.user.id" text type="primary" @click="registeredPush(scope.row)">修改</el-button>
|
|
<el-button v-if="hasPermission('jy_project:info:edit')&&(scope.row.status === '1' || scope.row.status === '3')&&scope.row.createBy === $store.state.user.id" text type="primary" @click="registeredPush(scope.row)">修改</el-button>
|
|
<!--管理员角色登记完成后可修改-->
|
|
<!--管理员角色登记完成后可修改-->
|
|
- <el-button v-if="hasPermission('jy_project:info:edit')&&scope.row.status === '5' && isAdmin" text type="primary" @click="edit(scope.row.id)">修改</el-button>
|
|
|
|
|
|
+ <el-button v-if="hasPermission('jy_project:info:edit')&&scope.row.status === '5' && isAdmin" text type="primary" @click="adminEdit(scope.row)">修改</el-button>
|
|
<!--项目负责人修改-->
|
|
<!--项目负责人修改-->
|
|
- <el-button v-if="hasPermission('jy_project:info:edit')&&scope.row.status === '5' && scope.row.projectLeader === $store.state.user.id" text type="primary" @click="edit(scope.row.id)">修改</el-button>
|
|
|
|
|
|
+ <el-button v-if="hasPermission('jy_project:info:edit')&&scope.row.status === '5' && scope.row.projectLeader === $store.state.user.name" text type="primary" @click="adminEdit(scope.row)">修改</el-button>
|
|
<el-button v-if="hasPermission('jy_project:info:edit')&&scope.row.status === '2'&&scope.row.createBy === $store.state.user.id" text type="primary" @click="registeredReback(scope.row)">撤回</el-button>
|
|
<el-button v-if="hasPermission('jy_project:info:edit')&&scope.row.status === '2'&&scope.row.createBy === $store.state.user.id" text type="primary" @click="registeredReback(scope.row)">撤回</el-button>
|
|
<!--项目登记 审核-->
|
|
<!--项目登记 审核-->
|
|
<el-button v-if="scope.row.status==='2' && checkIsAudit(scope.row)" text type="primary" @click="examine(scope.row)">登记审核</el-button>
|
|
<el-button v-if="scope.row.status==='2' && checkIsAudit(scope.row)" text type="primary" @click="examine(scope.row)">登记审核</el-button>
|
|
@@ -280,10 +280,10 @@
|
|
|
|
|
|
|
|
|
|
<!-- <!–报批签发发起–>-->
|
|
<!-- <!–报批签发发起–>-->
|
|
- <el-button v-if="hasPermission('jy_project:info:edit')&&(scope.row.createBy === $store.state.user.id ||haveProjectIds.includes(scope.row.id)) &&scope.row.outInstance === '5' && (scope.row.reportsSubmit === null ||scope.row.reportsSubmit === undefined ||scope.row.reportsSubmit === '' ||scope.row.reportsSubmit === '0')" text type="primary" @click="reportsDoSubmit(scope.row)">报批签发</el-button>
|
|
|
|
|
|
+ <el-button v-if="hasPermission('jy_project:info:edit')&&(scope.row.createBy === $store.state.user.id ||haveProjectIds.includes(scope.row.id)) &&scope.row.outInstance === '5' && (scope.row.reportsSubmit === null ||scope.row.reportsSubmit === undefined ||scope.row.reportsSubmit === '' ||scope.row.reportsSubmit === '0' || scope.row.reportsSubmit === '1'|| scope.row.reportsSubmit === '3')" text type="primary" @click="reportsDoSubmit(scope.row)">报批签发</el-button>
|
|
<!-- <!–报批签发撤回–>-->
|
|
<!-- <!–报批签发撤回–>-->
|
|
<el-button v-if="hasPermission('jy_project:info:edit')&&(scope.row.createBy === $store.state.user.id ||haveProjectIds.includes(scope.row.id)) && scope.row.reportsSubmit === '2'" text type="primary" @click="reportsSubmitReback(scope.row)">报批签发撤回</el-button>
|
|
<el-button v-if="hasPermission('jy_project:info:edit')&&(scope.row.createBy === $store.state.user.id ||haveProjectIds.includes(scope.row.id)) && scope.row.reportsSubmit === '2'" text type="primary" @click="reportsSubmitReback(scope.row)">报批签发撤回</el-button>
|
|
- <el-button v-if="scope.row.reportsSubmit === '1'|| scope.row.reportsSubmit === '3' &&(scope.row.createBy === $store.state.user.id|| haveProjectIds.includes(scope.row.id))" text type="primary" @click="edit(scope.row)">报批签发修改</el-button>
|
|
|
|
|
|
+<!-- <el-button v-if="scope.row.reportsSubmit === '1'|| scope.row.reportsSubmit === '3' &&(scope.row.createBy === $store.state.user.id|| haveProjectIds.includes(scope.row.id))" text type="primary" @click="edit(scope.row)">报批签发修改</el-button>-->
|
|
<!-- <!– 报批签发 审核–>-->
|
|
<!-- <!– 报批签发 审核–>-->
|
|
<el-button v-if="scope.row.reportsSubmit==='2' && checkIsAuditIssued(scope.row)" text type="primary" @click="reportsSubmitCheck(scope.row)">报批签发审核</el-button>
|
|
<el-button v-if="scope.row.reportsSubmit==='2' && checkIsAuditIssued(scope.row)" text type="primary" @click="reportsSubmitCheck(scope.row)">报批签发审核</el-button>
|
|
<!-- <!– 报批签发 被驳回后当前申请人重新调整–>-->
|
|
<!-- <!– 报批签发 被驳回后当前申请人重新调整–>-->
|
|
@@ -459,11 +459,11 @@ export default {
|
|
this.$refs.projectForm.init('add', '')
|
|
this.$refs.projectForm.init('add', '')
|
|
},
|
|
},
|
|
// 修改
|
|
// 修改
|
|
- edit (id) {
|
|
|
|
- id = id || this.$refs.typeDictTable.getCheckboxRecords().map(item => {
|
|
|
|
- return item.id
|
|
|
|
- })[0]
|
|
|
|
- this.$refs.projectFormUpdate.init('edit', id)
|
|
|
|
|
|
+ adminEdit (row) {
|
|
|
|
+ // id = row.id || this.$refs.typeDictTable.getCheckboxRecords().map(item => {
|
|
|
|
+ // return item.id
|
|
|
|
+ // })[0]
|
|
|
|
+ this.$refs.projectDia.init('edit', row.id,row.auditId1, row.auditId2, row.auditId3,row.sealId,row.outInstanceId,row.reportsSubmitId,row.archiveId,row.eiaId)
|
|
},
|
|
},
|
|
// 查看
|
|
// 查看
|
|
view (row) {
|
|
view (row) {
|