|
@@ -250,8 +250,9 @@
|
|
<el-button v-if="scope.row.firstInstanceStatus==='2' && checkIsAuditFirst(scope.row)" text type="primary" @click="examineFirst(scope.row)">一级校审审核</el-button>
|
|
<el-button v-if="scope.row.firstInstanceStatus==='2' && checkIsAuditFirst(scope.row)" text type="primary" @click="examineFirst(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.firstInstanceStatus === '4'" text type="primary" @click="adjustFirst(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.firstInstanceStatus === '4'" text type="primary" @click="adjustFirst(scope.row)">驳回调整</el-button>
|
|
-
|
|
|
|
-<!-- <!– 二级校审 发起–>-->
|
|
|
|
|
|
+<!-- 管理员撤回-->
|
|
|
|
+ <el-button v-if="hasPermission('admin:edit') && isJyAdmin && scope.row.firstInstanceStatus==='5'" text type="primary" @click="backFirst(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.firstInstanceStatus === '5' || scope.row.firstInstanceStatus === '7')&&(scope.row.secondInstanceStatus === '0'||scope.row.secondInstanceStatus === '1'||scope.row.secondInstanceStatus === '3')" text type="primary" @click="secondAuditPush(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.firstInstanceStatus === '5' || scope.row.firstInstanceStatus === '7')&&(scope.row.secondInstanceStatus === '0'||scope.row.secondInstanceStatus === '1'||scope.row.secondInstanceStatus === '3')" text type="primary" @click="secondAuditPush(scope.row)">二级校审</el-button>
|
|
<!-- <!– 二级校审 撤回–>-->
|
|
<!-- <!– 二级校审 撤回–>-->
|
|
<el-button v-if="hasPermission('jy_project:info:edit')&&scope.row.secondInstanceStatus === '2'&&(scope.row.createBy === $store.state.user.id ||haveProjectIds.includes(scope.row.id))" type="text" @click="secondAuditReback(scope.row)">校审撤回</el-button>
|
|
<el-button v-if="hasPermission('jy_project:info:edit')&&scope.row.secondInstanceStatus === '2'&&(scope.row.createBy === $store.state.user.id ||haveProjectIds.includes(scope.row.id))" type="text" @click="secondAuditReback(scope.row)">校审撤回</el-button>
|
|
@@ -259,8 +260,10 @@
|
|
<el-button v-if="scope.row.secondInstanceStatus==='2' && checkIsAuditSecond(scope.row)" text type="primary" @click="examineSecond(scope.row)">二级校审审核</el-button>
|
|
<el-button v-if="scope.row.secondInstanceStatus==='2' && checkIsAuditSecond(scope.row)" text type="primary" @click="examineSecond(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.secondInstanceStatus === '4'" text type="primary" @click="adjustSecond(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.secondInstanceStatus === '4'" text type="primary" @click="adjustSecond(scope.row)">驳回调整</el-button>
|
|
|
|
+<!-- 管理员撤回-->
|
|
|
|
+ <el-button v-if="hasPermission('admin:edit') && isJyAdmin && scope.row.secondInstanceStatus==='5'" text type="primary" @click="backSecond(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.secondInstanceStatus === '5' &&(scope.row.thirdInstanceStatus === '0'||scope.row.thirdInstanceStatus === '1'||scope.row.thirdInstanceStatus === '3')" text type="primary" @click="thirdAuditPush(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.secondInstanceStatus === '5' &&(scope.row.thirdInstanceStatus === '0'||scope.row.thirdInstanceStatus === '1'||scope.row.thirdInstanceStatus === '3')" text type="primary" @click="thirdAuditPush(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.thirdInstanceStatus === '2'" text type="primary" @click="thirdAuditReback(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.thirdInstanceStatus === '2'" text type="primary" @click="thirdAuditReback(scope.row)">校审撤回</el-button>
|
|
@@ -268,7 +271,8 @@
|
|
<el-button v-if="scope.row.thirdInstanceStatus==='2' && checkIsAuditThird(scope.row)" text type="primary" @click="examineThird(scope.row)">三级校审审核</el-button>
|
|
<el-button v-if="scope.row.thirdInstanceStatus==='2' && checkIsAuditThird(scope.row)" text type="primary" @click="examineThird(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.thirdInstanceStatus === '4'" text type="primary" @click="adjustThird(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.thirdInstanceStatus === '4'" text type="primary" @click="adjustThird(scope.row)">驳回调整</el-button>
|
|
-
|
|
|
|
|
|
+ <!-- 管理员撤回-->
|
|
|
|
+ <el-button v-if="hasPermission('admin:edit') && isJyAdmin && scope.row.thirdInstanceStatus==='5'" text type="primary" @click="backThird(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.thirdInstanceStatus === '5' && (scope.row.reportIssuance === null ||scope.row.reportIssuance === undefined ||scope.row.reportIssuance === '' ||scope.row.reportIssuance === '0' || scope.row.reportIssuance === '1'|| scope.row.reportIssuance === '3')" text type="primary" @click="reportIssuanceSubmit(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.thirdInstanceStatus === '5' && (scope.row.reportIssuance === null ||scope.row.reportIssuance === undefined ||scope.row.reportIssuance === '' ||scope.row.reportIssuance === '0' || scope.row.reportIssuance === '1'|| scope.row.reportIssuance === '3')" text type="primary" @click="reportIssuanceSubmit(scope.row)">报告签发</el-button>
|
|
<!-- <!–报告签发撤回–>-->
|
|
<!-- <!–报告签发撤回–>-->
|
|
@@ -925,6 +929,20 @@ export default {
|
|
})
|
|
})
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ //管理员撤回一级校审
|
|
|
|
+ backFirst(row){
|
|
|
|
+ this.$confirm(`确定要撤回该申请吗?`, '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ }).then(async () => {
|
|
|
|
+ let form = {status: '1', id: row.auditId1}
|
|
|
|
+ this.projectInfoService.updateStatusByAuditId(form).then(()=>{
|
|
|
|
+ this.$message.success('撤回成功')
|
|
|
|
+ this.refreshList()
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ },
|
|
// 查询当前登录人是否是数据的审核人 二级校审
|
|
// 查询当前登录人是否是数据的审核人 二级校审
|
|
checkIsAuditSecond (row) {
|
|
checkIsAuditSecond (row) {
|
|
let loginUserId = this.$store.state.user.id // 获取当前登录用户id
|
|
let loginUserId = this.$store.state.user.id // 获取当前登录用户id
|
|
@@ -1015,6 +1033,20 @@ export default {
|
|
})
|
|
})
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ //管理员撤回二级校审
|
|
|
|
+ backSecond(row){
|
|
|
|
+ this.$confirm(`确定要撤回该申请吗?`, '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ }).then(async () => {
|
|
|
|
+ let form = {status: '1', id: row.auditId2}
|
|
|
|
+ this.projectInfoService.updateStatusByAuditId(form).then(()=>{
|
|
|
|
+ this.$message.success('撤回成功')
|
|
|
|
+ this.refreshList()
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ },
|
|
// 驳回后调整 二级校审
|
|
// 驳回后调整 二级校审
|
|
adjustSecond (row) {
|
|
adjustSecond (row) {
|
|
this.projectInfoService.findByIdAudit(row.auditId2).then((data) => {
|
|
this.projectInfoService.findByIdAudit(row.auditId2).then((data) => {
|
|
@@ -1135,6 +1167,20 @@ export default {
|
|
})
|
|
})
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ //管理员撤回三级校审
|
|
|
|
+ backThird(row){
|
|
|
|
+ this.$confirm(`确定要撤回该申请吗?`, '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ }).then(async () => {
|
|
|
|
+ let form = {status: '1', id: row.auditId3}
|
|
|
|
+ this.projectInfoService.updateStatusByAuditId(form).then(()=>{
|
|
|
|
+ this.$message.success('撤回成功')
|
|
|
|
+ this.refreshList()
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ },
|
|
// 驳回后调整 三级校审
|
|
// 驳回后调整 三级校审
|
|
adjustThird (row) {
|
|
adjustThird (row) {
|
|
this.projectInfoService.findByIdAudit(row.auditId3).then((data) => {
|
|
this.projectInfoService.findByIdAudit(row.auditId3).then((data) => {
|