|
@@ -117,7 +117,7 @@
|
|
<vxe-toolbar :refresh="{query: refreshList}" ref="toolbarRef" export custom>
|
|
<vxe-toolbar :refresh="{query: refreshList}" ref="toolbarRef" export custom>
|
|
<template #buttons>
|
|
<template #buttons>
|
|
<el-button v-if="hasPermission('cw_work_client:info:add')" type="primary" icon="el-icon-plus" @click="start()">新建</el-button>
|
|
<el-button v-if="hasPermission('cw_work_client:info:add')" type="primary" icon="el-icon-plus" @click="start()">新建</el-button>
|
|
- <!-- <el-button v-if="hasPermission('klg:question:del')" type="danger" size="small" icon="el-icon-delete" @click="del()" :disabled="$refs.questionsTable && $refs.questionsTable.getCheckboxRecords().length === 0" plain>删除</el-button>-->
|
|
|
|
|
|
+ <el-button type="warning" icon="el-icon-download" @click="exportAllSignatureFile()" :disabled="$refs.clientTable && $refs.clientTable.getCheckboxRecords().length === 0" plain>已盖章文件下载</el-button>
|
|
</template>
|
|
</template>
|
|
<template #tools>
|
|
<template #tools>
|
|
<vxe-button
|
|
<vxe-button
|
|
@@ -156,6 +156,7 @@
|
|
:data="dataList"
|
|
:data="dataList"
|
|
:checkbox-config="{}">
|
|
:checkbox-config="{}">
|
|
<vxe-column type="seq" width="60" title="序号"></vxe-column>
|
|
<vxe-column type="seq" width="60" title="序号"></vxe-column>
|
|
|
|
+ <vxe-column type="checkbox" width="60" ></vxe-column>
|
|
<vxe-column width="100" align="center" title="单据编号" field="documentNo">
|
|
<vxe-column width="100" align="center" title="单据编号" field="documentNo">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
<el-link type="primary" :underline="false" v-if="hasPermission('cwProjectReport:list')" @click="view(scope.row.id)">{{scope.row.documentNo}}</el-link>
|
|
<el-link type="primary" :underline="false" v-if="hasPermission('cwProjectReport:list')" @click="view(scope.row.id)">{{scope.row.documentNo}}</el-link>
|
|
@@ -316,7 +317,15 @@
|
|
(scope.row.signatureType === '3' && scope.row.status3 === '4')
|
|
(scope.row.signatureType === '3' && scope.row.status3 === '4')
|
|
)
|
|
)
|
|
&& scope.row.createById === $store.state.user.id && (this.commonJS.isEmpty(scope.row.newType) || scope.row.newType !== '1')" @click="adjustSign(scope.row)" text type="primary" >驳回调整</el-button>
|
|
&& scope.row.createById === $store.state.user.id && (this.commonJS.isEmpty(scope.row.newType) || scope.row.newType !== '1')" @click="adjustSign(scope.row)" text type="primary" >驳回调整</el-button>
|
|
- <!-- 修改签字注师流程-->
|
|
|
|
|
|
+
|
|
|
|
+ <!-- 重新复核流程-->
|
|
|
|
+ <el-button
|
|
|
|
+ v-if="scope.row.reviewStatus === '5'&&(scope.row.status1 === '5' || scope.row.status3 === '5')&& (scope.row.signatureAnnotatorStatus ==='5' || scope.row.signatureAnnotatorStatus ==='0' ) && scope.row.createById === $store.state.user.id && scope.row.repetitionReviewFlag"
|
|
|
|
+ text type="primary"
|
|
|
|
+ @click="repetitionPushF(scope.row)"
|
|
|
|
+ >重新复核</el-button>
|
|
|
|
+
|
|
|
|
+ <!-- 修改签字注师流程-->
|
|
<el-button
|
|
<el-button
|
|
v-if="scope.row.reviewStatus === '5'&&(scope.row.status1 === '5' || scope.row.status3 === '5')&& (scope.row.signatureAnnotatorStatus ==='5' || scope.row.signatureAnnotatorStatus ==='0' ) && scope.row.createById === $store.state.user.id"
|
|
v-if="scope.row.reviewStatus === '5'&&(scope.row.status1 === '5' || scope.row.status3 === '5')&& (scope.row.signatureAnnotatorStatus ==='5' || scope.row.signatureAnnotatorStatus ==='0' ) && scope.row.createById === $store.state.user.id"
|
|
text type="primary"
|
|
text type="primary"
|
|
@@ -708,7 +717,8 @@
|
|
title: '复核及签章' + '流程详情',
|
|
title: '复核及签章' + '流程详情',
|
|
formTitle: '复核及签章' + '流程详情',
|
|
formTitle: '复核及签章' + '流程详情',
|
|
businessId: row.id,
|
|
businessId: row.id,
|
|
- status: 'reback'
|
|
|
|
|
|
+ status: 'reback',
|
|
|
|
+ detail: 'view'
|
|
}
|
|
}
|
|
})
|
|
})
|
|
})
|
|
})
|
|
@@ -830,6 +840,91 @@
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ repetitionPushF (row) {
|
|
|
|
+ this.$confirm(`是否确定对该报告重新复核?确定后原已盖章文件将被删除,已归档数据将被清除!`, '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ }).then(() => {
|
|
|
|
+ projectReportService.rebackReviewSign(row.id).then(() => {
|
|
|
|
+ // 读取流程表单
|
|
|
|
+ let title = ' '
|
|
|
|
+ if (!row.documentNo) {
|
|
|
|
+ title = ' ' + row.projectName
|
|
|
|
+ } 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 = 'startAndClose'
|
|
|
|
+ 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'}).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',
|
|
|
|
+ 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 = 'startAndClose'
|
|
|
|
+ if (row.reviewStatus === '3') {
|
|
|
|
+ status = 'startAndClose'
|
|
|
|
+ } else if (row.reviewStatus === '4') {
|
|
|
|
+ status = 'reapplyFlag'
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ taskService.getTaskDef({ procDefId: this.processDefinitionAuditIdAndSId,
|
|
|
|
+ businessId: row.id,
|
|
|
|
+ businessTable: 'cw_project_report_review'}).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',
|
|
|
|
+ businessId: row.id,
|
|
|
|
+ isShow: 'false',
|
|
|
|
+ status: status,
|
|
|
|
+ routePath: '/cw/reportManagement/ReportManagementList'
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ }).catch(() => {
|
|
|
|
+ this.refreshList()
|
|
|
|
+ this.$message.error('签章已撤回')
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ },
|
|
pushTakeNumber (row) {
|
|
pushTakeNumber (row) {
|
|
// 读取流程表单
|
|
// 读取流程表单
|
|
let title = ' '
|
|
let title = ' '
|
|
@@ -1710,7 +1805,31 @@
|
|
}
|
|
}
|
|
})
|
|
})
|
|
})
|
|
})
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ // 删除
|
|
|
|
+ exportAllSignatureFile (id) {
|
|
|
|
+ let ids = id || this.$refs.clientTable.getCheckboxRecords().map(item => {
|
|
|
|
+ return item.id
|
|
|
|
+ }).join(',')
|
|
|
|
+ this.$confirm(`确定下载所选项的已盖章文件吗?`, '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ }).then(() => {
|
|
|
|
+ this.loading = true
|
|
|
|
+ projectReportService.exportAllSignatureFile(ids).then((res) => {
|
|
|
|
+ // 将二进制流文件写入excel表,以下为重要步骤
|
|
|
|
+ this.$utils.downloadZip(res, '已签章文件')
|
|
|
|
+ this.loading = false
|
|
|
|
+ }).catch(function (err) {
|
|
|
|
+ this.loading = false
|
|
|
|
+ if (err.response) {
|
|
|
|
+ console.log(err.response)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|