|
@@ -433,8 +433,8 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div>
|
|
|
- <el-button v-if="evocationdownloadqx" @click="GoodsReceiveLists" type="primary">审核</el-button>
|
|
|
- <el-button @click="addbtnclick" type="primary">新增物品</el-button>
|
|
|
+ <el-button v-if="Auditauthority" @click="GoodsReceiveLists" type="primary">审核</el-button>
|
|
|
+ <el-button v-if="Addpermission" @click="addbtnclick" type="primary">新增物品</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="SuppliesInventory-table">
|
|
@@ -475,10 +475,10 @@
|
|
|
label="操作"
|
|
|
width="300">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button size="mini" title="编辑" @click="handleEdit(scope.$index, scope.row)">编辑</el-button>
|
|
|
- <el-button size="mini" @click="instorage(scope.row)" type="primary">入库</el-button>
|
|
|
+ <el-button v-if="Editpermission" size="mini" title="编辑" @click="handleEdit(scope.$index, scope.row)">编辑</el-button>
|
|
|
+ <el-button v-if="Addpermission" size="mini" @click="instorage(scope.row)" type="primary">入库</el-button>
|
|
|
<el-button size="mini" @click="GoodsReceiveList(scope.row)" type="success">领用</el-button>
|
|
|
- <el-button size="mini" title="删除" type="danger" @click="handleDelete(scope.$index, scope.row)">删除</el-button>
|
|
|
+ <el-button v-if="Deletepermission" size="mini" title="删除" type="danger" @click="handleDelete(scope.$index, scope.row)">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -630,7 +630,10 @@ export default {
|
|
|
ApprovalVisible:false,
|
|
|
ApprovalData:[],
|
|
|
//shqx
|
|
|
- evocationdownloadqx:false,
|
|
|
+ Auditauthority:false,
|
|
|
+ Editpermission:false,
|
|
|
+ Addpermission:false,
|
|
|
+ Deletepermission:false,
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
@@ -1096,6 +1099,10 @@ export default {
|
|
|
},
|
|
|
//领用列表
|
|
|
GoodsReceiveList(row){
|
|
|
+ if(row.stockQuantity<=0){
|
|
|
+ this.$message.error("已无库存!");
|
|
|
+ return
|
|
|
+ }
|
|
|
this.bjcsh();
|
|
|
this.ClaimitemData=[];
|
|
|
this.ID=row.id;
|
|
@@ -1313,7 +1320,16 @@ export default {
|
|
|
}
|
|
|
for (let r = 0; r < Permissions.length; r++) {
|
|
|
if (Permissions[r].funid==12) {
|
|
|
- this.evocationdownloadqx=true;
|
|
|
+ this.Auditauthority=true;
|
|
|
+ }
|
|
|
+ if (Permissions[r].funid==3) {
|
|
|
+ this.Editpermission=true;
|
|
|
+ }
|
|
|
+ if (Permissions[r].funid==11) {
|
|
|
+ this.Addpermission=true;
|
|
|
+ }
|
|
|
+ if (Permissions[r].funid==2) {
|
|
|
+ this.Deletepermission=true;
|
|
|
}
|
|
|
}
|
|
|
|