|
@@ -43,7 +43,7 @@
|
|
|
<el-form-item v-if="showHideItem" label="报备类型" prop="filingType">
|
|
|
<el-select v-model="searchForm.filingType" placeholder="请选择" style="width:100%;">
|
|
|
<el-option
|
|
|
- v-for="item in $dictUtils.getDictList('cw_work_client_report_type')"
|
|
|
+ v-for="item in $dictUtils.getDictList('program_cost_audit_type')"
|
|
|
:key="item.value"
|
|
|
:label="item.label"
|
|
|
:value="item.value">
|
|
@@ -132,11 +132,26 @@
|
|
|
{{$dictUtils.getDictLabel('cw_project_level', scope.row.projectLevel, '')}}
|
|
|
</template>
|
|
|
</vxe-column>
|
|
|
- <vxe-column min-width="100" title="状态" fixed="right" align="center" field="reviewStatus">
|
|
|
+ <vxe-column min-width="100" title="质量复核" fixed="right" align="center" field="reviewStatus">
|
|
|
<template #default="scope">
|
|
|
<el-button @click="detail(scope.row)" :type="$dictUtils.getDictLabel('status_info', scope.row.reviewStatus, '')" effect="dark" >{{$dictUtils.getDictLabel("status", scope.row.reviewStatus, '未开始')}} </el-button>
|
|
|
</template>
|
|
|
</vxe-column>
|
|
|
+ <vxe-column min-width="100" title="报告签发" fixed="right" align="center" field="signAndIssueStatus">
|
|
|
+ <template #default="scope">
|
|
|
+ <el-button @click="signAndIssueDetail(scope.row)" :type="$dictUtils.getDictLabel('status_info', scope.row.signAndIssueStatus, '')" effect="dark" >{{$dictUtils.getDictLabel("status", scope.row.signAndIssueStatus, '未开始')}} </el-button>
|
|
|
+ </template>
|
|
|
+ </vxe-column>
|
|
|
+ <vxe-column min-width="100" title="电子/超期天数" fixed="right" align="center" field="onlineArchivingStatus">
|
|
|
+ <template #default="scope">
|
|
|
+ <el-button @click="pushOnlineDetail(scope.row)" :type="$dictUtils.getDictLabel('status_info', scope.row.onlineArchivingStatus, '')" effect="dark" >{{$dictUtils.getDictLabel("status", scope.row.onlineArchivingStatus, '未开始')}} </el-button>
|
|
|
+ </template>
|
|
|
+ </vxe-column>
|
|
|
+ <vxe-column min-width="100" title="纸质/超期天数" fixed="right" align="center" field="paperArchivingStatus">
|
|
|
+ <template #default="scope">
|
|
|
+ <el-button @click="pushPaperDetail(scope.row)" :type="$dictUtils.getDictLabel('status_info', scope.row.paperArchivingStatus, '')" effect="dark" >{{$dictUtils.getDictLabel("status", scope.row.paperArchivingStatus, '未开始')}} </el-button>
|
|
|
+ </template>
|
|
|
+ </vxe-column>
|
|
|
<vxe-column title="操作" width="200px" fixed="right" align="center">
|
|
|
<template #default="scope">
|
|
|
<div v-if="isAdmin">
|
|
@@ -144,21 +159,35 @@
|
|
|
<el-button text type="primary" @click="del(scope.row.id,scope.row.projectId)">删除</el-button>
|
|
|
</div>
|
|
|
<div v-else>
|
|
|
- <el-button v-if="hasPermission('cwProjectReport:edit')&&
|
|
|
+ <!--<el-button v-if="hasPermission('cwProjectReport:edit')&&
|
|
|
(scope.row.createById === $store.state.user.id||haveProjectIds.includes(scope.row.projectId))&&
|
|
|
- scope.row.status === '5'"
|
|
|
+ scope.row.status === '5' && scope.row.reviewStatus === '5'"
|
|
|
text type="primary" @click="edit(scope.row.id)">修改</el-button>
|
|
|
|
|
|
<el-button v-else-if="hasPermission('cwProjectReport:del')&&
|
|
|
(scope.row.createById === $store.state.user.id||haveProjectIds.includes(scope.row.projectId))&&
|
|
|
- scope.row.status === '5'"
|
|
|
- text type="primary" @click="del(scope.row.id,scope.row.projectId)">删除</el-button>
|
|
|
+ scope.row.status === '5' && scope.row.reviewStatus === '5'"
|
|
|
+ text type="primary" @click="del(scope.row.id,scope.row.projectId)">删除</el-button>-->
|
|
|
<el-button v-if="hasPermission('cw:workContract:filed') && (scope.row.createById === $store.state.user.id||haveProjectIds.includes(scope.row.projectId)) && scope.row.status === '5' && (scope.row.reviewStatus === '0' || scope.row.reviewStatus === '1' || scope.row.reviewStatus === '3' || scope.row.reviewStatus === undefined || scope.row.reviewStatus === '')" text type="primary" @click="pushF(scope.row)">复核</el-button>
|
|
|
- <el-button v-if="hasPermission('cw:workContract:filed') && (scope.row.createById === $store.state.user.id||haveProjectIds.includes(scope.row.projectId)) && scope.row.status === '5'&& scope.row.reviewStatus === '2'" text type="primary" @click="rebackF(scope.row)">撤回复核申请</el-button>
|
|
|
+ <el-button v-if="hasPermission('cw:workContract:filed') && (scope.row.createById === $store.state.user.id||haveProjectIds.includes(scope.row.projectId)) && scope.row.status === '5'&& scope.row.reviewStatus === '2'" text type="primary" @click="rebackF(scope.row)">撤回复核</el-button>
|
|
|
<!-- 审核-->
|
|
|
- <el-button v-if="scope.row.reviewStatus==='2' && checkIsAuditReview(scope.row)" text type="primary" @click="examineReview(scope.row)">审核</el-button>
|
|
|
+<!-- <el-button v-if="scope.row.reviewStatus==='2' && checkIsAuditReview(scope.row)" text type="primary" @click="examineReview(scope.row)">审核</el-button>-->
|
|
|
<!-- 被驳回后当前申请人重新调整-->
|
|
|
<el-button v-if="hasPermission('cw:workContract:filed')&&scope.row.createById === $store.state.user.id&&scope.row.reviewStatus === '4'" text type="primary" @click="adjustReview(scope.row)">驳回调整</el-button>
|
|
|
+ <el-button v-if="hasPermission('cw:workContract:filed') && (scope.row.createById === $store.state.user.id||haveProjectIds.includes(scope.row.projectId)) && scope.row.status === '5' && scope.row.reviewStatus === '5'
|
|
|
+ && (scope.row.signAndIssueStatus === '0' || scope.row.signAndIssueStatus === '1' || scope.row.signAndIssueStatus === '3' || scope.row.signAndIssueStatus === undefined || scope.row.signAndIssueStatus === '') && scope.row.projectLevel !== '2'" text type="primary" @click="pushSignAndIssue(scope.row)">报告签发</el-button>
|
|
|
+ <el-button v-if="hasPermission('cw:workContract:filed') && (scope.row.createById === $store.state.user.id||haveProjectIds.includes(scope.row.projectId)) && scope.row.status === '5'&& scope.row.reviewStatus === '5' && scope.row.signAndIssueStatus === '2'" text type="primary" @click="rebackSignAndIssue(scope.row)">撤回签发</el-button>
|
|
|
+ <el-button v-if="hasPermission('signAndIssue:del') && (scope.row.createById === $store.state.user.id||haveProjectIds.includes(scope.row.projectId)) && scope.row.status === '5'&& scope.row.reviewStatus === '5' && (scope.row.signAndIssueStatus === '1' || scope.row.signAndIssueStatus === '3' || scope.row.signAndIssueStatus === '4')" text type="primary" @click="deleteSignAndIssue(scope.row)">删除签发</el-button>
|
|
|
+ <el-button v-if="hasPermission('cw:workContract:filed')&&scope.row.createById === $store.state.user.id&&scope.row.reviewStatus === '5'&&scope.row.signAndIssueStatus === '4'" text type="primary" @click="adjustSignAndIssue(scope.row)">驳回调整</el-button>
|
|
|
+ <el-button v-if="hasPermission('cw:workContract:filed') && (scope.row.createById === $store.state.user.id||haveProjectIds.includes(scope.row.projectId)) && scope.row.status === '5' && scope.row.reviewStatus === '5' && (scope.row.signAndIssueStatus === '5' || scope.row.projectLevel === '2')
|
|
|
+ && (scope.row.onlineArchivingStatus === '0' || scope.row.onlineArchivingStatus === '1' || scope.row.onlineArchivingStatus === '3' || scope.row.onlineArchivingStatus === undefined || scope.row.onlineArchivingStatus === '')"
|
|
|
+ text type="primary" @click="pushOnlineArchiving(scope.row)">线上归档</el-button>
|
|
|
+ <el-button v-if="hasPermission('cw:workContract:filed') && (scope.row.createById === $store.state.user.id||haveProjectIds.includes(scope.row.projectId)) && scope.row.status === '5'&& scope.row.reviewStatus === '5' && scope.row.onlineArchivingStatus === '2'" text type="primary" @click="rebackPushOnline(scope.row)">撤回线上归档</el-button>
|
|
|
+ <el-button v-if="hasPermission('cw:workContract:filed') && (scope.row.createById === $store.state.user.id||haveProjectIds.includes(scope.row.projectId)) && scope.row.status === '5'&& scope.row.reviewStatus === '5' && scope.row.onlineArchivingStatus === '4'" text type="primary" @click="adjustPushOnline(scope.row)">驳回调整</el-button>
|
|
|
+ <el-button v-if="hasPermission('cw:workContract:filed') && (scope.row.createById === $store.state.user.id||haveProjectIds.includes(scope.row.projectId)) && scope.row.status === '5' && scope.row.reviewStatus === '5' && scope.row.onlineArchivingStatus === '5'
|
|
|
+ && (scope.row.paperArchivingStatus === '0' || scope.row.paperArchivingStatus === '1' || scope.row.paperArchivingStatus === '3' || scope.row.paperArchivingStatus === undefined || scope.row.paperArchivingStatus === '')" text type="primary" @click="pushPaperArchiving(scope.row)">纸质归档</el-button>
|
|
|
+ <el-button v-if="hasPermission('cw:workContract:filed') && (scope.row.createById === $store.state.user.id||haveProjectIds.includes(scope.row.projectId)) && scope.row.status === '5'&& scope.row.reviewStatus === '5' && scope.row.onlineArchivingStatus === '5' && scope.row.paperArchivingStatus === '2'" text type="primary" @click="rebackPushPaper(scope.row)">撤回纸质归档</el-button>
|
|
|
+ <el-button v-if="hasPermission('cw:workContract:filed') && (scope.row.createById === $store.state.user.id||haveProjectIds.includes(scope.row.projectId)) && scope.row.status === '5'&& scope.row.reviewStatus === '5' && scope.row.onlineArchivingStatus === '5' && scope.row.paperArchivingStatus === '4'" text type="primary" @click="adjustPushPaper(scope.row)">驳回调整</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
</vxe-column>
|
|
@@ -227,6 +256,14 @@
|
|
|
loading: false,
|
|
|
processDefinitionAuditId: '',
|
|
|
procDefAuditKey: '',
|
|
|
+ signAndIssueProcDefId: '',
|
|
|
+ signAndIssueProcDefKey: '',
|
|
|
+ paperArchivingProcDefId: '',
|
|
|
+ paperArchivingProcDefKey: '',
|
|
|
+ onlineArchivingProcDefIdA: '',
|
|
|
+ onlineArchivingProcDefKeyA: '',
|
|
|
+ onlineArchivingProcDefIdB: '',
|
|
|
+ onlineArchivingProcDefKeyB: '',
|
|
|
processDefinitionAuditIdAndSId: '',
|
|
|
procDefAuditKeyAndSId: '',
|
|
|
isAdmin: false,
|
|
@@ -249,9 +286,11 @@
|
|
|
}
|
|
|
},
|
|
|
reportReviewService: null,
|
|
|
+ reportSignAndIssueService: null,
|
|
|
reportNumberApplyService: null,
|
|
|
created () {
|
|
|
this.reportReviewService = new ReportReviewService()
|
|
|
+ this.reportSignAndIssueService = new ReportSignAndIssueService()
|
|
|
this.reportNumberApplyService = new ReportNumberApplyService()
|
|
|
},
|
|
|
components: {
|
|
@@ -345,6 +384,30 @@
|
|
|
this.procDefAuditKey = data.key
|
|
|
}
|
|
|
})
|
|
|
+ processService.getByName('报告签发').then((data) => {
|
|
|
+ if (!this.commonJS.isEmpty(data.id)) {
|
|
|
+ this.signAndIssueProcDefId = data.id
|
|
|
+ this.signAndIssueProcDefKey = data.key
|
|
|
+ }
|
|
|
+ })
|
|
|
+ processService.getByName('报告-线上归档(A)').then((data) => {
|
|
|
+ if (!this.commonJS.isEmpty(data.id)) {
|
|
|
+ this.onlineArchivingProcDefIdA = data.id
|
|
|
+ this.onlineArchivingProcDefKeyA = data.key
|
|
|
+ }
|
|
|
+ })
|
|
|
+ processService.getByName('报告-线上归档(B)').then((data) => {
|
|
|
+ if (!this.commonJS.isEmpty(data.id)) {
|
|
|
+ this.onlineArchivingProcDefIdB = data.id
|
|
|
+ this.onlineArchivingProcDefKeyB = data.key
|
|
|
+ }
|
|
|
+ })
|
|
|
+ processService.getByName('报告-纸质归档').then((data) => {
|
|
|
+ if (!this.commonJS.isEmpty(data.id)) {
|
|
|
+ this.paperArchivingProcDefId = data.id
|
|
|
+ this.paperArchivingProcDefKey = data.key
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
// 当前页
|
|
|
currentChangeHandle ({ currentPage, pageSize }) {
|
|
@@ -394,70 +457,40 @@
|
|
|
} else {
|
|
|
title = ' ' + row.documentNo + ' - ' + row.projectName
|
|
|
}
|
|
|
- console.log('row', row)
|
|
|
|
|
|
- if (this.commonJS.isEmpty(row.newType) || row.newType !== '1'){
|
|
|
-
|
|
|
- let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了` + title + '[会计-报告复核]'
|
|
|
- let status = 'startAndHold'
|
|
|
- if (row.reviewStatus === '3') {
|
|
|
- status = 'startAndClose'
|
|
|
- } else if (row.reviewStatus === '4') {
|
|
|
- status = 'reapplyFlag'
|
|
|
- }
|
|
|
+ let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了` + title + '[会计-报告复核]'
|
|
|
+ let status = 'startAndHold'
|
|
|
+ if (row.reviewStatus === '3') {
|
|
|
+ status = 'startAndClose'
|
|
|
+ } else if (row.reviewStatus === '4') {
|
|
|
+ status = 'reapplyFlag'
|
|
|
+ }
|
|
|
|
|
|
- taskService.getTaskDef({ procDefId: this.processDefinitionAuditId,
|
|
|
- businessId: row.id,
|
|
|
- businessTable: 'cw_project_report_review_new'}).then((data) => {
|
|
|
- this.$router.push({
|
|
|
- path: '/flowable/task/TaskForm',
|
|
|
- query: {
|
|
|
- ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
- procDefId: this.processDefinitionAuditId,
|
|
|
- procDefKey: this.procDefAuditKey,
|
|
|
- title: title,
|
|
|
- formType: data.formType,
|
|
|
- formUrl: data.formUrl,
|
|
|
- formTitle: processTitle,
|
|
|
- businessTable: 'cw_project_report_review_new',
|
|
|
- businessId: row.id,
|
|
|
- isShow: 'false',
|
|
|
- status: status,
|
|
|
- routePath: '/cw/reportManagement/ReportManagementList'
|
|
|
- }
|
|
|
- })
|
|
|
- })
|
|
|
- } else if ( row.newType === '1') {
|
|
|
- let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了` + title + '[会计-复核及签章]'
|
|
|
- let status = 'startAndHold'
|
|
|
- if (row.reviewStatus === '3') {
|
|
|
- status = 'startAndClose'
|
|
|
- } else if (row.reviewStatus === '4') {
|
|
|
- status = 'reapplyFlag'
|
|
|
- }
|
|
|
+ if (row.projectLevel === '1') {
|
|
|
+ status = 'startAndClose'
|
|
|
+ }
|
|
|
|
|
|
- taskService.getTaskDef({ procDefId: this.processDefinitionAuditIdAndSId,
|
|
|
- businessId: row.id,
|
|
|
- businessTable: 'cw_project_report_review_new'}).then((data) => {
|
|
|
- this.$router.push({
|
|
|
- path: '/flowable/task/TaskForm',
|
|
|
- query: {
|
|
|
- ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
- procDefId: this.processDefinitionAuditIdAndSId,
|
|
|
- procDefKey: this.procDefAuditKeyAndSId,
|
|
|
- title: title,
|
|
|
- formType: data.formType,
|
|
|
- formUrl: data.formUrl,
|
|
|
- formTitle: processTitle,
|
|
|
- businessTable: 'cw_project_report_review_new',
|
|
|
- businessId: row.id,
|
|
|
- isShow: 'false',
|
|
|
- status: status,
|
|
|
- routePath: '/cw/reportManagement/ReportManagementList'
|
|
|
- }
|
|
|
- })
|
|
|
+ taskService.getTaskDef({ procDefId: this.processDefinitionAuditId,
|
|
|
+ businessId: row.id,
|
|
|
+ businessTable: 'cw_project_report_review_new'}).then((data) => {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/flowable/task/TaskForm',
|
|
|
+ query: {
|
|
|
+ ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
+ procDefId: this.processDefinitionAuditId,
|
|
|
+ procDefKey: this.procDefAuditKey,
|
|
|
+ title: title,
|
|
|
+ formType: data.formType,
|
|
|
+ formUrl: data.formUrl,
|
|
|
+ formTitle: processTitle,
|
|
|
+ businessTable: 'cw_project_report_review_new',
|
|
|
+ businessId: row.id,
|
|
|
+ isShow: 'false',
|
|
|
+ status: status,
|
|
|
+ routePath: '/cw/reportManagement/ReportManagementList'
|
|
|
+ }
|
|
|
})
|
|
|
- }
|
|
|
+ })
|
|
|
},
|
|
|
// 审核或重新调整跳转
|
|
|
todoReview (row) {
|
|
@@ -544,6 +577,389 @@
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+
|
|
|
+ pushSignAndIssue (row) {
|
|
|
+ // 读取流程表单
|
|
|
+ let title = ' '
|
|
|
+ if (!row.documentNo) {
|
|
|
+ title = ' ' + row.projectName
|
|
|
+ } else {
|
|
|
+ title = ' ' + row.documentNo + ' - ' + row.projectName
|
|
|
+ }
|
|
|
+
|
|
|
+ let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了` + title + '[会计-报告签发]'
|
|
|
+ let status = 'startAndHold'
|
|
|
+ if (row.reviewStatus === '3') {
|
|
|
+ status = 'startAndClose'
|
|
|
+ } else if (row.reviewStatus === '4') {
|
|
|
+ status = 'reapplyFlag'
|
|
|
+ }
|
|
|
+
|
|
|
+ if (row.projectLevel === '1') {
|
|
|
+ status = 'startAndClose'
|
|
|
+ }
|
|
|
+
|
|
|
+ taskService.getTaskDef({ procDefId: this.signAndIssueProcDefId,
|
|
|
+ businessId: row.signAndIssueId,
|
|
|
+ businessTable: 'cw_project_report_sign_and_issue'}).then((data) => {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/flowable/task/TaskForm',
|
|
|
+ query: {
|
|
|
+ ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
+ procDefId: this.signAndIssueProcDefId,
|
|
|
+ procDefKey: this.signAndIssueProcDefKey,
|
|
|
+ title: title,
|
|
|
+ formType: data.formType,
|
|
|
+ formUrl: data.formUrl,
|
|
|
+ formTitle: processTitle,
|
|
|
+ businessTable: 'cw_project_report_sign_and_issue',
|
|
|
+ businessId: row.id,
|
|
|
+ isShow: 'false',
|
|
|
+ status: status,
|
|
|
+ routePath: '/cw/reportManagement/ReportManagementList'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 报告签发流程详情
|
|
|
+ signAndIssueDetail (row) {
|
|
|
+ taskService.getTaskDef({
|
|
|
+ procInsId: row.procInsId4,
|
|
|
+ procDefId: this.signAndIssueProcDefId
|
|
|
+ }).then((data) => {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/flowable/task/TaskFormDetail',
|
|
|
+ query: {
|
|
|
+ ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
+ isShow: 'false',
|
|
|
+ readOnly: true,
|
|
|
+ title: '报告签发流程详情',
|
|
|
+ formTitle: '报告签发流程详情',
|
|
|
+ businessId: row.id,
|
|
|
+ status: 'reback'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 撤回报告签发
|
|
|
+ rebackSignAndIssue (row) {
|
|
|
+ this.$confirm(`确定要撤回该申请吗?`, '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(async () => { // 需要修改row.sid1
|
|
|
+ await this.reportSignAndIssueService.queryByReportId(row.id).then((data) => {
|
|
|
+ if (data.status !== '2') { // status的值不等于“审核中”,就弹出提示
|
|
|
+ this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
|
+ this.refreshList()
|
|
|
+ } else {
|
|
|
+ processService.revokeProcIns(row.procInsId4).then((data) => {
|
|
|
+ let form = {status: '3', id: row.signAndIssueId}
|
|
|
+ this.reportSignAndIssueService.updateStatusByReportId(form)
|
|
|
+ this.$message.success(data)
|
|
|
+ this.refreshList()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 报告签发驳回调整
|
|
|
+ adjustSignAndIssue (row) {
|
|
|
+ this.reportSignAndIssueService.queryByReportId(row.id).then((data) => {
|
|
|
+ if (data.status !== '4') { // status的值不等于“驳回”,就弹出提示
|
|
|
+ this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
|
+ this.refreshList()
|
|
|
+ } else {
|
|
|
+ this.todoSignAndIssue(row)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 审核或重新调整跳转
|
|
|
+ todoSignAndIssue (row) {
|
|
|
+ console.log('row', row)
|
|
|
+ let cUser = false
|
|
|
+ taskService.getTaskDefInfo({
|
|
|
+ taskId: row.signAndIssueTaskId
|
|
|
+ }).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: '/cw/reportManagement/ReportManagementList' // 数据处理后需要跳转的页面路径
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 删除签发
|
|
|
+ deleteSignAndIssue (row) {
|
|
|
+ this.$confirm(`确定要删除该报告签发吗?`, '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ this.loading = true
|
|
|
+ this.reportSignAndIssueService.delete(row.signAndIssueId).then((data) => {
|
|
|
+ this.$message.success(data)
|
|
|
+ this.refreshList()
|
|
|
+ this.loading = false
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ pushOnlineArchiving (row) {
|
|
|
+ // 读取流程表单
|
|
|
+ let title = ' '
|
|
|
+ if (!row.documentNo) {
|
|
|
+ title = ' ' + row.projectName
|
|
|
+ } else {
|
|
|
+ title = ' ' + row.documentNo + ' - ' + row.projectName
|
|
|
+ }
|
|
|
+
|
|
|
+ let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了` + title + '[报告-线上归档]'
|
|
|
+ let status = 'startAndHold'
|
|
|
+ if (row.reviewStatus === '3') {
|
|
|
+ status = 'startAndClose'
|
|
|
+ } else if (row.reviewStatus === '4') {
|
|
|
+ status = 'reapplyFlag'
|
|
|
+ }
|
|
|
+
|
|
|
+ let procDefId = ''
|
|
|
+ let procDefKey = ''
|
|
|
+ if (row.projectLevel === '1') {
|
|
|
+ status = 'startAndClose'
|
|
|
+ procDefId = this.onlineArchivingProcDefIdA
|
|
|
+ procDefKey = this.onlineArchivingProcDefKeyA
|
|
|
+ } else if (row.projectLevel === '2'){
|
|
|
+ status = 'startAndClose'
|
|
|
+ procDefId = this.onlineArchivingProcDefIdB
|
|
|
+ procDefKey = this.onlineArchivingProcDefKeyB
|
|
|
+ }
|
|
|
+ console.log('row', row)
|
|
|
+
|
|
|
+
|
|
|
+ taskService.getTaskDef({ procDefId: procDefId,
|
|
|
+ businessId: row.id,
|
|
|
+ businessTable: 'cw_project_report_online_archiving'}).then((data) => {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/flowable/task/TaskForm',
|
|
|
+ query: {
|
|
|
+ ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
+ procDefId: procDefId,
|
|
|
+ procDefKey: procDefKey,
|
|
|
+ title: title,
|
|
|
+ formType: data.formType,
|
|
|
+ formUrl: data.formUrl,
|
|
|
+ formTitle: processTitle,
|
|
|
+ businessTable: 'cw_project_report_online_archiving',
|
|
|
+ businessId: row.id,
|
|
|
+ isShow: 'false',
|
|
|
+ status: status,
|
|
|
+ routePath: '/cw/reportManagement/ReportManagementList'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 线上归档流程详情
|
|
|
+ pushOnlineDetail (row) {
|
|
|
+
|
|
|
+ let procDefId = ''
|
|
|
+ if (row.projectLevel === '1') {
|
|
|
+ procDefId = this.onlineArchivingProcDefIdA
|
|
|
+ } else if (row.projectLevel === '2'){
|
|
|
+ procDefId = this.onlineArchivingProcDefIdB
|
|
|
+ }
|
|
|
+ taskService.getTaskDef({
|
|
|
+ procInsId: row.onlineArchivingProcInsId,
|
|
|
+ procDefId: procDefId
|
|
|
+ }).then((data) => {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/flowable/task/TaskFormDetail',
|
|
|
+ query: {
|
|
|
+ ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
+ isShow: 'false',
|
|
|
+ readOnly: true,
|
|
|
+ title: '线上归档流程详情',
|
|
|
+ formTitle: '线上归档流程详情',
|
|
|
+ businessId: row.id,
|
|
|
+ status: 'reback'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 撤回线上归档
|
|
|
+ rebackPushOnline (row) {
|
|
|
+ this.$confirm(`确定要撤回该申请吗?`, '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(async () => { // 需要修改row.sid1
|
|
|
+ await reportOnlineArchivingService.queryByReportId(row.id).then((data) => {
|
|
|
+ if (data.status !== '2') { // status的值不等于“审核中”,就弹出提示
|
|
|
+ this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
|
+ this.refreshList()
|
|
|
+ } else {
|
|
|
+ processService.revokeProcIns(row.onlineArchivingProcInsId).then((data) => {
|
|
|
+ let form = {status: '3', id: row.onlineArchivingId}
|
|
|
+ reportOnlineArchivingService.updateStatusByReportId(form)
|
|
|
+ this.$message.success(data)
|
|
|
+ this.refreshList()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 在线归档驳回调整
|
|
|
+ adjustPushOnline (row) {
|
|
|
+ reportOnlineArchivingService.queryByReportId(row.id).then((data) => {
|
|
|
+ if (data.status !== '4') { // status的值不等于“驳回”,就弹出提示
|
|
|
+ this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
|
+ this.refreshList()
|
|
|
+ } else {
|
|
|
+ this.todoPushOnline(row)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ todoPushOnline (row) {
|
|
|
+ let cUser = false
|
|
|
+ taskService.getTaskDefInfo({
|
|
|
+ taskId: row.onlineArchivingTaskId
|
|
|
+ }).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: '/cw/reportManagement/ReportManagementList' // 数据处理后需要跳转的页面路径
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ pushPaperArchiving (row) {
|
|
|
+ // 读取流程表单
|
|
|
+ let title = ' '
|
|
|
+ if (!row.documentNo) {
|
|
|
+ title = ' ' + row.projectName
|
|
|
+ } else {
|
|
|
+ title = ' ' + row.documentNo + ' - ' + row.projectName
|
|
|
+ }
|
|
|
+
|
|
|
+ let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了` + title + '[报告-线上归档]'
|
|
|
+ let status = 'startAndHold'
|
|
|
+ if (row.reviewStatus === '3') {
|
|
|
+ status = 'startAndClose'
|
|
|
+ } else if (row.reviewStatus === '4') {
|
|
|
+ status = 'reapplyFlag'
|
|
|
+ }
|
|
|
+
|
|
|
+ let procDefId = this.paperArchivingProcDefId
|
|
|
+ let procDefKey = this.paperArchivingProcDefKey
|
|
|
+ status = 'startAndClose'
|
|
|
+
|
|
|
+
|
|
|
+ taskService.getTaskDef({ procDefId: procDefId,
|
|
|
+ businessId: row.id,
|
|
|
+ businessTable: 'cw_project_report_paper_archiving'}).then((data) => {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/flowable/task/TaskForm',
|
|
|
+ query: {
|
|
|
+ ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
+ procDefId: procDefId,
|
|
|
+ procDefKey: procDefKey,
|
|
|
+ title: title,
|
|
|
+ formType: data.formType,
|
|
|
+ formUrl: data.formUrl,
|
|
|
+ formTitle: processTitle,
|
|
|
+ businessTable: 'cw_project_report_paper_archiving',
|
|
|
+ businessId: row.id,
|
|
|
+ isShow: 'false',
|
|
|
+ status: status,
|
|
|
+ routePath: '/cw/reportManagement/ReportManagementList'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 纸质归档流程详情
|
|
|
+ pushPaperDetail (row) {
|
|
|
+
|
|
|
+ let procDefId = this.paperArchivingProcDefId
|
|
|
+ taskService.getTaskDef({
|
|
|
+ procInsId: row.paperArchivingProcInsId,
|
|
|
+ procDefId: procDefId
|
|
|
+ }).then((data) => {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/flowable/task/TaskFormDetail',
|
|
|
+ query: {
|
|
|
+ ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
+ isShow: 'false',
|
|
|
+ readOnly: true,
|
|
|
+ title: '纸质归档流程详情',
|
|
|
+ formTitle: '纸质归档流程详情',
|
|
|
+ businessId: row.id,
|
|
|
+ status: 'reback'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 撤回纸质归档
|
|
|
+ rebackPushPaper (row) {
|
|
|
+ this.$confirm(`确定要撤回该申请吗?`, '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(async () => { // 需要修改row.sid1
|
|
|
+ await reportPaperArchivingService.queryByReportId(row.id).then((data) => {
|
|
|
+ if (data.status !== '2') { // status的值不等于“审核中”,就弹出提示
|
|
|
+ this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
|
+ this.refreshList()
|
|
|
+ } else {
|
|
|
+ processService.revokeProcIns(row.paperArchivingProcInsId).then((data) => {
|
|
|
+ let form = {status: '3', id: row.paperArchivingId}
|
|
|
+ reportPaperArchivingService.updateStatusByReportId(form)
|
|
|
+ this.$message.success(data)
|
|
|
+ this.refreshList()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 纸质归档驳回调整
|
|
|
+ adjustPushPaper (row) {
|
|
|
+ reportPaperArchivingService.queryByReportId(row.id).then((data) => {
|
|
|
+ if (data.status !== '4') { // status的值不等于“驳回”,就弹出提示
|
|
|
+ this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
|
+ this.refreshList()
|
|
|
+ } else {
|
|
|
+ this.todoPushPaper(row)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ todoPushPaper (row) {
|
|
|
+ let cUser = false
|
|
|
+ taskService.getTaskDefInfo({
|
|
|
+ taskId: row.paperArchivingTaskId
|
|
|
+ }).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: '/cw/reportManagement/ReportManagementList' // 数据处理后需要跳转的页面路径
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
</script>
|