|
@@ -186,7 +186,10 @@
|
|
|
|
|
|
<vxe-column title="操作" width="130px" fixed="right" align="center">
|
|
|
<template #default="scope">
|
|
|
- <el-button v-if="hasPermission('consultancy:info:edit') && scope.row.createId === $store.state.user.id && (scope.row.type === '1' || scope.row.type === '3' )" text type="primary" @click="edit(scope.row)">修改</el-button>
|
|
|
+ <!-- 管理员修改-->
|
|
|
+ <el-button v-if=" (scope.row.type === '5' && isAdmin)" text type="primary" @click="editForm(scope.row)">修改</el-button>
|
|
|
+
|
|
|
+ <el-button v-if="hasPermission('consultancy:info:edit') && scope.row.createId === $store.state.user.id && (scope.row.type === '1' || scope.row.type === '3' )" text type="primary" @click="edit(scope.row)">修改</el-button>
|
|
|
<el-button v-if="hasPermission('consultancy:info:edit') && scope.row.createId === $store.state.user.id && (scope.row.type === '4')" text type="primary" @click="todo(scope.row)">驳回调整</el-button>
|
|
|
<el-button v-if="hasPermission('consultancy:info:edit') && scope.row.createId === $store.state.user.id && (scope.row.type === '2')" text type="primary" @click="reback(scope.row)">撤回</el-button>
|
|
|
<el-button v-if="hasPermission('consultancy:info:del') && scope.row.createId === $store.state.user.id && (scope.row.type === '1')" text type="primary" @click="del(scope.row.id)">删除</el-button>
|
|
@@ -209,6 +212,7 @@
|
|
|
<!-- <ProgramPageForm ref="programPageForm" @getProgram="getProgram"></ProgramPageForm>-->
|
|
|
<ProjectChooseForm ref="projectChooseForm" @getProgram="getProgram"></ProjectChooseForm>
|
|
|
<InfoForm ref="infoForm" @refreshDataList="refreshList"></InfoForm>
|
|
|
+ <InfoUpdateForm ref="infoUpdateForm" @refreshDataList="refreshList"></InfoUpdateForm>
|
|
|
<!-- <ProjectForm ref="projectForm" @refreshDataList="refreshList"></ProjectForm>-->
|
|
|
<ProjectRecordsForm ref="projectRecordsForm" @refreshDataList="refreshList"></ProjectRecordsForm>
|
|
|
<ContractNameForm ref="contractNameForm"></ContractNameForm>
|
|
@@ -231,6 +235,7 @@
|
|
|
import ProjectRecordsForm from '@/views/cw/projectRecords/ProjectRecordsForm'
|
|
|
import ContractNameForm from '@/views/cw/workContract/ContractNameForm'
|
|
|
import userService from '@/api/sys/UserService'
|
|
|
+ import InfoUpdateForm from "./InfoUpdateForm";
|
|
|
export default {
|
|
|
data () {
|
|
|
return {
|
|
@@ -264,6 +269,7 @@
|
|
|
isZj:false,
|
|
|
isDgsbxBmzr:false,
|
|
|
isZjbry:false,
|
|
|
+ isAdmin:false,
|
|
|
}
|
|
|
},
|
|
|
// reimbursementService: null,
|
|
@@ -286,7 +292,8 @@
|
|
|
// ProjectForm,
|
|
|
ProjectRecordsForm,
|
|
|
UserSelect,
|
|
|
- ContractNameForm
|
|
|
+ ContractNameForm,
|
|
|
+ InfoUpdateForm
|
|
|
},
|
|
|
mounted () {
|
|
|
this.$nextTick(() => {
|
|
@@ -525,6 +532,10 @@
|
|
|
view (id) {
|
|
|
this.$refs.infoForm.init('view', id)
|
|
|
},
|
|
|
+ //修改
|
|
|
+ editForm (row) {
|
|
|
+ this.$refs.infoUpdateForm.init('edit', row.id)
|
|
|
+ },
|
|
|
// 查看报销项目
|
|
|
viewProject (id) {
|
|
|
// this.$refs.projectForm.init('view', id)
|
|
@@ -547,6 +558,12 @@
|
|
|
this.isZjbry = data
|
|
|
})
|
|
|
},
|
|
|
+ // 查询当前用户是否是管理员用户
|
|
|
+ checkIsAdmin () {
|
|
|
+ userService.is().then((data) => {
|
|
|
+ this.isAdmin = data
|
|
|
+ })
|
|
|
+ },
|
|
|
// 获取数据列表
|
|
|
refreshList () {
|
|
|
this.loading = true
|
|
@@ -572,6 +589,7 @@
|
|
|
// })
|
|
|
this.checkIsZj()
|
|
|
this.checkIsZjbry()
|
|
|
+ this.checkIsAdmin()
|
|
|
processService.getByName('咨询-报销审批').then((data) => {
|
|
|
if (!this.commonJS.isEmpty(data.id)) {
|
|
|
this.processDefinitionId = data.id
|