|
@@ -124,17 +124,17 @@
|
|
|
<vxe-column width="100" title="报销部门" field="deptName"></vxe-column>
|
|
|
<vxe-column width="100" title="报销日期" field="reimDate"></vxe-column>
|
|
|
<vxe-column width="150" title="报销金额(元)" field="number"></vxe-column>
|
|
|
- <vxe-column width="100" title="状态" field="type">
|
|
|
+ <vxe-column width="100" title="状态" fixed="right" field="type">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button type="text" @click="detail(scope.row)" :type="$dictUtils.getDictLabel('status_info', scope.row.type, '-')" effect="dark" size="mini">{{$dictUtils.getDictLabel("status", scope.row.type, '未开始')}} </el-button>
|
|
|
</template>
|
|
|
</vxe-column>
|
|
|
|
|
|
- <vxe-column title="操作" width="230px" fixed="right" align="center">
|
|
|
+ <vxe-column title="操作" width="150px" fixed="right" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button v-if="hasPermission('reimbursement:info:edit') && (scope.row.type === '1' || scope.row.type === '3' )" type="text" size="small" @click="edit(scope.row)">修改</el-button>
|
|
|
- <el-button v-if="hasPermission('reimbursement:info:edit') && (scope.row.type === '2')" type="text" size="small" @click="reback(scope.row)">撤回</el-button>
|
|
|
- <el-button v-if="hasPermission('reimbursement:info:del') && (scope.row.type === '1')" type="text" size="small" @click="del(scope.row.id)">删除</el-button>
|
|
|
+ <el-button v-if="hasPermission('reimbursement:info:edit') && scope.row.createId === $store.state.user.id && (scope.row.type === '1' || scope.row.type === '3' )" type="text" size="small" @click="edit(scope.row)">修改</el-button>
|
|
|
+ <el-button v-if="hasPermission('reimbursement:info:edit') && scope.row.createId === $store.state.user.id && (scope.row.type === '2')" type="text" size="small" @click="reback(scope.row)">撤回</el-button>
|
|
|
+ <el-button v-if="hasPermission('reimbursement:info:del') && scope.row.createId === $store.state.user.id && (scope.row.type === '1')" type="text" size="small" @click="del(scope.row.id)">删除</el-button>
|
|
|
</template>
|
|
|
</vxe-column>
|
|
|
</vxe-table>
|