|
@@ -148,20 +148,43 @@
|
|
|
<!--项目负责人修改-->
|
|
|
<el-button v-if="hasPermission('program:registered:edit')&&scope.row.status === '5' &&(scope.row.createBy === createName||haveProjectIds.includes(scope.row.id)) && (scope.row.archiveStatus === null ||scope.row.archiveStatus === undefined ||scope.row.archiveStatus === '' ||scope.row.archiveStatus === '0')" type="text" size="small" @click="edit(scope.row.id)">修改</el-button>
|
|
|
<el-button v-if="hasPermission('program:registered:edit')&&scope.row.status === '2'&&(scope.row.createBy === createName||haveProjectIds.includes(scope.row.id))" type="text" size="small" @click="registeredReback(scope.row)">撤回</el-button>
|
|
|
+ <!--项目登记 审核-->
|
|
|
+ <el-button v-if="scope.row.status==='2' && checkIsAudit(scope.row)" type="text" size="small" @click="examine(scope.row)">登记审核</el-button>
|
|
|
+ <!--项目登记 被驳回后当前申请人重新调整-->
|
|
|
+ <el-button v-if="hasPermission('program:registered:edit')&&(scope.row.createBy === createName||haveProjectIds.includes(scope.row.id))&&scope.row.status === '4'" type="text" size="small" @click="adjust(scope.row)">驳回调整</el-button>
|
|
|
+
|
|
|
<el-button v-if="hasPermission('program:registered:del')&&(scope.row.status === '1' || scope.row.status === '3')&&(scope.row.createBy === createName||haveProjectIds.includes(scope.row.id))" type="text" size="small" @click="del(scope.row.id)">删除</el-button>
|
|
|
<!--管理员角色登记完成后可删除-->
|
|
|
<el-button v-if="hasPermission('program:registered:del')&&scope.row.status === '5' && isAdmin" type="text" size="small" @click="del(scope.row.id)">删除</el-button>
|
|
|
|
|
|
<!-- <el-button v-if="hasPermission('program:registered:edit')&&scope.row.status === '5' && commonJS.isEmpty(scope.row.reportNo) && scope.row.createBy === createName" type="text" size="small" @click="saveReportNo(scope.row.id)">生成报告号</el-button>-->
|
|
|
|
|
|
+ <!-- 一级校审 发起-->
|
|
|
<el-button v-if="hasPermission('program:registered:edit')&&scope.row.status === '5' &&(scope.row.createBy === createName||haveProjectIds.includes(scope.row.id))&&(scope.row.status1 === '0'||scope.row.status1 === '1'||scope.row.status1 === '3')" type="text" size="small" @click="firstAuditPush(scope.row)">一级校审</el-button>
|
|
|
+ <!-- 一级校审 撤回-->
|
|
|
<el-button v-if="hasPermission('program:registered:edit')&&scope.row.status1 === '2' &&(scope.row.createBy === createName||haveProjectIds.includes(scope.row.id))" type="text" size="small" @click="firstAuditReback(scope.row)">校审撤回</el-button>
|
|
|
+ <!-- 一级校审 审核-->
|
|
|
+ <el-button v-if="scope.row.status1==='2' && checkIsAuditFirst(scope.row)" type="text" size="small" @click="examineFirst(scope.row)">一级校审审核</el-button>
|
|
|
+ <!-- 一级校审 被驳回后当前申请人重新调整-->
|
|
|
+ <el-button v-if="hasPermission('program:registered:edit')&&(scope.row.createBy === createName||haveProjectIds.includes(scope.row.id))&&scope.row.status1 === '4'" type="text" size="small" @click="adjustFirst(scope.row)">驳回调整</el-button>
|
|
|
|
|
|
+ <!-- 二级校审 发起-->
|
|
|
<el-button v-if="hasPermission('program:registered:edit')&&(scope.row.createBy === createName||haveProjectIds.includes(scope.row.id))&&scope.row.status1 === '5'&&(scope.row.status2 === '0'||scope.row.status2 === '1'||scope.row.status2 === '3')" type="text" size="small" @click="secondAuditPush(scope.row)">二级校审</el-button>
|
|
|
+ <!-- 二级校审 撤回-->
|
|
|
<el-button v-if="hasPermission('program:registered:edit')&&scope.row.status2 === '2'&&(scope.row.createBy === createName||haveProjectIds.includes(scope.row.id))" type="text" size="small" @click="secondAuditReback(scope.row)">校审撤回</el-button>
|
|
|
+ <!-- 二级校审 审核-->
|
|
|
+ <el-button v-if="scope.row.status2==='2' && checkIsAuditSecond(scope.row)" type="text" size="small" @click="examineSecond(scope.row)">二级校审审核</el-button>
|
|
|
+ <!-- 二级校审 被驳回后当前申请人重新调整-->
|
|
|
+ <el-button v-if="hasPermission('program:registered:edit')&&(scope.row.createBy === createName||haveProjectIds.includes(scope.row.id))&&scope.row.status2 === '4'" type="text" size="small" @click="adjustSecond(scope.row)">驳回调整</el-button>
|
|
|
|
|
|
+ <!-- 三级校审 发起-->
|
|
|
<el-button v-if="hasPermission('program:registered:edit')&&(scope.row.createBy === createName||haveProjectIds.includes(scope.row.id))&&scope.row.status2 === '5' &&(scope.row.status3 === '0'||scope.row.status3 === '1'||scope.row.status3 === '3')" type="text" size="small" @click="thirdAuditPush(scope.row)">三级校审</el-button>
|
|
|
+ <!-- 三级校审 撤回-->
|
|
|
<el-button v-if="hasPermission('program:registered:edit')&&(scope.row.createBy === createName||haveProjectIds.includes(scope.row.id))&&scope.row.status3 === '2'" type="text" size="small" @click="thirdAuditReback(scope.row)">校审撤回</el-button>
|
|
|
+ <!-- 三级校审 审核-->
|
|
|
+ <el-button v-if="scope.row.status3==='2' && checkIsAuditThird(scope.row)" type="text" size="small" @click="examineThird(scope.row)">三级校审审核</el-button>
|
|
|
+ <!-- 三级校审 被驳回后当前申请人重新调整-->
|
|
|
+ <el-button v-if="hasPermission('program:registered:edit')&&(scope.row.createBy === createName||haveProjectIds.includes(scope.row.id))&&scope.row.status3 === '4'" type="text" size="small" @click="adjustThird(scope.row)">驳回调整</el-button>
|
|
|
|
|
|
<!--三神结束后,评估报告签发前进行资产评估项目(校对)-->
|
|
|
<el-button v-if="hasPermission('program:registered:proo')&&(scope.row.createBy === createName||haveProjectIds.includes(scope.row.id))&&scope.row.status3 === '5'&&commonJS.isEmpty(scope.row.issuedStatus)" type="text" size="small" @click="proofread(scope.row.id)">校对</el-button>
|
|
@@ -169,11 +192,22 @@
|
|
|
<el-button v-if="hasPermission('program:registered:browse')&&(scope.row.createBy === createName||haveProjectIds.includes(scope.row.id)) &&scope.row.status3 === '5' && (scope.row.issuedStatus === null ||scope.row.issuedStatus === undefined ||scope.row.issuedStatus === '' ||scope.row.issuedStatus === '0' || scope.row.issuedStatus === '1' || scope.row.issuedStatus === '3')" type="text" size="small" @click="issued(scope.row)">签发</el-button>
|
|
|
<!--报告签发撤回-->
|
|
|
<el-button v-if="hasPermission('program:registered:browse')&&(scope.row.createBy === createName||haveProjectIds.includes(scope.row.id)) && scope.row.issuedStatus === '2'" type="text" size="small" @click="issuedReback(scope.row)">签发撤回</el-button>
|
|
|
+ <!-- 报告签发 审核-->
|
|
|
+ <el-button v-if="scope.row.issuedStatus==='2' && checkIsAuditIssued(scope.row)" type="text" size="small" @click="examineIssued(scope.row)">签发审核</el-button>
|
|
|
+ <!-- 报告签发 被驳回后当前申请人重新调整-->
|
|
|
+ <el-button v-if="hasPermission('program:registered:browse')&&(scope.row.createBy === createName||haveProjectIds.includes(scope.row.id))&&scope.row.issuedStatus === '4'" type="text" size="small" @click="adjustIssued(scope.row)">驳回调整</el-button>
|
|
|
+
|
|
|
<!--评估报告装订后的审核-->
|
|
|
<el-button v-if="hasPermission('program:registered:browse')&&(scope.row.createBy === createName||haveProjectIds.includes(scope.row.id))&&scope.row.issuedStatus === '5'&&scope.row.archiveStatus === '0'" type="text" size="small" @click="browse(scope.row.id)">装订自校</el-button>
|
|
|
|
|
|
+ <!-- 项目归档-->
|
|
|
<el-button v-if="hasPermission('program:registered:edit')&&(scope.row.createBy === createName||haveProjectIds.includes(scope.row.id))&&scope.row.issuedStatus === '5' &&(scope.row.archiveStatus === '0'||scope.row.archiveStatus === '1'||scope.row.archiveStatus === '3')" type="text" size="small" @click="archivePush(scope.row)">项目归档</el-button>
|
|
|
+ <!-- 项目归档撤回-->
|
|
|
<el-button v-if="hasPermission('program:registered:edit')&&(scope.row.createBy === createName||haveProjectIds.includes(scope.row.id))&&scope.row.archiveStatus === '2'" type="text" size="small" @click="archiveReback(scope.row)">项目归档撤回</el-button>
|
|
|
+ <!-- 项目归档 审核-->
|
|
|
+ <el-button v-if="scope.row.archiveStatus==='2' && checkIsAuditArchive(scope.row)" type="text" size="small" @click="examineArchive(scope.row)">归档审核</el-button>
|
|
|
+ <!-- 项目归档 被驳回后当前申请人重新调整-->
|
|
|
+ <el-button v-if="hasPermission('program:registered:edit')&&(scope.row.createBy === createName||haveProjectIds.includes(scope.row.id))&&scope.row.archiveStatus === '4'" type="text" size="small" @click="adjustArchive(scope.row)">驳回调整</el-button>
|
|
|
|
|
|
<!--一级校审ftl文件下载-->
|
|
|
<!-- <el-button v-if="hasPermission('program:registered:edit')" type="text" icon="el-icon-circle-check" size="small" @click="downloadFirstAuditTpl(scope.row)">一级校审下载</el-button>-->
|
|
@@ -1073,6 +1107,330 @@
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
+ },
|
|
|
+ // 驳回后调整
|
|
|
+ adjust (row) {
|
|
|
+ this.programProjectListInfoService.queryById(row.id).then(({data}) => {
|
|
|
+ if (data.status !== '4') { // status的值不等于“驳回”,就弹出提示
|
|
|
+ this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
|
+ this.refreshList()
|
|
|
+ } else {
|
|
|
+ this.todo(row)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 审核
|
|
|
+ examine (row) {
|
|
|
+ this.programProjectListInfoService.queryById(row.id).then(({data}) => {
|
|
|
+ if (data.status !== '2') { // status的值不等于“审核中”,就弹出提示
|
|
|
+ this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
|
+ this.refreshList()
|
|
|
+ } else {
|
|
|
+ this.todo(row)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 审核或重新调整跳转
|
|
|
+ todo (row) {
|
|
|
+ let cUser = false
|
|
|
+ this.taskService.getTaskDefInfo({
|
|
|
+ taskId: row.taskId
|
|
|
+ }).then(({data}) => {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/flowable/task/TaskForm',
|
|
|
+ query: {
|
|
|
+ ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title', 'businessId'),
|
|
|
+ isShow: false,
|
|
|
+ formReadOnly: true,
|
|
|
+ formTitle: `${data.taskName}`,
|
|
|
+ cUser: cUser,
|
|
|
+ title: `审批【${data.taskName || ''}】`,
|
|
|
+ routePath: '/program/registered/ProjectList' // 数据处理后需要跳转的页面路径
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 查询当前登录人是否是数据的审核人
|
|
|
+ checkIsAudit (row) {
|
|
|
+ let loginUserId = this.$store.state.user.id // 获取当前登录用户id
|
|
|
+ if (this.commonJS.isNotEmpty(row.auditUserIds)) {
|
|
|
+ for (const userId of row.auditUserIds) {
|
|
|
+ if (userId === loginUserId) { // 当数据的审核人中包含当前登录人id时,返回true
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return false
|
|
|
+ },
|
|
|
+ // 驳回后调整 一级校审
|
|
|
+ adjustFirst (row) {
|
|
|
+ this.programProjectListInfoService.findByIdAudit(row.auditId1).then(({data}) => {
|
|
|
+ if (data.status !== '4') { // status的值不等于“驳回”,就弹出提示
|
|
|
+ this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
|
+ this.refreshList()
|
|
|
+ } else {
|
|
|
+ this.todoFirst(row)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 审核 一级校审
|
|
|
+ examineFirst (row) {
|
|
|
+ this.programProjectListInfoService.findByIdAudit(row.auditId1).then(({data}) => {
|
|
|
+ if (data.status !== '2') { // status的值不等于“审核中”,就弹出提示
|
|
|
+ this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
|
+ this.refreshList()
|
|
|
+ } else {
|
|
|
+ this.todoFirst(row)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 审核或重新调整跳转 一级校审
|
|
|
+ todoFirst (row) {
|
|
|
+ let cUser = false
|
|
|
+ this.taskService.getTaskDefInfo({
|
|
|
+ taskId: row.taskIdAudit1
|
|
|
+ }).then(({data}) => {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/flowable/task/TaskForm',
|
|
|
+ query: {
|
|
|
+ ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title', 'businessId'),
|
|
|
+ isShow: false,
|
|
|
+ formReadOnly: true,
|
|
|
+ formTitle: `${data.taskName}`,
|
|
|
+ cUser: cUser,
|
|
|
+ title: `审批【${data.taskName || ''}】`,
|
|
|
+ routePath: '/program/registered/ProjectList' // 数据处理后需要跳转的页面路径
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 查询当前登录人是否是数据的审核人 一级校审
|
|
|
+ checkIsAuditFirst (row) {
|
|
|
+ let loginUserId = this.$store.state.user.id // 获取当前登录用户id
|
|
|
+ if (this.commonJS.isNotEmpty(row.auditUserIds1)) {
|
|
|
+ for (const userId of row.auditUserIds1) {
|
|
|
+ if (userId === loginUserId) { // 当数据的审核人中包含当前登录人id时,返回true
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return false
|
|
|
+ },
|
|
|
+ // 驳回后调整 二级校审
|
|
|
+ adjustSecond (row) {
|
|
|
+ this.programProjectListInfoService.findByIdAudit(row.auditId2).then(({data}) => {
|
|
|
+ if (data.status !== '4') { // status的值不等于“驳回”,就弹出提示
|
|
|
+ this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
|
+ this.refreshList()
|
|
|
+ } else {
|
|
|
+ this.todoSecond(row)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 审核 二级校审
|
|
|
+ examineSecond (row) {
|
|
|
+ this.programProjectListInfoService.findByIdAudit(row.auditId2).then(({data}) => {
|
|
|
+ if (data.status !== '2') { // status的值不等于“审核中”,就弹出提示
|
|
|
+ this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
|
+ this.refreshList()
|
|
|
+ } else {
|
|
|
+ this.todoSecond(row)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 审核或重新调整跳转 二级校审
|
|
|
+ todoSecond (row) {
|
|
|
+ let cUser = false
|
|
|
+ this.taskService.getTaskDefInfo({
|
|
|
+ taskId: row.taskIdAudit2
|
|
|
+ }).then(({data}) => {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/flowable/task/TaskForm',
|
|
|
+ query: {
|
|
|
+ ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title', 'businessId'),
|
|
|
+ isShow: false,
|
|
|
+ formReadOnly: true,
|
|
|
+ formTitle: `${data.taskName}`,
|
|
|
+ cUser: cUser,
|
|
|
+ title: `审批【${data.taskName || ''}】`,
|
|
|
+ routePath: '/program/registered/ProjectList' // 数据处理后需要跳转的页面路径
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 查询当前登录人是否是数据的审核人 二级校审
|
|
|
+ checkIsAuditSecond (row) {
|
|
|
+ let loginUserId = this.$store.state.user.id // 获取当前登录用户id
|
|
|
+ if (this.commonJS.isNotEmpty(row.auditUserIds2)) {
|
|
|
+ for (const userId of row.auditUserIds2) {
|
|
|
+ if (userId === loginUserId) { // 当数据的审核人中包含当前登录人id时,返回true
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return false
|
|
|
+ },
|
|
|
+ // 驳回后调整 三级校审
|
|
|
+ adjustThird (row) {
|
|
|
+ this.programProjectListInfoService.findByIdAudit(row.auditId3).then(({data}) => {
|
|
|
+ if (data.status !== '4') { // status的值不等于“驳回”,就弹出提示
|
|
|
+ this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
|
+ this.refreshList()
|
|
|
+ } else {
|
|
|
+ this.todoThird(row)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 审核 三级校审
|
|
|
+ examineThird (row) {
|
|
|
+ this.programProjectListInfoService.findByIdAudit(row.auditId3).then(({data}) => {
|
|
|
+ if (data.status !== '2') { // status的值不等于“审核中”,就弹出提示
|
|
|
+ this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
|
+ this.refreshList()
|
|
|
+ } else {
|
|
|
+ this.todoThird(row)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 审核或重新调整跳转 三级校审
|
|
|
+ todoThird (row) {
|
|
|
+ let cUser = false
|
|
|
+ this.taskService.getTaskDefInfo({
|
|
|
+ taskId: row.taskIdAudit3
|
|
|
+ }).then(({data}) => {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/flowable/task/TaskForm',
|
|
|
+ query: {
|
|
|
+ ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title', 'businessId'),
|
|
|
+ isShow: false,
|
|
|
+ formReadOnly: true,
|
|
|
+ formTitle: `${data.taskName}`,
|
|
|
+ cUser: cUser,
|
|
|
+ title: `审批【${data.taskName || ''}】`,
|
|
|
+ routePath: '/program/registered/ProjectList' // 数据处理后需要跳转的页面路径
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 查询当前登录人是否是数据的审核人 三级校审
|
|
|
+ checkIsAuditThird (row) {
|
|
|
+ let loginUserId = this.$store.state.user.id // 获取当前登录用户id
|
|
|
+ if (this.commonJS.isNotEmpty(row.auditUserIds3)) {
|
|
|
+ for (const userId of row.auditUserIds3) {
|
|
|
+ if (userId === loginUserId) { // 当数据的审核人中包含当前登录人id时,返回true
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return false
|
|
|
+ },
|
|
|
+ // 驳回后调整 签发
|
|
|
+ adjustIssued (row) {
|
|
|
+ this.proofreadIssuedService.findById(row.id).then(({data}) => {
|
|
|
+ if (data.status !== '4') { // status的值不等于“驳回”,就弹出提示
|
|
|
+ this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
|
+ this.refreshList()
|
|
|
+ } else {
|
|
|
+ this.todoIssued(row)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 审核 签发
|
|
|
+ examineIssued (row) {
|
|
|
+ this.proofreadIssuedService.findById(row.id).then(({data}) => {
|
|
|
+ if (data.status !== '2') { // status的值不等于“审核中”,就弹出提示
|
|
|
+ this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
|
+ this.refreshList()
|
|
|
+ } else {
|
|
|
+ this.todoIssued(row)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 审核或重新调整跳转 签发
|
|
|
+ todoIssued (row) {
|
|
|
+ let cUser = false
|
|
|
+ this.taskService.getTaskDefInfo({
|
|
|
+ taskId: row.taskIdIssued
|
|
|
+ }).then(({data}) => {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/flowable/task/TaskForm',
|
|
|
+ query: {
|
|
|
+ ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title', 'businessId'),
|
|
|
+ isShow: false,
|
|
|
+ formReadOnly: true,
|
|
|
+ formTitle: `${data.taskName}`,
|
|
|
+ cUser: cUser,
|
|
|
+ title: `审批【${data.taskName || ''}】`,
|
|
|
+ routePath: '/program/registered/ProjectList' // 数据处理后需要跳转的页面路径
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 查询当前登录人是否是数据的审核人 签发
|
|
|
+ checkIsAuditIssued (row) {
|
|
|
+ let loginUserId = this.$store.state.user.id // 获取当前登录用户id
|
|
|
+ if (this.commonJS.isNotEmpty(row.auditUserIdsIssued)) {
|
|
|
+ for (const userId of row.auditUserIdsIssued) {
|
|
|
+ if (userId === loginUserId) { // 当数据的审核人中包含当前登录人id时,返回true
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return false
|
|
|
+ },
|
|
|
+ // 驳回后调整 归档
|
|
|
+ adjustArchive (row) {
|
|
|
+ this.programProjectListInfoService.findByIdArchive(row.archiveId).then(({data}) => {
|
|
|
+ if (data.status !== '4') { // status的值不等于“驳回”,就弹出提示
|
|
|
+ this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
|
+ this.refreshList()
|
|
|
+ } else {
|
|
|
+ this.todoArchive(row)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 审核 归档
|
|
|
+ examineArchive (row) {
|
|
|
+ this.programProjectListInfoService.findByIdArchive(row.archiveId).then(({data}) => {
|
|
|
+ if (data.status !== '2') { // status的值不等于“审核中”,就弹出提示
|
|
|
+ this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
|
+ this.refreshList()
|
|
|
+ } else {
|
|
|
+ this.todoArchive(row)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 审核或重新调整跳转 归档
|
|
|
+ todoArchive (row) {
|
|
|
+ let cUser = false
|
|
|
+ this.taskService.getTaskDefInfo({
|
|
|
+ taskId: row.taskIdArchive
|
|
|
+ }).then(({data}) => {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/flowable/task/TaskForm',
|
|
|
+ query: {
|
|
|
+ ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title', 'businessId'),
|
|
|
+ isShow: false,
|
|
|
+ formReadOnly: true,
|
|
|
+ formTitle: `${data.taskName}`,
|
|
|
+ cUser: cUser,
|
|
|
+ title: `审批【${data.taskName || ''}】`,
|
|
|
+ routePath: '/program/registered/ProjectList' // 数据处理后需要跳转的页面路径
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 查询当前登录人是否是数据的审核人 归档
|
|
|
+ checkIsAuditArchive (row) {
|
|
|
+ let loginUserId = this.$store.state.user.id // 获取当前登录用户id
|
|
|
+ if (this.commonJS.isNotEmpty(row.auditUserIdsArchive)) {
|
|
|
+ for (const userId of row.auditUserIdsArchive) {
|
|
|
+ if (userId === loginUserId) { // 当数据的审核人中包含当前登录人id时,返回true
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return false
|
|
|
}
|
|
|
}
|
|
|
}
|