|
@@ -1,12 +1,12 @@
|
|
<template>
|
|
<template>
|
|
<div class="page">
|
|
<div class="page">
|
|
- <el-form size="small" :inline="true" class="query-form" ref="searchForm" :model="searchForm" @keyup.enter.native="refreshList()" @submit.native.prevent>
|
|
|
|
|
|
+ <el-form :inline="true" class="query-form" ref="searchForm" :model="searchForm" @keyup.enter.native="refreshList()" @submit.native.prevent>
|
|
<!-- 搜索框-->
|
|
<!-- 搜索框-->
|
|
<el-form-item label="项目名称" prop="name">
|
|
<el-form-item label="项目名称" prop="name">
|
|
- <el-input size="small" v-model="searchForm.name" placeholder="请输入项目名称" clearable></el-input>
|
|
|
|
|
|
+ <el-input v-model="searchForm.name" placeholder="请输入项目名称" clearable></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="项目编号" prop="no">
|
|
<el-form-item label="项目编号" prop="no">
|
|
- <el-input size="small" v-model="searchForm.no" placeholder="请输入项目编号" clearable></el-input>
|
|
|
|
|
|
+ <el-input v-model="searchForm.no" placeholder="请输入项目编号" clearable></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item v-if="showHideItem" label="登记人" prop="createBy">
|
|
<el-form-item v-if="showHideItem" label="登记人" prop="createBy">
|
|
<SelectUserTree
|
|
<SelectUserTree
|
|
@@ -16,20 +16,21 @@
|
|
label: 'name', // 显示名称
|
|
label: 'name', // 显示名称
|
|
children: 'children' // 子级字段名
|
|
children: 'children' // 子级字段名
|
|
}"
|
|
}"
|
|
- :url="`/sys/user/treeUserDataAllOffice?type=2`"
|
|
|
|
|
|
+ :url="`/system-server/sys/user/treeUserDataAllOffice?type=2`"
|
|
:value="searchForm.createBy"
|
|
:value="searchForm.createBy"
|
|
:clearable="true"
|
|
:clearable="true"
|
|
:accordion="true"
|
|
:accordion="true"
|
|
|
|
+ size="default"
|
|
@getValue="(value) => {searchForm.createBy=value}"/>
|
|
@getValue="(value) => {searchForm.createBy=value}"/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item v-if="showHideItem" label="项目负责人" prop="projectManagerName">
|
|
<el-form-item v-if="showHideItem" label="项目负责人" prop="projectManagerName">
|
|
- <el-input size="small" v-model="searchForm.projectManagerName" placeholder="请输入项目负责人" clearable></el-input>
|
|
|
|
|
|
+ <el-input v-model="searchForm.projectManagerName" placeholder="请输入项目负责人" clearable></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item v-if="showHideItem" label="合同名称" prop="contractName">
|
|
<el-form-item v-if="showHideItem" label="合同名称" prop="contractName">
|
|
- <el-input size="small" 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-form-item v-if="showHideItem" label="委托方" prop="clientName">
|
|
- <el-input size="small" v-model="searchForm.clientName" placeholder="请输入委托方" clearable></el-input>
|
|
|
|
|
|
+ <el-input v-model="searchForm.clientName" 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
|
|
@@ -55,22 +56,22 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item>
|
|
<el-form-item>
|
|
- <el-button type="default" @click="showHide" size="small" :icon="showHideIcon">{{showHideName}}</el-button>
|
|
|
|
- <el-button type="primary" @click="refreshList()" size="small" icon="el-icon-search">查询</el-button>
|
|
|
|
- <el-button @click="resetSearch()" size="small" icon="el-icon-refresh-right">重置</el-button>
|
|
|
|
|
|
+ <el-button type="default" @click="showHide" :icon="showHideIcon">{{showHideName}}</el-button>
|
|
|
|
+ <el-button type="primary" @click="refreshList()" icon="el-icon-search">查询</el-button>
|
|
|
|
+ <el-button @click="resetSearch()" icon="el-icon-refresh-right">重置</el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
|
|
|
|
- <div class="bg-white top" style="">
|
|
|
|
|
|
+ <div class="jp-table">
|
|
<vxe-toolbar :refresh="{query: refreshList}" custom>
|
|
<vxe-toolbar :refresh="{query: refreshList}" custom>
|
|
<template #buttons>
|
|
<template #buttons>
|
|
- <el-button v-if="hasPermission('program:registered:add')" type="primary" size="small" icon="el-icon-plus" @click="add()">新建</el-button>
|
|
|
|
-<!-- <el-button v-if="hasPermission('program:registered:add')" type="primary" size="small" icon="el-icon-plus" @click="start()">新建</el-button>-->
|
|
|
|
- <el-button v-if="hasPermission('program:registered:del')" type="danger" size="small" icon="el-icon-delete" @click="deleteAll()" :disabled="$refs.typeDictTable && $refs.typeDictTable.getCheckboxRecords().length === 0" plain>删除</el-button>
|
|
|
|
- <el-button v-if="hasPermission('program:registered:export')" type="warning" plain @click="exportFile()" size="small">导出</el-button>
|
|
|
|
|
|
+ <el-button v-if="hasPermission('program:registered:add')" type="primary" icon="el-icon-plus" @click="add()">新建</el-button>
|
|
|
|
+<!-- <el-button v-if="hasPermission('program:registered:add')" type="primary" icon="el-icon-plus" @click="start()">新建</el-button>-->
|
|
|
|
+ <el-button v-if="hasPermission('program:registered:del')" type="danger" icon="el-icon-delete" @click="deleteAll()" :disabled="$refs.typeDictTable && $refs.typeDictTable.getCheckboxRecords().length === 0" plain>删除</el-button>
|
|
|
|
+ <el-button v-if="hasPermission('program:registered:export')" type="warning" plain @click="exportFile()">导出</el-button>
|
|
</template>
|
|
</template>
|
|
</vxe-toolbar>
|
|
</vxe-toolbar>
|
|
- <div style="height: calc(100% - 90px)">
|
|
|
|
|
|
+ <div class="jp-table-body">
|
|
<vxe-table
|
|
<vxe-table
|
|
border="inner"
|
|
border="inner"
|
|
auto-resize
|
|
auto-resize
|
|
@@ -97,21 +98,21 @@
|
|
<span v-else>{{scope.row.name}}</span>
|
|
<span v-else>{{scope.row.name}}</span>
|
|
</template>
|
|
</template>
|
|
</vxe-column>
|
|
</vxe-column>
|
|
- <vxe-column min-width="100"align="center" title="项目编号" field="no"></vxe-column>
|
|
|
|
- <vxe-column min-width="180"align="center" title="合同名称" field="contractName">
|
|
|
|
|
|
+ <vxe-column min-width="100" align="center" title="项目编号" field="no"></vxe-column>
|
|
|
|
+ <vxe-column min-width="180" align="center" title="合同名称" field="contractName">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-link type="primary" :underline="false" v-if="hasPermission('program:registered:view')" @click="viewContract(scope.row.contractId)">{{scope.row.contractName}}</el-link>
|
|
<el-link type="primary" :underline="false" v-if="hasPermission('program:registered:view')" @click="viewContract(scope.row.contractId)">{{scope.row.contractName}}</el-link>
|
|
<el-link type="primary" :underline="false" v-else-if="hasPermission('program:registered:view')" @click="viewContract(scope.row.contractId)">{{scope.row.contractName}}</el-link>
|
|
<el-link type="primary" :underline="false" v-else-if="hasPermission('program:registered:view')" @click="viewContract(scope.row.contractId)">{{scope.row.contractName}}</el-link>
|
|
<span v-else>{{scope.row.name}}</span>
|
|
<span v-else>{{scope.row.name}}</span>
|
|
</template>
|
|
</template>
|
|
</vxe-column>
|
|
</vxe-column>
|
|
- <vxe-column min-width="100"align="center" title="项目负责人" field="projectManagerName"></vxe-column>
|
|
|
|
- <vxe-column min-width="180"align="center" title="委托方" field="clientName"></vxe-column>
|
|
|
|
- <vxe-column min-width="210"align="center" title="报告号" field="reportNo"></vxe-column>
|
|
|
|
- <vxe-column min-width="100"align="center" title="登记人" field="createBy"></vxe-column>
|
|
|
|
- <vxe-column min-width="120"align="center" title="创建日期" field="createDate"></vxe-column>
|
|
|
|
|
|
+ <vxe-column min-width="100" align="center" title="项目负责人" field="projectManagerName"></vxe-column>
|
|
|
|
+ <vxe-column min-width="180" align="center" title="委托方" field="clientName"></vxe-column>
|
|
|
|
+ <vxe-column min-width="210" align="center" title="报告号" field="reportNo"></vxe-column>
|
|
|
|
+ <vxe-column min-width="100" align="center" title="登记人" field="createBy"></vxe-column>
|
|
|
|
+ <vxe-column min-width="120" align="center" title="创建日期" field="createDate"></vxe-column>
|
|
|
|
|
|
- <vxe-column min-width="110px"align="center" fixed="right" title="状态" field="status" >
|
|
|
|
|
|
+ <vxe-column min-width="110px" align="center" fixed="right" title="状态" field="status" >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<!-- <el-button type="text" @click="registeredDetail(scope.row)" :type="$dictUtils.getDictLabel('program_project_list_info_status_info', scope.row.status, '-')" effect="dark" size="mini">{{$dictUtils.getDictLabel("program_project_list_info_status", scope.row.status, '-')}} </el-button>-->
|
|
<!-- <el-button type="text" @click="registeredDetail(scope.row)" :type="$dictUtils.getDictLabel('program_project_list_info_status_info', scope.row.status, '-')" effect="dark" size="mini">{{$dictUtils.getDictLabel("program_project_list_info_status", scope.row.status, '-')}} </el-button>-->
|
|
<el-button type="text" :type="$dictUtils.getDictLabel('program_project_list_info_status_info', scope.row.status, '-')" effect="dark" size="mini">{{$dictUtils.getDictLabel("program_project_list_info_status", scope.row.status, '-')}} </el-button>
|
|
<el-button type="text" :type="$dictUtils.getDictLabel('program_project_list_info_status_info', scope.row.status, '-')" effect="dark" size="mini">{{$dictUtils.getDictLabel("program_project_list_info_status", scope.row.status, '-')}} </el-button>
|
|
@@ -137,7 +138,7 @@
|
|
<!-- <el-button type="text" @click="issuedDetail(scope.row)" :type="$dictUtils.getDictLabel('program_project_list_info_status_info', scope.row.issuedStatus, '-')" effect="dark" size="mini">{{$dictUtils.getDictLabel("program_project_list_info_status", scope.row.issuedStatus, '未登记')}} </el-button>-->
|
|
<!-- <el-button type="text" @click="issuedDetail(scope.row)" :type="$dictUtils.getDictLabel('program_project_list_info_status_info', scope.row.issuedStatus, '-')" effect="dark" size="mini">{{$dictUtils.getDictLabel("program_project_list_info_status", scope.row.issuedStatus, '未登记')}} </el-button>-->
|
|
<!-- </template>-->
|
|
<!-- </template>-->
|
|
<!-- </vxe-column>-->
|
|
<!-- </vxe-column>-->
|
|
- <vxe-column min-width="110"align="center" fixed="right" title="项目归档" field="archiveStatus">
|
|
|
|
|
|
+ <vxe-column min-width="110" align="center" fixed="right" title="项目归档" field="archiveStatus">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<!-- <el-button type="text" @click="archiveDetail(scope.row)" :type="$dictUtils.getDictLabel('program_project_list_info_status_info', scope.row.archiveStatus, '-')" effect="dark" size="mini">{{$dictUtils.getDictLabel("program_project_list_info_status", scope.row.archiveStatus, '-')}} </el-button>-->
|
|
<!-- <el-button type="text" @click="archiveDetail(scope.row)" :type="$dictUtils.getDictLabel('program_project_list_info_status_info', scope.row.archiveStatus, '-')" effect="dark" size="mini">{{$dictUtils.getDictLabel("program_project_list_info_status", scope.row.archiveStatus, '-')}} </el-button>-->
|
|
<el-button type="text" :type="$dictUtils.getDictLabel('program_project_list_info_status_info', scope.row.archiveStatus, '-')" effect="dark" size="mini">{{$dictUtils.getDictLabel("program_project_list_info_status", scope.row.archiveStatus, '-')}} </el-button>
|
|
<el-button type="text" :type="$dictUtils.getDictLabel('program_project_list_info_status_info', scope.row.archiveStatus, '-')" effect="dark" size="mini">{{$dictUtils.getDictLabel("program_project_list_info_status", scope.row.archiveStatus, '-')}} </el-button>
|
|
@@ -145,10 +146,10 @@
|
|
</vxe-column>
|
|
</vxe-column>
|
|
<vxe-column title="操作" min-width="200px" fixed="right" align="center">
|
|
<vxe-column title="操作" min-width="200px" fixed="right" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-button v-if="hasPermission('program:registered:edit')&&(scope.row.createBy === createName&&scope.row.archiveStatus!=='5') || isAdmin" type="text" size="small" @click="edit(scope.row.id)">修改</el-button>
|
|
|
|
- <el-button v-if="hasPermission('program:registered:del')&&(scope.row.createBy === createName&&scope.row.archiveStatus!=='5') || isAdmin" type="text" size="small" @click="del(scope.row.id)">删除</el-button>
|
|
|
|
- <el-button v-if="hasPermission('program:registered:edit')&&scope.row.status === '5' && commonJS.isEmpty(scope.row.reportNo) && scope.row.createBy === createName" type="text" size="small" @click="saveReportNo(scope.row.id)">生成报告号</el-button>
|
|
|
|
- <el-button v-if="hasPermission('program:registered:edit')&&scope.row.status === '5' && commonJS.isNotEmpty(scope.row.reportNo) && scope.row.createBy === createName && scope.row.archiveStatus !== '5'" type="text" size="small" @click="archive(scope.row)">项目归档</el-button>
|
|
|
|
|
|
+ <el-button v-if="hasPermission('program:registered:edit')&&(scope.row.createBy === createName&&scope.row.archiveStatus!=='5') || isAdmin" text type="primary" @click="edit(scope.row.id)">修改</el-button>
|
|
|
|
+ <el-button v-if="hasPermission('program:registered:del')&&(scope.row.createBy === createName&&scope.row.archiveStatus!=='5') || isAdmin" text type="primary" @click="del(scope.row.id)">删除</el-button>
|
|
|
|
+ <el-button v-if="hasPermission('program:registered:edit')&&scope.row.status === '5' && commonJS.isEmpty(scope.row.reportNo) && scope.row.createBy === createName" text type="primary" @click="saveReportNo(scope.row.id)">生成报告号</el-button>
|
|
|
|
+ <el-button v-if="hasPermission('program:registered:edit')&&scope.row.status === '5' && commonJS.isNotEmpty(scope.row.reportNo) && scope.row.createBy === createName && scope.row.archiveStatus !== '5'" text type="primary" @click="archive(scope.row)">项目归档</el-button>
|
|
|
|
|
|
|
|
|
|
<!-- <el-button v-if="hasPermission('program:registered:edit')&&(scope.row.status === '1' || scope.row.status === '3'||scope.row.status === '4')&&scope.row.createBy === createName" type="text" size="small" @click="registeredPush(scope.row)">修改</el-button>-->
|
|
<!-- <el-button v-if="hasPermission('program:registered:edit')&&(scope.row.status === '1' || scope.row.status === '3'||scope.row.status === '4')&&scope.row.createBy === createName" type="text" size="small" @click="registeredPush(scope.row)">修改</el-button>-->
|
|
@@ -220,9 +221,9 @@
|
|
import WorkContractForm2 from '@/views/workContract/WorkContractForm2'
|
|
import WorkContractForm2 from '@/views/workContract/WorkContractForm2'
|
|
import SelectUserTree from '@/views/utils/treeUserSelect'
|
|
import SelectUserTree from '@/views/utils/treeUserSelect'
|
|
import pick from 'lodash.pick'
|
|
import pick from 'lodash.pick'
|
|
- import TaskService from '@/api/flowable/TaskService'
|
|
|
|
- import ProcessService from '@/api/flowable/ProcessService'
|
|
|
|
- import UserService from '@/api/sys/UserService'
|
|
|
|
|
|
+ import taskService from '@/api/flowable/taskService'
|
|
|
|
+ import processService from '@/api/flowable/processService'
|
|
|
|
+ import userService from '@/api/sys/userService'
|
|
import ProofreadIssuedService from '@/api/sys/ProofreadIssuedService'
|
|
import ProofreadIssuedService from '@/api/sys/ProofreadIssuedService'
|
|
export default {
|
|
export default {
|
|
data () {
|
|
data () {
|
|
@@ -265,15 +266,15 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
programProjectListInfoService: null,
|
|
programProjectListInfoService: null,
|
|
- taskService: null,
|
|
|
|
- processService: null,
|
|
|
|
- userService: null,
|
|
|
|
|
|
+ // taskService: null,
|
|
|
|
+ // processService: null,
|
|
|
|
+ // userService: null,
|
|
proofreadIssuedService: null,
|
|
proofreadIssuedService: null,
|
|
created () {
|
|
created () {
|
|
this.programProjectListInfoService = new ProgramProjectListInfoService()
|
|
this.programProjectListInfoService = new ProgramProjectListInfoService()
|
|
- this.taskService = new TaskService()
|
|
|
|
- this.processService = new ProcessService()
|
|
|
|
- this.userService = new UserService()
|
|
|
|
|
|
+ // this.taskService = new TaskService()
|
|
|
|
+ // this.processService = new ProcessService()
|
|
|
|
+ // this.userService = new UserService()
|
|
this.proofreadIssuedService = new ProofreadIssuedService()
|
|
this.proofreadIssuedService = new ProofreadIssuedService()
|
|
},
|
|
},
|
|
components: {
|
|
components: {
|
|
@@ -296,11 +297,11 @@
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
userName () {
|
|
userName () {
|
|
- return JSON.parse(localStorage.getItem('user')).name
|
|
|
|
|
|
+ return this.$store.state.user.name
|
|
},
|
|
},
|
|
user () {
|
|
user () {
|
|
- this.createName = JSON.parse(localStorage.getItem('user')).name
|
|
|
|
- return JSON.parse(localStorage.getItem('user'))
|
|
|
|
|
|
+ this.createName = this.$store.state.user.name
|
|
|
|
+ return this.$store.state.user
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -337,48 +338,48 @@
|
|
// 获取数据列表
|
|
// 获取数据列表
|
|
refreshList () {
|
|
refreshList () {
|
|
this.loading = true
|
|
this.loading = true
|
|
- this.createName = JSON.parse(localStorage.getItem('user')).name
|
|
|
|
|
|
+ this.createName = this.$store.state.user.name
|
|
this.programProjectListInfoService.list2022({
|
|
this.programProjectListInfoService.list2022({
|
|
'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.dataList = data.records
|
|
this.dataList = data.records
|
|
this.tablePage.total = data.total
|
|
this.tablePage.total = data.total
|
|
this.loading = false
|
|
this.loading = false
|
|
})
|
|
})
|
|
- // this.processService.getByName('项目登记流程').then(({data}) => {
|
|
|
|
|
|
+ // this.processService.getByName('项目登记流程').then((data) => {
|
|
// if (!this.commonJS.isEmpty(data.id)) {
|
|
// if (!this.commonJS.isEmpty(data.id)) {
|
|
// this.processDefinitionAuditId = data.id
|
|
// this.processDefinitionAuditId = data.id
|
|
// this.procDefAuditKey = data.key
|
|
// this.procDefAuditKey = data.key
|
|
// }
|
|
// }
|
|
// })
|
|
// })
|
|
- // this.processService.getByName('项目一级校审').then(({data}) => {
|
|
|
|
|
|
+ // this.processService.getByName('项目一级校审').then((data) => {
|
|
// if (!this.commonJS.isEmpty(data.id)) {
|
|
// if (!this.commonJS.isEmpty(data.id)) {
|
|
// this.processDefinitionId1 = data.id
|
|
// this.processDefinitionId1 = data.id
|
|
// this.procDefKey1 = data.key
|
|
// this.procDefKey1 = data.key
|
|
// }
|
|
// }
|
|
// })
|
|
// })
|
|
- // this.processService.getByName('项目二级校审').then(({data}) => {
|
|
|
|
|
|
+ // this.processService.getByName('项目二级校审').then((data) => {
|
|
// if (!this.commonJS.isEmpty(data.id)) {
|
|
// if (!this.commonJS.isEmpty(data.id)) {
|
|
// this.processDefinitionId2 = data.id
|
|
// this.processDefinitionId2 = data.id
|
|
// this.procDefKey2 = data.key
|
|
// this.procDefKey2 = data.key
|
|
// }
|
|
// }
|
|
// })
|
|
// })
|
|
- // this.processService.getByName('项目三级校审').then(({data}) => {
|
|
|
|
|
|
+ // this.processService.getByName('项目三级校审').then((data) => {
|
|
// if (!this.commonJS.isEmpty(data.id)) {
|
|
// if (!this.commonJS.isEmpty(data.id)) {
|
|
// this.processDefinitionId3 = data.id
|
|
// this.processDefinitionId3 = data.id
|
|
// this.procDefKey3 = data.key
|
|
// this.procDefKey3 = data.key
|
|
// }
|
|
// }
|
|
// })
|
|
// })
|
|
- // this.processService.getByName('项目登记归档').then(({data}) => {
|
|
|
|
|
|
+ // this.processService.getByName('项目登记归档').then((data) => {
|
|
// if (!this.commonJS.isEmpty(data.id)) {
|
|
// if (!this.commonJS.isEmpty(data.id)) {
|
|
// this.processDefinitionIdArchive = data.id
|
|
// this.processDefinitionIdArchive = data.id
|
|
// this.procDefKeyArchive = data.key
|
|
// this.procDefKeyArchive = data.key
|
|
// }
|
|
// }
|
|
// })
|
|
// })
|
|
- // this.processService.getByName('报告签发审批').then(({data}) => {
|
|
|
|
|
|
+ // this.processService.getByName('报告签发审批').then((data) => {
|
|
// if (!this.commonJS.isEmpty(data.id)) {
|
|
// if (!this.commonJS.isEmpty(data.id)) {
|
|
// this.processDefinitionId4 = data.id
|
|
// this.processDefinitionId4 = data.id
|
|
// this.procDefKey4 = data.key
|
|
// this.procDefKey4 = data.key
|
|
@@ -410,7 +411,7 @@
|
|
type: 'warning'
|
|
type: 'warning'
|
|
}).then(() => {
|
|
}).then(() => {
|
|
this.loading = true
|
|
this.loading = true
|
|
- this.programProjectListInfoService.delete(ids).then(({data}) => {
|
|
|
|
|
|
+ this.programProjectListInfoService.delete(ids).then((data) => {
|
|
this.$message.success(data)
|
|
this.$message.success(data)
|
|
this.refreshList()
|
|
this.refreshList()
|
|
this.loading = false
|
|
this.loading = false
|
|
@@ -429,7 +430,7 @@
|
|
type: 'warning'
|
|
type: 'warning'
|
|
}).then(() => {
|
|
}).then(() => {
|
|
this.loading = true
|
|
this.loading = true
|
|
- this.programProjectListInfoService.deleteAll(ids).then(({data}) => {
|
|
|
|
|
|
+ this.programProjectListInfoService.deleteAll(ids).then((data) => {
|
|
this.$message.success(data)
|
|
this.$message.success(data)
|
|
this.refreshList()
|
|
this.refreshList()
|
|
this.loading = false
|
|
this.loading = false
|
|
@@ -447,7 +448,7 @@
|
|
// 读取流程表单
|
|
// 读取流程表单
|
|
let tabTitle = `发起流程【评估-项目登记】`
|
|
let tabTitle = `发起流程【评估-项目登记】`
|
|
let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了 [评估-项目登记]`
|
|
let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了 [评估-项目登记]`
|
|
- this.taskService.getTaskDef({ procDefId: this.processDefinitionAuditId,
|
|
|
|
|
|
+ taskService.getTaskDef({ procDefId: this.processDefinitionAuditId,
|
|
status: 'startAndHold'}).then((data) => {
|
|
status: 'startAndHold'}).then((data) => {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: '/flowable/task/TaskForm',
|
|
path: '/flowable/task/TaskForm',
|
|
@@ -456,8 +457,8 @@
|
|
procDefKey: this.procDefAuditKey,
|
|
procDefKey: this.procDefAuditKey,
|
|
status: 'startAndHold',
|
|
status: 'startAndHold',
|
|
title: tabTitle,
|
|
title: tabTitle,
|
|
- formType: data.data.formType,
|
|
|
|
- formUrl: data.data.formUrl,
|
|
|
|
|
|
+ formType: data.formType,
|
|
|
|
+ formUrl: data.formUrl,
|
|
formTitle: processTitle,
|
|
formTitle: processTitle,
|
|
businessId: 'false',
|
|
businessId: 'false',
|
|
isShow: false,
|
|
isShow: false,
|
|
@@ -475,7 +476,7 @@
|
|
if (row.status === '3' || row.status === '4') {
|
|
if (row.status === '3' || row.status === '4') {
|
|
status = 'startAndClose'
|
|
status = 'startAndClose'
|
|
}
|
|
}
|
|
- this.taskService.getTaskDef({ procDefId: this.processDefinitionAuditId,
|
|
|
|
|
|
+ taskService.getTaskDef({ procDefId: this.processDefinitionAuditId,
|
|
businessId: row.id,
|
|
businessId: row.id,
|
|
businessTable: 'program_project_list_info'}).then((data) => {
|
|
businessTable: 'program_project_list_info'}).then((data) => {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
@@ -484,8 +485,8 @@
|
|
procDefId: this.processDefinitionAuditId,
|
|
procDefId: this.processDefinitionAuditId,
|
|
procDefKey: this.procDefAuditKey,
|
|
procDefKey: this.procDefAuditKey,
|
|
title: title,
|
|
title: title,
|
|
- formType: data.data.formType,
|
|
|
|
- formUrl: data.data.formUrl,
|
|
|
|
|
|
+ formType: data.formType,
|
|
|
|
+ formUrl: data.formUrl,
|
|
formTitle: processTitle,
|
|
formTitle: processTitle,
|
|
businessTable: 'program_project_list_info',
|
|
businessTable: 'program_project_list_info',
|
|
businessId: row.id,
|
|
businessId: row.id,
|
|
@@ -500,10 +501,10 @@
|
|
registeredDetail (row) {
|
|
registeredDetail (row) {
|
|
if (row.status !== '0' && row.status !== '1') {
|
|
if (row.status !== '0' && row.status !== '1') {
|
|
// eslint-disable-next-line eqeqeq
|
|
// eslint-disable-next-line eqeqeq
|
|
- this.taskService.getTaskDef({
|
|
|
|
|
|
+ taskService.getTaskDef({
|
|
procInsId: row.procInsId,
|
|
procInsId: row.procInsId,
|
|
procDefId: this.processDefinitionAuditId
|
|
procDefId: this.processDefinitionAuditId
|
|
- }).then(({data}) => {
|
|
|
|
|
|
+ }).then((data) => {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: '/flowable/task/TaskFormDetail',
|
|
path: '/flowable/task/TaskFormDetail',
|
|
query: {
|
|
query: {
|
|
@@ -526,12 +527,12 @@
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
type: 'warning'
|
|
type: 'warning'
|
|
}).then(async () => {
|
|
}).then(async () => {
|
|
- await this.programProjectListInfoService.queryById(row.id).then(({data}) => {
|
|
|
|
|
|
+ await this.programProjectListInfoService.queryById(row.id).then((data) => {
|
|
if (data.status !== '2') { // status的值不等于“审核中”,就弹出提示
|
|
if (data.status !== '2') { // status的值不等于“审核中”,就弹出提示
|
|
this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
this.refreshList()
|
|
this.refreshList()
|
|
} else {
|
|
} else {
|
|
- this.processService.revokeProcIns(row.procInsId).then(({data}) => {
|
|
|
|
|
|
+ processService.revokeProcIns(row.procInsId).then((data) => {
|
|
let form = {status: '3', id: row.id}
|
|
let form = {status: '3', id: row.id}
|
|
this.programProjectListInfoService.updateStatusById(form)
|
|
this.programProjectListInfoService.updateStatusById(form)
|
|
this.$message.success(data)
|
|
this.$message.success(data)
|
|
@@ -550,7 +551,7 @@
|
|
if (row.status1 === '3' || row.status1 === '4') {
|
|
if (row.status1 === '3' || row.status1 === '4') {
|
|
status = 'startAndClose'
|
|
status = 'startAndClose'
|
|
}
|
|
}
|
|
- this.taskService.getTaskDef({ procDefId: this.processDefinitionId1,
|
|
|
|
|
|
+ taskService.getTaskDef({ procDefId: this.processDefinitionId1,
|
|
businessId: row.auditId1,
|
|
businessId: row.auditId1,
|
|
businessTable: 'program_audit'}).then((data) => {
|
|
businessTable: 'program_audit'}).then((data) => {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
@@ -559,8 +560,8 @@
|
|
procDefId: this.processDefinitionId1,
|
|
procDefId: this.processDefinitionId1,
|
|
procDefKey: this.procDefKey1,
|
|
procDefKey: this.procDefKey1,
|
|
title: title,
|
|
title: title,
|
|
- formType: data.data.formType,
|
|
|
|
- formUrl: data.data.formUrl,
|
|
|
|
|
|
+ formType: data.formType,
|
|
|
|
+ formUrl: data.formUrl,
|
|
formTitle: processTitle,
|
|
formTitle: processTitle,
|
|
businessTable: 'program_audit',
|
|
businessTable: 'program_audit',
|
|
businessId: row.auditId1,
|
|
businessId: row.auditId1,
|
|
@@ -575,10 +576,10 @@
|
|
firstAuditDetail (row) {
|
|
firstAuditDetail (row) {
|
|
if (row.status1 !== '0' && row.status1 !== '1') {
|
|
if (row.status1 !== '0' && row.status1 !== '1') {
|
|
// eslint-disable-next-line eqeqeq
|
|
// eslint-disable-next-line eqeqeq
|
|
- this.taskService.getTaskDef({
|
|
|
|
|
|
+ taskService.getTaskDef({
|
|
procInsId: row.procInsId1,
|
|
procInsId: row.procInsId1,
|
|
procDefId: this.processDefinitionId1
|
|
procDefId: this.processDefinitionId1
|
|
- }).then(({data}) => {
|
|
|
|
|
|
+ }).then((data) => {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: '/flowable/task/TaskFormDetail',
|
|
path: '/flowable/task/TaskFormDetail',
|
|
query: {
|
|
query: {
|
|
@@ -601,12 +602,12 @@
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
type: 'warning'
|
|
type: 'warning'
|
|
}).then(async () => {
|
|
}).then(async () => {
|
|
- await this.programProjectListInfoService.findByIdAudit(row.auditId1).then(({data}) => {
|
|
|
|
|
|
+ await this.programProjectListInfoService.findByIdAudit(row.auditId1).then((data) => {
|
|
if (data.status !== '2') { // status的值不等于“审核中”,就弹出提示
|
|
if (data.status !== '2') { // status的值不等于“审核中”,就弹出提示
|
|
this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
this.refreshList()
|
|
this.refreshList()
|
|
} else {
|
|
} else {
|
|
- this.processService.revokeProcIns(row.procInsId1).then(({data}) => {
|
|
|
|
|
|
+ processService.revokeProcIns(row.procInsId1).then((data) => {
|
|
let form = {status: '3', id: row.auditId1}
|
|
let form = {status: '3', id: row.auditId1}
|
|
this.programProjectListInfoService.updateStatusByAuditId(form)
|
|
this.programProjectListInfoService.updateStatusByAuditId(form)
|
|
this.$message.success(data)
|
|
this.$message.success(data)
|
|
@@ -625,7 +626,7 @@
|
|
if (row.status2 === '3' || row.status2 === '4') {
|
|
if (row.status2 === '3' || row.status2 === '4') {
|
|
status = 'startAndClose'
|
|
status = 'startAndClose'
|
|
}
|
|
}
|
|
- this.taskService.getTaskDef({ procDefId: this.processDefinitionId2,
|
|
|
|
|
|
+ taskService.getTaskDef({ procDefId: this.processDefinitionId2,
|
|
businessId: row.auditId2,
|
|
businessId: row.auditId2,
|
|
businessTable: 'program_audit'}).then((data) => {
|
|
businessTable: 'program_audit'}).then((data) => {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
@@ -634,8 +635,8 @@
|
|
procDefId: this.processDefinitionId2,
|
|
procDefId: this.processDefinitionId2,
|
|
procDefKey: this.procDefKey2,
|
|
procDefKey: this.procDefKey2,
|
|
title: title,
|
|
title: title,
|
|
- formType: data.data.formType,
|
|
|
|
- formUrl: data.data.formUrl,
|
|
|
|
|
|
+ formType: data.formType,
|
|
|
|
+ formUrl: data.formUrl,
|
|
formTitle: processTitle,
|
|
formTitle: processTitle,
|
|
businessTable: 'program_audit',
|
|
businessTable: 'program_audit',
|
|
businessId: row.auditId2,
|
|
businessId: row.auditId2,
|
|
@@ -650,10 +651,10 @@
|
|
secondAuditDetail (row) {
|
|
secondAuditDetail (row) {
|
|
if (row.status2 !== '0' && row.status2 !== '1') {
|
|
if (row.status2 !== '0' && row.status2 !== '1') {
|
|
// eslint-disable-next-line eqeqeq
|
|
// eslint-disable-next-line eqeqeq
|
|
- this.taskService.getTaskDef({
|
|
|
|
|
|
+ taskService.getTaskDef({
|
|
procInsId: row.procInsId2,
|
|
procInsId: row.procInsId2,
|
|
procDefId: this.processDefinitionId2
|
|
procDefId: this.processDefinitionId2
|
|
- }).then(({data}) => {
|
|
|
|
|
|
+ }).then((data) => {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: '/flowable/task/TaskFormDetail',
|
|
path: '/flowable/task/TaskFormDetail',
|
|
query: {
|
|
query: {
|
|
@@ -676,12 +677,12 @@
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
type: 'warning'
|
|
type: 'warning'
|
|
}).then(async () => {
|
|
}).then(async () => {
|
|
- await this.programProjectListInfoService.findByIdAudit(row.auditId2).then(({data}) => {
|
|
|
|
|
|
+ await this.programProjectListInfoService.findByIdAudit(row.auditId2).then((data) => {
|
|
if (data.status !== '2') { // status的值不等于“审核中”,就弹出提示
|
|
if (data.status !== '2') { // status的值不等于“审核中”,就弹出提示
|
|
this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
this.refreshList()
|
|
this.refreshList()
|
|
} else {
|
|
} else {
|
|
- this.processService.revokeProcIns(row.procInsId2).then(({data}) => {
|
|
|
|
|
|
+ processService.revokeProcIns(row.procInsId2).then((data) => {
|
|
let form = {status: '3', id: row.auditId2}
|
|
let form = {status: '3', id: row.auditId2}
|
|
this.programProjectListInfoService.updateStatusByAuditId(form)
|
|
this.programProjectListInfoService.updateStatusByAuditId(form)
|
|
this.$message.success(data)
|
|
this.$message.success(data)
|
|
@@ -700,7 +701,7 @@
|
|
if (row.status3 === '3' || row.status3 === '4') {
|
|
if (row.status3 === '3' || row.status3 === '4') {
|
|
status = 'startAndClose'
|
|
status = 'startAndClose'
|
|
}
|
|
}
|
|
- this.taskService.getTaskDef({ procDefId: this.processDefinitionId3,
|
|
|
|
|
|
+ taskService.getTaskDef({ procDefId: this.processDefinitionId3,
|
|
businessId: row.auditId3,
|
|
businessId: row.auditId3,
|
|
businessTable: 'program_audit'}).then((data) => {
|
|
businessTable: 'program_audit'}).then((data) => {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
@@ -709,8 +710,8 @@
|
|
procDefId: this.processDefinitionId3,
|
|
procDefId: this.processDefinitionId3,
|
|
procDefKey: this.procDefKey3,
|
|
procDefKey: this.procDefKey3,
|
|
title: title,
|
|
title: title,
|
|
- formType: data.data.formType,
|
|
|
|
- formUrl: data.data.formUrl,
|
|
|
|
|
|
+ formType: data.formType,
|
|
|
|
+ formUrl: data.formUrl,
|
|
formTitle: processTitle,
|
|
formTitle: processTitle,
|
|
businessTable: 'program_audit',
|
|
businessTable: 'program_audit',
|
|
businessId: row.auditId3,
|
|
businessId: row.auditId3,
|
|
@@ -725,10 +726,10 @@
|
|
thirdAuditDetail (row) {
|
|
thirdAuditDetail (row) {
|
|
if (row.status3 !== '0' && row.status3 !== '1') {
|
|
if (row.status3 !== '0' && row.status3 !== '1') {
|
|
// eslint-disable-next-line eqeqeq
|
|
// eslint-disable-next-line eqeqeq
|
|
- this.taskService.getTaskDef({
|
|
|
|
|
|
+ taskService.getTaskDef({
|
|
procInsId: row.procInsId3,
|
|
procInsId: row.procInsId3,
|
|
procDefId: this.processDefinitionId3
|
|
procDefId: this.processDefinitionId3
|
|
- }).then(({data}) => {
|
|
|
|
|
|
+ }).then((data) => {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: '/flowable/task/TaskFormDetail',
|
|
path: '/flowable/task/TaskFormDetail',
|
|
query: {
|
|
query: {
|
|
@@ -751,12 +752,12 @@
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
type: 'warning'
|
|
type: 'warning'
|
|
}).then(async () => {
|
|
}).then(async () => {
|
|
- await this.programProjectListInfoService.findByIdAudit(row.auditId3).then(({data}) => {
|
|
|
|
|
|
+ await this.programProjectListInfoService.findByIdAudit(row.auditId3).then((data) => {
|
|
if (data.status !== '2') { // status的值不等于“审核中”,就弹出提示
|
|
if (data.status !== '2') { // status的值不等于“审核中”,就弹出提示
|
|
this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
this.refreshList()
|
|
this.refreshList()
|
|
} else {
|
|
} else {
|
|
- this.processService.revokeProcIns(row.procInsId3).then(({data}) => {
|
|
|
|
|
|
+ processService.revokeProcIns(row.procInsId3).then((data) => {
|
|
let form = {status: '3', id: row.auditId3}
|
|
let form = {status: '3', id: row.auditId3}
|
|
this.programProjectListInfoService.updateStatusByAuditId(form)
|
|
this.programProjectListInfoService.updateStatusByAuditId(form)
|
|
this.$message.success(data)
|
|
this.$message.success(data)
|
|
@@ -775,7 +776,7 @@
|
|
if (row.archiveStatus === '3' || row.archiveStatus === '4') {
|
|
if (row.archiveStatus === '3' || row.archiveStatus === '4') {
|
|
status = 'startAndClose'
|
|
status = 'startAndClose'
|
|
}
|
|
}
|
|
- this.taskService.getTaskDef({ procDefId: this.processDefinitionIdArchive,
|
|
|
|
|
|
+ taskService.getTaskDef({ procDefId: this.processDefinitionIdArchive,
|
|
businessId: row.archiveId,
|
|
businessId: row.archiveId,
|
|
businessTable: 'program_archive'}).then((data) => {
|
|
businessTable: 'program_archive'}).then((data) => {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
@@ -784,8 +785,8 @@
|
|
procDefId: this.processDefinitionIdArchive,
|
|
procDefId: this.processDefinitionIdArchive,
|
|
procDefKey: this.procDefKeyArchive,
|
|
procDefKey: this.procDefKeyArchive,
|
|
title: title,
|
|
title: title,
|
|
- formType: data.data.formType,
|
|
|
|
- formUrl: data.data.formUrl,
|
|
|
|
|
|
+ formType: data.formType,
|
|
|
|
+ formUrl: data.formUrl,
|
|
formTitle: processTitle,
|
|
formTitle: processTitle,
|
|
businessTable: 'program_archive',
|
|
businessTable: 'program_archive',
|
|
businessId: row.archiveId,
|
|
businessId: row.archiveId,
|
|
@@ -800,10 +801,10 @@
|
|
archiveDetail (row) {
|
|
archiveDetail (row) {
|
|
if (row.archiveStatus !== '0' && row.archiveStatus !== '1') {
|
|
if (row.archiveStatus !== '0' && row.archiveStatus !== '1') {
|
|
// eslint-disable-next-line eqeqeq
|
|
// eslint-disable-next-line eqeqeq
|
|
- this.taskService.getTaskDef({
|
|
|
|
|
|
+ taskService.getTaskDef({
|
|
procInsId: row.procInsIdArchive,
|
|
procInsId: row.procInsIdArchive,
|
|
procDefId: this.processDefinitionIdArchive
|
|
procDefId: this.processDefinitionIdArchive
|
|
- }).then(({data}) => {
|
|
|
|
|
|
+ }).then((data) => {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: '/flowable/task/TaskFormDetail',
|
|
path: '/flowable/task/TaskFormDetail',
|
|
query: {
|
|
query: {
|
|
@@ -826,12 +827,12 @@
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
type: 'warning'
|
|
type: 'warning'
|
|
}).then(async () => {
|
|
}).then(async () => {
|
|
- await this.programProjectListInfoService.findByIdArchive(row.archiveId).then(({data}) => {
|
|
|
|
|
|
+ await this.programProjectListInfoService.findByIdArchive(row.archiveId).then((data) => {
|
|
if (data.status !== '2') { // status的值不等于“审核中”,就弹出提示
|
|
if (data.status !== '2') { // status的值不等于“审核中”,就弹出提示
|
|
this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
this.refreshList()
|
|
this.refreshList()
|
|
} else {
|
|
} else {
|
|
- this.processService.revokeProcIns(row.procInsIdArchive).then(({data}) => {
|
|
|
|
|
|
+ processService.revokeProcIns(row.procInsIdArchive).then((data) => {
|
|
let form = {status: '3', id: row.archiveId}
|
|
let form = {status: '3', id: row.archiveId}
|
|
this.programProjectListInfoService.updateStatusByArchiveId(form)
|
|
this.programProjectListInfoService.updateStatusByArchiveId(form)
|
|
this.$message.success(data)
|
|
this.$message.success(data)
|
|
@@ -847,7 +848,7 @@
|
|
this.loading = true
|
|
this.loading = true
|
|
this.programProjectListInfoService.downloadFirstAuditTpl(row.id, row.auditId1).then((res) => {
|
|
this.programProjectListInfoService.downloadFirstAuditTpl(row.id, row.auditId1).then((res) => {
|
|
// 将二进制流文件写入excel表,以下为重要步骤
|
|
// 将二进制流文件写入excel表,以下为重要步骤
|
|
- this.$utils.downloadWord(res.data, '一级校审')
|
|
|
|
|
|
+ this.$utils.downloadWord(res, '一级校审')
|
|
this.loading = false
|
|
this.loading = false
|
|
}).catch(function (err) {
|
|
}).catch(function (err) {
|
|
this.loading = false
|
|
this.loading = false
|
|
@@ -862,7 +863,7 @@
|
|
this.loading = true
|
|
this.loading = true
|
|
this.programProjectListInfoService.downloadSecondAuditTpl(row.id, row.auditId2).then((res) => {
|
|
this.programProjectListInfoService.downloadSecondAuditTpl(row.id, row.auditId2).then((res) => {
|
|
// 将二进制流文件写入excel表,以下为重要步骤
|
|
// 将二进制流文件写入excel表,以下为重要步骤
|
|
- this.$utils.downloadWord(res.data, '二级校审')
|
|
|
|
|
|
+ this.$utils.downloadWord(res, '二级校审')
|
|
this.loading = false
|
|
this.loading = false
|
|
}).catch(function (err) {
|
|
}).catch(function (err) {
|
|
this.loading = false
|
|
this.loading = false
|
|
@@ -877,7 +878,7 @@
|
|
this.loading = true
|
|
this.loading = true
|
|
this.programProjectListInfoService.downloadThirdlyAuditTpl(row.id, row.auditId3).then((res) => {
|
|
this.programProjectListInfoService.downloadThirdlyAuditTpl(row.id, row.auditId3).then((res) => {
|
|
// 将二进制流文件写入excel表,以下为重要步骤
|
|
// 将二进制流文件写入excel表,以下为重要步骤
|
|
- this.$utils.downloadWord(res.data, '三级校审')
|
|
|
|
|
|
+ this.$utils.downloadWord(res, '三级校审')
|
|
this.loading = false
|
|
this.loading = false
|
|
}).catch(function (err) {
|
|
}).catch(function (err) {
|
|
this.loading = false
|
|
this.loading = false
|
|
@@ -892,7 +893,7 @@
|
|
this.loading = true
|
|
this.loading = true
|
|
this.programProjectListInfoService.downloadProofreadAuditTpl(row.id).then((res) => {
|
|
this.programProjectListInfoService.downloadProofreadAuditTpl(row.id).then((res) => {
|
|
// 将二进制流文件写入excel表,以下为重要步骤
|
|
// 将二进制流文件写入excel表,以下为重要步骤
|
|
- this.$utils.downloadExcel(res.data, '资产评估项目(校对)审核记录表.xls')
|
|
|
|
|
|
+ this.$utils.downloadExcel(res, '资产评估项目(校对)审核记录表.xls')
|
|
this.loading = false
|
|
this.loading = false
|
|
}).catch(function (err) {
|
|
}).catch(function (err) {
|
|
this.loading = false
|
|
this.loading = false
|
|
@@ -907,7 +908,7 @@
|
|
this.loading = true
|
|
this.loading = true
|
|
this.programProjectListInfoService.downloadAuditRecordFormAfterBindingTpl(row.id).then((res) => {
|
|
this.programProjectListInfoService.downloadAuditRecordFormAfterBindingTpl(row.id).then((res) => {
|
|
// 将二进制流文件写入excel表,以下为重要步骤
|
|
// 将二进制流文件写入excel表,以下为重要步骤
|
|
- this.$utils.downloadExcel(res.data, '评估报告装订后浏览审核记录表.xls')
|
|
|
|
|
|
+ this.$utils.downloadExcel(res, '评估报告装订后浏览审核记录表.xls')
|
|
this.loading = false
|
|
this.loading = false
|
|
}).catch(function (err) {
|
|
}).catch(function (err) {
|
|
this.loading = false
|
|
this.loading = false
|
|
@@ -922,7 +923,7 @@
|
|
this.loading = true
|
|
this.loading = true
|
|
this.programProjectListInfoService.downloadReportAusstellungTpl(row.id).then((res) => {
|
|
this.programProjectListInfoService.downloadReportAusstellungTpl(row.id).then((res) => {
|
|
// 将二进制流文件写入excel表,以下为重要步骤
|
|
// 将二进制流文件写入excel表,以下为重要步骤
|
|
- this.$utils.downloadWord(res.data, '报告签发单')
|
|
|
|
|
|
+ this.$utils.downloadWord(res, '报告签发单')
|
|
this.loading = false
|
|
this.loading = false
|
|
}).catch(function (err) {
|
|
}).catch(function (err) {
|
|
this.loading = false
|
|
this.loading = false
|
|
@@ -932,7 +933,7 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
is () {
|
|
is () {
|
|
- this.userService.is().then(({data}) => {
|
|
|
|
|
|
+ userService.is().then((data) => {
|
|
this.isAdmin = data
|
|
this.isAdmin = data
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -945,7 +946,7 @@
|
|
...this.searchForm
|
|
...this.searchForm
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
// 将二进制流文件写入excel表,以下为重要步骤
|
|
// 将二进制流文件写入excel表,以下为重要步骤
|
|
- this.$utils.downloadExcel(res.data, '2022年项目登记列表信息')
|
|
|
|
|
|
+ this.$utils.downloadExcel(res, '2022年项目登记列表信息')
|
|
this.loading = false
|
|
this.loading = false
|
|
}).catch(function (err) {
|
|
}).catch(function (err) {
|
|
this.loading = false
|
|
this.loading = false
|
|
@@ -962,7 +963,7 @@
|
|
}).then(() => {
|
|
}).then(() => {
|
|
this.loading = true
|
|
this.loading = true
|
|
this.programProjectListInfoService.saveReportNo(id).then((data) => {
|
|
this.programProjectListInfoService.saveReportNo(id).then((data) => {
|
|
- this.$message.success(data.data)
|
|
|
|
|
|
+ this.$message.success(data)
|
|
this.refreshList()
|
|
this.refreshList()
|
|
this.loading = false
|
|
this.loading = false
|
|
}).catch((e) => {
|
|
}).catch((e) => {
|
|
@@ -987,7 +988,7 @@
|
|
if (row.issuedStatus === '3' || row.issuedStatus === '4' || row.issuedStatus === '2') {
|
|
if (row.issuedStatus === '3' || row.issuedStatus === '4' || row.issuedStatus === '2') {
|
|
status = 'startAndClose'
|
|
status = 'startAndClose'
|
|
}
|
|
}
|
|
- this.taskService.getTaskDef({ procDefId: this.processDefinitionId4,
|
|
|
|
|
|
+ taskService.getTaskDef({ procDefId: this.processDefinitionId4,
|
|
businessId: row.id,
|
|
businessId: row.id,
|
|
businessTable: 'proofread_issued'}).then((data) => {
|
|
businessTable: 'proofread_issued'}).then((data) => {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
@@ -996,8 +997,8 @@
|
|
procDefId: this.processDefinitionId4,
|
|
procDefId: this.processDefinitionId4,
|
|
procDefKey: this.procDefKey4,
|
|
procDefKey: this.procDefKey4,
|
|
title: title,
|
|
title: title,
|
|
- formType: data.data.formType,
|
|
|
|
- formUrl: data.data.formUrl,
|
|
|
|
|
|
+ formType: data.formType,
|
|
|
|
+ formUrl: data.formUrl,
|
|
formTitle: processTitle,
|
|
formTitle: processTitle,
|
|
businessTable: 'proofread_issued',
|
|
businessTable: 'proofread_issued',
|
|
businessId: row.id,
|
|
businessId: row.id,
|
|
@@ -1012,10 +1013,10 @@
|
|
issuedDetail (row) {
|
|
issuedDetail (row) {
|
|
if (row.issuedStatus !== undefined && row.issuedStatus !== '1') {
|
|
if (row.issuedStatus !== undefined && row.issuedStatus !== '1') {
|
|
// eslint-disable-next-line eqeqeq
|
|
// eslint-disable-next-line eqeqeq
|
|
- this.taskService.getTaskDef({
|
|
|
|
|
|
+ taskService.getTaskDef({
|
|
procInsId: row.procInsId4,
|
|
procInsId: row.procInsId4,
|
|
procDefId: this.processDefinitionId4
|
|
procDefId: this.processDefinitionId4
|
|
- }).then(({data}) => {
|
|
|
|
|
|
+ }).then((data) => {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: '/flowable/task/TaskFormDetail',
|
|
path: '/flowable/task/TaskFormDetail',
|
|
query: {
|
|
query: {
|
|
@@ -1038,12 +1039,12 @@
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
type: 'warning'
|
|
type: 'warning'
|
|
}).then(async () => {
|
|
}).then(async () => {
|
|
- await this.proofreadIssuedService.findById(row.id).then(({data}) => {
|
|
|
|
|
|
+ await this.proofreadIssuedService.findById(row.id).then((data) => {
|
|
if (data.status !== '2') { // status的值不等于“审核中”,就弹出提示
|
|
if (data.status !== '2') { // status的值不等于“审核中”,就弹出提示
|
|
this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
this.refreshList()
|
|
this.refreshList()
|
|
} else {
|
|
} else {
|
|
- this.processService.revokeProcIns(row.procInsId4).then(({data}) => {
|
|
|
|
|
|
+ processService.revokeProcIns(row.procInsId4).then((data) => {
|
|
let form = {status: '3', id: row.id}
|
|
let form = {status: '3', id: row.id}
|
|
this.proofreadIssuedService.updateStatus(form)
|
|
this.proofreadIssuedService.updateStatus(form)
|
|
this.$message.success(data)
|
|
this.$message.success(data)
|