|
@@ -174,6 +174,14 @@
|
|
|
</el-button>
|
|
|
</template>
|
|
|
</vxe-column>
|
|
|
+ <vxe-column min-width="120px" align="center" fixed="right" title="修改注师" field="signatureAnnotatorStatus" >
|
|
|
+ <template #default="scope">
|
|
|
+ <el-button @click="detailSig(scope.row)" effect="dark"
|
|
|
+ :type="$dictUtils.getDictLabel('cw_status_flag', scope.row.signatureAnnotatorStatus, '-')">
|
|
|
+ {{$dictUtils.getDictLabel("cw_status", scope.row.signatureAnnotatorStatus, '-')}}
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
+ </vxe-column>
|
|
|
|
|
|
<vxe-column title="操作" width="200px" fixed="right" align="center">
|
|
|
<template #default="scope">
|
|
@@ -242,6 +250,24 @@
|
|
|
(scope.row.signatureType === '3' && scope.row.status3 === '4')
|
|
|
)
|
|
|
&& scope.row.createById === $store.state.user.id" @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')"
|
|
|
+ text type="primary"
|
|
|
+ @click="updateSignatureAnnotator(scope.row)"
|
|
|
+ >修改签字注师</el-button>
|
|
|
+ <!-- 审核-->
|
|
|
+ <el-button
|
|
|
+ v-if="scope.row.signatureAnnotatorStatus === '2'&& checkIsAuditSign(scope.row)"
|
|
|
+ text type="primary"
|
|
|
+ @click="pushSig(scope.row)"
|
|
|
+ >签字注师审核</el-button>
|
|
|
+ <!-- 被驳回后当前申请人重新调整-->
|
|
|
+ <el-button
|
|
|
+ v-if="scope.row.signatureAnnotatorStatus === '4'&& scope.row.createById === $store.state.user.id"
|
|
|
+ text type="primary"
|
|
|
+ @click="adjustSig(scope.row)"
|
|
|
+ >签字注师驳回调整</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
</vxe-column>
|
|
@@ -317,7 +343,9 @@
|
|
|
procDefSKey2: '',
|
|
|
processDefinitionSId3: '',
|
|
|
procDefSKey3: '',
|
|
|
- haveProjectIds: ''
|
|
|
+ haveProjectIds: '',
|
|
|
+ processDefinitionSigId: '',
|
|
|
+ procDefSigKey: '',
|
|
|
}
|
|
|
},
|
|
|
reportReviewService: null,
|
|
@@ -439,6 +467,12 @@
|
|
|
this.procDefSKey3 = data.key
|
|
|
}
|
|
|
})
|
|
|
+ processService.getByName('报告-修改签字注师').then((data) => {
|
|
|
+ if (!this.commonJS.isEmpty(data.id)) {
|
|
|
+ this.processDefinitionSigId = data.id
|
|
|
+ this.procDefSigKey = data.key
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
// 当前页
|
|
|
currentChangeHandle ({ currentPage, pageSize }) {
|
|
@@ -1045,7 +1079,133 @@
|
|
|
}
|
|
|
}
|
|
|
return false
|
|
|
- }
|
|
|
+ },
|
|
|
+ //发起修改签字注师流程
|
|
|
+ updateSignatureAnnotator(row){
|
|
|
+ // 读取流程表单
|
|
|
+ let title = `发起流程【报告-修改签字注师】`
|
|
|
+ let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了[报告-修改签字注师]`
|
|
|
+ let status = 'startAndClose'
|
|
|
+ if (row.status === '4') {
|
|
|
+ status = 'reapply'
|
|
|
+ }
|
|
|
+ taskService.getTaskDef({ procDefId: this.processDefinitionSigId,
|
|
|
+ businessId: row.id,
|
|
|
+ businessTable: 'cw_project_report'}).then((data) => {
|
|
|
+ console.log(data)
|
|
|
+ this.$router.push({
|
|
|
+ path: '/flowable/task/TaskForm',
|
|
|
+ query: {
|
|
|
+ ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
+ procDefId: this.processDefinitionSigId,
|
|
|
+ procDefKey: this.procDefSigKey,
|
|
|
+ title: title,
|
|
|
+ formType: data.formType,
|
|
|
+ formUrl: data.formUrl,
|
|
|
+ formTitle: processTitle,
|
|
|
+ businessTable: 'cw_work_client_base',
|
|
|
+ businessId: row.id,
|
|
|
+ isShow: 'false',
|
|
|
+ status: status,
|
|
|
+ routePath: '/cw/reportManagement/ReportManagementList'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //查看报告-修改签字注师流程信息
|
|
|
+ detailSig(row){
|
|
|
+ console.log(row)
|
|
|
+ if (row.signatureAnnotatorStatus !== '0' && row.signatureAnnotatorStatus !== '1') {
|
|
|
+ // eslint-disable-next-line eqeqeq
|
|
|
+ taskService.getTaskDef({
|
|
|
+ procInsId: row.procInsId,
|
|
|
+ procDefId: this.processDefinitionSigId
|
|
|
+ }).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',
|
|
|
+ sigId:row.id
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //审核报告-修改签字注师
|
|
|
+ pushSig(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 = 'startAndClose'
|
|
|
+ if (row.reviewStatus === '3') {
|
|
|
+ status = 'startAndClose'
|
|
|
+ } else if (row.reviewStatus === '4') {
|
|
|
+ status = 'reapplyFlag'
|
|
|
+ }
|
|
|
+ taskService.getTaskDef({ procDefId: this.processDefinitionSigId,
|
|
|
+ businessId: row.id,
|
|
|
+ businessTable: 'cw_project_report'}).then((data) => {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/flowable/task/TaskForm',
|
|
|
+ query: {
|
|
|
+ ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
+ procDefId: this.processDefinitionSigId,
|
|
|
+ procDefKey: this.procDefSigKey,
|
|
|
+ title: title,
|
|
|
+ formType: data.formType,
|
|
|
+ formUrl: data.formUrl,
|
|
|
+ formTitle: processTitle,
|
|
|
+ businessTable: 'cw_project_report',
|
|
|
+ businessId: row.id,
|
|
|
+ isShow: 'false',
|
|
|
+ status: status,
|
|
|
+ routePath: '/cw/reportManagement/ReportManagementList'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //修改签字注师驳回后调整
|
|
|
+ adjustSig(row){
|
|
|
+ projectReportService.queryById(row.id).then((data) => {
|
|
|
+ if (data.signatureAnnotatorStatus !== '4') { // status的值不等于“驳回”,就弹出提示
|
|
|
+ this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
|
+ this.refreshList()
|
|
|
+ } else {
|
|
|
+ this.updateSignatureAnnotator(row)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //驳回后重新调整
|
|
|
+ todoSig(row){
|
|
|
+ console.log(row)
|
|
|
+ let cUser = false
|
|
|
+ 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: '/cw/reportManagement/ReportManagementList' // 数据处理后需要跳转的页面路径
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|