|
@@ -110,7 +110,7 @@
|
|
<!-- <vxe-column min-width="160" align="center" title="报告主办人" field="reportSponsor"></vxe-column>-->
|
|
<!-- <vxe-column min-width="160" align="center" title="报告主办人" field="reportSponsor"></vxe-column>-->
|
|
<vxe-column min-width="160" align="center" title="创建人" field="userName"></vxe-column>
|
|
<vxe-column min-width="160" align="center" title="创建人" field="userName"></vxe-column>
|
|
<vxe-column min-width="160" align="center" title="创建时间" field="createDate"></vxe-column>
|
|
<vxe-column min-width="160" align="center" title="创建时间" field="createDate"></vxe-column>
|
|
- <vxe-column min-width="150px"align="center" fixed="right" title="复核状态" field="reviewStatus" >
|
|
|
|
|
|
+ <vxe-column min-width="110px"align="center" fixed="right" title="复核状态" field="reviewStatus" >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button type="text" @click="detail(scope.row)" effect="dark" size="mini"
|
|
<el-button type="text" @click="detail(scope.row)" effect="dark" size="mini"
|
|
:type="$dictUtils.getDictLabel('cw_status_flag', scope.row.reviewStatus, '-')">
|
|
:type="$dictUtils.getDictLabel('cw_status_flag', scope.row.reviewStatus, '-')">
|
|
@@ -118,7 +118,7 @@
|
|
</el-button>
|
|
</el-button>
|
|
</template>
|
|
</template>
|
|
</vxe-column>
|
|
</vxe-column>
|
|
- <vxe-column min-width="150px"align="center" fixed="right" title="签章状态" >
|
|
|
|
|
|
+ <vxe-column min-width="110px"align="center" fixed="right" title="签章状态" >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button v-if="scope.row.signatureType === '1'" type="text" @click="detailS(scope.row)" effect="dark" size="mini"
|
|
<el-button v-if="scope.row.signatureType === '1'" type="text" @click="detailS(scope.row)" effect="dark" size="mini"
|
|
:type="$dictUtils.getDictLabel('cw_status_flag', scope.row.status1, '-')">
|
|
:type="$dictUtils.getDictLabel('cw_status_flag', scope.row.status1, '-')">
|
|
@@ -137,23 +137,38 @@
|
|
|
|
|
|
<vxe-column title="操作" width="150px" fixed="right" align="center">
|
|
<vxe-column title="操作" width="150px" fixed="right" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-button v-if="hasPermission('cwProjectReport:edit')&&scope.row.createById === $store.state.user.id&&(scope.row.status==='1'||scope.row.status==='3'||scope.row.status==='5')" type="text" size="small" @click="edit(scope.row.id)">修改</el-button>
|
|
|
|
- <el-button v-else-if="hasPermission('cwProjectReport:edit')&&isAdmin&&(scope.row.status==='1'||scope.row.status==='3'||scope.row.status==='5')" type="text" size="small" @click="edit(scope.row.id)">修改</el-button>
|
|
|
|
-<!-- <el-button v-if="hasPermission('cwProjectReport:edit')&&scope.row.createById === $store.state.user.id&&scope.row.status==='2'" type="text" size="small" @click="reback(scope.row)">撤回</el-button>-->
|
|
|
|
-<!-- <el-button v-if="hasPermission('cwProjectReport:del')&&scope.row.createById === $store.state.user.id&&(scope.row.status==='1'||scope.row.status==='3')" type="text" size="small" @click="del(scope.row.id)">删除</el-button>-->
|
|
|
|
- <el-button v-else-if="hasPermission('cwProjectReport:del')&&isAdmin&&(scope.row.status==='1'||scope.row.status==='3'||scope.row.status==='5')" type="text" size="small" @click="del(scope.row.id)">删除</el-button>
|
|
|
|
|
|
+ <el-button v-if="hasPermission('cwProjectReport:edit')&&
|
|
|
|
+ (scope.row.createById === $store.state.user.id||isAdmin||haveProjectIds.includes(scope.row.projectId))&&
|
|
|
|
+ scope.row.status === '5'&&
|
|
|
|
+ (scope.row.reviewStatus === '0' || scope.row.reviewStatus === '1' || scope.row.reviewStatus === '3' || scope.row.reviewStatus === '4' || scope.row.reviewStatus === '5' || commonJS.isEmpty(scope.row.reviewStatus)) &&
|
|
|
|
+ (
|
|
|
|
+ (scope.row.signatureType === '1' && (scope.row.status1 === '0' || scope.row.status1 === '3' || scope.row.status1 === '5')) ||
|
|
|
|
+ (scope.row.signatureType === '2' && (scope.row.status2 === '0' || scope.row.status2 === '3' || scope.row.status2 === '5')) ||
|
|
|
|
+ (scope.row.signatureType === '3' && (scope.row.status3 === '0' || scope.row.status3 === '3' || scope.row.status3 === '5'))
|
|
|
|
+ )
|
|
|
|
+ " type="text" size="small" @click="edit(scope.row.id)">修改</el-button>
|
|
|
|
+ <el-button v-if="hasPermission('cwProjectReport:del')&&
|
|
|
|
+ (scope.row.createById === $store.state.user.id||isAdmin||haveProjectIds.includes(scope.row.projectId))&&
|
|
|
|
+ scope.row.status === '5'&&
|
|
|
|
+ (scope.row.reviewStatus === '0' || scope.row.reviewStatus === '1' || scope.row.reviewStatus === '3' || scope.row.reviewStatus === '4' || scope.row.reviewStatus === '5' || commonJS.isEmpty(scope.row.reviewStatus)) &&
|
|
|
|
+ (
|
|
|
|
+ (scope.row.signatureType === '1' && (scope.row.status1 === '0' || scope.row.status1 === '3' || scope.row.status1 === '5')) ||
|
|
|
|
+ (scope.row.signatureType === '2' && (scope.row.status2 === '0' || scope.row.status2 === '3' || scope.row.status2 === '5')) ||
|
|
|
|
+ (scope.row.signatureType === '3' && (scope.row.status3 === '0' || scope.row.status3 === '3' || scope.row.status3 === '5'))
|
|
|
|
+ )
|
|
|
|
+ " type="text" size="small" @click="del(scope.row.id)">删除</el-button>
|
|
<!-- 复核流程-->
|
|
<!-- 复核流程-->
|
|
- <el-button v-if="hasPermission('cw:workContract:filed') && scope.row.status === '5'&& (scope.row.reviewStatus === '0' || scope.row.reviewStatus === '3' || scope.row.reviewStatus === '4' || scope.row.reviewStatus === undefined || scope.row.reviewStatus === '')" type="text" size="small" @click="pushF(scope.row)">复核</el-button>
|
|
|
|
- <el-button v-if="hasPermission('cw:workContract:filed') && scope.row.status === '5'&& scope.row.reviewStatus === '2'" type="text" size="small" @click="rebackF(scope.row)">撤回复核申请</el-button>
|
|
|
|
|
|
+ <el-button v-if="hasPermission('cw:workContract:filed') && (scope.row.createById === $store.state.user.id||isAdmin||haveProjectIds.includes(scope.row.projectId)) && scope.row.status === '5'&& (scope.row.reviewStatus === '0' || scope.row.reviewStatus === '3' || scope.row.reviewStatus === '4' || scope.row.reviewStatus === undefined || scope.row.reviewStatus === '')" type="text" size="small" @click="pushF(scope.row)">复核</el-button>
|
|
|
|
+ <el-button v-if="hasPermission('cw:workContract:filed') && (scope.row.createById === $store.state.user.id||isAdmin||haveProjectIds.includes(scope.row.projectId)) && scope.row.status === '5'&& scope.row.reviewStatus === '2'" type="text" size="small" @click="rebackF(scope.row)">撤回复核申请</el-button>
|
|
<!-- 公章流程-->
|
|
<!-- 公章流程-->
|
|
- <el-button v-if="hasPermission('cw:workContract:filed') && scope.row.status === '5' && scope.row.signatureType === '1' && (scope.row.status1 === '0' || scope.row.status1 === '3')" type="text" size="small" @click="pushS(scope.row)">公章</el-button>
|
|
|
|
- <el-button v-if="hasPermission('cw:workContract:filed') && scope.row.status === '5' && scope.row.signatureType === '1' && scope.row.status1 === '2'" type="text" size="small" @click="rebackS(scope.row)">撤回签章申请</el-button>
|
|
|
|
|
|
+ <el-button v-if="hasPermission('cw:workContract:filed') && (scope.row.createById === $store.state.user.id||isAdmin||haveProjectIds.includes(scope.row.projectId)) && scope.row.status === '5' && scope.row.reviewStatus === '5' && scope.row.signatureType === '1' && (scope.row.status1 === '0' || scope.row.status1 === '3')" type="text" size="small" @click="pushS(scope.row)">公章</el-button>
|
|
|
|
+ <el-button v-if="hasPermission('cw:workContract:filed') && (scope.row.createById === $store.state.user.id||isAdmin||haveProjectIds.includes(scope.row.projectId)) && scope.row.status === '5' && scope.row.reviewStatus === '5' && scope.row.signatureType === '1' && scope.row.status1 === '2'" type="text" size="small" @click="rebackS(scope.row)">撤回签章申请</el-button>
|
|
<!-- 实体章流程-->
|
|
<!-- 实体章流程-->
|
|
- <el-button v-if="hasPermission('cw:workContract:filed') && scope.row.status === '5' && scope.row.signatureType === '3' && (scope.row.status3 === '0' || scope.row.status3 === '3')" type="text" size="small" @click="pushS3(scope.row)">实体章</el-button>
|
|
|
|
- <el-button v-if="hasPermission('cw:workContract:filed') && scope.row.status === '5' && scope.row.signatureType === '3' && scope.row.status3 === '2'" type="text" size="small" @click="rebackS3(scope.row)">撤回签章申请</el-button>
|
|
|
|
|
|
+ <el-button v-if="hasPermission('cw:workContract:filed') && (scope.row.createById === $store.state.user.id||isAdmin||haveProjectIds.includes(scope.row.projectId)) && scope.row.status === '5' && scope.row.reviewStatus === '5' && scope.row.signatureType === '3' && (scope.row.status3 === '0' || scope.row.status3 === '3')" type="text" size="small" @click="pushS3(scope.row)">实体章</el-button>
|
|
|
|
+ <el-button v-if="hasPermission('cw:workContract:filed') && (scope.row.createById === $store.state.user.id||isAdmin||haveProjectIds.includes(scope.row.projectId)) && scope.row.status === '5' && scope.row.reviewStatus === '5' && scope.row.signatureType === '3' && scope.row.status3 === '2'" type="text" size="small" @click="rebackS3(scope.row)">撤回签章申请</el-button>
|
|
<!-- 公章+执业章流程-->
|
|
<!-- 公章+执业章流程-->
|
|
- <el-button v-if="hasPermission('cw:workContract:filed') && scope.row.status === '5' && scope.row.signatureType === '2' && (scope.row.status2 === '0' || scope.row.status2 === '3')" type="text" size="small" @click="pushS2(scope.row)">公章+执业章</el-button>
|
|
|
|
- <el-button v-if="hasPermission('cw:workContract:filed') && scope.row.status === '5' && scope.row.signatureType === '2' && (scope.row.status2 === '2' || scope.row.status2 === '6' || scope.row.status2 === '7')" type="text" size="small" @click="rebackS2(scope.row)">撤回签章申请</el-button>
|
|
|
|
|
|
+ <el-button v-if="hasPermission('cw:workContract:filed') && (scope.row.createById === $store.state.user.id||isAdmin||haveProjectIds.includes(scope.row.projectId)) && scope.row.status === '5' && scope.row.reviewStatus === '5' && scope.row.signatureType === '2' && (scope.row.status2 === '0' || scope.row.status2 === '3')" type="text" size="small" @click="pushS2(scope.row)">公章+执业章</el-button>
|
|
|
|
+ <el-button v-if="hasPermission('cw:workContract:filed') && (scope.row.createById === $store.state.user.id||isAdmin||haveProjectIds.includes(scope.row.projectId)) && scope.row.status === '5' && scope.row.reviewStatus === '5' && scope.row.signatureType === '2' && (scope.row.status2 === '2' || scope.row.status2 === '6' || scope.row.status2 === '7')" type="text" size="small" @click="rebackS2(scope.row)">撤回签章申请</el-button>
|
|
</template>
|
|
</template>
|
|
</vxe-column>
|
|
</vxe-column>
|
|
</vxe-table>
|
|
</vxe-table>
|
|
@@ -186,6 +201,7 @@
|
|
import pick from 'lodash.pick'
|
|
import pick from 'lodash.pick'
|
|
import UserService from '@/api/sys/UserService'
|
|
import UserService from '@/api/sys/UserService'
|
|
import SelectUserTree from '@/views/modules/utils/treeUserSelect'
|
|
import SelectUserTree from '@/views/modules/utils/treeUserSelect'
|
|
|
|
+ import ProjectRecordsService from '@/api/cw/projectRecords/ProjectRecordsService'
|
|
export default {
|
|
export default {
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
@@ -215,7 +231,8 @@
|
|
processDefinitionSId: '',
|
|
processDefinitionSId: '',
|
|
procDefSKey: '',
|
|
procDefSKey: '',
|
|
processDefinitionSId2: '',
|
|
processDefinitionSId2: '',
|
|
- procDefSKey2: ''
|
|
|
|
|
|
+ procDefSKey2: '',
|
|
|
|
+ haveProjectIds: ''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
workClientService: null,
|
|
workClientService: null,
|
|
@@ -224,7 +241,9 @@
|
|
taskService: null,
|
|
taskService: null,
|
|
processService: null,
|
|
processService: null,
|
|
userService: null,
|
|
userService: null,
|
|
|
|
+ projectRecordsService: null,
|
|
created () {
|
|
created () {
|
|
|
|
+ this.projectRecordsService = new ProjectRecordsService()
|
|
this.workClientService = new WorkClientService()
|
|
this.workClientService = new WorkClientService()
|
|
this.projectReportService = new ProjectReportService()
|
|
this.projectReportService = new ProjectReportService()
|
|
this.reportReviewService = new ReportReviewService()
|
|
this.reportReviewService = new ReportReviewService()
|
|
@@ -284,23 +303,21 @@
|
|
// 获取数据列表
|
|
// 获取数据列表
|
|
refreshList () {
|
|
refreshList () {
|
|
this.loading = true
|
|
this.loading = true
|
|
- // this.workClientService.list({
|
|
|
|
- // 'current': this.tablePage.currentPage,
|
|
|
|
- // 'size': this.tablePage.pageSize,
|
|
|
|
- // 'orders': this.tablePage.orders,
|
|
|
|
- // ...this.searchForm
|
|
|
|
- // }).then(({data}) => {
|
|
|
|
- // this.dataList = data.records
|
|
|
|
- // this.tablePage.total = data.total
|
|
|
|
- // this.tableKey = Math.random()
|
|
|
|
- // this.loading = false
|
|
|
|
- // })
|
|
|
|
this.projectReportService.list({
|
|
this.projectReportService.list({
|
|
'current': this.tablePage.currentPage,
|
|
'current': this.tablePage.currentPage,
|
|
'size': this.tablePage.pageSize,
|
|
'size': this.tablePage.pageSize,
|
|
'orders': this.tablePage.orders,
|
|
'orders': this.tablePage.orders,
|
|
...this.searchForm
|
|
...this.searchForm
|
|
}).then(({data}) => {
|
|
}).then(({data}) => {
|
|
|
|
+ this.projectRecordsService.getHaveProjectIds().then(({data}) => {
|
|
|
|
+ if (this.commonJS.isNotEmpty(data)) {
|
|
|
|
+ this.haveProjectIds = data.map(i => {
|
|
|
|
+ if (this.commonJS.isNotEmpty(i)) {
|
|
|
|
+ return i
|
|
|
|
+ }
|
|
|
|
+ }).join(',')
|
|
|
|
+ }
|
|
|
|
+ })
|
|
this.dataList = data.records
|
|
this.dataList = data.records
|
|
this.tablePage.total = data.total
|
|
this.tablePage.total = data.total
|
|
this.tableKey = Math.random()
|
|
this.tableKey = Math.random()
|