|
|
@@ -128,10 +128,10 @@
|
|
|
exportMethod: exportMethod,
|
|
|
types: ['xlsx'],
|
|
|
modes: ['current', 'selected', 'all']
|
|
|
- }" :data="dataList" :checkbox-config="{}">
|
|
|
+ }" :data="dataList" :checkbox-config="checkboxConfig">
|
|
|
<vxe-column type="seq" width="60" title="序号"></vxe-column>
|
|
|
<vxe-column type="checkbox" width="40"></vxe-column>
|
|
|
- <vxe-column width="130" title="报销编号" field="no" align="center">
|
|
|
+ <vxe-column width="150" title="报销编号" field="no" align="center">
|
|
|
<template #default="scope">
|
|
|
<el-link type="primary" :underline="false" v-if="hasPermission('consultancy:info:view')"
|
|
|
@click="view(scope.row)">{{ scope.row.no }}</el-link>
|
|
|
@@ -222,7 +222,7 @@
|
|
|
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')"
|
|
|
+ v-if="hasPermission('consultancy:info:del') && scope.row.createId === $store.state.user.id && (scope.row.type === '1' || scope.row.type === '3')"
|
|
|
text type="primary" @click="del(scope.row.id)">删除</el-button>
|
|
|
<el-button v-if="checkIsAudit(scope.row)" text type="primary"
|
|
|
@click="todo(scope.row)">审核</el-button>
|
|
|
@@ -294,7 +294,13 @@ import UserSelect2 from '@/views/utils/UserTreeSelect'
|
|
|
import dayjs from 'dayjs';
|
|
|
export default {
|
|
|
data() {
|
|
|
+ const checkboxConfig = {
|
|
|
+ checkMethod: ({ row }) => {
|
|
|
+ return row.type == '1' || row.type == '3';
|
|
|
+ }
|
|
|
+ };
|
|
|
return {
|
|
|
+ checkboxConfig,
|
|
|
formUrlFile: '/consultancy/reimbursement/info/NewReimbursementFileSupplementForm',
|
|
|
formUrl: '/consultancy/reimbursement/info/NewReimbursementForm',
|
|
|
showHideItem: false,
|
|
|
@@ -785,7 +791,6 @@ export default {
|
|
|
this.reimbursementService.remove(ids).then((data) => {
|
|
|
this.$message.success(data)
|
|
|
this.refreshList()
|
|
|
- this.loading = false
|
|
|
})
|
|
|
// this.reimbursementService.remove(ids).then(({data}) => {
|
|
|
// this.$message.success(data)
|