|
@@ -12,7 +12,7 @@
|
|
|
text-color="#666666"
|
|
|
active-text-color="#20A0FF"
|
|
|
style="width:100%">
|
|
|
- <el-submenu index="1" v-if="permissions.costFil">
|
|
|
+ <el-submenu index="1">
|
|
|
<template slot="title">
|
|
|
<i class="iconfont firerock-icontianbao"></i>
|
|
|
<span>员工费用填报</span>
|
|
@@ -24,7 +24,8 @@
|
|
|
<el-submenu index="2">
|
|
|
<template slot="title">
|
|
|
<i class="iconfont firerock-iconbaoxiaodan"></i>
|
|
|
- <span>{{user.role == 0?"我的报销凭证":"报销凭证列表"}}</span>
|
|
|
+ <!-- <span>{{user.role == 0?"我的报销凭证":"报销凭证列表"}}</span> -->
|
|
|
+ <span>{{"报销凭证列表"}}</span>
|
|
|
</template>
|
|
|
<el-menu-item index="2-1" v-if="permissions.costAll"><p @click="bills(false)" >单据列表</p></el-menu-item>
|
|
|
<el-menu-item index="2-2" v-if="permissions.costAudit"><p @click="bills(true)">单据审核</p></el-menu-item>
|
|
@@ -56,7 +57,7 @@
|
|
|
<!-- 报销人 -->
|
|
|
<el-form-item label="报销人" prop="ownerId">
|
|
|
<!--普通员工只能自己填报自己的 -->
|
|
|
- <el-select v-model="addForm.ownerId" placeholder="请选择报销人" style="width: 150px" :disabled="user.role == 0" filterable="true">
|
|
|
+ <el-select v-model="addForm.ownerId" placeholder="请选择报销人" style="width: 150px" :disabled="!permissions.costFil" filterable="true">
|
|
|
<span v-for="(item, index) in users" :key="index">
|
|
|
<el-option :label="item.name" :value="item.id"></el-option>
|
|
|
</span>
|
|
@@ -187,7 +188,7 @@
|
|
|
<el-form label-width="70px" inline >
|
|
|
<!-- 报销人 -->
|
|
|
<el-form-item label="报销人">
|
|
|
- <el-select v-model="ownerId" size="small" clearable placeholder="选择报销人" style="width: 120px" :disabled="user.role == 0" filterable="true">
|
|
|
+ <el-select v-model="ownerId" size="small" clearable placeholder="选择报销人" style="width: 120px" :disabled="!permissions.costFil" filterable="true">
|
|
|
<span v-for="(item, index) in users" :key="index">
|
|
|
<el-option :label="item.name" :value="item.id"></el-option>
|
|
|
</span>
|
|
@@ -248,12 +249,12 @@
|
|
|
<span v-if="scope.row.status == 0 || scope.row.status == 3" >{{statusTxt[scope.row.status]}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="操作" :width="isAuditList?220:160" v-if="user.role != 6">
|
|
|
+ <el-table-column label="操作" :width="isAuditList?220:160">
|
|
|
<template slot-scope="scope" >
|
|
|
<div v-if="!isAuditList">
|
|
|
<el-button icon="el-icon-view" circle size="mini" @click.stop.native="downloadByA(scope.row)" ></el-button>
|
|
|
- <el-button icon="el-icon-edit" circle size="mini" style="margin-left:10px;" @click.stop.native="showEditName(scope.row)" v-show="(scope.row.status == 1 || scope.row.status == 2) || user.role > 0 "></el-button>
|
|
|
- <el-button icon="el-icon-delete" circle size="mini" style="margin-left:10px;" @click.stop.native="deleteItem(scope.row)" v-show="(scope.row.status == 1 || scope.row.status == 2) || user.role > 0 "></el-button>
|
|
|
+ <el-button icon="el-icon-edit" circle size="mini" style="margin-left:10px;" @click.stop.native="showEditName(scope.row)" v-show="scope.row.status == 1 || scope.row.status == 2 "></el-button>
|
|
|
+ <el-button icon="el-icon-delete" circle size="mini" style="margin-left:10px;" @click.stop.native="deleteItem(scope.row)" v-show="scope.row.status == 1 || scope.row.status == 2 "></el-button>
|
|
|
</div>
|
|
|
<div v-if="isAuditList">
|
|
|
<el-button size="mini" @click.stop.native="downloadByA(scope.row)" >查看</el-button>
|
|
@@ -678,7 +679,7 @@ export default {
|
|
|
res => {
|
|
|
if (res.code == "ok") {
|
|
|
this.users = res.data.records;
|
|
|
- if (this.user.role == 0) {
|
|
|
+ if (!this.permissions.costFil) {
|
|
|
this.addForm.ownerId = this.user.id;
|
|
|
this.addForm.status = 1;
|
|
|
}
|
|
@@ -950,7 +951,7 @@ export default {
|
|
|
this.addForm.type = index
|
|
|
this.ins = index;
|
|
|
this.expenseTypeList = this.allExpList.filter(a=>a.mainType == this.ins);
|
|
|
- if (this.user.role == 0) {
|
|
|
+ if (!this.permissions.costFil) {
|
|
|
this.addForm.ownerId = this.user.id;
|
|
|
}
|
|
|
|