|
@@ -17,8 +17,8 @@
|
|
<el-form-item v-if="showHideItem" label="合同名称" prop="contractName">
|
|
<el-form-item v-if="showHideItem" label="合同名称" prop="contractName">
|
|
<el-input v-model="searchForm.contractName" placeholder="请输入合同名称" clearable></el-input>
|
|
<el-input v-model="searchForm.contractName" placeholder="请输入合同名称" clearable></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item v-if="showHideItem" label="委托方" prop="clientName">
|
|
|
|
- <el-input v-model="searchForm.clientName" placeholder="请输入委托方" clearable></el-input>
|
|
|
|
|
|
+ <el-form-item v-if="showHideItem" label="委托方" prop="primaryLinkman">
|
|
|
|
+ <el-input v-model="searchForm.primaryLinkman" placeholder="请输入委托方" clearable></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item v-if="showHideItem" label="创建时间" prop="createDates">
|
|
<el-form-item v-if="showHideItem" label="创建时间" prop="createDates">
|
|
<el-date-picker
|
|
<el-date-picker
|
|
@@ -102,8 +102,8 @@
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item v-if="showHideItem" label="归档状态" prop="revicewStatus">
|
|
|
|
- <el-select v-model="searchForm.revicewStatus" placeholder="请选择" style="width:100%;" clearable>
|
|
|
|
|
|
+ <el-form-item v-if="showHideItem" label="归档状态" prop="reviewStatus">
|
|
|
|
+ <el-select v-model="searchForm.reviewStatus" placeholder="请选择" style="width:100%;" clearable>
|
|
<el-option
|
|
<el-option
|
|
v-for="item in $dictUtils.getDictList('program_project_archive_list_info_status')"
|
|
v-for="item in $dictUtils.getDictList('program_project_archive_list_info_status')"
|
|
:key="item.value"
|
|
:key="item.value"
|
|
@@ -167,8 +167,8 @@
|
|
<vxe-column min-width="180" align="center" title="合同名称" field="contractName">
|
|
<vxe-column min-width="180" align="center" title="合同名称" field="contractName">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
<!-- <el-link type="primary" :underline="false" v-if="scope.row.contractStatus ==='1'" @click="viewContract(scope.row.contractId)">{{scope.row.contractName}}</el-link>-->
|
|
<!-- <el-link type="primary" :underline="false" v-if="scope.row.contractStatus ==='1'" @click="viewContract(scope.row.contractId)">{{scope.row.contractName}}</el-link>-->
|
|
- <el-link type="primary" :underline="false" v-if="hasPermission('jy_project:info:view')" @click="viewContract(scope.row.contractId)">{{scope.row.contractName}}</el-link>
|
|
|
|
- <span v-else-if="scope.row.contractStatus ==='0'">暂无合同</span>
|
|
|
|
|
|
+ <el-link type="primary" :underline="false" v-if="commonJS.isNotEmpty(scope.row.contractId)&&commonJS.isNotEmpty(scope.row.contractName)" @click="viewContract(scope.row.contractId)">{{scope.row.contractName}}</el-link>
|
|
|
|
+ <span v-else style="color: red">暂无合同</span>
|
|
</template>
|
|
</template>
|
|
</vxe-column>
|
|
</vxe-column>
|
|
<vxe-column min-width="100" align="center" title="负责人" field="projectLeader"></vxe-column>
|
|
<vxe-column min-width="100" align="center" title="负责人" field="projectLeader"></vxe-column>
|
|
@@ -201,9 +201,9 @@
|
|
<el-button @click="issuedDetail(scope.row)" :type="$dictUtils.getDictLabel('program_project_list_info_status_info', scope.row.reportIssuance, '')" effect="dark" >{{$dictUtils.getDictLabel("program_project_list_info_status", scope.row.reportIssuance, '未登记')}} </el-button>
|
|
<el-button @click="issuedDetail(scope.row)" :type="$dictUtils.getDictLabel('program_project_list_info_status_info', scope.row.reportIssuance, '')" effect="dark" >{{$dictUtils.getDictLabel("program_project_list_info_status", scope.row.reportIssuance, '未登记')}} </el-button>
|
|
</template>
|
|
</template>
|
|
</vxe-column>
|
|
</vxe-column>
|
|
- <vxe-column min-width="120" align="center" title="项目归档" field="revicewStatus">
|
|
|
|
|
|
+ <vxe-column min-width="120" align="center" title="项目归档" field="reviewStatus">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
- <el-button @click="archiveDetail(scope.row)" :type="$dictUtils.getDictLabel('program_project_list_info_status_info', scope.row.revicewStatus, '')" effect="dark" >{{$dictUtils.getDictLabel("program_project_archive_list_info_status", scope.row.revicewStatus, '未登记')}} </el-button>
|
|
|
|
|
|
+ <el-button @click="archiveDetail(scope.row)" :type="$dictUtils.getDictLabel('program_project_list_info_status_info', scope.row.reviewStatus, '')" effect="dark" >{{$dictUtils.getDictLabel("program_project_archive_list_info_status", scope.row.reviewStatus, '未登记')}} </el-button>
|
|
</template>
|
|
</template>
|
|
</vxe-column>
|
|
</vxe-column>
|
|
<vxe-column min-width="120" align="center" title="外审" field="outInstance">
|
|
<vxe-column min-width="120" align="center" title="外审" field="outInstance">
|
|
@@ -213,7 +213,7 @@
|
|
</vxe-column>
|
|
</vxe-column>
|
|
<vxe-column min-width="120" align="center" title="报批签发" field="reportsSubmit">
|
|
<vxe-column min-width="120" align="center" title="报批签发" field="reportsSubmit">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
- <el-button @click="archiveDetail(scope.row)" :type="$dictUtils.getDictLabel('program_project_list_info_status_info', scope.row.reportsSubmit, '')" effect="dark" >{{$dictUtils.getDictLabel("program_project_archive_list_info_status", scope.row.reportsSubmit, '未登记')}} </el-button>
|
|
|
|
|
|
+ <el-button @click="reportsSubmitDetail(scope.row)" :type="$dictUtils.getDictLabel('program_project_list_info_status_info', scope.row.reportsSubmit, '')" effect="dark" >{{$dictUtils.getDictLabel("program_project_list_info_status", scope.row.reportsSubmit, '未登记')}} </el-button>
|
|
</template>
|
|
</template>
|
|
</vxe-column>
|
|
</vxe-column>
|
|
<vxe-column title="操作" min-width="200px" fixed="right" align="center">
|
|
<vxe-column title="操作" min-width="200px" fixed="right" align="center">
|
|
@@ -271,17 +271,28 @@
|
|
<!-- <!– 外审 被驳回后当前申请人重新调整–>-->
|
|
<!-- <!– 外审 被驳回后当前申请人重新调整–>-->
|
|
<el-button v-if="hasPermission('jy_project:info:edit')&&(scope.row.createBy === $store.state.user.id)&&scope.row.outInstance === '4'" text type="primary" @click="adjustIssued(scope.row)">驳回调整</el-button>
|
|
<el-button v-if="hasPermission('jy_project:info:edit')&&(scope.row.createBy === $store.state.user.id)&&scope.row.outInstance === '4'" text type="primary" @click="adjustIssued(scope.row)">驳回调整</el-button>
|
|
|
|
|
|
|
|
+
|
|
|
|
+ <!-- <!–报批签发发起–>-->
|
|
|
|
+ <el-button v-if="hasPermission('jy_project:info:edit')&&(scope.row.createBy === $store.state.user.id) &&scope.row.outInstance === '5' && (scope.row.reportsSubmit === null ||scope.row.reportsSubmit === undefined ||scope.row.reportsSubmit === '' ||scope.row.reportsSubmit === '0')" text type="primary" @click="reportsDoSubmit(scope.row)">报批签发</el-button>
|
|
|
|
+ <!-- <!–报批签发撤回–>-->
|
|
|
|
+ <el-button v-if="hasPermission('jy_project:info:edit')&&(scope.row.createBy === $store.state.user.id) && scope.row.reportsSubmit === '2'" text type="primary" @click="reportsSubmitReback(scope.row)">报批签发撤回</el-button>
|
|
|
|
+ <el-button v-if="scope.row.reportsSubmit === '1'|| scope.row.reportsSubmit === '3'" size="small" text type="primary" @click="edit(scope.row)">报批签发修改</el-button>
|
|
|
|
+ <!-- <!– 报批签发 审核–>-->
|
|
|
|
+ <el-button v-if="scope.row.reportsSubmit==='2' && checkIsAuditIssued(scope.row)" text type="primary" @click="reportsSubmitCheck(scope.row)">报批签发审核</el-button>
|
|
|
|
+ <!-- <!– 报批签发 被驳回后当前申请人重新调整–>-->
|
|
|
|
+ <el-button v-if="hasPermission('jy_project:info:edit')&&(scope.row.createBy === $store.state.user.id)&&scope.row.reportsSubmit === '4'" text type="primary" @click="adjustReportsSubmit(scope.row)">驳回调整</el-button>
|
|
|
|
+
|
|
<!-- <!–评估报告装订后的审核–>-->
|
|
<!-- <!–评估报告装订后的审核–>-->
|
|
<!-- <el-button v-if="hasPermission('program:registered:browse')&&(scope.row.createBy === $store.state.user.id||haveProjectIds.includes(scope.row.id))&&scope.row.issuedStatus === '5'&&scope.row.archiveStatus === '0'" text type="primary" @click="browse(scope.row.id)">装订自校</el-button>-->
|
|
<!-- <el-button v-if="hasPermission('program:registered:browse')&&(scope.row.createBy === $store.state.user.id||haveProjectIds.includes(scope.row.id))&&scope.row.issuedStatus === '5'&&scope.row.archiveStatus === '0'" text type="primary" @click="browse(scope.row.id)">装订自校</el-button>-->
|
|
|
|
|
|
<!-- <!– 项目归档–>-->
|
|
<!-- <!– 项目归档–>-->
|
|
-<!-- <el-button v-if="hasPermission('program:registered:edit')&&(scope.row.createBy === $store.state.user.id||haveProjectIds.includes(scope.row.id))&&scope.row.issuedStatus === '5' &&(scope.row.archiveStatus === '0'||scope.row.archiveStatus === '1'||scope.row.archiveStatus === '3'||scope.row.archiveStatus === '6')" text type="primary" @click="archivePush(scope.row)">项目归档</el-button>-->
|
|
|
|
|
|
+ <el-button v-if="hasPermission('jy_project:info:edit')&&(scope.row.createBy === $store.state.user.id)&&(scope.row.reportsSubmit === '5' || scope.row.reportsSubmit === '7') &&(scope.row.reviewStatus === ''||scope.row.reviewStatus === undefined||scope.row.reviewStatus === null||scope.row.reviewStatus === '0'||scope.row.reviewStatus === '1'||scope.row.reviewStatus === '3')" text type="primary" @click="archivePush(scope.row)">项目归档</el-button>
|
|
<!-- <!– 项目归档撤回–>-->
|
|
<!-- <!– 项目归档撤回–>-->
|
|
-<!-- <el-button v-if="hasPermission('program:registered:edit')&&(scope.row.createBy === $store.state.user.id||haveProjectIds.includes(scope.row.id))&&scope.row.archiveStatus === '2'" text type="primary" @click="archiveReback(scope.row)">项目归档撤回</el-button>-->
|
|
|
|
|
|
+ <el-button v-if="hasPermission('jy_project:info:edit')&&(scope.row.createBy === $store.state.user.id)&&scope.row.reviewStatus === '2'" text type="primary" @click="archiveReback(scope.row)">项目归档撤回</el-button>
|
|
<!-- <!– 项目归档 审核–>-->
|
|
<!-- <!– 项目归档 审核–>-->
|
|
-<!-- <el-button v-if="scope.row.archiveStatus==='2' && checkIsAuditArchive(scope.row)" text type="primary" @click="examineArchive(scope.row)">归档审核</el-button>-->
|
|
|
|
|
|
+ <el-button v-if="scope.row.reviewStatus==='2' && checkIsAuditArchive(scope.row)" text type="primary" @click="examineArchive(scope.row)">归档审核</el-button>
|
|
<!-- <!– 项目归档 被驳回后当前申请人重新调整–>-->
|
|
<!-- <!– 项目归档 被驳回后当前申请人重新调整–>-->
|
|
-<!-- <el-button v-if="hasPermission('program:registered:edit')&&(scope.row.createBy === $store.state.user.id||haveProjectIds.includes(scope.row.id))&&scope.row.archiveStatus === '4'" text type="primary" @click="adjustArchive(scope.row)">驳回调整</el-button>-->
|
|
|
|
|
|
+ <el-button v-if="hasPermission('jy_project:info:edit')&&(scope.row.createBy === $store.state.user.id)&&scope.row.reviewStatus === '4'" text type="primary" @click="adjustArchive(scope.row)">驳回调整</el-button>
|
|
|
|
|
|
<!--一级校审ftl文件下载-->
|
|
<!--一级校审ftl文件下载-->
|
|
<!-- <el-button v-if="hasPermission('program:registered:edit')" text type="primary" icon="el-icon-circle-check" @click="downloadFirstAuditTpl(scope.row)">一级校审下载</el-button>-->
|
|
<!-- <el-button v-if="hasPermission('program:registered:edit')" text type="primary" icon="el-icon-circle-check" @click="downloadFirstAuditTpl(scope.row)">一级校审下载</el-button>-->
|
|
@@ -340,7 +351,7 @@ export default {
|
|
name: '',
|
|
name: '',
|
|
no: '',
|
|
no: '',
|
|
createById: '',
|
|
createById: '',
|
|
- clientName: '',//委托方
|
|
|
|
|
|
+ primaryLinkman: '',//委托方
|
|
contractName: '',
|
|
contractName: '',
|
|
projectLeader:'',//项目负责人
|
|
projectLeader:'',//项目负责人
|
|
createDates: [],
|
|
createDates: [],
|
|
@@ -374,6 +385,10 @@ export default {
|
|
procDefKey3:'',
|
|
procDefKey3:'',
|
|
processDefinitionIdOut:'',
|
|
processDefinitionIdOut:'',
|
|
procDefKeyOut:'',
|
|
procDefKeyOut:'',
|
|
|
|
+ processDefinitionReportsId:'',
|
|
|
|
+ procDefKeyReports:'',
|
|
|
|
+ processDefinitionIdArchive:'',
|
|
|
|
+ procDefKeyArchive:'',
|
|
}
|
|
}
|
|
},
|
|
},
|
|
ProjectInfoService:null,
|
|
ProjectInfoService:null,
|
|
@@ -434,7 +449,7 @@ export default {
|
|
},
|
|
},
|
|
// 查看
|
|
// 查看
|
|
view (row) {
|
|
view (row) {
|
|
- this.$refs.projectDia.init('view', row.id,row.auditId1, row.auditId2, row.auditId3,row.sealId,row.outInstanceId)
|
|
|
|
|
|
+ this.$refs.projectDia.init('view', row.id,row.auditId1, row.auditId2, row.auditId3,row.sealId,row.outInstanceId,row.reportsSubmitId,row.archiveId)
|
|
},
|
|
},
|
|
// 获取数据列表
|
|
// 获取数据列表
|
|
refreshList () {
|
|
refreshList () {
|
|
@@ -491,6 +506,19 @@ export default {
|
|
this.procDefKeyOut = data.key
|
|
this.procDefKeyOut = data.key
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
+ processService.getByName('嘉溢-报批签发').then((data) => {
|
|
|
|
+ if (!this.commonJS.isEmpty(data.id)) {
|
|
|
|
+ this.processDefinitionReportsId = data.id
|
|
|
|
+ this.procDefKeyReports = data.key
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ processService.getByName('嘉溢-项目归档').then((data) => {
|
|
|
|
+ if (!this.commonJS.isEmpty(data.id)) {
|
|
|
|
+ this.processDefinitionIdArchive = data.id
|
|
|
|
+ this.procDefKeyArchive = data.key
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+
|
|
},
|
|
},
|
|
// 当前页
|
|
// 当前页
|
|
currentChangeHandle ({ currentPage, pageSize }) {
|
|
currentChangeHandle ({ currentPage, pageSize }) {
|
|
@@ -1271,7 +1299,286 @@ export default {
|
|
this.todoOut(row)
|
|
this.todoOut(row)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ //发起报批签发
|
|
|
|
+ reportsDoSubmit(row){
|
|
|
|
+ // 读取流程表单
|
|
|
|
+ let tabTitle = `发起流程【嘉溢-报批签发】`
|
|
|
|
+ let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了 [嘉溢-报批签发]`
|
|
|
|
+ taskService.getTaskDef({ procDefId: this.processDefinitionReportsId,
|
|
|
|
+ status: 'startAndHold'}).then((data) => {
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path: '/flowable/task/TaskForm',
|
|
|
|
+ query: {
|
|
|
|
+ ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
|
+ procDefId: this.processDefinitionReportsId,
|
|
|
|
+ procDefKey: this.procDefKeyReports,
|
|
|
|
+ status: 'startAndHold',
|
|
|
|
+ title: tabTitle,
|
|
|
|
+ formType: data.formType,
|
|
|
|
+ formUrl: data.formUrl,
|
|
|
|
+ formTitle: processTitle,
|
|
|
|
+ businessId: 'false',
|
|
|
|
+ isShow: false,
|
|
|
|
+ routePath: '/jy/project/ProjectList'
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ //报批签发审核流程详情
|
|
|
|
+ reportsSubmitDetail(row){
|
|
|
|
+ if (row.reportsSubmit !== '0' && row.reportsSubmit !== '1') {
|
|
|
|
+ // eslint-disable-next-line eqeqeq
|
|
|
|
+ taskService.getTaskDef({
|
|
|
|
+ procInsId: row.procInsIdReports,
|
|
|
|
+ procDefId: this.processDefinitionReportsId
|
|
|
|
+ }).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.reportsSubmitId,
|
|
|
|
+ status: 'reback'
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ //报批签发撤回
|
|
|
|
+ reportsSubmitReback(row){
|
|
|
|
+ this.$confirm(`确定要撤回该申请吗?`, '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ }).then(async () => {
|
|
|
|
+ await this.projectInfoService.queryReportsById(row.reportsSubmitId).then((data) => {
|
|
|
|
+ if (data.status !== '2') { // status的值不等于“审核中”,就弹出提示
|
|
|
|
+ this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
|
|
+ this.refreshList()
|
|
|
|
+ } else {
|
|
|
|
+ processService.revokeProcIns(row.procInsIdReports).then((data) => {
|
|
|
|
+ let form = {status: '3', id: row.reportsSubmitId}
|
|
|
|
+ this.projectInfoService.updateReportsSubmitById(form)
|
|
|
|
+ this.$message.success(data)
|
|
|
|
+ this.refreshList()
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ //报批签发审核
|
|
|
|
+ reportsSubmitCheck(row){
|
|
|
|
+ this.projectInfoService.queryReportsById(row.reportsSubmitId).then((data) => {
|
|
|
|
+ if (data.status !== '2') { // status的值不等于“审核中”,就弹出提示
|
|
|
|
+ this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
|
|
+ this.refreshList()
|
|
|
|
+ } else {
|
|
|
|
+ this.todoReports(row)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ // 审核或重新调整跳转 报批签发
|
|
|
|
+ todoReports (row) {
|
|
|
|
+ let cUser = false
|
|
|
|
+ this.projectInfoService.queryReportsById(row.reportsSubmitId).then((data) => {
|
|
|
|
+ taskService.getTaskDefInfo({
|
|
|
|
+ taskId: data.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: '/jy/project/ProjectList' // 数据处理后需要跳转的页面路径
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ //报批签发驳回后重新调整
|
|
|
|
+ adjustReportsSubmit(row){
|
|
|
|
+ this.projectInfoService.queryReportsById(row.reportsSubmitId).then((data) => {
|
|
|
|
+ if (data.status !== '4') { // status的值不等于“驳回”,就弹出提示
|
|
|
|
+ this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
|
|
+ this.refreshList()
|
|
|
|
+ } else {
|
|
|
|
+ this.todoReports(row)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ //报批签发修改
|
|
|
|
+ edit(row){
|
|
|
|
+ // 读取流程表单
|
|
|
|
+ let title = `发起流程【嘉溢-报批签发】`
|
|
|
|
+ let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了[嘉溢-报批签发]`
|
|
|
|
+ let status = 'startAndHold'
|
|
|
|
+ if (row.reportsSubmit === '3') {
|
|
|
|
+ status = 'startAndClose'
|
|
|
|
+ } else if (row.reportsSubmit === '4') {
|
|
|
|
+ status = 'reapplyFlag'
|
|
|
|
+ }
|
|
|
|
+ taskService.getTaskDef({ procDefId: this.processDefinitionReportsId,
|
|
|
|
+ businessId: row.reportsSubmitId,
|
|
|
|
+ businessTable: 'jy_project_reports_submit'}).then((data) => {
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path: '/flowable/task/TaskForm',
|
|
|
|
+ query: {
|
|
|
|
+ ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
|
+ procDefId: this.processDefinitionReportsId,
|
|
|
|
+ procDefKey: this.procDefKeyReports,
|
|
|
|
+ title: title,
|
|
|
|
+ formType: data.formType,
|
|
|
|
+ formUrl: data.formUrl,
|
|
|
|
+ formTitle: processTitle,
|
|
|
|
+ businessTable: 'jy_project_reports_submit',
|
|
|
|
+ businessId: row.reportsSubmitId,
|
|
|
|
+ isShow: 'false',
|
|
|
|
+ status: status,
|
|
|
|
+ routePath: '/jy/project/ProjectList'
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ //项目归档
|
|
|
|
+ archivePush(row){
|
|
|
|
+ // 读取流程表单
|
|
|
|
+ let title = `发起流程【嘉溢-项目归档】`
|
|
|
|
+ let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了[嘉溢-项目归档]`
|
|
|
|
+ let status = 'startAndHold'
|
|
|
|
+ if (row.reviewStatus === '3') {
|
|
|
|
+ status = 'startAndClose'
|
|
|
|
+ } else if (row.reviewStatus === '4') {
|
|
|
|
+ status = 'reapplyFlag'
|
|
|
|
+ }
|
|
|
|
+ taskService.getTaskDef({ procDefId: this.processDefinitionIdArchive,
|
|
|
|
+ businessId: row.archiveId,
|
|
|
|
+ businessTable: 'jy_project_archive'}).then((data) => {
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path: '/flowable/task/TaskForm',
|
|
|
|
+ query: {
|
|
|
|
+ ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
|
+ procDefId: this.processDefinitionIdArchive,
|
|
|
|
+ procDefKey: this.procDefKeyArchive,
|
|
|
|
+ title: title,
|
|
|
|
+ formType: data.formType,
|
|
|
|
+ formUrl: data.formUrl,
|
|
|
|
+ formTitle: processTitle,
|
|
|
|
+ businessTable: 'jy_project_archive',
|
|
|
|
+ businessId: row.archiveId,
|
|
|
|
+ isShow: 'false',
|
|
|
|
+ status: status,
|
|
|
|
+ routePath: '/jy/project/ProjectList'
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ // 查询当前登录人是否是数据的审核人 归档
|
|
|
|
+ checkIsAuditArchive (row) {
|
|
|
|
+ let loginUserId = this.$store.state.user.id // 获取当前登录用户id
|
|
|
|
+ if (this.commonJS.isNotEmpty(row.archiveId)) {
|
|
|
|
+ for (const userId of row.archiveId) {
|
|
|
|
+ if (userId === loginUserId) { // 当数据的审核人中包含当前登录人id时,返回true
|
|
|
|
+ return true
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return false
|
|
|
|
+ },
|
|
|
|
+ //查看归档审批流程结果
|
|
|
|
+ archiveDetail(row){
|
|
|
|
+ if (row.reviewStatus !== '0' && row.reviewStatus !== '1') {
|
|
|
|
+ // eslint-disable-next-line eqeqeq
|
|
|
|
+ taskService.getTaskDef({
|
|
|
|
+ procInsId: row.procInsIdArchive,
|
|
|
|
+ procDefId: this.processDefinitionIdArchive
|
|
|
|
+ }).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.archiveId,
|
|
|
|
+ status: 'reback'
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ //归档撤回
|
|
|
|
+ archiveReback(row){
|
|
|
|
+ this.$confirm(`确定要撤回该申请吗?`, '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ }).then(async () => {
|
|
|
|
+ await this.projectInfoService.findByIdArchive(row.archiveId).then((data) => {
|
|
|
|
+ if (data.status !== '2') { // status的值不等于“审核中”,就弹出提示
|
|
|
|
+ this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
|
|
+ this.refreshList()
|
|
|
|
+ } else {
|
|
|
|
+ processService.revokeProcIns(row.procInsIdArchive).then((data) => {
|
|
|
|
+ let form = {status: '3', id: row.archiveId}
|
|
|
|
+ this.projectInfoService.updateStatusByArchiveId(form)
|
|
|
|
+ this.$message.success(data)
|
|
|
|
+ this.refreshList()
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ //归档审核
|
|
|
|
+ examineArchive(row){
|
|
|
|
+ this.projectInfoService.findByIdArchive(row.archiveId).then((data) => {
|
|
|
|
+ if (data.status !== '2') { // status的值不等于“审核中”,就弹出提示
|
|
|
|
+ this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
|
|
+ this.refreshList()
|
|
|
|
+ } else {
|
|
|
|
+ this.todoArchive(row)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ // 审核或重新调整跳转 归档
|
|
|
|
+ todoArchive (row) {
|
|
|
|
+ let cUser = false
|
|
|
|
+ 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: '/jy/project/ProjectList' // 数据处理后需要跳转的页面路径
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ //归档驳回后重新调整
|
|
|
|
+ adjustArchive(row){
|
|
|
|
+ this.projectInfoService.findByIdArchive(row.archiveId).then((data) => {
|
|
|
|
+ if (data.status !== '4') { // status的值不等于“驳回”,就弹出提示
|
|
|
|
+ this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
|
|
+ this.refreshList()
|
|
|
|
+ } else {
|
|
|
|
+ this.todoArchive(row)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|