|
@@ -15,7 +15,7 @@
|
|
|
<vxe-toolbar :refresh="{query: refreshList}" ref="toolbarRef" export custom>
|
|
|
<template #buttons>
|
|
|
<!-- <el-button v-if="!haveComplete" type="primary" icon="el-icon-plus" @click="start()">新建</el-button>-->
|
|
|
- <el-button type="primary" icon="el-icon-plus" @click="start()">新建</el-button>
|
|
|
+ <el-button v-if="!haveComplete" type="primary" icon="el-icon-plus" @click="start()">新建</el-button>
|
|
|
</template>
|
|
|
</vxe-toolbar>
|
|
|
<div style="height: calc(100% - 90px)">
|
|
@@ -64,6 +64,34 @@
|
|
|
{{$dictUtils.getDictLabel("status", scope.row.handoverType, '未开始')}} </el-button>
|
|
|
</template>
|
|
|
</vxe-column>
|
|
|
+ <vxe-column min-width="100" title="电脑款项状态" fixed="right" align="center" field="computerType">
|
|
|
+ <template #default="scope">
|
|
|
+ <el-button @click="computerHandoverDetail(scope.row)"
|
|
|
+ :type="$dictUtils.getDictLabel('status_info', scope.row.computerType, '')" effect="dark" >
|
|
|
+ {{$dictUtils.getDictLabel("status", scope.row.computerType, '未开始')}} </el-button>
|
|
|
+ </template>
|
|
|
+ </vxe-column>
|
|
|
+ <vxe-column min-width="100" title="应收账款状态" fixed="right" align="center" field="accountsType">
|
|
|
+ <template #default="scope">
|
|
|
+ <el-button @click="accountsHandoverDetail(scope.row)"
|
|
|
+ :type="$dictUtils.getDictLabel('status_info', scope.row.accountsType, '')" effect="dark" >
|
|
|
+ {{$dictUtils.getDictLabel("status", scope.row.accountsType, '未开始')}} </el-button>
|
|
|
+ </template>
|
|
|
+ </vxe-column>
|
|
|
+ <vxe-column min-width="100" title="社保账款状态" fixed="right" align="center" field="securityType">
|
|
|
+ <template #default="scope">
|
|
|
+ <el-button @click="securityHandoverDetail(scope.row)"
|
|
|
+ :type="$dictUtils.getDictLabel('status_info', scope.row.securityType, '')" effect="dark" >
|
|
|
+ {{$dictUtils.getDictLabel("status", scope.row.securityType, '未开始')}} </el-button>
|
|
|
+ </template>
|
|
|
+ </vxe-column>
|
|
|
+ <vxe-column min-width="100" title="备用金状态" fixed="right" align="center" field="imprestType">
|
|
|
+ <template #default="scope">
|
|
|
+ <el-button @click="imprestHandoverDetail(scope.row)"
|
|
|
+ :type="$dictUtils.getDictLabel('status_info', scope.row.imprestType, '')" effect="dark" >
|
|
|
+ {{$dictUtils.getDictLabel("status", scope.row.imprestType, '未开始')}} </el-button>
|
|
|
+ </template>
|
|
|
+ </vxe-column>
|
|
|
|
|
|
<vxe-column title="操作" width="200px" fixed="right" align="center">
|
|
|
<template #default="scope">
|
|
@@ -115,7 +143,7 @@
|
|
|
export default {
|
|
|
data () {
|
|
|
return {
|
|
|
- // haveComplete: false,
|
|
|
+ haveComplete: false,
|
|
|
num: 0,
|
|
|
searchForm: {
|
|
|
projectNumber: '',
|
|
@@ -211,9 +239,9 @@
|
|
|
this.handoverDefAuditKey = data.key
|
|
|
}
|
|
|
})
|
|
|
- // departRegistrationService.selectComplete().then((data) => {
|
|
|
- // this.haveComplete = data
|
|
|
- // })
|
|
|
+ departRegistrationService.selectComplete().then((data) => {
|
|
|
+ this.haveComplete = data
|
|
|
+ })
|
|
|
},
|
|
|
// 当前页
|
|
|
currentChangeHandle ({ currentPage, pageSize }) {
|
|
@@ -342,6 +370,98 @@
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
+ // 查看备用金流程结果
|
|
|
+ imprestHandoverDetail (row) {
|
|
|
+ if (row.imprestType !== '0' && row.imprestType !== '1') {
|
|
|
+ // eslint-disable-next-line eqeqeq
|
|
|
+ taskService.getTaskDef({
|
|
|
+ procInsId: row.imprestProcInsId,
|
|
|
+ procDefId: row.imprestProcDefId
|
|
|
+ }).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.imprestId,
|
|
|
+ status: 'reback'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // 查看电脑款项流程结果
|
|
|
+ computerHandoverDetail (row) {
|
|
|
+ if (row.computerType !== '0' && row.computerType !== '1') {
|
|
|
+ // eslint-disable-next-line eqeqeq
|
|
|
+ taskService.getTaskDef({
|
|
|
+ procInsId: row.computerProcInsId,
|
|
|
+ procDefId: row.computerProcDefId
|
|
|
+ }).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.computerId,
|
|
|
+ status: 'reback'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // 查看应收账款流程结果
|
|
|
+ accountsHandoverDetail (row) {
|
|
|
+ if (row.accountsType !== '0' && row.accountsType !== '1') {
|
|
|
+ // eslint-disable-next-line eqeqeq
|
|
|
+ taskService.getTaskDef({
|
|
|
+ procInsId: row.accountsProcInsId,
|
|
|
+ procDefId: row.accountsProcDefId
|
|
|
+ }).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.accountsId,
|
|
|
+ status: 'reback'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // 查看社保账款流程结果
|
|
|
+ securityHandoverDetail (row) {
|
|
|
+ if (row.securityType !== '0' && row.securityType !== '1') {
|
|
|
+ // eslint-disable-next-line eqeqeq
|
|
|
+ taskService.getTaskDef({
|
|
|
+ procInsId: row.securityProcInsId,
|
|
|
+ procDefId: row.securityProcDefId
|
|
|
+ }).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.securityId,
|
|
|
+ status: 'reback'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
// 自定义服务端导出
|
|
|
exportMethod ({ options }) {
|
|
|
// 传给服务端的参数
|